/* =====================================================================
   10 Minute Bids - design system (blue + gold, 9/23)
   One stylesheet for every page: the home page, the trade pages and the
   start.html order flow (app.js builds its markup with the classes in
   section 9 - keep every one of them working).

   Brand: navy #0B1F3F, deep ink #07142B, royal #1E4FD8, gold #F2B53A,
          deep gold #C8911A, cloud #F5F7FB. Archivo 800 display, Inter body.
   Themes: light by default, dark from prefers-color-scheme, and either one
           forced with <html data-theme="light|dark"> (site.js toggle).
   Navy sections (.navy) stay navy in both themes and re-point the tokens
   so every component inside them reads correctly.

   Components: 1 tokens  2 base + type  3 layout  4 nav  5 buttons, chips,
   cards  6 home (hero, stats, flow strip, gallery, trade grid, audience,
   pricing, video slot, FAQ, band)  7 footer  8 forms  9 start.html flow
   10 trade pages + 404 (breadcrumbs, trade hero, what you get, 5-step
   flow, price, related trades; they reuse 5-7 for the rest)
   ===================================================================== */

/* ---------- 1. tokens ---------- */
:root {
  color-scheme: light;
  --navy: #0B1F3F; --ink-deep: #07142B; --royal: #1E4FD8; --royal-soft: #5B83F0;
  --gold: #F2B53A; --gold-deep: #C8911A; --cloud: #F5F7FB;

  --bg: #F5F7FB;
  --surface: #FFFFFF;
  --surface-2: #EDF1F8;
  --field: #FFFFFF;
  --line: #DCE3EF;
  --line-2: #C4CFE2;
  --ink: #0B1F3F;
  --ink-2: #33445F;
  --muted: #56647F;
  --accent: #1E4FD8;
  --accent-ink: #FFFFFF;
  --accent-soft: #E6EDFD;
  --link: #1E4FD8;
  --cta: #F2B53A;
  --cta-hover: #F7C65E;
  --cta-ink: #07142B;
  --gold-text: #8A5E00;
  --gold-soft: #FDF3DC;
  --ok: #11683F;
  --err: #A62D25;
  --warn: #935D00;
  --stage: #FFFFFF;          /* behind the renders (they are shot on white) */
  --focus: #1E4FD8;          /* the focus ring: royal on light surfaces (6.2:1 on white), gold on dark ones */
  /* dark theme only: the white renders sit inset in their cards like framed prints, a touch dimmer, and the
     featured navy cards (always navy) get a hairline edge and a lighter top so they don't melt into the page */
  --print: 0px; --print-filter: none;
  --navy-a: #0B1F3F; --navy-b: #07142B; --navy-edge: 0 0 0 0 transparent; --gold-edge: 0 0 0 0 transparent;

  --shadow-sm: 0 1px 2px rgba(11, 31, 63, .06);
  --shadow: 0 1px 2px rgba(11, 31, 63, .05), 0 10px 28px -12px rgba(11, 31, 63, .16);
  --shadow-lg: 0 2px 4px rgba(11, 31, 63, .06), 0 30px 60px -24px rgba(11, 31, 63, .30);
  --radius: 16px;
  --radius-lg: 24px;
  --display: "Archivo", "Arial Black", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --gutter: 24px;
  --pad: 28px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #07142B; --surface: #0D1E3B; --surface-2: #132850; --field: #091831;
    --line: #1D345C; --line-2: #2B4776;
    --ink: #F5F7FB; --ink-2: #C3CEE3; --muted: #97A5C3;
    --accent: #7096F7; --accent-ink: #07142B; --accent-soft: #15295A; --link: #92AEF9;
    --gold-text: #F2B53A; --gold-soft: #2A2410;
    --ok: #3CCB8F; --err: #FF7B72; --warn: #F2B53A;
    --stage: #FFFFFF; --focus: #F2B53A;
    --print: 8px; --print-filter: brightness(.9);
    --navy-a: #12295A; --navy-b: #0B1F3F;
    --navy-edge: inset 0 0 0 1px rgba(142, 171, 248, .24); --gold-edge: inset 0 0 0 1px rgba(242, 181, 58, .45);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 30px -12px rgba(0, 0, 0, .55);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 30px 60px -24px rgba(0, 0, 0, .7);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07142B; --surface: #0D1E3B; --surface-2: #132850; --field: #091831;
  --line: #1D345C; --line-2: #2B4776;
  --ink: #F5F7FB; --ink-2: #C3CEE3; --muted: #97A5C3;
  --accent: #7096F7; --accent-ink: #07142B; --accent-soft: #15295A; --link: #92AEF9;
  --gold-text: #F2B53A; --gold-soft: #2A2410;
  --ok: #3CCB8F; --err: #FF7B72; --warn: #F2B53A;
  --stage: #FFFFFF; --focus: #F2B53A;
  --print: 8px; --print-filter: brightness(.9);
  --navy-a: #12295A; --navy-b: #0B1F3F; --navy-edge: inset 0 0 0 1px rgba(142, 171, 248, .24); --gold-edge: inset 0 0 0 1px rgba(242, 181, 58, .45);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 30px -12px rgba(0, 0, 0, .55);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 30px 60px -24px rgba(0, 0, 0, .7);
}
/* always-navy surfaces (hero, nav, bands, the featured price card) */
.navy {
  --surface: rgba(255, 255, 255, .06); --surface-2: rgba(255, 255, 255, .09); --field: rgba(255, 255, 255, .08);
  --line: rgba(255, 255, 255, .13); --line-2: rgba(255, 255, 255, .24);
  --ink: #F5F7FB; --ink-2: #C9D3E7; --muted: #A2B0CF;
  --accent: #8EABF8; --accent-soft: rgba(91, 131, 240, .18); --link: #F2B53A;
  --gold-text: #F2B53A; --gold-soft: rgba(242, 181, 58, .14);
  --focus: #F2B53A;
  color: var(--ink);
  background: var(--navy);
}
.top, .foot, dialog.lightbox { --focus: #F2B53A; }
@media (max-width: 560px) { :root { --gutter: 16px; --pad: 18px; } }

/* ---------- 2. base + type ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; color: var(--ink); margin: 0; }
h1, h2 { text-wrap: balance; word-spacing: .06em; }
h1 { font-size: clamp(40px, 4.6vw, 62px); line-height: 1.02; letter-spacing: -.035em; }
h1 em, h2 em { font-style: normal; color: var(--gold); }
/* the gold line is its own block, so each half balances on its own (balance doesn't reach across a <br>) */
h1 em, .band h2 em { display: block; }
h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.06; letter-spacing: -.03em; }
h3 { font-size: 20px; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0 0 14px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 12.5px/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.navy .eyebrow { color: var(--gold); }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 34em; margin: 18px 0 28px; }
.sub { color: var(--ink-2); font-size: 18px; max-width: 40em; margin: 14px 0 0; }
.note { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.note.center { text-align: center; }
.muted { color: var(--muted); font-weight: 500; }
.hidden { display: none !important; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: 10px; background: var(--gold); color: var(--ink-deep); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- 3. layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.sec { padding: clamp(60px, 8vw, 104px) 0; }
.sec.tight { padding-top: clamp(40px, 5vw, 64px); }
.sec.alt { background: var(--surface); border-block: 1px solid var(--line); }
.sec-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .sub { margin-inline: auto; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }

/* ---------- 4. nav ---------- */
.top { position: sticky; top: 0; z-index: 30; background: #081631; color: #F5F7FB; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: #fff; text-decoration: none; font: 800 19px/1 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.brand img, .brand .mark { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 15px; }
.top nav > a { white-space: nowrap; }
.top nav > a:not(.btn) { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 12px; border-radius: 10px; color: rgba(245, 247, 251, .8); text-decoration: none; font-weight: 500; }
.top nav > a:not(.btn):hover { color: #fff; background: rgba(255, 255, 255, .07); }
.top nav .btn { margin-left: 8px; gap: .28em; }
@media (max-width: 860px) { .top nav a.hide-md { display: none; } }
@media (max-width: 720px) { .top nav a.hide-sm { display: none; } }
/* compact header up to 440 px: at 401-430 the full brand + "Upload plans" overflowed and "Log in" wrapped (Pixel 7, iPhone Plus/Max) */
@media (max-width: 440px) { .top nav a.hide-xs { display: none; } .top nav .btn .long { display: none; } .brand { font-size: 17px; gap: 8px; } .top .wrap { gap: 8px; } .top nav { gap: 2px; } .top nav > a:not(.btn) { padding: 0 10px; } .top nav .btn { margin-left: 4px; } }
@media (max-width: 350px) { .brand { font-size: 15.5px; } .brand img { width: 30px; height: 30px; } .top nav > a:not(.btn) { padding: 0 8px; } .top nav .btn { padding: 0 12px; } }

/* ---------- 5. buttons, chips, cards ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border: 0; border-radius: 12px;
  font: 700 16px/1.15 var(--body); letter-spacing: -.005em; text-decoration: none; cursor: pointer; white-space: nowrap;
  background: var(--cta); color: var(--cta-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 10px 24px -12px rgba(200, 145, 26, .8);
  transition: background .15s, transform .08s, box-shadow .15s; }
.btn:hover { background: var(--cta-hover); }
.btn:active { transform: translateY(1px); }
.btn.blue { background: var(--royal); color: #fff; box-shadow: 0 10px 24px -12px rgba(30, 79, 216, .8); }
.btn.blue:hover { background: #2A5DE8; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn.ghost:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn.sm { min-height: 44px; padding: 0 16px; font-size: 15px; border-radius: 11px; }
.btn.lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn.wide { width: 100%; }
.btn[disabled] { background: var(--surface-2); color: var(--muted); cursor: default; transform: none; box-shadow: inset 0 0 0 1px var(--line); }
.btn .arr { transition: transform .15s; }
.btn:hover .arr { transform: translateX(3px); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.linkbtn { border: 0; background: none; color: var(--link); font: 600 14px var(--body); cursor: pointer; padding: 0; }
.linkbtn:hover { text-decoration: underline; }

.chip { display: inline-flex; align-items: center; gap: 6px; font: 700 11.5px/1.2 var(--body); letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px; white-space: nowrap; background: var(--accent-soft); color: var(--accent); }
.chip.gold { background: var(--gold); color: var(--ink-deep); }
.chip.soft-gold { background: var(--gold-soft); color: var(--gold-text); }
.chip.glass { background: rgba(7, 20, 43, .66); color: #F5F7FB; backdrop-filter: blur(6px); text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 12.5px; }
/* the launch offer (Genaro 9/24): a gold chip that wraps (a sentence, not a label) on the home hero and above
   /start's sign-up, and a gold-edged note under the sign-up form; site.js unhides them only while GET /api/promo
   says the offer runs. Gold on ink-deep in both themes and on navy. */
.offer-chip { display: flex; align-items: center; gap: 9px; width: fit-content; max-width: 100%; margin: 0 0 18px; padding: 7px 14px 7px 8px;
  border-radius: 18px; background: var(--gold); color: var(--ink-deep); font: 600 14px/1.35 var(--body); box-shadow: 0 10px 24px -14px rgba(200, 145, 26, .9); }
.offer-chip::before { content: "$"; flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-deep); color: var(--gold); font: 800 12px/1 var(--display); }
.offer-chip b { font-weight: 800; }
.offer-chip .nw { white-space: nowrap; }
.offer-note { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--gold-soft); border-left: 3px solid var(--gold); color: var(--ink); font-size: 14px; line-height: 1.45; }
.offer-note b { color: var(--gold-text); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14.5px; color: var(--ink-2); }

/* every bid is an estimate from the plans: the note beside every price and every order button */
.estimate-note { position: relative; max-width: 860px; margin: 20px 0 0; padding: 12px 14px 12px 44px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.estimate-note::before { content: "i"; position: absolute; left: 14px; top: 13px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font: 700 12px/1 var(--body); }
.estimate-note b { color: var(--ink); }
.panel .estimate-note { max-width: none; margin: 16px 0 0; }
#step4 .estimate-note { margin: 0 0 18px; }
.foot-base .fb-est { color: #C9D3E7; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-2); }
ul.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
ul.checks li { position: relative; padding-left: 30px; color: var(--ink-2); }
ul.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--gold-soft); box-shadow: inset 0 0 0 1.5px var(--gold); }
ul.checks li::after { content: ""; position: absolute; left: 7px; top: 7px; width: 5px; height: 9px; border: solid var(--gold-deep); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.navy ul.checks li::after { border-color: var(--gold); }

/* ---------- 6. home ---------- */
/* hero */
.hero { position: relative; overflow: hidden; padding: clamp(36px, 6vw, 80px) 0 clamp(36px, 5vw, 64px);
  background:
    radial-gradient(900px 520px at 88% 8%, rgba(30, 79, 216, .42), transparent 62%),
    linear-gradient(180deg, #0B1F3F 0%, #07142B 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero h1 { color: #fff; }
.hero .lede { color: #C9D3E7; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; padding: 0; list-style: none; font-size: 14px; color: var(--ink-2); }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(242, 181, 58, .16); }
@media (max-width: 900px) {
  /* picture first on phones and tablets: headline, the model, then the words and buttons */
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { display: contents; }
  .hero-copy > .eyebrow { order: 1; justify-self: start; }
  .hero-copy > h1 { order: 2; }
  .hero-grid > .stage { order: 3; margin: 22px 0 4px; }
  .hero-copy > .lede { order: 4; }
  .hero-copy > .cta-row { order: 5; }
  .hero-copy > .trust { order: 6; }
}
@media (max-width: 560px) {
  .hero .cta-row .btn { flex: 1 1 100%; } .trust { gap: 6px 14px; }
  .hero-copy > .cta-row { order: 4; margin-top: 18px; }
  .hero-copy > .lede { order: 5; margin: 20px 0 0; }
}

.stage { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: #0B1F3F; isolation: isolate;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .09), 0 40px 90px -40px rgba(0, 0, 0, .8), 0 0 90px -30px rgba(30, 79, 216, .55); }
.stage img, .stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.stage img { object-fit: cover; }
.stage iframe { opacity: 0; transition: opacity .6s ease; background: #0B1F3F; }
.stage.live iframe { opacity: 1; }
.stage.live .stage-poster { opacity: 0; transition: opacity .6s ease .1s; }
.stage-tag { position: absolute; left: 14px; top: 14px; z-index: 2; pointer-events: none; }
.stage-shield { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: grab; }
.stage-go { position: absolute; left: 14px; bottom: 14px; z-index: 2; min-height: 46px; }
.btn.stage-go { background: rgba(7, 20, 43, .66); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); backdrop-filter: blur(6px); }
.btn.stage-go:hover { background: rgba(7, 20, 43, .82); }
.stage-go .spin { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .3); border-top-color: #fff; animation: spin .8s linear infinite; }
.stage.loading .stage-go .spin { display: inline-block; }
.stage.loading .stage-go .ico { display: none; }
.stage.live .stage-go { display: none; }
.stage-hint { position: absolute; left: 50%; bottom: 14px; z-index: 2; transform: translateX(-50%); pointer-events: none; opacity: 0; transition: opacity .4s; }
/* Done (site.js, once the model is live after a tap): back to the poster */
.stage-done { position: absolute; right: 14px; bottom: 14px; z-index: 3; min-height: 44px; min-width: 64px; padding: 0 18px; border: 0; justify-content: center; font-size: 14px; cursor: pointer; }
.stage-done:hover { background: rgba(7, 20, 43, .85); }
.stage:has(.stage-done) .stage-hint { bottom: 70px; }
@media (max-width: 560px) { .stage-done { right: 10px; bottom: 10px; } }
.stage.live .stage-hint { opacity: 1; animation: hintout 1s ease 6s forwards; }
@keyframes hintout { to { opacity: 0; } }
.stage-facts { position: absolute; right: 14px; top: 14px; z-index: 2; display: grid; gap: 6px; justify-items: end; pointer-events: none; }
@media (max-width: 560px) { .stage { border-radius: 18px; } .stage-facts { display: none; } .stage-go { left: 10px; bottom: 10px; } .stage-tag { left: 10px; top: 10px; } }

/* stat tiles */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: clamp(28px, 4vw, 48px); }
.stat { padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.stat b { display: block; font: 800 clamp(26px, 2.8vw, 34px)/1.05 var(--display); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.navy .stat b { color: var(--gold); }
.stat span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.35; color: var(--ink-2); }
.stats-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat { padding: 14px 16px; } }

/* how it works strip: plans in -> 3D model -> your bid -> your 10-minute check */
.flow4 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: f; }
.flow4 li { position: relative; padding: 24px 22px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.flow4 li::after { content: ""; position: absolute; top: 47px; right: -17px; width: 18px; height: 2px; background: linear-gradient(90deg, var(--line-2), var(--gold)); }
.flow4 li:last-child::after { display: none; }
.flow4 .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.flow4 .ico svg { width: 26px; height: 26px; }
.flow4 li.gold { background: linear-gradient(160deg, var(--navy-a), #12294F); border-color: transparent; color: #F5F7FB; box-shadow: var(--gold-edge), var(--shadow-sm); }
.flow4 li.gold h3 { color: #fff; }
.flow4 li.gold p { color: #C9D3E7; }
.flow4 li.gold .ico { background: var(--gold); color: var(--ink-deep); }
.flow4 .n { position: absolute; top: 22px; right: 20px; font: 800 13px var(--display); color: var(--muted); letter-spacing: .04em; }
.flow4 li.gold .n { color: var(--gold); }
.flow4 h3 { font-size: 19px; margin-bottom: 6px; }
.flow4 p { margin: 0; font-size: 15px; color: var(--ink-2); }
@media (max-width: 980px) { .flow4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .flow4 li::after { display: none; } }
@media (max-width: 560px) {
  .flow4 { grid-template-columns: 1fr; gap: 10px; }
  .flow4 li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 2px 14px; padding: 16px; }
  .flow4 .ico { grid-row: span 2; margin: 0; }
  .flow4 .n { top: 16px; right: 16px; }
}

/* gallery: "What you're seeing" */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.shot { margin: 0; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.shot:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.shot a.pic { display: block; background: var(--stage); position: relative; }
/* every card's render: framed as a print in the dark theme (--print), shot edges faded so a shadow the render's
   frame cut off melts into the white instead of stopping in a line */
.shot a.pic, .tcard .pic, .aud-card .pic { margin: var(--print) var(--print) 0; border-radius: calc(var(--print) * 1.5); overflow: hidden; filter: var(--print-filter); }
.t-shot a.pic { filter: var(--print-filter); }
.shot img, .tcard img, .aud-card img, .t-shot img {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 1.5%, #000 98.5%, transparent), linear-gradient(transparent, #000 1.5%, #000 98.5%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 1.5%, #000 98.5%, transparent), linear-gradient(transparent, #000 1.5%, #000 98.5%, transparent);
  mask-composite: intersect; }
/* example-c's renders were shot on #F4F6F8, every other one on white: lift them to the same white */
img[src*="/example-c-"] { filter: brightness(1.045); }
.shot img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.shot .pic .zoom { position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(7, 20, 43, .72); color: #fff; opacity: 0; transition: opacity .2s; }
.shot:hover .pic .zoom, .shot .pic:focus-visible .zoom { opacity: 1; }
/* the card clips its picture link (overflow: hidden), so the focus ring is drawn on the card */
.shot a.pic:focus-visible, .t-shot a.pic:focus-visible, .vslot .vs-play:focus-visible { outline: none; }
.shot:has(a.pic:focus-visible), .t-shot:has(a.pic:focus-visible), .vslot:has(.vs-play:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.shot figcaption { padding: 16px 18px 18px; }
.shot figcaption b { display: block; font: 800 17px/1.25 var(--display); letter-spacing: -.01em; color: var(--ink); margin-bottom: 4px; }
.shot figcaption span { display: block; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.shot .tag { display: inline-block; margin-top: 8px; font-size: 12px; color: var(--muted); }
@media (max-width: 1000px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 719px) {
  /* one swipeable row on phones: the page stays short and never scrolls sideways */
  .gallery { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(84%, 340px); gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)); padding: 8px var(--gutter) 14px; scroll-padding-inline: var(--gutter); scrollbar-width: thin; }
  .shot { scroll-snap-align: start; }
  .shot:hover { transform: none; }
}
.swipe-hint { display: none; margin: 0 0 12px; font-size: 13.5px; color: var(--muted); }
@media (max-width: 719px) { .swipe-hint { display: block; } }

/* lightbox */
dialog.lightbox { padding: 0; border: 0; max-width: min(1200px, 94vw); width: 100%; background: transparent; color: #fff; }
dialog.lightbox::backdrop { background: rgba(4, 12, 26, .86); backdrop-filter: blur(4px); }
dialog.lightbox img { display: block; width: 100%; height: auto; max-height: 80vh; object-fit: contain; border-radius: 14px; background: #fff; }
dialog.lightbox p { margin: 12px 4px 0; color: #DDE4F2; font-size: 15px; }
dialog.lightbox .x { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(7, 20, 43, .8); color: #fff; font-size: 24px; cursor: pointer; }

/* trade grid */
.tgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tcard { display: grid; grid-template-rows: auto 1fr; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm); transition: border-color .15s, transform .2s, box-shadow .2s; }
.tcard:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.tcard .pic { background: var(--stage); }
.tcard img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tcard .tb { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; align-items: start; gap: 4px 12px; padding: 14px 16px 16px; }
.tcard h3 { font-size: 18px; }
.tcard .what { grid-column: 1 / -1; font-size: 14px; color: var(--ink-2); margin: 0; }
.tcard .go { grid-row: 1; grid-column: 2; align-self: center; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); transition: background .15s, color .15s; }
.tcard:hover .go { background: var(--accent); color: var(--accent-ink); }
.tcard .price { grid-column: 1 / -1; font-size: 13.5px; font-weight: 600; color: var(--gold-text); }
.tcard .price:empty { display: none; }
.tcard .price.soon { color: var(--muted); font-weight: 500; }
@media (max-width: 980px) { .tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .tgrid { gap: 10px; }
  .tcard .tb { padding: 10px 12px 12px; gap: 2px 8px; }
  .tcard h3 { font-size: 15.5px; }
  .tcard .what { display: none; }
  .tcard .go { width: 26px; height: 26px; }
  .tcard .go svg { width: 14px; height: 14px; }
  .tcard .price { font-size: 12.5px; }
}

/* audience cards */
.aud { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.aud-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.aud-card .pic { background: var(--stage); }
.aud-card img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.aud-card .chip { align-self: flex-start; }
.aud-card .body { display: flex; flex-direction: column; gap: 14px; padding: 26px; flex: 1; }
.aud-card h3 { font-size: 26px; letter-spacing: -.02em; }
.aud-card p { margin: 0; color: var(--ink-2); }
@media (max-width: 820px) { .aud { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .aud-card .body { padding: 20px; } .aud-card h3 { font-size: 23px; } }

/* pricing */
.pricing { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px; align-items: start; }
.pcard { position: relative; border-radius: var(--radius-lg); padding: 30px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.pricing .pcard.navy { position: sticky; top: 90px; }
.pcard.navy { background: radial-gradient(500px 300px at 100% 0%, rgba(30, 79, 216, .5), transparent 70%), linear-gradient(170deg, var(--navy-a), var(--navy-b)); border-color: transparent; box-shadow: var(--gold-edge), var(--shadow-lg); }
.pcard h3 { font-size: 24px; margin: 12px 0 4px; text-wrap: balance; }
.pcard .big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 16px 0 6px; }
.pcard .big b { font: 800 clamp(44px, 5vw, 58px)/1 var(--display); letter-spacing: -.035em; color: var(--ink); font-variant-numeric: tabular-nums; }
.pcard.navy .big b { color: var(--gold); }
.pcard .big b.words { font-size: 30px; letter-spacing: -.02em; }
.pcard .big small { font-size: 15px; color: var(--muted); }
.pcard .rule { color: var(--ink-2); margin: 0 0 20px; }
.pcard ul.checks { margin-bottom: 24px; }
.tiers { list-style: none; margin: 16px 0 22px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; }
.tiers li { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.tiers li b { display: block; font: 800 22px/1.1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.tiers li span { font-size: 13px; color: var(--muted); }
.tiers li.fallback { grid-column: 1 / -1; background: none; border-style: dashed; color: var(--ink-2); font-size: 15px; }
.ptable { width: 100%; border-collapse: collapse; font-size: 15px; }
.ptable caption { text-align: left; font: 700 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-bottom: 10px; }
.ptable th, .ptable td { text-align: left; padding: 12px 0; border-top: 1px solid var(--line); vertical-align: top; }
.ptable td:last-child, .ptable th:last-child { text-align: right; padding-left: 12px; white-space: nowrap; }
.ptable td:last-child { font: 700 16px var(--display); font-variant-numeric: tabular-nums; }
.ptable td .what { display: block; margin-top: 2px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.ptable td.soon { font: 600 13px var(--body); color: var(--muted); }
.ptable tr.hl td { background: var(--accent-soft); }
.ptable td.fallback { text-align: left; padding-left: 0; font: 400 15px var(--body); color: var(--ink-2); white-space: normal; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; } .pricing .pcard.navy { position: relative; top: 0; } }
@media (max-width: 560px) { .pcard { padding: 22px 18px; } .ptable td .what { display: none; } }

/* video slot (public/video/<slug>.mp4 + <slug>.jpg; site.js shows it only when both are really there) */
.vslot { position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #0B1F3F; box-shadow: var(--shadow-lg); }
.vslot[hidden], [data-vslot-wrap][hidden] { display: none !important; }
.vslot video, .vslot .vs-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #07142B; }
.vslot .vs-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: none; color: #fff; }
.vslot .vs-play::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(7, 20, 43, .7)); }
.vslot .vs-btn { position: absolute; left: 50%; top: 50%; z-index: 1; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--ink-deep); box-shadow: 0 0 0 10px rgba(242, 181, 58, .22), 0 20px 40px -10px rgba(0, 0, 0, .5); transition: transform .15s; }
.vslot .vs-play:hover .vs-btn { transform: scale(1.06); }
.vslot .vs-btn svg { width: 30px; height: 30px; margin-left: 4px; }
.vslot .vs-label { position: absolute; left: 20px; bottom: 16px; z-index: 1; font: 700 15px var(--body); text-align: left; }
.vslot .vs-label small { display: block; font-weight: 500; font-size: 13px; color: #C9D3E7; }
@media (max-width: 560px) { .vslot { border-radius: 16px; } .vslot .vs-label small { display: none; } .vslot .vs-label { left: 14px; bottom: 12px; font-size: 14px; } .vslot .vs-btn { width: 64px; height: 64px; margin: -32px 0 0 -32px; } .vslot .vs-btn svg { width: 24px; height: 24px; } }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 16px 0; cursor: pointer; list-style: none; font: 700 17.5px/1.35 var(--body); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background:
  linear-gradient(var(--accent), var(--accent)) center / 12px 2px no-repeat,
  linear-gradient(var(--accent), var(--accent)) center / 2px 12px no-repeat, var(--accent-soft); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; padding-right: 46px; color: var(--ink-2); }

/* closing band */
.band { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  background: radial-gradient(600px 300px at 100% 0%, rgba(91, 131, 240, .3), transparent 65%), radial-gradient(600px 400px at 0% 100%, rgba(30, 79, 216, .45), transparent 70%), linear-gradient(160deg, var(--navy-a), var(--navy-b));
  box-shadow: var(--navy-edge); }
.band h2 { color: #fff; }
.band p { margin: 10px 0 0; color: #C9D3E7; font-size: 17px; }
@media (max-width: 560px) { .band { border-radius: 20px; padding: 28px 22px; } .band .btn { width: 100%; } }

/* ---------- 7. footer ---------- */
.foot { padding: 56px 0 calc(40px + env(safe-area-inset-bottom)); background: var(--ink-deep); color: #C9D3E7; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)) auto; gap: 32px; }
.foot .brand { margin-bottom: 10px; }
.foot p { margin: 0; max-width: 30em; color: #A2B0CF; }
.foot h4, .foot .fh { margin: 0 0 12px; font: 700 12px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.foot ul a { display: inline-flex; align-items: center; min-height: 44px; color: #C9D3E7; text-decoration: none; }
.foot ul a:hover, .foot ul a[aria-current="page"] { color: var(--gold); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; color: #8F9EBF; }
.theme-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .05); color: #F5F7FB; font: 600 14px var(--body); cursor: pointer; white-space: nowrap; }
.theme-btn:hover { border-color: var(--gold); }
.theme-btn svg { width: 18px; height: 18px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 420px) { .foot-grid { gap: 24px 16px; } }
.foot.slim { padding: 22px 0 calc(22px + env(safe-area-inset-bottom)); }
.foot.slim a { color: inherit; display: inline-flex; align-items: center; min-height: 44px; }
.foot.slim .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }

/* ---------- 8. forms ---------- */
.field { margin-bottom: 16px; }
.field.gap-top { margin-top: 22px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--ink); }
.field .hint { font-weight: 400; color: var(--muted); }
input, select, textarea { width: 100%; min-height: 48px; font: 16px/1.4 var(--body); color: var(--ink); background: var(--field); border: 1.5px solid var(--line-2); border-radius: 12px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
textarea { min-height: 96px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .row, .row3 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.msg { padding: 12px 14px; border-radius: 12px; font-size: 15px; margin-bottom: 16px; display: none; }
.msg.err { display: block; background: color-mix(in srgb, var(--err) 12%, transparent); color: var(--err); }
.msg.ok { display: block; background: color-mix(in srgb, var(--ok) 13%, transparent); color: var(--ok); }
.msg.info { display: block; background: var(--accent-soft); color: var(--ink); border-left: 3px solid var(--accent); }

/* ---------- 9. start.html: account + the order flow (classes app.js depends on) ---------- */
.app { padding: 36px 0 80px; min-height: calc(100vh - 66px - 70px); }
/* the page's H1: lined up with the account panel, or with the flow once signed in */
.app-head { max-width: 1080px; margin: 0 auto 22px; }
.app-head:has(~ #flowView:not(.hidden)) { max-width: none; }
.app-head h1 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.08; letter-spacing: -.025em; }
.app-head p { margin: 6px 0 0; color: var(--ink-2); }
@media (max-width: 900px) { .app-head { max-width: 560px; } }
@media (max-width: 560px) { .app-head { margin-bottom: 16px; } .app-head p { font-size: 15px; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: var(--pad); box-shadow: var(--shadow); }
.panel h2 { font-size: clamp(25px, 3vw, 30px); margin-bottom: 8px; }
.panel .sub { font-size: 16px; margin: 0 0 22px; }
.step h2[tabindex="-1"]:focus { outline: none; }
@media (max-width: 560px) {
  .app { padding-top: 16px; }
  .app .panel { border-radius: 18px; }
  .whoami #whoName { display: none; }
}

/* account: form + a navy side panel */
.auth { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 28px; align-items: stretch; max-width: 1080px; margin: 0 auto; }
.auth-side { position: relative; overflow: hidden; border-radius: 20px; padding: 30px; display: flex; flex-direction: column; gap: 18px;
  background: radial-gradient(500px 300px at 100% 0%, rgba(30, 79, 216, .45), transparent 70%), linear-gradient(170deg, var(--navy-a), var(--navy-b)); box-shadow: var(--navy-edge); }
.auth-side h3 { color: #fff; font-size: 24px; }
.auth-side .pic { border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .09), 0 24px 50px -24px rgba(0, 0, 0, .7); }
.auth-side .pic img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.auth-side ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.auth-side li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; color: #C9D3E7; font-size: 15px; }
.auth-side li::before { counter-increment: s; content: counter(s); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: var(--gold); font: 800 14px var(--display); }
.auth-side li b { color: #fff; }
@media (max-width: 900px) { .auth { grid-template-columns: minmax(0, 1fr); max-width: 560px; } .auth-side { display: none; } }

.tabs { display: flex; gap: 6px; background: var(--surface-2); padding: 5px; border-radius: 14px; margin-bottom: 22px; }
.tabs button { flex: 1; min-height: 44px; border: 0; background: transparent; padding: 10px; border-radius: 10px; font: 600 15px var(--body); color: var(--muted); cursor: pointer; }
.tabs button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
@media (max-width: 560px) { .choice { grid-template-columns: 1fr; } }
.choice label { position: relative; display: block; border: 1.5px solid var(--line-2); border-radius: 14px; padding: 16px 16px 16px 48px; cursor: pointer; background: var(--field); transition: border-color .15s, background .15s; }
.choice label::before { content: ""; position: absolute; left: 16px; top: 18px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.choice label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice label:has(input:checked)::before { border: 6px solid var(--accent); background: #fff; }
.choice label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice b { display: block; font-size: 16px; margin-bottom: 2px; }
.choice span { font-size: 14px; color: var(--ink-2); }

.whoami { font-size: 14px; color: rgba(245, 247, 251, .75); display: flex; gap: 12px; align-items: center; }
.top .whoami .linkbtn { color: var(--gold); }
body:has(main.app) .top .brand { min-height: 44px; }
.whoami .linkbtn, .app .linkbtn { min-height: 44px; display: inline-flex; align-items: center; }
.app .btn.sm { min-height: 44px; }
.lead-sm { color: var(--ink-2); margin: 0 0 20px; }

/* stepper */
.stepper { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 22px; }
.stepper li { flex: 1; display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 3px solid var(--line); font: 600 14px var(--body); color: var(--muted); min-width: 0; }
.stepper li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stepper li i { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 800 13px var(--display); font-style: normal; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.stepper li.on { color: var(--ink); border-color: var(--gold); }
.stepper li.on i { background: var(--gold); border-color: var(--gold); color: var(--ink-deep); }
.stepper li.done { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); color: var(--ink-2); }
.stepper li.done i { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-size: 0; }
.stepper li.done i::after { content: "\2713"; font-size: 14px; }
@media (max-width: 560px) { .stepper li { flex: 0 0 auto; } .stepper li.on { flex: 1; } .stepper li:not(.on) span { display: none; } }

.app-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
@media (max-width: 900px) { .app-grid { grid-template-columns: minmax(0, 1fr); } }

/* step 1: drop zone + the picked PDF */
.drop { position: relative; min-height: 150px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; text-align: center; cursor: pointer;
  border: 2px dashed var(--line-2); border-radius: 16px; padding: 28px 18px; background: var(--surface-2); transition: border-color .15s, background .15s; }
.drop::before { content: ""; width: 44px; height: 44px; margin-bottom: 8px; border-radius: 12px; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233F6CE9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4M7 9l5-5 5 5'/%3E%3Cpath d='M4 15v3a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-3'/%3E%3C/svg%3E") center / 24px no-repeat; }
.drop.over, .drop:hover { border-color: var(--accent); background: var(--accent-soft); }
.drop b { display: block; font-size: 17px; }
.drop span { color: var(--muted); font-size: 14px; }
.pdfico { flex: none; position: relative; width: 40px; height: 48px; border-radius: 8px 14px 8px 8px; background: linear-gradient(160deg, #E5484D, #B8262B); color: #fff; font: 800 11px/48px var(--body); text-align: center; letter-spacing: .05em; }
.filecard { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px; border: 1.5px solid var(--line-2); border-radius: 16px; background: var(--field); }
.fc-main { display: grid; gap: 3px; min-width: 0; }
.fc-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.fc-meta, .fc-state { font-size: 14px; color: var(--muted); }
.fc-state .ok { color: var(--ok); }
.fc-state .bad { color: var(--err); }
.fc-x { width: 44px; height: 44px; margin: -8px -8px 0 0; border: 0; border-radius: 10px; background: none; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; }
.fc-x:hover { background: var(--surface-2); color: var(--ink); }
.prog { display: block; height: 6px; margin-top: 6px; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--royal), var(--accent)); border-radius: 6px; transition: width .25s; }
.prog.full i { background: var(--ok); }
.files { list-style: none; padding: 0; margin: 12px 0 0; }

/* step 1: sets already uploaded, not ordered */
.resume-list { display: grid; gap: 8px; margin-bottom: 16px; }
.resume-list .rl-h { font: 700 12px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.resume { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; min-height: 56px; padding: 10px 12px; border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--field); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.resume:hover, .resume:focus-visible { border-color: var(--accent); }
.resume .pdfico { width: 32px; height: 40px; line-height: 40px; font-size: 10px; }
.rl-main { display: grid; gap: 2px; min-width: 0; }
.rl-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.rl-main small { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.rl-go { color: var(--link); font-weight: 600; font-size: 14px; white-space: nowrap; }
@media (max-width: 420px) { .resume { grid-template-columns: auto minmax(0, 1fr); } .rl-go { grid-column: 2; } }

/* step 3: a contractor whose own trade can't be ordered yet */
.tradenote { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--gold-soft); color: var(--ink); font-size: 15px; border-left: 3px solid var(--gold); }
.tradenote b { color: var(--gold-text); }
/* step 3: the launch offer, only for an account that has it (app.js offerOn): the note above the picks, the
   discounted trade's struck price, and one line under the picks that says it in words */
.offernote { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--gold-soft); color: var(--ink); font-size: 15px; border-left: 3px solid var(--gold); }
.offernote b { color: var(--gold-text); }
.offerline { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: var(--gold-soft); border: 1.5px solid var(--gold); }
.offerline b { display: block; font-size: 15px; color: var(--ink); overflow-wrap: anywhere; }
.offerline small { color: var(--ink-2); font-size: 13px; }
.ol-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--gold); color: var(--ink-deep); font: 800 16px var(--display); }
.ol-price { font: 800 17px var(--display); white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--gold-text); }
.t-price.offer { color: var(--gold-text); }
.t-price s { margin-right: 4px; font-weight: 600; color: var(--muted); }
.pageline .ml-ico { font-size: 18px; }
/* phones: the price under the words (as on the trade rows), so "Included" doesn't squeeze them into a column */
@media (max-width: 560px) {
  .modelline, .offerline { grid-template-columns: auto minmax(0, 1fr); row-gap: 2px; }
  .modelline .ml-price, .offerline .ol-price { grid-column: 2; text-align: left; font-size: 15px; }
}

/* step 2: reading */
.readhead { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px; border: 1.5px solid var(--line-2); border-radius: 16px; background: var(--field); }
.rh-main { display: grid; min-width: 0; }
.rh-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rh-main span { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.pagecount { text-align: center; line-height: 1; }
.pagecount b { display: block; font: 800 30px var(--display); letter-spacing: -.02em; }
.pagecount span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.readstate { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; margin: 16px 0; padding: 16px; border-radius: 16px; background: var(--accent-soft); }
.readstate.done { background: color-mix(in srgb, var(--ok) 12%, transparent); }
.readstate.failed { background: var(--gold-soft); }
.readstate small { color: var(--ink-2); font-size: 14px; }
.rs-t { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; margin-left: 4px; }
.rs-dot { width: 22px; height: 22px; border-radius: 50%; margin-top: 1px; display: grid; place-items: center; color: #fff; font: 700 13px var(--body); }
.rs-dot.ok { background: var(--ok); }
.rs-dot.ok::after { content: "\2713"; }
.rs-dot.bad { background: var(--gold-deep); }
.rs-dot.bad::after { content: "!"; }
.rs-spin { width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--accent) 25%, transparent); border-top-color: var(--accent); animation: spin .9s linear infinite; }
.indet { grid-column: 1 / -1; position: relative; height: 5px; border-radius: 5px; background: color-mix(in srgb, var(--accent) 18%, transparent); overflow: hidden; }
.indet i { position: absolute; top: 0; bottom: 0; left: 0; width: 35%; border-radius: 5px; background: linear-gradient(90deg, var(--accent), var(--gold)); animation: indet 1.5s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes indet { 0% { transform: translateX(-100%); } 100% { transform: translateX(290%); } }
.aisum { font: 600 18px/1.45 var(--body); margin: 4px 0 16px; padding-left: 14px; border-left: 3px solid var(--gold); }
dl.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin: 0 0 20px; }
dl.facts div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); min-width: 0; }
dl.facts dt { font: 700 11px var(--body); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
dl.facts dd { margin: 2px 0 0; font: 800 17px/1.25 var(--display); overflow-wrap: anywhere; }
.h3sm { font: 800 17px var(--display); margin: 0 0 10px; }
.sheets { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.sg { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.sg-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 15px; }
.sg .count { font: 700 12px var(--body); padding: 3px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); }
.sg p { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.sg p i { font-style: normal; color: var(--muted); margin: 0 6px; }
ul.warns { list-style: none; padding: 0; margin: 14px 0 0; }
.warns li { position: relative; margin-top: 6px; padding: 10px 12px 10px 38px; border-radius: 12px; font-size: 14px; background: var(--gold-soft); }
.warns li::before { content: "!"; position: absolute; left: 12px; top: 10px; width: 18px; height: 18px; border-radius: 50%; background: var(--gold-deep); color: #fff; font: 700 12px/18px var(--body); text-align: center; }
.stepfoot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.stepfoot .btn { flex: 1 1 180px; }

/* step 3: what to bid */
.backlink { margin: -8px 0 4px; }
.housecard, .trade { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px 14px; align-items: start; cursor: pointer; border: 1.5px solid var(--line-2); background: var(--field); transition: border-color .15s, background .15s; }
/* the hidden checkbox fills its row, so focus scrolls the whole row into view (a 1 px box landed under the paybar) */
.housecard input, .trade input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; opacity: 0; pointer-events: none; }
.housecard:has(input:focus-visible), .trade:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
html:has(#step3:not(.hidden)) { scroll-padding-bottom: 116px; }
.tick { width: 22px; height: 22px; margin-top: 2px; border-radius: 7px; border: 2px solid var(--line-2); background: var(--surface); display: grid; place-items: center; }
.housecard.on .tick, .trade.on .tick { background: var(--accent); border-color: var(--accent); }
.housecard.on .tick::after, .trade.on .tick::after { content: ""; width: 6px; height: 11px; margin-top: -2px; border: solid var(--accent-ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.housecard { padding: 18px; border-width: 2px; border-radius: 18px; }
.housecard.on { border-color: var(--accent); background: var(--accent-soft); }
.housecard.off { cursor: default; opacity: .65; }
.hc-body { display: grid; gap: 4px; min-width: 0; }
.hc-tag { justify-self: start; font: 800 11px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; padding: 6px 9px; border-radius: 99px; background: var(--gold); color: var(--ink-deep); }
.hc-name { font: 800 20px/1.2 var(--display); letter-spacing: -.01em; }
.hc-what { font-size: 15px; color: var(--ink-2); }
.hc-rule { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.hc-price { font: 800 30px/1 var(--display); letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.orline { display: flex; align-items: center; gap: 12px; margin: 18px 0 12px; font: 700 12px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.orline::before, .orline::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.modelline { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1.5px dashed var(--line-2); margin-bottom: 8px; }
.modelline b { display: block; font-size: 15px; }
.modelline small { color: var(--muted); font-size: 13px; }
.ml-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(160deg, #0B1F3F, #1A3563); color: var(--gold); font: 800 12px var(--display); }
.ml-price, .t-price { font: 800 17px var(--display); white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.tradelist { display: grid; gap: 8px; }
.trade { padding: 13px 14px; border-radius: 14px; min-height: 44px; }
.trade.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 70%, var(--field)); }
.trade.warn { border-color: color-mix(in srgb, var(--gold-deep) 55%, var(--line)); }
.trade.warn.on { border-color: var(--accent); }
.trade.off { cursor: default; }
.trade.off .t-name, .trade.off .t-what { color: var(--muted); }
.trade.off .tick { opacity: .45; background: transparent; }
.t-body { display: grid; gap: 3px; min-width: 0; }
.t-name { font-size: 16px; }
.t-what { font-size: 14px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.trade.on .t-what { -webkit-line-clamp: unset; display: block; }
.t-note { font-size: 13px; color: var(--muted); }
.t-price.soon { font: 700 11.5px/1.3 var(--body); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.tflag { position: relative; display: block; margin-top: 3px; padding-left: 22px; font-size: 13px; line-height: 1.4; }
.tflag::before { position: absolute; left: 0; top: 1px; width: 16px; height: 16px; border-radius: 50%; color: #fff; font: 700 11px/16px var(--body); text-align: center; }
.tflag.ok { color: var(--ok); }
.tflag.ok::before { content: "\2713"; background: var(--ok); }
.tflag.warn { color: var(--warn); }
.tflag.warn::before { content: "!"; background: var(--gold-deep); }
.paybar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin: 22px calc(-1 * var(--pad)) calc(-1 * var(--pad)); padding: 14px var(--pad) calc(14px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line);
  border-radius: 0 0 20px 20px; box-shadow: 0 -12px 28px -14px rgba(7, 20, 43, .25); }
.pb-total { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: baseline; min-width: 0; }
.pb-total span { font-size: 14px; color: var(--muted); }
.pb-total b { font: 800 30px/1.1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pb-total small { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.paybar .btn { flex: none; }
/* whole house ticked: every row reads "included", so the rows stay two-line and the takeoff note is said once
   above the list (app.js .tl-note) instead of under six rows */
.housecard.on ~ .tradelist .t-what { display: -webkit-box; -webkit-line-clamp: 2; }
.housecard.on ~ .tradelist .t-note { display: none; }
.tl-note { margin: 0 0 8px; font-size: 13.5px; }
@media (max-width: 560px) {
  /* phones: no price column; the price sits under the trade's name, so the words get the row's width */
  .trade { grid-template-columns: 22px minmax(0, 1fr); }
  .trade .t-price { grid-column: 2; text-align: left; font-size: 15px; }
  .trade .t-price.soon { text-transform: none; letter-spacing: 0; white-space: nowrap; max-width: none; font-size: 13.5px; }
}
@media (max-width: 560px) {
  .housecard { padding: 14px; gap: 10px 12px; }
  .housecard .hc-price { grid-column: 2; font-size: 26px; }
  .hc-name { font-size: 18px; }
  .trade { padding: 12px; gap: 10px 12px; }
  .pb-total b { font-size: 26px; }
  .paybar { border-radius: 0 0 18px 18px; }
  .paybar .btn { padding: 0 18px; }
}
/* 320-374 px: "Send my order" (no Stripe) left the total ~70 px, and "Total $145" ran under the button */
@media (max-width: 374px) {
  .paybar { gap: 10px; }
  .paybar .btn { padding: 0 12px; font-size: 15px; }
  .pb-total { column-gap: 6px; }
  .pb-total span { font-size: 13px; }
  .pb-total b { font-size: 22px; }
}

/* step 4 + the side summary */
.doneico { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 14px; background: var(--gold); color: var(--ink-deep); font: 800 28px var(--display); box-shadow: 0 0 0 8px var(--gold-soft); }
.summary { position: sticky; top: 90px; }
.summary .label { font: 700 12px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.summary dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; font-size: 14px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.summary .total b { font: 800 32px var(--display); letter-spacing: -.02em; }
.summary .note { padding-top: 14px; border-top: 1px dashed var(--line); }
@media (max-width: 900px) { #aside { display: none; } }

/* Your projects */
.orders { margin-top: 28px; }
.orders-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.orders-head h2 { font-size: 24px; margin: 0; }
.proj { padding: 18px 0; border-bottom: 1px solid var(--line); }
.proj:last-child { border-bottom: 0; padding-bottom: 4px; }
.proj-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px 14px; }
.proj-main { flex: 1 1 220px; min-width: 0; display: grid; gap: 2px; }
.proj-main b { font-size: 16px; overflow-wrap: anywhere; }
.proj-main span { font-size: 14px; color: var(--ink-2); }
.chip.st-ready { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.chip.st-review { background: var(--gold); color: var(--ink-deep); }
.chip.st-failed { background: color-mix(in srgb, var(--err) 14%, transparent); color: var(--err); }
.chip.st-cancelled, .chip.st-replaced { background: var(--surface-2); color: var(--muted); }
.track { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 0; margin: 12px 0 4px; }
.track li { padding-top: 7px; border-top: 4px solid var(--line); font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track li.done { border-color: color-mix(in srgb, var(--accent) 70%, var(--line)); }
.track li.on { border-color: var(--gold); color: var(--ink); font-weight: 700; }
.proj-sub { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }
.proj-sub.bad { color: var(--err); }
.proj-sum { margin: 10px 0 0; padding-left: 18px; font-size: 14px; color: var(--ink-2); }
.proj-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.proj-meta { display: block; margin-top: 10px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
@media (max-width: 560px) { .track li { font-size: 11px; } .proj-links .btn { flex: 1 1 100%; } }
@media (max-width: 560px) {
  #step1 .row3 { grid-template-columns: 1fr 1fr; }
  #step1 .row3 > :first-child { grid-column: 1 / -1; }
  .sheets { gap: 0; border: 1px solid var(--line); border-radius: 12px; }
  .sg { border: 0; border-radius: 0; border-bottom: 1px solid var(--line); }
  .sg:last-child { border-bottom: 0; }
  dl.facts { grid-template-columns: 1fr 1fr; gap: 8px; }
}

/* ---------- 10. trade pages (public/<trade>/index.html + 404.html, built by tools/site/build_trades.py) ---------- */
/* hero: breadcrumbs, the trade's render (its video takes the spot once there is one), the live price */
.thero h1 { font-size: clamp(38px, 4.3vw, 58px); }
@media (max-width: 400px) { h1, .thero h1 { font-size: clamp(31px, 10.2vw, 40px); } }
.crumbs { margin: -12px 0 10px; font-size: 14px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
.crumbs li { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 600; }
.crumbs li + li::before { content: ""; width: 7px; height: 7px; margin: 0 12px 0 6px; border: solid var(--muted); border-width: 1.6px 1.6px 0 0; transform: rotate(45deg); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--ink-2); font-weight: 500; text-decoration: none; }
.crumbs a:hover { color: var(--gold); text-decoration: underline; }
.t-media { position: relative; min-width: 0; }
.t-shot { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 90px -40px rgba(0, 0, 0, .8), 0 0 90px -30px rgba(30, 79, 216, .55); }
.t-shot a.pic { display: block; }
.t-shot img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.t-shot .stage-tag { position: absolute; left: 14px; top: 14px; z-index: 1; pointer-events: none; }
.t-shot .zoom { position: absolute; right: 12px; top: 12px; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(7, 20, 43, .72); color: #fff; pointer-events: none; }
.t-media > .vslot { box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 90px -40px rgba(0, 0, 0, .8), 0 0 90px -30px rgba(30, 79, 216, .55); }
.t-media:has(> .vslot:not([hidden])) > .t-shot { display: none; }
.hero-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); max-width: 34em; }
.hero-price b { font: 800 34px/1.05 var(--display); letter-spacing: -.02em; color: var(--gold); font-variant-numeric: tabular-nums; }
.hero-price b.words, .hero-price b.soon { font-size: 22px; color: #fff; }
.hero-price span { font-size: 15px; color: var(--ink-2); }
.soon-note { margin: 0 0 18px; padding: 12px 14px; border-radius: 12px; background: var(--gold-soft); color: var(--ink); border-left: 3px solid var(--gold); font-size: 15px; max-width: 34em; }
.soon-note b { color: var(--gold-text); }
.hero .soon-note { margin: 0 0 22px; }
.navy .soon-note { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(242, 181, 58, .45); }
@media (max-width: 900px) {
  .hero-grid > .t-media { order: 3; margin: 22px 0 4px; }
  .thero .hero-copy > .cta-row { order: 5; }            /* the Upload button stays on the first screen */
  .thero .hero-copy > .soon-note { order: 6; margin: 20px 0 0; }
  .thero .hero-copy > .hero-price { order: 7; }
}
@media (max-width: 560px) {
  /* phones: picture, buttons (and a soon trade's note), then the words; the breadcrumb and H1 name the trade */
  .thero .hero-copy > .cta-row { order: 4; margin-top: 18px; }
  .thero .hero-copy > .soon-note { order: 5; margin: 18px 0 0; }
  .thero .hero-copy > .lede { order: 6; }
  .thero .hero-copy > .hero-price { order: 7; }
  .thero .hero-copy > .eyebrow { display: none; }
  .crumbs { margin: -18px 0 4px; }
  .t-shot { border-radius: 18px; }
  .t-shot .stage-tag { left: 10px; top: 10px; }
  .hero-price b { font-size: 30px; }
}

/* built video slot (tools/seo_build.py): a real <video> under the overlay; the overlay needs site.js */
.vslot[data-built] .vs-play { display: none; }
.vslot[data-built].js .vs-play { display: block; }

/* what you get: the list, the example's own numbers, a second picture */
.what-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); grid-template-rows: auto 1fr; grid-template-areas: "list card" "shot card"; gap: 24px 28px; align-items: start; }
.what-list { grid-area: list; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.what-list h3 { font-size: 22px; margin-bottom: 18px; }
.what-list .note { margin-top: 18px; }
.what-shot { grid-area: shot; }
.ex-card { grid-area: card; border-radius: var(--radius-lg); padding: 28px;
  background: radial-gradient(420px 260px at 100% 0%, rgba(30, 79, 216, .5), transparent 70%), linear-gradient(170deg, var(--navy-a), var(--navy-b)); box-shadow: var(--navy-edge), var(--shadow-lg); }
.ex-card h3 { font-size: 24px; margin: 12px 0 6px; }
.ex-card > p { margin: 0; font-size: 15px; color: var(--ink-2); }
.ex-card .btn { width: 100%; white-space: normal; text-align: center; }
.ex-card .btn + .btn { margin-top: 10px; }
.ex-card .xnote { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); }
table.qty { width: 100%; border-collapse: collapse; margin: 18px 0 22px; font-size: 15px; }
table.qty caption { text-align: left; font: 700 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-bottom: 10px; }
table.qty th, table.qty td { padding: 11px 0; border-top: 1px solid var(--line); vertical-align: baseline; }
table.qty th { text-align: left; font-weight: 500; color: var(--ink); padding-right: 14px; }
table.qty th small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--muted); font-weight: 400; }
table.qty td { text-align: right; white-space: nowrap; font: 800 17px/1.2 var(--display); color: var(--gold); font-variant-numeric: tabular-nums; }
table.qty tr.grp th { padding-top: 18px; font: 700 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
/* desktop: the picture's card runs down to the example card's foot (its caption takes the spare height), so the
   left column doesn't stop short of the tall example card */
@media (min-width: 901px) {
  .what-grid { align-items: stretch; }
  .what-list { align-self: start; }
  .what-shot { display: flex; flex-direction: column; }
  .what-shot figcaption { flex: 1; }
}
@media (max-width: 900px) { .what-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "list" "card" "shot"; } }
@media (max-width: 560px) { .what-list, .ex-card { padding: 22px 18px; } table.qty td { font-size: 16px; } }

/* how it works, five steps: upload, read, 3D, bid, your 10-minute check */
.flow5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.flow5 li { padding: 22px 18px 20px; }
.flow5 li::after { right: -15px; width: 16px; }
.flow5 h3 { font-size: 18px; }
.flow5 p { font-size: 14.5px; }
@media (max-width: 1100px) {
  .flow5 { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .flow5 li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 2px 16px; padding: 16px 18px; }
  .flow5 .ico { grid-row: span 2; margin: 0; }
  .flow5 li::after { display: none; }
  .flow5 .n { top: 16px; right: 18px; }
}

/* who it's for, on the price cards: each audience's card carries its pitch and its price (no separate section) */
.aud-top { display: flex; align-items: center; gap: 14px; }
.aud-top .chip { white-space: normal; line-height: 1.3; }   /* "Siding contractors · one trade" wraps at 320 px instead of overflowing */
.aud-ico { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.aud-ico svg { width: 28px; height: 28px; }
.aud-ico.gold { background: var(--gold-soft); color: var(--gold-text); }
.pcard .aud-top + h3 { margin-top: 18px; }
.pcard .pc-p { margin: 8px 0 0; color: var(--ink-2); }
@media (max-width: 560px) { .aud-ico { width: 44px; height: 44px; border-radius: 12px; } .aud-ico svg { width: 24px; height: 24px; } }

/* price: this trade + the model's page tiers, next to the whole house */
.tp-price .pcard .big b.soon { font-size: 26px; color: var(--muted); }
.tp-price .pcard .soon-note { max-width: none; margin: 18px 0; }
.tp-price { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
@media (max-width: 900px) { .tp-price { grid-template-columns: minmax(0, 1fr); } }
.tp-price .ptable { margin: 18px 0 4px; }
.tp-price .tiers { margin-bottom: 24px; }
.tp-price .navy ul.checks { margin-bottom: 26px; }

/* related trades: three cards; one per row on phones, the picture beside the words */
@media (max-width: 700px) {
  .tgrid.rel { grid-template-columns: minmax(0, 1fr); }
  .tgrid.rel .tcard { grid-template-columns: minmax(0, 40%) minmax(0, 1fr); grid-template-rows: none; }
  .tgrid.rel .tcard .pic { height: auto; margin: var(--print) 0 var(--print) var(--print); }
  .tgrid.rel .tcard img { height: 100%; min-height: 104px; aspect-ratio: auto; }
  .tgrid.rel .tcard .tb { align-content: center; }
  .tgrid.rel .tcard .what { display: block; font-size: 13px; line-height: 1.4; }
}

/* 404 */
.nf { padding: clamp(56px, 8vw, 110px) 0; }
.nf .lede { margin-bottom: 30px; }
@media (max-width: 900px) { .nf .nf-pic { display: none; } .nf .hero-copy > .lede { order: 3; margin: 18px 0 28px; } .nf .hero-copy > .cta-row { order: 4; margin-top: 0; } }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .rs-spin { animation: none; }
  .indet i { animation: none; width: 100%; opacity: .5; }
  .shot:hover, .tcard:hover { transform: none; }
}

/* ---------- legal pages (terms, privacy): one readable column ---------- */
.legal-page { padding: clamp(36px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.legal { max-width: 72ch; margin: 0 auto; color: var(--ink-2); font-size: 16.5px; line-height: 1.65; }
.legal h1 { font-size: clamp(34px, 4vw, 48px); }
.legal h2 { font-size: clamp(21px, 2.2vw, 25px); line-height: 1.2; margin: 40px 0 12px; scroll-margin-top: 88px; }
.legal h3 { font-family: var(--body); font-size: 16.5px; font-weight: 700; margin: 22px 0 6px; }
.legal p { margin: 0 0 14px; }
.legal ul { padding-left: 1.2em; margin: 0 0 16px; }
.legal li { margin: 6px 0; }
.legal b { color: var(--ink); }
.legal a { color: var(--link); text-underline-offset: 2px; }
.legal-date { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.legal .legal-lede { font-size: 18px; color: var(--ink); margin-top: 22px; }
.legal-toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 20px; margin: 22px 0 8px; font-size: 15px; }
.legal-toc ol { margin: 0; padding-left: 1.3em; columns: 2 15em; column-gap: 28px; }
.legal-toc li { margin: 3px 0; break-inside: avoid; }
.legal-callout { background: var(--gold-soft); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 12px; padding: 16px 20px 6px; }
.legal-callout ul { margin-bottom: 10px; }
.legal mark.ph { background: #FFE58A; color: #3A2A00; padding: 0 .25em; border-radius: 4px; }
.legal .draft-flag { background: var(--accent-soft); border: 1px dashed var(--accent); border-radius: 10px; padding: 10px 14px; font-size: 14.5px; color: var(--ink); margin-bottom: 26px; }
.legal .legal-see { margin-top: 28px; color: var(--muted); }
.consent-note { font-size: 13.5px; color: var(--muted); margin: 10px 0 0; text-align: center; }
.consent-note a { color: var(--link); }

/* ---------- supplier order sheet (/order-sheet): the sheet is paper in both themes; print = the sheet alone ---------- */
.os-page { padding: clamp(28px, 5vw, 56px) 0 clamp(48px, 7vw, 88px); }
.os-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 28px; margin-bottom: 18px; }
.os-head h1 { font-size: clamp(30px, 3.6vw, 44px); }
.os-lede { color: var(--ink-2); margin: 10px 0 0; max-width: 46em; }
.os-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.os-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 2px 10px; margin-bottom: 8px; }
.os-tabs button { flex: none; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  font: 600 14.5px/1.2 var(--body); cursor: pointer; }
.os-tabs button[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: #07142B; }
.os-sheet { background: #fff; color: #0B1F3F; border: 1px solid #DCE3EF; border-radius: 16px; box-shadow: var(--shadow); padding: clamp(18px, 3vw, 34px); max-width: 980px; }
.os-sheet-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 14px; border-bottom: 3px solid #F2B53A; margin-bottom: 18px; }
.os-kicker { font: 700 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: #1E4FD8; margin-bottom: 8px; }
.os-sheet h2 { color: #0B1F3F; font-size: clamp(21px, 2.4vw, 28px); line-height: 1.15; }
.os-meta { color: #56647F; font-size: 14px; margin: 6px 0 0; }
.os-brand { display: flex; align-items: center; gap: 8px; font: 800 15px/1 var(--display); color: #0B1F3F; white-space: nowrap; }
.os-group + .os-group { margin-top: 22px; }
.os-group h3 { display: flex; justify-content: space-between; gap: 12px; font: 700 13px/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; color: #33445F; margin: 0 0 6px; }
.os-group h3 span { letter-spacing: 0; text-transform: none; color: #8A5E00; }
.os-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.os-table th { text-align: left; font: 700 11.5px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: #56647F; padding: 8px 8px; border-bottom: 1px solid #C4CFE2; }
.os-table td { padding: 9px 8px; border-bottom: 1px solid #EDF1F8; vertical-align: top; color: #0B1F3F; }
.os-table .q { width: 5.5em; text-align: right; font-weight: 700; white-space: nowrap; }
.os-table .u { width: 4.5em; color: #33445F; white-space: nowrap; }
.os-table .n { width: 13em; color: #56647F; font-size: 14px; }
.os-table tr.more td { color: #56647F; font-style: italic; }
.os-table .n-in { display: none; color: #56647F; font-size: 13px; margin-top: 2px; }
.os-unknowns { margin-top: 20px; background: #FDF3DC; border-left: 4px solid #F2B53A; border-radius: 10px; padding: 12px 16px; }
.os-unknowns h3 { font: 700 14px/1.2 var(--body); color: #0B1F3F; margin: 0 0 6px; }
.os-unknowns ul { margin: 0; padding-left: 1.2em; color: #33445F; font-size: 14.5px; }
.os-foot { margin-top: 22px; padding-top: 12px; border-top: 1px solid #DCE3EF; font-size: 13.5px; color: #56647F; }
.os-foot p { margin: 0 0 4px; }
.os-disc b { color: #0B1F3F; }
.os-note { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
@media (max-width: 720px) {
  .os-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
}
@media (max-width: 560px) {
  .os-table .n { display: none; }
  .os-table .n-in { display: block; }
  .os-table .q { width: 4.2em; }
  .os-table .u { width: 3.4em; }
  .os-brand { display: none; }
  .os-actions .btn { flex: 1 1 auto; }
}
@media print {
  @page { margin: 14mm; }
  html, body.os-body { background: #fff !important; }
  .os-body .skip, .os-body header.top, .os-body footer.foot, .os-head, .os-tabs, .os-note, .os-body .msg { display: none !important; }
  .os-page { padding: 0; }
  .os-page .wrap { max-width: none; padding: 0; }
  .os-sheet { border: 0; box-shadow: none; border-radius: 0; padding: 0; max-width: none; }
  .os-table tr, .os-unknowns, .os-foot { break-inside: avoid; }
  .os-table .n { display: table-cell !important; }
  .os-table .n-in { display: none !important; }
}
