/* PageConfigurator app styles · brand "Highlighter" (v1, Oct 2026): graphite ink on paper and one
   marker-yellow button per screen, which is always the next step (.btn--primary). Everything else is a
   plain (secondary) button, .btn--dark or a link. Every colour comes from the token block below.
   Light (paper) always, as in the brand kit, whatever the computer's own setting; dark exists only
   for a page that asks for it with <html data-theme="dark">. */

/* Montserrat, self-hosted (the CSP allows fonts from this site only). */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/fonts/montserrat-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/fonts/montserrat-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens (the only place colours are written) ---------- */
:root {
  --bg: #FCFBF7; --panel: #FFFFFF; --ink: #23262B; --muted: #5F636B; --line: #E4E1D8; --line-strong: #CFCBC1;
  --field-line: #8A8578;   /* the edge of anything you type in or tick: at least 3:1 on paper, white and --soft (WCAG 1.4.11) */
  --accent: #FFD84D; --accent-ink: #23262B; --accent-line: #D9AE1E; --link: #2F49B8; --ring: #2F49B8; --soft: #FFF4C7; --mark: #FFD84D;
  --warn-bg: #FDF0E3; --warn-line: #C27526;
  --q: #26398F;    --q-bg: #E8ECFB;
  --ok: #1D5E34;   --ok-bg: #E3F3E8;
  --no: #4F535A;   --no-bg: #EEEDE8;
  --todo: #5C4300; --todo-bg: #FFF1BF;
  --bad: #A3231B;  --bad-bg: #FDECEA;
  --rec: #C8231C;  --rec-ink: #FFFFFF;
  /* Logo parts, device frames, and the white a website is drawn on (sites expect white). */
  --logo-tile: #23262B; --logo-line: #FFFFFF; --frame: #23262B; --site-bg: #FFFFFF;
  --hl-from: 52%;   /* where the marker starts under highlighted words; lower in dark so light text stays readable */
  --shadow-1: 0 1px 2px rgba(35,38,43,.06);
  --shadow-2: 0 1px 2px rgba(35,38,43,.06), 0 8px 24px rgba(35,38,43,.08);
  --shadow-3: 0 2px 4px rgba(35,38,43,.08), 0 20px 48px rgba(35,38,43,.14);
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fs-h1: 32px; --lh-h1: 40px; --fs-h2: 22px; --lh-h2: 30px; --fs-body: 17px; --fs-small: 14px;
  --r-sm: 8px; --r: 12px; --r-lg: 18px; --r-pill: 999px; --control-h: 48px;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #16171A; --panel: #1F2125; --ink: #F1EFE8; --muted: #A9ACB3; --line: #33363C; --line-strong: #4A4E55; --field-line: #80848C;
  --accent: #FFD84D; --accent-ink: #1C1D20; --accent-line: #FFD84D; --link: #A8B8FF; --ring: #A8B8FF; --soft: #3A3318; --mark: #FFD84D;
  --warn-bg: #3A2A18; --warn-line: #B5762F;
  --q: #B3C0FF; --q-bg: #252D4F; --ok: #86DBA4; --ok-bg: #173424; --no: #BEC1C7; --no-bg: #2C2E33;
  --todo: #FFD84D; --todo-bg: #3A3318; --bad: #FF9F96; --bad-bg: #3F1D1A; --rec: #C8231C; --rec-ink: #FFFFFF;
  --logo-tile: #F1EFE8; --logo-line: #16171A; --hl-from: 84%;
  --shadow-1: 0 1px 2px rgba(0,0,0,.4); --shadow-2: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  --shadow-3: 0 2px 4px rgba(0,0,0,.5), 0 20px 48px rgba(0,0,0,.5);
  color-scheme: dark;
}
/* White-label: an agency overrides only --accent --accent-ink --accent-line --link --ring. */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--fs-body); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-underline-offset: 3px; }
main { max-width: 920px; margin: 0 auto; padding: 32px 16px 80px; }
h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); font-weight: 800; letter-spacing: -.02em; margin: 0 0 12px; text-wrap: balance; }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 700; letter-spacing: -.01em; margin: 0 0 12px; }
h3 { font-size: 18px; line-height: 26px; font-weight: 700; margin: 0 0 4px; }
@media (max-width: 640px) { h1 { font-size: 28px; line-height: 36px; } }
p { max-width: 65ch; }
code { font-size: .88em; background: var(--soft); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
.hl { background: linear-gradient(transparent var(--hl-from), var(--mark) var(--hl-from)); padding: 0 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.eyebrow { font-size: 13px; line-height: 18px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }

/* ---------- Top bar and logo ---------- */
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 16px; min-height: 64px; border-bottom: 1px solid var(--line); background: var(--panel); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 18px; }
.mark { width: 32px; height: 32px; flex: none; }
.mark__tile { fill: var(--logo-tile); }
.mark__bar { fill: var(--mark); }
.mark__line { fill: var(--logo-line); }
.wordmark { font-weight: 500; letter-spacing: -.02em; white-space: nowrap; }
.wordmark b { font-weight: 800; }
.top nav { display: flex; align-items: center; gap: 14px; font-size: 15px; }
.who { color: var(--muted); overflow-wrap: anywhere; }
.theme-switch { display: inline; }
:root[data-theme="dark"] .to-dark, :root:not([data-theme="dark"]) .to-light { display: none; }
@media (max-width: 560px) { .who { display: none; } }

/* ---------- Surfaces ---------- */
.block { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; margin: 0 0 20px; box-shadow: var(--shadow-1); }
@media (max-width: 560px) { .block { padding: 18px 16px; } }
.narrow { max-width: 460px; margin: 48px auto; }
.row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; }
.row h1, .row h2 { margin: 0; }
.crumbs { color: var(--muted); font-size: var(--fs-small); margin: 0 0 8px; }
.lede { font-size: 18px; color: var(--muted); max-width: 62ch; margin-top: 0; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); line-height: 20px; }
.empty { color: var(--muted); }
.flash { background: var(--ok-bg); color: var(--ink); border-radius: var(--r); padding: 12px 16px; }
.flash--bad { background: var(--bad-bg); }
.warn { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--r); padding: 12px 14px; }
.dev { font-size: 15px; border: 1px dashed var(--line-strong); padding: 10px 12px; border-radius: var(--r); }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: var(--fs-small); margin: 20px 0; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.center { text-align: center; }
.center.muted, p.center { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ----------
   A plain <button> is secondary. .btn--primary (yellow) is the one next step on a screen. */
button, .btn { font: 600 16px/1.2 var(--font); background: var(--panel); color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--r);
  min-height: var(--control-h); padding: 10px 20px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center; }
button:hover, .btn:hover { border-color: var(--ink); }
button:disabled { opacity: .5; cursor: not-allowed; }
.btn--primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent-line); box-shadow: inset 0 -2px 0 rgba(0,0,0,.10); }
.btn--primary:hover { border-color: var(--accent-ink); }
.btn--ghost { background: var(--panel); color: var(--ink); border-color: var(--line-strong); }
.btn--dark { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--stop { background: var(--rec); color: var(--rec-ink); border-color: var(--rec); }
.btn--stop:hover { border-color: var(--ink); }
.btn--block { width: 100%; }
.btn--big { min-height: 56px; font-size: 17px; padding: 12px 28px; }
button.link { background: none; border: 0; color: var(--link); padding: 2px 0; min-height: 28px; font-weight: 600; text-decoration: underline; display: inline; }
button.link:hover { border: 0; }

/* ---------- Forms ---------- */
input, select, textarea { font: 400 17px/1.4 var(--font); color: var(--ink); background: var(--panel); border: 1px solid var(--field-line); border-radius: var(--r); padding: 11px 14px; width: 100%; min-height: var(--control-h); }
input::placeholder, textarea::placeholder { color: var(--muted); }
textarea.code { font: 14px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; }
input[type=radio], input[type=checkbox] { width: 22px; height: 22px; min-height: 0; margin: 0; flex: none; accent-color: var(--ink); }
input[type=file] { border: 2px dashed var(--field-line); padding: 12px; background: var(--bg); }
label { display: block; font-weight: 600; font-size: 15px; }
label > input, label > select, label > textarea { margin-top: 6px; }
.hint { font-weight: 400; color: var(--muted); font-size: 15px; margin: 6px 0 0; }
.stack > * + * { margin-top: 16px; }
.inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin-top: 12px; }
.inline label { flex: 1 1 220px; }
.inline select { width: auto; }
.inline-btn { display: inline; }
.title-field { margin-bottom: 20px; max-width: 420px; }
details.panel > summary, details.edit > summary { cursor: pointer; color: var(--link); margin: 8px 0; font-weight: 600; min-height: 28px; }
details.block > summary { cursor: pointer; font-weight: 700; }

/* ---------- Getting-started steps ---------- */
.steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; counter-reset: step; }
.steps li { flex: 1; display: flex; align-items: center; gap: 10px; font-size: var(--fs-small); color: var(--muted); counter-increment: step; }
.steps li::before { content: counter(step); flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--line-strong); font-weight: 700; font-size: 14px; background: var(--panel); }
.steps li:not(:last-child)::after { content: ""; flex: 1; height: 2px; background: var(--line); }
.steps li[aria-current] { color: var(--ink); font-weight: 700; }
.steps li[aria-current]::before { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.steps li.done { color: var(--ink); }
.steps li.done::before { content: "✓"; background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
@media (max-width: 560px) { .steps li span { display: none; } .steps li[aria-current] span { display: inline; } }

/* ---------- Choice of method (radio cards) ---------- */
.methods { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.methods legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.method { border: 1px solid var(--field-line); border-radius: var(--r); background: var(--panel); }
.method > label { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; cursor: pointer; font-weight: 700; font-size: 17px; }
.method > label input { margin-top: 3px; }
.method > label > span { display: block; }
.method > label span span { display: block; font-weight: 400; font-size: 15px; color: var(--muted); }
.method:has(> label input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.method__field { display: none; padding: 0 16px 16px 50px; }
.method:has(> label input:checked) .method__field { display: block; }
@supports not selector(:has(*)) { .method__field { display: block; } }

/* ---------- Lists and cards ---------- */
.cards { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; color: var(--ink); background: var(--panel); box-shadow: var(--shadow-1); }
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); }
.card--add { border: 2px dashed var(--line-strong); justify-content: center; align-items: center; color: var(--ink); font-weight: 700; min-height: 96px; box-shadow: none; background: transparent; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 12px 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.list li:first-child { border-top: 0; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .num { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 700; }

/* ---------- Status pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 2px 12px; border-radius: var(--r-pill); font-size: 13px; font-weight: 700; white-space: nowrap; background: var(--no-bg); color: var(--no); }
.pill--confirm, .pill--needs_file { background: var(--q-bg); color: var(--q); }
.pill--proposed, .pill--queued, .pill--processing, .pill--uploading { background: var(--todo-bg); color: var(--todo); }
.pill--approved, .pill--ready { background: var(--ok-bg); color: var(--ok); }
.pill--failed { background: var(--bad-bg); color: var(--bad); }
.pill--rec { background: var(--rec); color: var(--rec-ink); }

/* ---------- Sign in ---------- */
.signin { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; max-width: 980px; margin: 24px auto; }
.signin__pitch h1 { font-size: 40px; line-height: 48px; }
.signin__pitch .lede { margin-bottom: 24px; }
.signin__form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow-2); }
.signin__form h2 { font-size: 26px; line-height: 34px; }
.signin .item { max-width: 440px; }
@media (max-width: 820px) { .signin { grid-template-columns: 1fr; gap: 0; margin-top: 0; } .signin__pitch { display: none; } .signin__form { padding: 24px 18px; } }

/* ---------- Recording ---------- */
.rec { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.rec p { flex-basis: 100%; margin: 4px 0 0; }
.rec-time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--rec); }
progress { width: 100%; height: 12px; accent-color: var(--ink); }

/* ---------- Round page ---------- */
.player { width: 100%; max-height: 60vh; background: var(--frame); border-radius: var(--r); margin: 0; display: block; }
.items { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.item { border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; background: var(--panel); }
.item.is-next { border-color: var(--accent-line); box-shadow: 0 0 0 2px var(--accent); }
.item--rejected { background: var(--bg); }
.item--rejected .item__title { color: var(--muted); }
.item__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.item__n { font-weight: 800; color: var(--muted); }
.item__page { font-weight: 600; }
.item__t { margin-left: auto; font-variant-numeric: tabular-nums; }
.item blockquote { margin: 10px 0; padding: 0; color: var(--ink); }
.item blockquote q, .quote span { background: var(--soft); padding: 1px 4px; border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; quotes: "“" "”"; }
.item__do, .item__q, .item__a { margin: 8px 0; }
.askbox { background: var(--q-bg); border-radius: var(--r); padding: 12px 14px; margin: 10px 0; }
.askbox p { margin: 0 0 8px; }
.askbox .inline { margin-top: 4px; }
.item__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.item__actions .inline { flex: 1 1 100%; margin-top: 0; }
.item__actions .item__remove { margin-left: auto; }
@media (max-width: 560px) { .item.is-next .item__actions .btn--primary { width: 100%; } .item.is-next .item__actions form:has(.btn--primary) { flex: 1 1 100%; display: block; } }
.grow { flex: 1 1 240px; }
.transcript { margin-top: 12px; max-height: 50vh; overflow: auto; font-size: 15px; }
.transcript p { margin: 4px 0; }
.narrow--wide { max-width: 640px; }
.round-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; margin: 0 0 20px; }
.round-top > .block { margin: 0; }
.round-top--solo { grid-template-columns: 1fr; }
@media (max-width: 760px) { .round-top { grid-template-columns: 1fr; } }
.in-short h2 { font-size: 18px; line-height: 26px; }
.in-short p { margin: 0 0 12px; }
.in-short .pills { display: flex; flex-wrap: wrap; gap: 6px; }
.sendbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.sendbar p { margin: 0; }

/* ---------- Guided steps ---------- */
.wizard { max-width: 760px; margin: 8px auto 0; }
.choices { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.choice { display: flex; align-items: center; gap: 18px; padding: 18px 20px; min-height: 88px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--panel); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-1); }
.choice:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); }
.choice__icon { width: 52px; height: 52px; flex: none; border-radius: var(--r); background: var(--soft); display: grid; place-items: center; font-size: 26px; line-height: 1; }
.choice__text { flex: 1; }
.choice__text strong { font-size: 18px; font-weight: 700; }
.choice__text > span:last-child { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }
.choice__go { font-size: 28px; color: var(--muted); flex: none; }
.wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.wizard-hint { margin-top: 20px; }
.hint li { margin: 4px 0; }
ul.hint { padding-left: 20px; }
.listening { display: flex; gap: 16px; align-items: center; }
.spinner { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line-strong); border-top-color: var(--ink); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

/* ---------- Next-step card (project page) ---------- */
.next { background: var(--panel); border: 2px solid var(--accent-line); border-radius: var(--r-lg); padding: 24px; margin: 0 0 24px; box-shadow: var(--shadow-2); }
.next__label { margin: 0 0 4px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.next h2 { font-size: 24px; margin: 0 0 6px; }
.next p { margin: 0 0 16px; }
.offer { background: var(--soft); border-radius: var(--r-lg); padding: 18px 20px; margin-top: 16px; }
.offer p { margin: 0 0 8px; }

/* ---------- Review view: the site in two boxes, computer and phone, side by side ---------- */
main.main--wide { max-width: none; padding: 12px 16px 24px; }
.rv-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.rv-say { flex: 1 1 360px; display: flex; flex-direction: column; gap: 2px; }
.rv-controls { display: flex; align-items: center; gap: 10px; }
.rv-status { flex-basis: 100%; margin: 0; min-height: 1.5em; color: var(--muted); }
.rv-status:empty { min-height: 0; }
.rv-unsupported { flex-basis: 100%; margin: 0; }
.rv-stage { display: flex; gap: 24px; align-items: flex-start; justify-content: center; }
.rv-box { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.rv-box figcaption { font-weight: 700; font-size: 15px; color: var(--muted); }
.rv-clip { position: relative; overflow: hidden; border: 3px solid var(--line-strong); border-radius: var(--r); background: var(--site-bg); box-sizing: content-box; }
.rv-box--phone .rv-clip { border: 8px solid var(--frame); border-radius: 30px; }
.rv-box--on .rv-clip { box-shadow: 0 0 0 3px var(--ring); }
.rv-box--on figcaption { color: var(--ink); }
.rv--live .rv-clip { outline: 3px solid var(--rec); outline-offset: 3px; }
.rv-clip iframe { display: block; border: 0; transform-origin: 0 0; background: var(--site-bg); }
.rv-dot { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: color-mix(in srgb, var(--rec) 55%, transparent);
  border: 2px solid var(--site-bg); box-shadow: 0 0 0 1px var(--frame); pointer-events: none; }
.rv--live .rv-back, .rv--live .rv-alt { visibility: hidden; }
.rv-alt { text-align: center; margin-top: 12px; }
@media (max-width: 900px) { .rv-stage { flex-direction: column; align-items: center; } }
.item__seen { margin: 4px 0 0; }

/* ---------- Pictures of the site (project page): computer in a browser frame, phone in a phone frame ---------- */
.shots { display: inline-flex; align-items: flex-end; gap: 14px; margin: 4px 0 12px; text-decoration: none; color: inherit; max-width: 100%; }
.shot { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.shot img { display: block; height: 160px; width: auto; max-width: 100%; object-fit: cover; object-position: top; background: var(--site-bg); }
.shot--desktop img { border: 1px solid var(--line); border-top: 14px solid var(--frame); border-radius: 10px; box-shadow: var(--shadow-1); }
.shot--phone img { border: 5px solid var(--frame); border-radius: 18px; }
.shot figcaption { font-size: 13px; font-weight: 600; color: var(--muted); }
a.shots:hover img { box-shadow: 0 0 0 3px var(--ring); }
.shots--waiting { display: flex; align-items: center; gap: 10px; min-height: 48px; }
@media (max-width: 420px) { .shot--desktop img { height: auto; width: 100%; max-width: 220px; } .shot--phone img { height: 138px; } }
.shots-note { border: 1px dashed var(--line-strong); border-radius: var(--r); padding: 12px 14px; margin: 4px 0 12px; background: var(--bg); }
.shots-note p { margin: 0; }
.shots-note form { margin-top: 8px; }

/* ---------- Round page: More menu, summary, reassurance, editable action items ---------- */
.round-head { align-items: flex-start; }
.round-head__end { display: flex; align-items: center; gap: 10px; }
details.menu { position: relative; }
details.menu > summary { list-style: none; cursor: pointer; }
details.menu > summary::-webkit-details-marker { display: none; }
.menu__list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: min(320px, 86vw); display: grid; gap: 2px;
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--r); padding: 8px; box-shadow: var(--shadow-3); }
.menu__list > a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; }
.menu__list > a:hover, .menu__list > a:focus-visible { background: var(--soft); }
.menu__list > form { padding: 6px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu__list .menu__bad { color: var(--bad); }
.round-summary { margin: 0 0 20px; color: var(--ink); }
.calm { margin: 0 0 14px; color: var(--muted); }
.flash--undo { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.item__title { font-size: 18px; font-weight: 700; flex: 1 1 14ch; min-width: 0; }
.item__head .item__title + .pill { flex: none; }
button.link.link--bad { color: var(--bad); }
button.link.link--muted { color: var(--muted); }
.add-item { margin-top: 18px; padding-top: 16px; border-top: 2px dashed var(--line-strong); }
.add-item label { font-weight: 700; }
details.removed { margin-top: 16px; }
details.removed > summary { cursor: pointer; color: var(--muted); min-height: 28px; }

/* ---------- Recording steps and the recording bar ---------- */
.pf { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); padding: 24px; margin: 16px 0; box-shadow: var(--shadow-1); }
.pf h2 { margin: 6px 0 6px; }
.pf p { margin: 0 0 12px; }
.pf-steps { display: flex; gap: 6px 18px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0 0 10px; counter-reset: pf; font-size: var(--fs-small); color: var(--muted); }
.pf-steps li { counter-increment: pf; }
.pf-steps li::before { content: counter(pf) ". "; }
.pf-steps li[aria-current] { color: var(--ink); font-weight: 700; }
.pf meter { display: block; width: min(320px, 100%); height: 16px; margin: 0 0 12px; }
.pf-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.recbar { position: sticky; top: 8px; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 12px 10px 18px; margin: 12px 0;
  border-radius: var(--r-lg); background: var(--panel); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.recbar__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--rec); flex: none; animation: rec-pulse 1.4s ease-in-out infinite; }
.recbar__state { color: var(--rec); font-weight: 800; }
.recbar__time { font-size: 20px; font-variant-numeric: tabular-nums; font-weight: 700; min-width: 64px; }
.recbar .btn--ghost, .recbar .btn--stop { border-radius: var(--r-pill); }
.recbar__stop { margin-left: auto; }
.recbar__note { flex-basis: 100%; margin: 0; font-size: var(--fs-small); color: var(--muted); }
.recbar--paused .recbar__dot { background: var(--muted); animation: none; }
.recbar--paused .recbar__state { color: var(--muted); }
@keyframes rec-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .recbar__dot { animation: none; } }
@media (max-width: 560px) { .recbar__pause, .recbar__stop { flex: 1 1 40%; } .recbar__stop { margin-left: 0; } }
.rec-status { margin: 8px 0; min-height: 1.5em; }
.rec-status:empty { min-height: 0; }
progress[data-rec-progress] { width: min(420px, 100%); }
/* The floating window (Document Picture-in-Picture): the bar fills it. */
body.pip { margin: 0; background: var(--panel); }
body.pip .recbar { position: static; margin: 0; border: 0; border-radius: 0; min-height: 100vh; box-shadow: none; align-content: center; }
/* In the two-box view the steps sit in the bar, so they are compact. */
.rv-steps { flex: 1 1 100%; }
.rv-steps .pf { margin: 4px 0 0; padding: 12px 16px; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; box-shadow: none; }
.rv-steps .pf > * { grid-column: 1; }
.rv-steps .pf .pf-buttons { grid-column: 2; grid-row: 1 / span 4; }
.rv-steps .pf h2 { font-size: 17px; line-height: 24px; margin: 0; }
.rv-steps .pf p { margin: 0; }
.rv-steps .recbar { margin: 6px 0 0; }

/* ---------- Follow-up questions ---------- */
.qcard .eyebrow { margin-bottom: 4px; }
.qcard h3.item__title { margin: 0; }
.qcard__k { margin: 10px 0 2px; font-weight: 700; }
.qcard blockquote { margin: 0 0 6px; }
.qprogress { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.qprogress progress { flex: 1 1 160px; max-width: 280px; }
.qform { margin-top: 12px; }
.tiles { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.tile { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px; border: 1px solid var(--field-line); border-radius: var(--r);
  background: var(--panel); font-weight: 600; font-size: 17px; cursor: pointer; }
.tile:hover { border-color: var(--ink); }
.tile:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); background: var(--soft); }
.tile:has(input:focus-visible) { outline: 3px solid var(--ring); outline-offset: 2px; }
.answered { background: var(--ok-bg); border-radius: var(--r); padding: 10px 14px; margin: 10px 0; }
.answered p { margin: 0; }
.answered form { margin-top: 8px; }
details.history { margin-top: 10px; }
details.history > summary { cursor: pointer; color: var(--muted); min-height: 28px; }
.item__actions .link-a, a.link-a { font-weight: 600; }
a.btn--add { width: 100%; min-height: 56px; border: 2px dashed var(--line-strong); background: transparent; }
.flash--bad-text { color: var(--bad); }
.method__new { padding: 14px 16px; }
.method__new .inline { margin-top: 4px; }
.email-preview { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); padding: 18px 20px; margin: 16px 0; box-shadow: var(--shadow-1); }
.email-preview pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 15px/1.55 var(--font); margin: 8px 0 0; }
.sent-to input[readonly] { margin-top: 6px; font-size: 15px; }
.sent-links { margin-top: 28px; }

/* The private answer pages (bare layout): one question per screen, phone first. */
main.main--bare { max-width: 600px; padding-top: 28px; }
.answer h1 { margin-top: 4px; }
.answer form { margin-top: 16px; }
.answer__nav { display: flex; justify-content: space-between; gap: 12px; margin: 18px 0; max-width: none; }
.done-mark { font-size: 40px; line-height: 1; margin: 8px 0; color: var(--ok); }
.credit { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 24px 16px 40px; color: var(--muted); font-size: 14px; }
.credit .mark { width: 20px; height: 20px; }
.qwrite { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.writing { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--muted); }
.writing .spinner { width: 20px; height: 20px; border-width: 2px; }
.qgroup h2 a { color: var(--ink); text-decoration: none; }
.qgroup h2 a:hover { text-decoration: underline; }
.qgroup__h { margin: 18px 0 0; font-size: 16px; color: var(--muted); }
/* Answered questions are locked: greyed, with the answer kept in view. */
.qcard.is-locked { background: var(--bg); border-style: dashed; }
.qcard.is-locked .item__title, .qcard.is-locked .qcard__k + p { color: var(--muted); }
.qcard.is-locked .answered { background: var(--no-bg); }
.pill--locked { background: var(--no-bg); color: var(--no); }
svg.lock { vertical-align: -1px; }
.qprogress > span { flex-basis: 100%; font-size: var(--fs-small); }
.qgroup .item__head .eyebrow { margin: 0; flex: 1 1 auto; }
.askbox details.edit > summary { font-size: 15px; }

/* ---------- Landing page (signed-out visitors at /) ----------
   Same tokens and parts as the app; one yellow button per screenful, always "Get started". */
main.main--landing { max-width: none; padding: 0 0 48px; }
.lp-wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.top .top__cta { display: flex; align-items: center; gap: 16px; font-size: 15px; }
.top .top__cta .btn { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.lp-hero { padding: 56px 0 40px; }
.lp-hero .lp-wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.lp-hero h1 { font-size: 48px; line-height: 56px; margin-bottom: 16px; }
.lp-hero .lede { font-size: 19px; line-height: 30px; margin-bottom: 24px; }
.lp-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.lp-cta + .small { margin-top: 12px; }
.lp-demo { display: grid; gap: 12px; }
.lp-demo .recbar { position: static; margin: 0; }
.lp-demo .recbar__note { display: none; }
.lp-demo .item { box-shadow: var(--shadow-2); }
.lp-demo .item:nth-child(2) { margin-left: 24px; }
.lp-demo .item:nth-child(3) { margin-left: 48px; }
.lp-section { padding: 48px 0; }
.lp-section--paper { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lp-section h2 { font-size: 30px; line-height: 38px; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
.lp-section .lede { margin-bottom: 28px; }
.lp-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: lp; }
.lp-steps li { counter-increment: lp; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-1); }
.lp-section--paper .lp-steps li { background: var(--bg); }
.lp-steps li::before { content: counter(lp); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--bg); font-weight: 800; margin-bottom: 12px; }
.lp-steps h3 { font-size: 19px; margin-bottom: 6px; }
.lp-steps p { margin: 0; color: var(--muted); }
.lp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.lp-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.lp-points li { display: flex; gap: 12px; align-items: flex-start; }
.lp-points li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); font-weight: 800; font-size: 14px; margin-top: 2px; }
.lp-phone { max-width: 380px; margin: 0 auto; border: 10px solid var(--frame); border-radius: 36px; background: var(--bg); padding: 22px 16px; box-shadow: var(--shadow-3); }
.lp-phone .eyebrow { font-size: 12px; }
.lp-phone h3 { font-size: 19px; line-height: 26px; margin: 4px 0 8px; }
.lp-phone p { font-size: 15px; line-height: 22px; margin: 0 0 8px; }
.lp-phone .tile { min-height: 48px; font-size: 15px; padding: 10px 14px; }
.lp-phone .tiles { margin: 12px 0; }
.lp-phone .btn { width: 100%; pointer-events: none; }
.lp-partner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 24px 0 0; }
.lp-faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.lp-faq details:last-child { border-bottom: 1px solid var(--line); }
.lp-faq summary { cursor: pointer; font-weight: 700; font-size: 18px; min-height: 28px; }
.lp-faq details p { margin: 8px 0 0; color: var(--muted); }
.lp-end { text-align: center; padding: 56px 0 24px; }
.lp-end h2 { font-size: 34px; line-height: 42px; font-weight: 800; letter-spacing: -.02em; }
.lp-end .lp-cta { justify-content: center; }
.lp-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 24px 16px; max-width: 1080px; margin: 0 auto;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.lp-foot .brand { font-size: 15px; }
.lp-foot .mark { width: 24px; height: 24px; }
@media (max-width: 900px) {
  .lp-hero .lp-wrap, .lp-split { grid-template-columns: 1fr; gap: 32px; }
  .lp-steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .lp-hero { padding: 32px 0 24px; }
  .lp-hero h1 { font-size: 36px; line-height: 44px; }
  .lp-section { padding: 36px 0; }
  .lp-section h2, .lp-end h2 { font-size: 26px; line-height: 34px; }
  .lp-demo .item:nth-child(2), .lp-demo .item:nth-child(3) { margin-left: 0; }
  .lp-cta .btn--primary { width: 100%; }
  .top .top__cta .btn { display: none; }
}
