/* Design language from "Photo Booth Flow" — editorial dark, Instrument Serif/Sans, gold accent */

/* Self-hosted (SIL Open Font License) — see public/fonts/OFL.txt. Latin subset
   only; the site is en-NZ. Instrument Sans is variable, so 400-600 is one file. */
@font-face {
  font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 600;
  font-display: swap; src: url('/fonts/instrument-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif'; font-style: normal; font-weight: 400;
  font-display: swap; src: url('/fonts/instrument-serif-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #080808;
  --panel: #0d0d0d;
  --sidebar: #0b0b0b;
  --line: #1c1c1c;
  --line2: #2a2a2a;
  --fg: #ededed;
  --muted: #9a9a9a;
  --dim: #7a7a7a;
  --faint: #5c5c5c;
  --accent: #e4c05f;
  --good: #4ade80;
  --bad: #f87171;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Instrument Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.shell { min-height: 100vh; display: flex; flex-direction: column; }

.hidden { display: none !important; }
.offscreen { position: absolute; top: 0; left: -9999px; width: 1px; height: 1px; }

.serif { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 10.5px; letter-spacing: 0.1em; font-weight: 400; }
.dim { color: var(--dim); }
.faint { color: var(--faint); }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.small { font-size: 13px; }
.linkish { cursor: pointer; }
.linkish:hover { color: var(--fg); }
.kicker { margin-bottom: 18px; }
/* verdict state words sit beside the heading, not above it */
.verdict-head .good { color: var(--good); }
.verdict-head .bad { color: var(--bad); }

.btn-bare { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
/* font:inherit above out-ranks .mono, so bare buttons that ARE mono say so here */
.btn-bare.mono {
  font-family: ui-monospace, Menlo, monospace; font-size: 10.5px;
  letter-spacing: 0.1em; font-weight: 400;
}

/* header + progress */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 14px 34px; border-bottom: 1px solid var(--line); flex: none;
  background: rgba(8, 8, 8, 0.94); backdrop-filter: blur(10px);
}
.topbar .header-cta { margin-left: auto; }
.brand { font: 400 19px 'Instrument Serif', Georgia, serif; letter-spacing: 0.01em; color: var(--fg); text-decoration: none; }
.topnav { display: flex; align-items: center; gap: 22px; font-size: 13px; }
.topnav a { color: var(--muted); text-decoration: none; }
.topnav a:hover { color: var(--fg); }
.header-cta {
  font: 500 13px 'Instrument Sans', system-ui, sans-serif;
  padding: 11px 20px; border: 1px solid var(--line2);
  background: transparent; color: var(--fg); white-space: nowrap; cursor: pointer;
}
.header-cta:hover { border-color: var(--accent); color: var(--accent); }
/* hide landing chrome while the booth flow is running */
body.in-flow .topnav, body.in-flow .header-cta { display: none; }

.progress {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 34px; border-bottom: 1px solid var(--line); flex: none;
}
/* fixed slot so the segments don't shift when back is hidden */
.back-slot { flex: none; min-width: 54px; letter-spacing: 0.08em; }
.segs { flex: 1; display: flex; gap: 4px; max-width: 280px; }
.seg { flex: 1; height: 2px; background: var(--line); }
.seg.on { background: var(--fg); }
#state-label { margin-left: auto; }
#state-label.accent { color: var(--accent); }

/* layout */
.step { flex: 1; display: flex; }
.split { flex-wrap: wrap; align-items: stretch; }
.pane { display: flex; flex-direction: column; }
.striped {
  background: repeating-linear-gradient(45deg, #0d0d0d, #0d0d0d 6px, #131313 6px, #131313 12px);
}
.striped-dark {
  background: repeating-linear-gradient(45deg, #0b0b0b, #0b0b0b 6px, #101010 6px, #101010 12px);
}

/* the in-flow photo panes label their corner */
.corner-label { position: absolute; left: 22px; bottom: 20px; letter-spacing: 0.08em; }

/* ---------- landing page ---------- */
.landing { display: flex; flex-direction: column; flex: 1; }
/* .split only sets flex-wrap; display:flex comes from .step, which the landing
   sections are not — so the landing's own splits declare it themselves. */
.landing-split { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); }
.hero-split { display: flex; border-bottom: 1px solid var(--line); }
.inline-link { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(228, 192, 95, 0.3); }
.inline-link:hover { color: #f2d585; border-bottom-color: #f2d585; }

/* breadcrumb — last crumb tracks the active document tab */
.crumbs {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 34px; border-bottom: 1px solid var(--line);
  color: var(--faint);
}
.crumb-sep { color: var(--line2); }
.crumb-active { color: var(--muted); }
.crumb-spacer { flex: 1; }

.hero-pane { flex: 1; min-width: 0; padding: 52px 40px 40px 34px; }
.hero-pane .kicker { margin-bottom: 22px; }
.hero-pane h1 {
  font: 400 clamp(38px, 5vw, 62px)/1.02 'Instrument Serif', Georgia, serif;
  letter-spacing: -0.015em; margin-bottom: 16px;
}
.lede { font-size: 15.5px; line-height: 1.65; color: var(--muted); max-width: 52ch; text-wrap: pretty; }
.dashlist { display: flex; flex-direction: column; margin-top: 26px; max-width: 760px; }
.dashlist > div {
  display: flex; align-items: center; gap: 12px; height: 42px;
  border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted);
}
.dashlist > div:last-child { border-bottom: 1px solid var(--line); }
.dash { color: var(--accent); }
.hero-cta { margin-top: auto; padding-top: 30px; display: flex; align-items: flex-end; gap: 26px; flex-wrap: wrap; }
.price-block { display: flex; flex-direction: column; gap: 6px; }
.big-price { font-size: 54px; line-height: 1; }
.cta-block { display: flex; flex-direction: column; gap: 10px; }
.btn-big { font-size: 16px; padding: 19px 34px; }
.cta-note { font-size: 12.5px; color: var(--dim); line-height: 1.55; max-width: 24ch; }

/* before/after sample in the hero — the output, shown rather than argued */
.duo-pane {
  flex: none; width: 520px; max-width: 100%;
  border-left: 1px solid var(--line); padding: 22px; gap: 12px;
}
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; flex: 1; min-height: 0; }
.duo figure { margin: 0; display: flex; flex-direction: column; gap: 9px; min-height: 0; }
.duo img {
  display: block; width: 100%; flex: 1; min-height: 0;
  object-fit: cover; object-position: center top; background: var(--panel);
}
.duo figcaption { letter-spacing: 0.08em; }
.duo-bad { color: var(--bad); }
.duo-note { font-size: 11.5px; line-height: 1.55; color: var(--faint); }

.spec-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.spec-strip > div {
  padding: 18px 24px; display: flex; flex-direction: column; gap: 7px;
  border-right: 1px solid var(--line);
}
.spec-strip > div:last-child { border-right: 0; }
.spec-strip strong { font-size: 17px; font-weight: 400; }

.landing-section { padding: 38px 34px 34px; border-bottom: 1px solid var(--line); }
.landing-section.flush { padding: 0; }
.landing-section.flush > .section-head { padding: 38px 34px 22px; margin-bottom: 0; }
.section-head {
  display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap;
  margin-bottom: 22px;
}
.section-head > .mono, .section-head > a { margin-left: auto; }
.landing h2 { font: 400 clamp(28px, 3.4vw, 40px)/1.05 'Instrument Serif', Georgia, serif; letter-spacing: -0.01em; }
.section-sub { font-size: 13.5px; color: var(--dim); margin-bottom: 22px; }

/* ---------- #documents: the tabbed explorer ---------- */
.doc-tabs { display: flex; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.doc-tab {
  flex: 1; display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
  padding: 15px 20px; background: none; border: 0; border-left: 1px solid var(--line);
  border-bottom: 2px solid transparent;
  color: var(--fg); font-family: inherit; text-align: left; cursor: pointer;
}
.doc-tab:first-child { border-left: 0; }
.doc-tab.active { background: var(--panel); border-bottom-color: var(--accent); }
.doc-tab-name { font-size: 18px; color: var(--muted); }
.doc-tab.active .doc-tab-name, .doc-tab:hover .doc-tab-name { color: var(--fg); }
.doc-tab-agency { letter-spacing: 0.08em; color: #4a4a4a; }
.doc-tab.active .doc-tab-agency { color: var(--accent); }

.doc-panel { display: flex; align-items: stretch; }
.doc-panel[hidden] { display: none; }
.doc-main { flex: 1; min-width: 0; padding: 32px 34px 30px; display: flex; flex-direction: column; }
.doc-kicker { margin-bottom: 14px; }
.doc-h3 { font-size: clamp(24px, 2.8vw, 32px); line-height: 1.1; margin-bottom: 12px; }
.doc-body { font-size: 14px; line-height: 1.7; color: var(--muted); max-width: 68ch; text-wrap: pretty; }

.spec-table { display: flex; flex-direction: column; margin-top: 24px; max-width: 860px; }
.spec-row {
  display: flex; align-items: center; gap: 16px; min-height: 44px;
  border-top: 1px solid var(--line); font-size: 13.5px;
}
.spec-row:last-child { border-bottom: 1px solid var(--line); }
.spec-k { flex: none; min-width: 150px; color: var(--dim); }
.spec-v { color: var(--fg); }

.doc-foot { margin-top: auto; padding-top: 26px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.doc-add {
  font: 500 14px 'Instrument Sans', system-ui, sans-serif; padding: 14px 24px;
  border: 1px solid var(--fg); background: var(--fg); color: var(--bg);
  cursor: pointer; white-space: nowrap;
}
.doc-add:hover { background: #fff; }
.doc-add.on { border-color: var(--accent); background: transparent; color: var(--accent); }
.doc-source { margin-left: auto; }

.doc-side {
  flex: none; width: 340px; max-width: 100%;
  border-left: 1px solid var(--line); padding: 32px 30px;
  display: flex; flex-direction: column; background: var(--sidebar);
}
/* the block featured snippets and AI answers lift — kept short and direct */
.quick-answer { margin-top: 16px; font-size: 14.5px; line-height: 1.65; color: var(--fg); text-wrap: pretty; }
.also-searched {
  margin-top: auto; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 9px;
}
.also-q { font-size: 12.5px; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line2); align-self: flex-start; }
.also-q:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- #pricing ---------- */
.price-pane { flex: 1; min-width: 0; padding: 38px 34px 32px; }
.price-hint { font-size: 13.5px; line-height: 1.7; color: var(--dim); max-width: 46ch; }
.price-foot {
  margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.price-foot .big-price { font-size: 44px; }
.vs-pane {
  flex: none; width: 520px; max-width: 100%;
  border-left: 1px solid var(--line); padding: 38px 34px 32px; background: var(--sidebar);
}
.vs-title { margin-bottom: 20px; font-size: 28px !important; }
.vs-table { display: grid; grid-template-columns: 1fr auto auto; gap: 0 20px; font-size: 13.5px; }
.vs-table > span { border-top: 1px solid var(--line); padding: 13px 0; }
.vs-head { border-top: 0 !important; padding: 0 0 10px !important; text-align: right; }
.vs-head:first-child { text-align: left; }
.vs-label { color: var(--muted); }
.vs-them { text-align: right; color: var(--dim); }
.vs-us { text-align: right; color: var(--fg); min-width: 130px; }
.vs-us.serif { font-size: 20px; }
.vs-table .last { border-bottom: 1px solid var(--line); }
.provenance { margin-top: auto; padding-top: 22px; font-size: 12px; line-height: 1.6; color: var(--faint); }

/* ---------- #requirements ---------- */
.howto-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.howto-grid > div {
  padding: 22px 24px 20px; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 9px;
}
.howto-grid > div:first-child { padding-left: 0; }
.howto-grid > div:last-child { padding-right: 0; border-right: 0; }
.howto-grid .kicker { margin-bottom: 0; }
.howto-grid h3 { font-size: 20px; line-height: 1.2; }
.howto-grid p { font-size: 13px; line-height: 1.65; color: var(--muted); }

/* ---------- #size ---------- */
.size-pane { flex: 1; min-width: 0; padding: 38px 34px 32px; }
.size-table { display: grid; grid-template-columns: 1.2fr 1fr 1fr 0.9fr; font-size: 13px; }
.size-table > .mono { padding-bottom: 10px; }
.size-table > span:not(.mono) { border-top: 1px solid var(--line); padding: 13px 12px 13px 0; color: var(--muted); }
.size-doc { color: var(--fg) !important; }
.size-foot {
  border-top: 1px solid var(--line); padding-top: 16px;
  font-size: 12px; line-height: 1.7; color: var(--faint);
}
.wont-pane {
  flex: none; width: 380px; max-width: 100%;
  border-left: 1px solid var(--line); padding: 38px 30px 32px; background: var(--sidebar);
}
.wont-title { font: 400 24px/1.2 'Instrument Serif', Georgia, serif; margin: 16px 0 14px; }
.wont-body { font-size: 13px; line-height: 1.7; color: var(--muted); }
.wont-foot {
  margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 12px; line-height: 1.6; color: var(--faint);
}

/* ---------- #faq ---------- */
/* <details> keeps every answer in the DOM and keyboard-operable with JS off */
.faq-pane { flex: 1; min-width: 0; padding: 38px 34px 32px; }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-top: 1px solid var(--line); }
.faq-list .faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; gap: 18px; padding: 17px 0;
  cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.faq-item h3 { font-size: 16px; font-weight: 500; font-family: inherit; }
.faq-sign { margin-left: auto; font-size: 16px; color: var(--faint); }
.faq-sign::before { content: '+'; }
.faq-item[open] .faq-sign { color: var(--accent); }
.faq-item[open] .faq-sign::before { content: '−'; }
.faq-item p {
  font-size: 13.5px; line-height: 1.75; color: var(--muted);
  max-width: 78ch; padding-bottom: 20px; text-wrap: pretty;
}
.story-pane {
  flex: none; width: 340px; max-width: 100%;
  border-left: 1px solid var(--line); padding: 38px 30px 32px; background: var(--sidebar);
}
.story-pane p { font-size: 13px; line-height: 1.7; color: var(--muted); margin-top: 14px; }
.story-lead { font: 400 22px/1.25 'Instrument Serif', Georgia, serif; color: var(--fg) !important; margin-top: 16px !important; }
.story-sig { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); }

/* ---------- #guides ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.guide-grid a {
  display: flex; flex-direction: column; gap: 8px;
  padding: 20px 22px 20px 0; border-bottom: 1px solid var(--line);
  color: var(--fg); text-decoration: none;
}
.guide-grid a:hover .serif { color: var(--accent); }
.guide-grid .serif { font-size: 19px; line-height: 1.2; }
.guide-sub { font-size: 12.5px; line-height: 1.6; color: var(--muted); }

/* ---------- final CTA + footer ---------- */
.final-cta {
  display: flex; align-items: center; gap: 30px; flex-wrap: wrap;
  padding: 40px 34px; border-bottom: 1px solid var(--line);
}
.final-cta h2 { margin-bottom: 8px; font-size: 36px !important; }
.final-cta p { font-size: 13.5px; color: var(--muted); }
.final-cta .btn-primary { margin-left: auto; }
/* follows you down the page; landing.js tucks it away while the hero's own
   CTA is still on screen, so there are never two of them at once */
.sticky-cta {
  position: sticky; bottom: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; padding: 14px 34px;
  border-top: 1px solid var(--line);
  background: rgba(8, 8, 8, 0.94); backdrop-filter: blur(10px);
}
.sticky-cta > span { font-size: 13.5px; color: var(--muted); }
.sticky-cta strong { color: var(--fg); font-weight: 500; }
.sticky-cta .btn-primary { padding: 13px 24px; }
.sticky-cta.tucked { display: none; }
/* the booth has its own actions — no landing CTA over the top of them */
body.in-flow .sticky-cta { display: none; }

.site-footer { padding: 34px 34px 30px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.footer-cols > div { display: flex; flex-direction: column; gap: 9px; font-size: 12.5px; }
.footer-cols .mono { margin-bottom: 3px; }
.footer-cols a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); align-self: flex-start; }
.footer-cols a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.footer-base {
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.footer-brand-name { font-size: 17px; }
.footer-base p { font-size: 11.5px; line-height: 1.6; color: var(--faint); max-width: 70ch; }
.footer-base .mono { margin-left: auto; }

/* ---------- document picker (step 1) ---------- */
.select-wrap {
  flex: 1; width: 100%; max-width: 940px; margin: 0 auto;
  padding: 28px 44px 24px; display: flex; flex-direction: column;
}
.select-title { font-size: 36px; line-height: 1.05; letter-spacing: -0.01em; margin-bottom: 6px; }
.select-sub { font-size: 12.5px; color: var(--dim); margin-bottom: 20px; }
.select-foot {
  margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.select-foot .btn-big { font-size: 15px; padding: 16px 30px; }

/* one 52px row per document: checkbox · name · agency · marginal price */
.doc-rows { display: flex; flex-direction: column; }
.doc-row {
  display: flex; align-items: center; gap: 14px;
  width: 100%; height: 52px; padding: 0;
  background: none; border: 0; border-top: 1px solid var(--line);
  color: var(--fg); font-family: inherit; text-align: left; cursor: pointer;
}
.doc-row:last-child { border-bottom: 1px solid var(--line); }
.doc-box {
  flex: none; width: 15px; height: 15px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line2); color: var(--bg); font-size: 10px; line-height: 1;
}
.doc-row.selected .doc-box { background: var(--accent); border-color: var(--accent); }
.doc-name { font-size: 15px; color: var(--muted); }
.doc-row:hover .doc-name, .doc-row.selected .doc-name { color: var(--fg); }
.doc-agency { margin-left: auto; color: #4a4a4a; letter-spacing: 0.08em; }
.doc-cost { flex: none; min-width: 76px; text-align: right; color: var(--faint); letter-spacing: 0.08em; }
.doc-row.selected .doc-cost { color: var(--accent); }

/* ---------- the one row system every in-flow list uses ---------- */
.rows { display: flex; flex-direction: column; }
.row {
  display: flex; align-items: center; gap: 12px;
  min-height: 46px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.rows-closed .row:last-child { border-bottom: 1px solid var(--line); }
.row .tick { flex: none; color: var(--good); }
.row-val { margin-left: auto; flex: none; color: var(--faint); letter-spacing: 0.1em; }
/* a failed rule keeps one short line of detail, so it sits taller */
.row.bad { align-items: flex-start; padding: 12px 0; }
.row.bad .tick { color: var(--bad); line-height: 1.6; }
.row.bad .row-val { color: var(--bad); margin-top: 3px; }
.row-stack { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.row-detail { font-size: 11.5px; line-height: 1.5; color: var(--dim); }

/* serif price beside a mono label — steps 1, 3b and 4 all end on this */
.foot-price { display: flex; align-items: baseline; gap: 12px; }
.foot-price .big-price { font-size: 40px; line-height: 1; }

/* buttons */
button { font-family: inherit; cursor: pointer; }
.btn-primary {
  font: 500 14px 'Instrument Sans', system-ui, sans-serif;
  padding: 14px 28px; border: 1px solid var(--fg);
  background: var(--fg); color: var(--bg); white-space: nowrap;
}
.btn-primary:hover { background: #fff; }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-ghost {
  font: 400 13px 'Instrument Sans', system-ui, sans-serif;
  padding: 13px; border: 1px solid var(--line2);
  background: transparent; color: var(--fg);
}
.btn-ghost:hover { border-color: #4a4a4a; }
.btn-ghost:disabled { color: var(--faint); cursor: not-allowed; }
.btn-text {
  font: 400 13px 'Instrument Sans', system-ui, sans-serif;
  padding: 13px; border: 1px solid transparent;
  background: transparent; color: var(--dim); text-align: left;
}
.btn-text:hover { color: var(--fg); }

/* pay */
.pay-left {
  flex: 1 1 400px; min-width: 320px; padding: 28px 30px 22px 44px;
  border-right: 1px solid var(--line);
}
.pay-right { flex: none; width: 440px; max-width: 100%; padding: 28px 44px 22px 30px; }
.pay-title { font-size: 30px; line-height: 1; margin-bottom: 20px; }
.pay-total {
  display: flex; align-items: baseline; gap: 12px;
  padding-top: 20px; border-top: 1px solid var(--line);
}
.pay-total .big-price { font-size: 40px; line-height: 1; }
.pay-why {
  margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 12px; line-height: 1.6; color: var(--dim);
}
.pay-why a { color: var(--dim); text-decoration: underline; }
.pay-why a:hover { color: var(--fg); }
input {
  font-family: inherit; font-size: 13.5px; padding: 13px 14px;
  border: 1px solid var(--line2); background: var(--panel); color: var(--fg);
}
input::placeholder { color: var(--faint); }
input:focus { outline: none; border-color: #6a6a6a; }
.pay-kicker { margin-bottom: 14px; }
/* Stripe renders the card form in its own iframe — we can only size the box it
   sits in. Its theme is set in the Stripe dashboard, not from here. */
#stripe-checkout { flex: 1; min-height: 250px; }
/* only shown when checkout is loading or has failed — never as standing copy */
.pay-hint { margin-top: 14px; font-size: 11.5px; line-height: 1.65; color: var(--dim); }
.pay-hint.error { color: var(--bad); }
.pay-foot {
  margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

/* capture */
#camera-step { min-height: 460px; }
#camera-wrap {
  flex: 1; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; min-height: 460px;
}
#video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transform: scaleX(-1);
  opacity: 0; transition: opacity 0.4s;
}
#video.live { opacity: 1; }
#video.rear { transform: none; } /* back camera must not be mirrored */

/* camera controls (flip / tilt) — icon-only, 44px hit target */
#cam-controls {
  position: absolute; top: 14px; right: 24px; z-index: 10;
  display: flex; align-items: flex-start; gap: 8px;
}
.cam-ctl {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  width: 44px; height: 44px; padding: 0;
  font: 400 12px ui-monospace, Menlo, monospace; letter-spacing: 0.06em;
  border: 1px solid var(--line2);
  background: rgba(8, 8, 8, 0.72); color: var(--fg);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(6px);
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.cam-ctl .cam-ctl-txt { display: none; }
/* the chip is allowed words only when it has news: .said widens it back out */
.cam-ctl.said { width: auto; padding: 0 16px; }
.cam-ctl.said .cam-ctl-txt { display: inline; }
.cam-ctl:hover { border-color: #4a4a4a; }
.cam-ctl:active { transform: scale(0.96); background: rgba(8, 8, 8, 0.95); }
.cam-ctl:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cam-ctl .cam-ctl-ico { flex: none; }
/* granted / blocked feedback on the tilt chip */
.cam-ctl.ok { border-color: rgba(228, 192, 95, 0.8); color: var(--accent); }
.cam-ctl.bad { border-color: #4a4a4a; color: var(--dim); }
.cam-ctl[disabled] { cursor: default; }

/* camera permission / failure gate */
#cam-gate {
  position: absolute; inset: 0; z-index: 20;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(8, 8, 8, 0.82); backdrop-filter: blur(3px);
}
.cam-gate-inner { width: min(100%, 420px); text-align: center; }
.cam-gate-title {
  margin: 10px 0 12px; font-size: clamp(26px, 3.4vw, 34px); line-height: 1.15;
}
.cam-gate-body {
  margin: 0 0 22px; font-size: 14px; line-height: 1.65; color: var(--muted);
  text-wrap: pretty;
}
#cam-gate-btn { min-height: 48px; }
.cam-gate-hint {
  margin: 16px 0 0; font-size: 11px; line-height: 1.6; letter-spacing: normal;
}
.oval {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  height: 62%; aspect-ratio: 3 / 4;
  border: 1px solid rgba(237, 237, 237, 0.45);
  border-radius: 50% / 50%;
  pointer-events: none;
}
.oval.good { border-color: rgba(228, 192, 95, 0.9); }
.instruction {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(86%, 620px); text-align: center;
  font-size: clamp(30px, 4.4vw, 52px); line-height: 1.12;
  text-shadow: 0 2px 30px rgba(8, 8, 8, 0.95), 0 2px 8px rgba(8, 8, 8, 0.9);
  pointer-events: none;
}
/* countdown digits before the shutter */
.instruction.count {
  font-size: clamp(80px, 14vw, 150px);
  color: var(--accent);
}
.capture-foot {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 34px;
  background: linear-gradient(to top, rgba(8, 8, 8, 0.96), rgba(8, 8, 8, 0));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
/* first-load progress: the tracker is a ~10 MB download and the wait reads as
   a broken page unless it is named and counted */
.cam-loading-note {
  position: absolute; left: 50%; top: calc(50% + 54px); transform: translateX(-50%);
  width: min(88%, 480px); text-align: center;
  font-size: 11.5px; line-height: 1.7; letter-spacing: 0.07em;
  text-shadow: 0 2px 20px rgba(8, 8, 8, 0.95);
  pointer-events: none;
}

/* the tilt recommendation — offered once, in words, and dismissible */
.tilt-suggest {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 76px;
  width: min(92%, 540px); display: flex; align-items: center; gap: 16px;
  padding: 14px 16px; border: 1px solid #2e2e2e; border-radius: 3px;
  background: rgba(8, 8, 8, 0.93);
}
.tilt-suggest-txt { flex: 1; font-size: 12.5px; line-height: 1.5; color: var(--dim); }
.tilt-suggest-txt strong { color: var(--fg); font-weight: 500; }
.tilt-suggest-btns { display: flex; flex-direction: column; gap: 4px; flex: none; }
.tilt-suggest-btns .btn-primary { min-height: 44px; padding: 10px 18px; font-size: 13px; }
.tilt-suggest-btns .btn-text { font-size: 12px; }

#flash { position: absolute; inset: 0; background: #fff; animation: flashfade 0.45s ease-out forwards; pointer-events: none; }
@keyframes flashfade { from { opacity: 1; } to { opacity: 0; } }

#debug-overlay {
  position: absolute; top: 36px; left: 34px; z-index: 10;
  background: rgba(8, 8, 8, 0.75); color: var(--good);
  font: 400 11px ui-monospace, Menlo, monospace;
  padding: 6px 8px; text-align: left;
}

/* ---------- the two-column split panes (steps 3 and 5) ---------- */
/* the photo pane sets the row height; short text columns centre inside it */
.photo-pane {
  flex: none; width: 380px; max-width: 100%; position: relative; overflow: hidden;
  align-items: center; justify-content: center;
  border-right: 1px solid var(--line); padding: 24px 24px 42px;
}
.photo-pane img { max-height: min(72vh, 460px); max-width: 100%; display: block; }
.photo-pane .corner-label { left: 18px; bottom: 14px; }
.compare-link { position: absolute; right: 18px; bottom: 14px; letter-spacing: 0.08em; cursor: pointer; }
.compare-link:hover { color: var(--fg); }

.verdict-pane { flex: 1 1 420px; min-width: 320px; padding: 28px 30px 22px; }
.verdict-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.verdict-title { font-size: clamp(26px, 3vw, 32px); line-height: 1; }
.verdict-sub { font-size: 12.5px; line-height: 1.6; color: var(--dim); }

/* 3a — their photo, their call, before anything is assessed */
.like-block { margin: auto 0; }
.like-block .verdict-title { font-size: clamp(28px, 3.4vw, 36px); margin-bottom: 6px; }
.like-foot {
  margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
#shot-label { margin-left: auto; }

/* 3b — the verdict */
.verdict-block { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.verdict-foot {
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.foot-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

/* 5 — ready: the only screen that shows a clean, full-size file */
.done-pane { justify-content: center; }
.docdl-row { padding: 12px 0; gap: 14px; }
.docdl-name { font-size: 14px; color: var(--fg); }
.docdl-to { color: var(--faint); text-decoration: none; }
.docdl-to:hover { color: var(--accent); }
.docdl-btns { display: flex; gap: 8px; margin-left: auto; flex: none; }
.docdl-btns .btn-primary { padding: 11px 16px; font-size: 12.5px; }
.docdl-btns .btn-ghost { padding: 11px 14px; font-size: 12.5px; }
.done-foot {
  margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.done-foot-note { margin-left: auto; }

.spinner {
  display: inline-block; width: 12px; height: 12px;
  border: 2px solid var(--accent); border-top-color: transparent; border-radius: 50%;
  animation: spin 0.8s linear infinite; vertical-align: -2px; margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- landing page, narrow ---------- */
/* Every landing section is a two-pane split with a fixed-width sidebar. Below
   this width the sidebar stops being a sidebar and becomes the next block down,
   with its left rule turned into a top rule. */
@media (max-width: 940px) {
  .hero-split, .landing-split, .doc-panel { flex-wrap: wrap; }
  .duo-pane, .vs-pane, .wont-pane, .story-pane, .doc-side {
    width: 100%; border-left: 0; border-top: 1px solid var(--line);
  }
  .hero-pane, .price-pane, .size-pane, .faq-pane { padding: 32px 24px; }
  .doc-main { padding: 28px 24px; }
  .spec-strip { grid-template-columns: repeat(2, 1fr); }
  .spec-strip > div:nth-child(2) { border-right: 0; }
  .spec-strip > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .howto-grid, .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .howto-grid > div { padding: 22px 24px 20px; }
  .howto-grid > div:nth-child(2n) { border-right: 0; }
  .guide-grid a { padding-left: 22px; }
  .guide-grid a:first-child { padding-left: 0; }
  /* five tabs never fit; let them scroll rather than squash to nothing */
  .doc-tabs { overflow-x: auto; scrollbar-width: thin; }
  .doc-tab { flex: 0 0 auto; min-width: 150px; }
  /* the size table keeps all four columns and scrolls inside its own pane */
  .size-pane { overflow-x: auto; }
  .size-table { min-width: 560px; }
}

@media (max-width: 620px) {
  .landing-section { padding: 28px 20px; }
  .landing-section.flush { padding: 0; }
  .landing-section.flush > .section-head { padding: 28px 20px 18px; }
  .hero-pane, .price-pane, .size-pane, .faq-pane, .doc-main,
  .duo-pane, .vs-pane, .wont-pane, .story-pane, .doc-side { padding: 28px 20px; }
  .crumbs, .final-cta, .site-footer, .sticky-cta { padding-left: 20px; padding-right: 20px; }
  .sticky-cta { gap: 12px; }
  .sticky-cta > span { font-size: 12.5px; }
  .spec-strip { grid-template-columns: 1fr; }
  .spec-strip > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .spec-strip > div:last-child { border-bottom: 0; }
  .howto-grid, .guide-grid { grid-template-columns: 1fr; }
  .howto-grid > div { padding: 20px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .howto-grid > div:last-child { border-bottom: 0; }
  .guide-grid a { padding-left: 0; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .doc-foot, .price-foot { gap: 14px; }
  .doc-source, .footer-base .mono { margin-left: 0; }
  /* the agency token is the first thing to go when the row gets tight */
  #landing-doc-rows .doc-agency { display: none; }
  #landing-doc-rows .doc-cost { margin-left: auto; }
  .spec-k { min-width: 118px; }
  .crumbs .reviewed { display: none; }
  /* six nav links do not fit one line on a phone — let them wrap under the brand */
  .topnav { flex-wrap: wrap; gap: 12px 18px; }
  .topbar { gap: 14px; }
  .header-cta { margin-left: 0; }
}

@media (max-width: 940px) {
  .pay-right { width: 100%; }
}
@media (max-width: 700px) {
  .topbar, .progress, .capture-foot { padding-left: 20px; padding-right: 20px; }
  .hero-pane, .pay-left, .pay-right, .verdict-pane { padding: 28px 20px; }
  .select-wrap { padding: 24px 20px 20px; }
  /* the split stacks: the photo pane's right rule becomes a bottom rule */
  .photo-pane, .pay-left { width: 100%; border-right: 0; border-bottom: 1px solid var(--line); }
  .photo-pane { padding: 20px 20px 38px; }
  .photo-pane img { max-height: 42vh; }
  .doc-agency { display: none; }
  .doc-cost { margin-left: auto; }
  .docdl-row { flex-wrap: wrap; }
  .docdl-btns { width: 100%; margin-left: 0; }
  #cam-controls { top: max(12px, env(safe-area-inset-top)); right: 16px; gap: 10px; }
  .cam-ctl { width: 48px; height: 48px; }
  .cam-loading-note { top: calc(50% + 44px); font-size: 11px; }
  .tilt-suggest {
    bottom: 68px; flex-direction: column; align-items: stretch; gap: 12px;
  }
  .tilt-suggest-btns { flex-direction: row-reverse; align-items: center; gap: 10px; }
  .tilt-suggest-btns .btn-primary { flex: 1; }
}