/* Public EZRA pages (templates/ezpzai/ezra_public/*): the shell (EZRA sub-nav, disclaimer; the site header and
 * footer are the EZPZ site's own, css/ezra-brand.css maps the colours to the EZPZ brand),
 * the trust partials, the gallery card and poster, and the /ezra/ product page. Prefix ezp-. Every value is a
 * token (ezra-tokens.css) or a multiple of one; light and dark come from the tokens alone. Controls are the
 * standard ones from css/ezra-ui.css (.ez-btn, .ez-iconbtn, .ez-chip, .ez-card, .ez-eyebrow).
 * Colour rule: purple (--p, --p-text) for EZRA actions, green / red (--bull-*, --bear-*) only for market
 * direction. Breakpoints: 720 (phone) and 1100, the one scale in css/ezra-ui.css.
 * Motion: transform and opacity only, timings from --dur*, nothing moves under prefers-reduced-motion, and every
 * loop pauses off screen (showreel.js sets data-paused). */

html, body { margin: 0; padding: 0; }
/* scroll-padding-top for the sticky site header + sub-nav: css/ezra-brand.css (--ezp-sticky-top) */
.ezp-page {
  --ezp-gutter: clamp(16px, 4vw, 64px);
  --ezp-wide: 1600px;                          /* the page column: full width up to 1600px */
  --ezp-read: calc(var(--sp-8) * 22);          /* a reading line */
  --ezp-r-xl: calc(var(--r-lg) + var(--sp-1) + 2px);
}
.ezp-page:not(.ezp-part) { display: flex; flex-direction: column; padding: 0 env(safe-area-inset-right) 0 env(safe-area-inset-left); }
/* .ezp-part: a piece of the EZRA page that is its own .ezra-root (the sub-nav, skip link, disclaimer), so it keeps
   EZRA's tokens wherever the site header and footer sit around it */
.ezp-page.ezp-part { display: block; min-height: 0; }
.ezp-col { width: 100%; max-width: calc(var(--ezp-wide) + 2 * var(--ezp-gutter)); margin-inline: auto; padding-inline: var(--ezp-gutter); }
.ezp-main { flex: 1; }
.ezp-skip {
  position: absolute; left: var(--sp-2); top: calc(-1 * var(--sp-8) * 2); z-index: 10000;   /* above the site header (9990) */
  font-size: var(--fs-14); font-weight: 600; text-decoration: none;
  padding: var(--sp-2) var(--sp-3); border-radius: var(--r-sm); background: var(--p); color: var(--on-p);
}
.ezp-skip:focus { top: var(--sp-2); color: var(--on-p); }

/* ── EZRA sub-nav (partials/_header.html): sticky under the site header, --ezp-subnav-h tall ── */
.ezp-header {
  position: sticky; top: var(--ezp-site-h); z-index: var(--z-shell); height: var(--ezp-subnav-h);
  background: var(--overlay); border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
}
.ezp-header-inner { position: relative; display: flex; align-items: center; gap: var(--sp-5); height: 100%; }
.ezp-brand { gap: var(--sp-2); font-size: var(--fs-14); white-space: nowrap; text-decoration: none; --ez-a: var(--bright); --ez-a-hover: var(--bright); }
.ezp-brand:hover { text-decoration: none; }
.ezp-brand .ez-brand-mark { width: 22px; height: 22px; }
.ezp-brand-tag { font-size: var(--fs-12); font-weight: 500; color: var(--faint); }
.ezp-sep { flex: none; width: 1px; height: var(--sp-5); background: var(--border2); }
.ezp-nav { flex: 1; min-width: 0; }
.ezp-nav-list { display: flex; align-items: center; gap: var(--sp-1); margin: 0; padding: 0; list-style: none; }
.ezp-nav-link {
  display: inline-flex; align-items: center; min-height: var(--ctl-h); padding: 0 10px; border-radius: var(--r-sm);
  font-size: var(--fs-13); font-weight: 500; text-decoration: none; --ez-a: var(--muted); --ez-a-hover: var(--bright);
}
.ezp-nav-link:hover { text-decoration: none; }
.ezp-nav-link:hover { background: var(--bg3); }
.ezp-nav-link[aria-current="page"] { --ez-a: var(--bright); --ez-a-hover: var(--bright); background: var(--p1); box-shadow: inset 0 -2px 0 var(--p); }
.ezp-header-end { display: flex; align-items: center; gap: var(--sp-2); margin-left: auto; }
.ezp-header-end .ez-btn { white-space: nowrap; }
.ezp-menu-btn { display: none; }

/* ── Sections ── */
.ezp-section { padding-block: calc(var(--sp-8) * 3) 0; }
.ezp-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-6); }
.ezp-h2 { margin: var(--sp-2) 0 0; font-size: var(--fs-28); font-weight: 700; line-height: var(--lh-tight); letter-spacing: -.02em; --ez-h: var(--bright); text-wrap: balance; }
.ezp-lede { margin: var(--sp-2) 0 0; max-width: var(--ezp-read); font-size: var(--fs-15); line-height: var(--lh-normal); color: var(--muted); }
.ezp-sh { max-width: calc(var(--sp-8) * 22); }
.ezp-sh.is-center { margin-inline: auto; text-align: center; }
.ezp-sh .ezp-h2 { margin-top: var(--sp-3); font-size: clamp(var(--fs-28), 3.4vw, calc(var(--fs-11) * 4)); letter-spacing: -.025em; line-height: 1.1; }
.ezp-sh .ezp-lede { margin-top: var(--sp-3); font-size: var(--fs-17); }
.ezp-sh.is-center .ezp-lede { margin-inline: auto; }
.ezp-see-all { flex-shrink: 0; }
.ezp-cta-pair { display: flex; flex-wrap: wrap; gap: var(--sp-3); padding-top: var(--sp-2); }
.ezp-cta-pair.is-center { justify-content: center; }
.ezp-cta-pair .ez-btn svg { flex-shrink: 0; }
:is(.ezp-reel-tab, .ezp-faq summary):focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

/* ── Trust partials ── */
.ezp-recorded { font-variant-numeric: tabular-nums; }
.ezp-recorded time { color: inherit; }
.ezp-not-advice { margin: 0; font-size: var(--fs-12); color: var(--faint); }
.ezp-risk { margin: 0; font-size: var(--fs-12); color: var(--muted); }
.ezp-risk a { font-weight: 600; }

/* ── Read-only replays (public/answer.js, public/showreel.js): hide what only works for the member inside EZRA,
 *    like shared_v10.html does. Add .ezp-readonly to any box that holds a replayed answer. ── */
:is(.ezp-readonly, .ezp-poster-frame) :is(.ez-draw-btn, .ez-pop-actions, .ez-pin-btn, .ez-card-ctrl) { display: none !important; }
:is(.ezp-readonly, .ezp-poster-frame) :is(.ez-vd-ticker, .ez-vd-alt) { pointer-events: none; cursor: default; }
:is(.ezp-readonly, .ezp-poster-frame) :is(.ez-tp-row, .ez-lad-row, .ez-scn-card, .ez-regime-row, .ez-table tbody tr.is-click) { cursor: default; }
.ezp-readonly .ez-share-time { margin: calc(-1 * var(--sp-2)) 0 var(--sp-3); text-align: right; font-size: var(--fs-11); color: var(--faint); }
/* a block whose data wasn't saved with the recording: left out of a public replay, never an empty grey box */
.ezp-readonly [data-element-id][data-state="unavailable"] { display: none !important; }

/* ── The real EZRA v10 app shell in a read-only replay (public/app-replay.js AppFrame: the /ezra/ hero and the
 *    tour player). Layout, rail, topbar, thread and composer are the app's own ezra.css; this only fits the
 *    shell to its stage and styles the few pieces that are static here (the rail strip, the title, the
 *    greeting before the question is sent). ── */
.ezp-app-replay.ez-app { --ez-app-h: 100%; height: 100%; min-height: 0; isolation: isolate; }
.ezp-app-hist { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.ezp-app-hist .ez-hist-rail { pointer-events: none; }
.ezp-app-replay .ez-topbar { gap: var(--sp-2); }
.ezp-app-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-14); font-weight: 600; color: var(--bright); }
.ezp-app-replay .ez-topbar > .ez-chip { flex: none; }
.ezp-app-deco { pointer-events: none; }
.ezp-app-replay .ez-thread { padding-top: var(--sp-4); }
.ezp-app-replay .ez-scroll:focus-visible { outline: 2px solid var(--ring); outline-offset: -2px; }
/* the empty thread before the question is sent: a centred greeting, never a blank page */
.ezp-app-replay .ez-scroll:has(> .ez-thread.is-empty) { display: grid; }
.ezp-app-replay .ez-thread.is-empty { display: grid; place-items: center; width: 100%; }
.ezp-app-hello { display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); text-align: center; }
.ezp-app-hello-mark { width: calc(var(--sp-8) + var(--sp-4)); height: calc(var(--sp-8) + var(--sp-4)); }
.ezp-app-hello-t { margin: 0; color: var(--muted); font-size: var(--fs-17); line-height: var(--lh-snug); }
.ezp-app-error { margin: var(--sp-6); font-size: var(--fs-14); color: var(--muted); }

/* the user's question as a purple chat bubble (card placeholder) */
.ezp-bubble {
  max-width: 86%; padding: var(--sp-2) var(--sp-3); text-align: left;
  border-radius: var(--r-lg) var(--r-lg) var(--r-xs) var(--r-lg); background: var(--p); color: var(--on-p);
  font-size: var(--fs-13); line-height: var(--lh-snug);
  display: -webkit-inline-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ── Gallery card (partials/_card.html) ── */
.ezp-card {
  position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--card);
}
@media (prefers-reduced-motion: no-preference) {
  .ezp-card { transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease); }
  .ezp-card:hover { transform: translateY(-2px); }
}
.ezp-card:hover { border-color: var(--p3); box-shadow: var(--shadow-pop); }
.ezp-card:focus-within { border-color: var(--p3); }
.ezp-card-link { --ez-a: var(--bright); --ez-a-hover: var(--bright); }
.ezp-card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }   /* the whole card is the link */
.ezp-card-body { display: flex; flex-direction: column; flex: 1; gap: var(--sp-2); padding: var(--sp-4); }
.ezp-card-title { margin: 0; font-size: var(--fs-15); font-weight: 600; line-height: var(--lh-snug); --ez-h: var(--bright); }
.ezp-card-takeaway {
  margin: 0; font-size: var(--fs-13); line-height: var(--lh-normal); color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ezp-card-stats { font-variant-numeric: tabular-nums; }
/* a second action on a whole-card link: above the link's ::after */
.ezp-card-actions { position: relative; z-index: var(--z-local-1); display: flex; gap: var(--sp-2); padding-top: var(--sp-1); }
.ezp-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin-top: auto; padding-top: var(--sp-1); font-size: var(--fs-12); color: var(--faint); }
/* the conversation card (partials/_card.html with `card`, the examples and tours galleries): one meta line, the
   facts, and the actions pinned to the bottom (the mobile 44px buttons are the shared rule below) */
.ezp-card-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) var(--sp-2); margin: 0; font-size: var(--fs-12); color: var(--muted); }
.ezp-card-facts { margin: 0; font-size: var(--fs-12); color: var(--faint); }
.ezp-card.is-conv .ezp-card-actions { flex-wrap: wrap; margin-top: auto; padding-top: var(--sp-2); }
/* the galleries' empty state (partials/_gallery_empty.html): one sentence and the ways on, no placeholder cards */
.ezp-gallery-empty { border: 1px dashed var(--border2); border-radius: var(--r-lg); background: var(--card); }
.ezp-gallery-empty .ez-empty-state { padding: calc(var(--sp-8) * 1.5) var(--sp-5); font-size: var(--fs-15); }
.ezp-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); margin-top: var(--sp-3); }

/* poster: one real block, drawn wider and scaled down, inert; public/poster.js then fits it to the box (posterFit: scale to fit both ways, centred). --ezp-poster-scale is only the first paint. */
.ezp-poster {
  --ezp-poster-scale: .5;
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--bg2); border-bottom: 1px solid var(--border);
}
.ezp-poster-frame {
  width: calc(100% / var(--ezp-poster-scale)); padding: var(--sp-4);
  transform: scale(var(--ezp-poster-scale)); transform-origin: 0 0; pointer-events: none; user-select: none;
}
.ezp-poster-frame .ez-ai > :not(ezra-answer) { display: none !important; }
.ezp-poster-frame .ez-ai { gap: 0; }
.ezp-poster::after {   /* a quiet fade where the scaled block is cut off */
  content: ""; position: absolute; inset: auto 0 0; height: var(--sp-8);
  background: linear-gradient(to bottom, transparent, var(--bg2)); pointer-events: none;
}
.ezp-poster-empty {
  position: absolute; inset: 0; display: grid; place-items: center; padding: var(--sp-4);
  background: linear-gradient(var(--skeleton), var(--skeleton)) center / 70% var(--sp-2) no-repeat;
}
.ezp-poster-empty.ezp-poster-q { background: radial-gradient(80% 90% at 50% 0%, var(--p2), transparent), var(--bg2); }
.ezp-poster[data-state="ready"] .ezp-poster-empty { display: none; }

/* cover (public/poster.js dressCover, showcase/context.py best_poster): the most visual card of the conversation on a
   violet glow, its name and the card count as chips on top, faint card edges behind it when there are more cards */
.ezp-poster.is-cover {
  background:
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--p) 26%, transparent), transparent 62%),
    radial-gradient(80% 60% at 100% 100%, color-mix(in srgb, var(--p3) 10%, transparent), transparent 70%),
    var(--bg2);
}
.ezp-poster.is-cover .ezp-poster-frame {
  position: relative; z-index: 1; padding: 0;
  filter: drop-shadow(0 var(--sp-4) var(--sp-6) color-mix(in srgb, var(--bg) 70%, transparent));
}
.ezp-poster.is-cover::after { z-index: 2; }
.ezp-cover-top {
  position: absolute; z-index: 3; inset: var(--sp-3) var(--sp-3) auto; display: flex;
  justify-content: space-between; align-items: center; gap: var(--sp-2); pointer-events: none;
}
.ezp-cover-kind, .ezp-cover-count {
  font-size: var(--fs-11); line-height: 1; padding: var(--sp-1) var(--sp-2); border-radius: var(--r-full);
  background: color-mix(in srgb, var(--bg2) 78%, transparent); border: 1px solid var(--border2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ezp-cover-kind { color: var(--p-text); font-weight: 600; border-color: color-mix(in srgb, var(--p) 40%, transparent); }
.ezp-cover-count { color: var(--muted); }
.ezp-cover-ghost {   /* the same stage as answer-model.js coverStage: COVER_TOP from the top, COVER_SIDE each side */
  position: absolute; inset: 40px 6% 0; border-radius: var(--r-lg);
  background: var(--card); border: 1px solid var(--border2); opacity: .5;
  transform: translate(var(--sp-3), calc(var(--sp-2) * -1)) rotate(2deg);
}
.ezp-cover-ghost.is-back { opacity: .3; transform: translate(calc(var(--sp-3) * -1), calc(var(--sp-1) * -1)) rotate(-1.6deg); }

/* ── Product page: hero ── */
.ezp-hero { position: relative; padding-block: calc(var(--sp-8) * 3) var(--sp-4); text-align: center; }
.ezp-hero::before, .ezp-hero::after {
  content: ""; position: absolute; inset: 0 0 auto; height: calc(var(--sp-8) * 22.5); pointer-events: none;
}
.ezp-hero::before { background: radial-gradient(60% 55% at 50% 0%, var(--p3), var(--p1) 45%, transparent 75%); }
.ezp-hero::after {
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: calc(var(--sp-8) * 1.75) calc(var(--sp-8) * 1.75);
  -webkit-mask-image: radial-gradient(50% 60% at 50% 0%, black, transparent 80%);
  mask-image: radial-gradient(50% 60% at 50% 0%, black, transparent 80%);
}
.ezp-hero-inner { position: relative; z-index: var(--z-local-1); }
.ezp-pill {
  display: inline-flex; align-items: center; gap: var(--sp-2); margin: 0; padding: var(--sp-1) var(--sp-3) var(--sp-1) var(--sp-1);
  border: 1px solid var(--border2); border-radius: var(--r-full); background: var(--bg2);
  font-size: var(--fs-13); font-weight: 500; color: var(--muted);
}
.ezp-hero-title {
  margin: var(--sp-5) auto 0; max-width: calc(var(--sp-8) * 28);
  font-size: clamp(calc(var(--fs-20) * 2), 6vw, calc(var(--fs-12) * 6)); font-weight: 800; line-height: 1.04;
  letter-spacing: -.035em; --ez-h: var(--bright); color: var(--bright); text-wrap: balance;
}
.ezp-hero-em { background: linear-gradient(90deg, var(--p-text), var(--p)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ezp-hero-sub { margin: var(--sp-5) auto 0; max-width: calc(var(--sp-8) * 20); font-size: var(--fs-17); line-height: var(--lh-normal); color: var(--muted); }
.ezp-hero .ezp-cta-pair { margin-top: var(--sp-6); }

/* ── the live replay (public/showreel.js) ── */
.ezp-reel { margin: calc(var(--sp-8) * 1.75) auto 0; text-align: left; }   /* the full page column */
.ezp-reel-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.ezp-reel-tab {
  position: relative; overflow: hidden; height: var(--ctl-h); padding: 0 var(--sp-4);
  border: 1px solid var(--border2); border-radius: var(--r-full); background: var(--bg2); color: var(--muted);
  font: 600 var(--fs-13)/1 var(--sans); cursor: pointer;
}
.ezp-reel-tab:hover { color: var(--bright); }
.ezp-reel-tab[aria-selected="true"] { color: var(--bright); border-color: var(--p3); background: var(--p1); }
.ezp-reel-tab > span { position: relative; }
.ezp-reel-bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--p); transform: scaleX(0); transform-origin: 0 50%; }
.ezp-reel-tab.is-running .ezp-reel-bar { animation: ezp-fill var(--ezp-reel-ms, 15000ms) linear forwards; }
.ezp-reel[data-paused="1"] .ezp-reel-bar { animation-play-state: paused; }
@keyframes ezp-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.ezp-frame {
  overflow: hidden; border: 1px solid var(--border2); border-radius: var(--ezp-r-xl); background: var(--bg);
  box-shadow: var(--shadow-pop), 0 0 0 1px var(--p1), 0 0 calc(var(--sp-8) * 4) var(--p2);
}
.ezp-frame-end { display: flex; align-items: center; gap: var(--sp-2); flex-shrink: 0; margin-left: auto; }
.ezp-reel-toggle [data-reel-toggle-icon] { display: inline-flex; }
/* the stage: the real app shell (public/app-replay.js) fills it; tall enough for topbar + thread + composer */
.ezp-frame-body { position: relative; height: calc(var(--sp-8) * 19); overflow: hidden; }
.ezp-reel-steps { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-block: var(--sp-4) var(--sp-3); padding: 0; list-style: none; }
.ezp-reel-steps li {
  display: inline-flex; align-items: center; gap: var(--sp-2); padding: var(--sp-1) var(--sp-3);
  border: 1px solid var(--border); border-radius: var(--r-full); font-size: var(--fs-12); color: var(--muted);
}
.ezp-reel-steps li::before { content: ""; width: var(--sp-2); height: var(--sp-2); border-radius: var(--r-full); background: var(--p-text); }
.ezp-reel-excerpt { margin: 0; font-size: var(--fs-prose); line-height: var(--lh-prose); color: var(--text); }
.ezp-reel-error { margin: var(--sp-4); font-size: var(--fs-14); color: var(--muted); }
.ezp-frame-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--border); background: var(--bg2); }
.ezp-frame-q { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-12); color: var(--faint); }
.ezp-reel-notes { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2) var(--sp-4); margin-top: var(--sp-3); text-align: center; }

/* ── Safety strip, right under the replay ── */
.ezp-safety {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-3);
  margin: var(--sp-6) 0 0; padding: 0; list-style: none; text-align: left;
}
.ezp-safety li {
  display: flex; flex-direction: column; gap: var(--sp-1); padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--border); border-radius: var(--r); background: var(--bg2);
  font-size: var(--fs-13); line-height: var(--lh-snug); color: var(--muted);
}
.ezp-safety b { font-weight: 600; color: var(--bright); }

/* ── "How EZRA works": four numbered rows cut from one recording, copy and visual alternating ── */
.ezp-story { display: grid; gap: calc(var(--sp-8) * 2); margin: calc(var(--sp-8) * 1.5) 0 0; padding: 0; list-style: none; }
.ezp-st { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: calc(var(--sp-8) * 1.5); }
.ezp-st.is-rev { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.ezp-st.is-rev .ezp-st-copy { order: 2; }
.ezp-st-fig { font: 600 var(--fs-12)/1 var(--mono); letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--p-text); }
.ezp-st h3 { margin: var(--sp-3) 0 0; font-size: var(--fs-20); font-weight: 700; line-height: var(--lh-tight); --ez-h: var(--bright); text-wrap: balance; }
.ezp-st-copy > p { margin: var(--sp-2) 0 0; max-width: var(--ezp-read); font-size: var(--fs-15); line-height: var(--lh-normal); color: var(--muted); }
.ezp-st-copy > .ezp-st-proof { margin-top: var(--sp-4); font-size: var(--fs-13); color: var(--faint); }
.ezp-st-proof b { font-size: var(--fs-15); font-weight: 700; color: var(--bright); font-variant-numeric: tabular-nums; }
.ezp-st-vis {
  display: block; min-width: 0; padding: var(--sp-5); border: 1px solid var(--border); border-radius: var(--ezp-r-xl);
  background: radial-gradient(70% 90% at 50% 0%, var(--p1), transparent 70%), var(--bg2);
}
.ezp-st-vis.is-card { padding: 0; overflow: hidden; --ez-a: var(--bright); --ez-a-hover: var(--bright); }
.ezp-st-vis.is-card:hover { border-color: var(--p3); }
.ezp-poster-story { --ezp-poster-scale: .7; aspect-ratio: 16 / 10; border-bottom: 0; }
/* 01: the recorded question in a composer look (the app's .ez-composer: question, mode switch, send) */
.ezp-compose { border: 1px solid var(--border2); border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow-pop); }
.ezp-compose-q { margin: 0; padding: var(--sp-4) var(--sp-4) var(--sp-2); font-size: var(--fs-15); line-height: var(--lh-normal); color: var(--bright); }
.ezp-compose-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); padding: var(--sp-1) var(--sp-2) var(--sp-2) var(--sp-3); }
.ezp-compose-seg { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--bg3); }
.ezp-compose-seg > span { display: inline-flex; align-items: center; height: var(--ctl-h-sm); padding: 0 var(--sp-3); border-radius: var(--r-xs); font-size: var(--fs-12); font-weight: 600; color: var(--muted); }
.ezp-compose-seg > .is-on { background: var(--card); color: var(--bright); box-shadow: var(--shadow-2); }
.ezp-compose-send { display: grid; place-items: center; width: var(--ctl-h); height: var(--ctl-h); border-radius: var(--r-sm); background: var(--p); color: var(--on-p); }
/* 02: the EZPZ pages the recording read, as finished checks */
.ezp-checks { display: grid; gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
.ezp-checks li {
  display: flex; align-items: center; gap: var(--sp-3); min-width: 0; padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--border); border-radius: var(--r); background: var(--card);
  font-size: var(--fs-14); font-weight: 500; color: var(--text); overflow-wrap: anywhere;
}
.ezp-checks svg { flex-shrink: 0; padding: 3px; box-sizing: content-box; border-radius: var(--r-full); background: var(--p); color: var(--on-p); }
.ezp-story-src { margin: calc(var(--sp-8) * 1.5) 0 0; text-align: center; font-size: var(--fs-13); color: var(--faint); }

/* ── "Everything EZRA can do": one tile per recorded capability ── */
.ezp-caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); margin: calc(var(--sp-8) * 1.5) 0 0; padding: 0; list-style: none; }
.ezp-cap {
  display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; padding: var(--sp-5);
  border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--card);
}
.ezp-cap h3 { margin: 0; font-size: var(--fs-16); font-weight: 650; line-height: var(--lh-snug); --ez-h: var(--bright); }
.ezp-cap > p { margin: 0; font-size: var(--fs-14); line-height: var(--lh-normal); color: var(--muted); }
.ezp-cap-kinds { display: flex; flex-wrap: wrap; gap: var(--sp-1); margin: var(--sp-1) 0 0; padding: 0; list-style: none; }
.ezp-cap-links { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); margin-top: auto; padding-top: var(--sp-2); }

/* ── Tours and examples rows ── */
.ezp-scroller {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--sp-4)) / 3); gap: var(--sp-4);
  margin: 0; padding: 0 0 var(--sp-3); list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin;
}
.ezp-scroller > li { scroll-snap-align: start; min-width: 0; }

/* ── FAQ ── */
.ezp-faq { max-width: calc(var(--sp-8) * 24); margin: calc(var(--sp-8) + var(--sp-2)) auto 0; border-top: 1px solid var(--border); }
.ezp-faq details { border-bottom: 1px solid var(--border); }
.ezp-faq summary {
  display: flex; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-5) var(--sp-1);
  list-style: none; cursor: pointer; font-size: var(--fs-16); font-weight: 600; line-height: var(--lh-snug); color: var(--bright);
}
.ezp-faq summary::-webkit-details-marker { display: none; }
.ezp-faq summary::after { content: "+"; flex-shrink: 0; font-size: var(--fs-20); font-weight: 400; line-height: 1; color: var(--faint); }
.ezp-faq details[open] summary::after { content: "\2212"; }
.ezp-faq details p { margin: 0; padding: 0 var(--sp-1) var(--sp-5); font-size: var(--fs-15); line-height: var(--lh-normal); color: var(--muted); }

/* ── Final call to action ── */
.ezp-cta-band {
  position: relative; overflow: hidden; padding: calc(var(--sp-8) * 2.25) var(--sp-6); text-align: center;
  border: 1px solid var(--p3); border-radius: calc(var(--r-lg) * 1.75);
  background: radial-gradient(60% 80% at 50% 0%, var(--p3), transparent 70%), var(--card);
}
.ezp-cta-band h2 { margin: 0; font-size: clamp(var(--fs-28), 3.4vw, calc(var(--fs-11) * 4)); font-weight: 700; line-height: 1.1; letter-spacing: -.025em; --ez-h: var(--bright); }
.ezp-cta-band p { margin: var(--sp-3) 0 0; color: var(--muted); font-size: var(--fs-17); }
.ezp-cta-band .ezp-cta-pair { margin-top: var(--sp-6); }

/* ── Disclaimer and footer ── */
.ezp-disclaimer { padding-block: calc(var(--sp-8) * 3) var(--sp-8); }
.ezp-note {
  display: flex; align-items: flex-start; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-radius: var(--r);
  background: var(--amber-wash); border: 1px solid color-mix(in srgb, var(--amber) 25%, transparent);
}
.ezp-note > svg { flex-shrink: 0; margin-top: 2px; color: var(--amber-text); }
.ezp-note p { margin: 0; font-size: var(--fs-12); line-height: var(--lh-normal); color: var(--muted); }
.ezp-note strong { font-weight: 600; color: var(--text); }
.ezp-note .ezp-note-label { color: var(--amber-text); }

@media (prefers-reduced-motion: reduce) {
  .ezp-reel-bar { animation: none; }
}

@media (min-width: 1600px) {
  .ezp-scroller { grid-auto-columns: calc((100% - 3 * var(--sp-4)) / 4); }
  .ezp-frame-body { height: calc(var(--sp-8) * 21); }
}

@media (max-width: 1099.98px) {
  .ezp-safety { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ezp-st, .ezp-st.is-rev { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }
  .ezp-st.is-rev .ezp-st-copy { order: 0; }
  .ezp-caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ezp-scroller { grid-auto-columns: calc((100% - var(--sp-4)) / 2); }
}

/* Up to 1100px the sub-nav is brand, the menu button (a disclosure) and the one call to action. Its height
 * changes at 720 (--ezp-subnav-h, css/ezra-brand.css). */
@media (max-width: 1099.98px) {
  .ezp-header-inner { gap: var(--sp-2); }
  .ezp-brand-tag, .ezp-sep { display: none; }
  .ezp-menu-btn { display: inline-grid; order: 2; }
  .ezp-header-end { order: 3; margin-left: 0; }
  .ezp-nav { order: 1; flex: 0 0 auto; margin-left: auto; }
  .ezp-nav-list {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: var(--z-menu);
    flex-direction: column; align-items: stretch; gap: var(--sp-1);
    padding: var(--sp-2) var(--ezp-gutter) var(--sp-3); border-bottom: 1px solid var(--border);
    background: var(--bg); box-shadow: var(--shadow-pop);
  }
  .ezp-nav.is-open .ezp-nav-list { display: flex; }
  .ezp-nav-link { width: 100%; min-height: var(--ctl-h-lg); font-size: var(--fs-15); }
  .ezp-nav-link[aria-current="page"] { box-shadow: inset 2px 0 0 var(--p); }
}

@media (max-width: 720px) {
  .ezp-header .ez-btn.is-primary { height: var(--ctl-h-sm); padding: 0 10px; font-size: var(--fs-12); }

  .ezp-section { padding-block: calc(var(--sp-8) * 2) 0; }
  .ezp-section-head { flex-direction: column; align-items: flex-start; }
  .ezp-h2 { font-size: var(--fs-20); }
  .ezp-sh .ezp-lede, .ezp-cta-band p { font-size: var(--fs-15); }
  .ezp-hero { padding-block: calc(var(--sp-8) * 2) var(--sp-2); }
  .ezp-pill { font-size: var(--fs-12); }
  .ezp-hero-sub { font-size: var(--fs-15); }
  .ezp-hero .ezp-cta-pair .ez-btn { width: 100%; }
  .ezp-reel { margin-top: var(--sp-8); }
  .ezp-reel-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding-bottom: var(--sp-1); }
  .ezp-reel-tab { flex-shrink: 0; }
  .ezp-frame-body { height: calc(var(--sp-8) * 17); }
  /* the app's phone topbar: menu, title, mode; the decorative search and "Recorded answer" (the foot says it) go */
  .ezp-app-replay :is(.ezp-app-rec, .ezp-app-search) { display: none; }
  .ezp-frame-foot { flex-wrap: wrap; }
  .ezp-frame-q { flex-basis: 100%; }
  .ezp-frame-end { margin-left: 0; width: 100%; }
  .ezp-frame-end > .ez-btn { flex: 1; min-height: 44px; }
  .ezp-frame-end { flex-wrap: wrap; }
  .ezp-frame-end > .ezp-reel-try { flex-basis: 100%; }
  .ezp-safety, .ezp-caps { grid-template-columns: minmax(0, 1fr); }
  .ezp-story { gap: calc(var(--sp-8) * 1.5); }
  .ezp-st-vis { padding: var(--sp-4); }
  .ezp-st-vis.is-card { padding: 0; }
  .ezp-cap { padding: var(--sp-4); }
  .ezp-card-actions .ez-btn { min-height: 44px; flex: 1; }
  .ezp-scroller { grid-auto-columns: 82%; }
  .ezp-cta-band { padding: var(--sp-8) var(--sp-4); }
  .ezp-cta-band .ez-btn { width: 100%; }
}
