/* ==========================================================================
   The Trade Pack - HOMEPAGE ONLY (loaded by index.html, scoped to html.home)
   Builds on site.css and its html.dark system. Inner pages never load this.
   Rule of this file: nothing is hidden by CSS alone. Anything that starts
   hidden for motion is hidden by JS at runtime, or under html.home-anim,
   which the head script removes if home.js has not started in 2.5s.
   ========================================================================== */

:root { interpolate-size: allow-keywords; }
html.home { --hx: var(--max); --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --amber: #FFA45C; }
html.home body { overflow-x: clip; }
.home .container { max-width: var(--max); }

/* ---------- utilities ---------- */
.home .skip-link { position: absolute; left: 16px; top: -80px; z-index: 100; background: #fff; color: #0B1626; padding: 12px 18px; border-radius: 10px; font-weight: 600; }
.home .skip-link:focus { top: 12px; color: #0B1626; }
.home a:focus-visible, .home button:focus-visible, .home summary:focus-visible, .home [tabindex]:focus-visible, .home .btn:focus-visible {
  outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 10px;
}
.home .trade-panel:focus-visible { outline-offset: 8px; }
.home .eyebrow { font-size: 12px; letter-spacing: 0.14em; margin-bottom: 22px; }
.home .h-link { color: var(--amber); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.home .h-link span { transition: transform .25s var(--ease-out); }
.home .h-link:hover { color: #fff; }
.home .h-link:hover span { transform: translateX(4px); }
.home .btn-nav { padding: 11px 20px; font-size: 14px; min-height: 44px; }
.home .btn { will-change: auto; }
.home .btn-primary { transition: background .18s ease, box-shadow .25s var(--ease-out), transform .25s var(--ease-out); }
.home .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(232,100,10,0.65); }
.home .btn.magnetic.is-mag:hover { transform: none; }
.home .h-num, .home [data-count] { font-variant-numeric: tabular-nums; }

/* Cursor-following soft highlight (pointer position set by home.js as --mx/--my) */
.home .spot { position: relative; isolation: isolate; }
.home .spot::before { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(232,100,10,0.11), transparent 62%);
  opacity: 0; transition: opacity .35s ease; }
.home .spot:hover::before { opacity: 1; }

/* ==========================================================================
   1. HERO
   ========================================================================== */
.home .h-hero { min-height: min(calc(100svh - 70px), 920px); display: flex; align-items: center; padding: clamp(40px, 6vh, 72px) 0 clamp(72px, 10vh, 112px); }
.home .h-hero-inner { max-width: var(--hx); width: 100%; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(24px, 3vw, 48px); align-items: center; }
.home .hero-field { opacity: 0.9; }
.home .h-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--text-2); margin-bottom: 28px;
  padding: 7px 14px 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255,255,255,0.03); }
.home .h-kicker-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(232,100,10,0.18); flex-shrink: 0; }
html.dark.home .hero-dark h1.h-title { font-size: clamp(46px, 5.2vw, 78px); line-height: 0.98; letter-spacing: -0.025em; max-width: none; margin-bottom: 30px; font-weight: 400; }
.home .h-title .accent { font-style: italic; }
.home .nw { white-space: nowrap; }
.home h2 { text-wrap: balance; }
.home .hero-sub { max-width: 520px; font-size: clamp(17px, 1.45vw, 20px); margin-bottom: 36px; }
.home .hero-ctas { gap: 12px; }
.home .h-price { margin-top: 30px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; color: var(--mute); font-size: 14px; }
.home .h-price-now { font-family: 'Instrument Serif', Georgia, serif; font-size: 34px; color: var(--text); line-height: 1; }
.home .h-price-was { font-family: 'Instrument Serif', Georgia, serif; font-size: 22px; color: var(--mute); text-decoration: line-through; text-decoration-thickness: 1px; line-height: 1; }
.home .h-price-note { flex-basis: 100%; }

/* stage: the static deck is the default; the WebGL canvas fades in over it */
html.dark.home .h-stage { position: relative; height: clamp(520px, 44vw, 660px); perspective: none; }
.home .h-deck { position: absolute; inset: 0; perspective: 1600px; transition: opacity .7s ease; }
.home .h-gl { position: absolute; top: -14%; bottom: -12%; left: -2%; right: -30%; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .9s ease; }
.home .h-gl canvas { width: 100% !important; height: 100% !important; display: block; }
.home .h-gl.is-live { opacity: 1; }
.home .h-stage.gl-on .h-deck { opacity: 0; }
html.dark.home .h-stage .hero-caption { z-index: 4; left: 4%; bottom: -6px; }
.home .h-cap-sub { transition: opacity .3s ease; }
.home .h-scroll { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid var(--line-2); border-radius: 14px; display: flex; justify-content: center; }
.home .h-scroll span { width: 3px; height: 8px; border-radius: 2px; background: var(--orange); margin-top: 8px; animation: hScroll 2.2s var(--ease-out) infinite; }
@keyframes hScroll { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }

/* intro guard: hidden only while home.js is confirmed running (see head script) */
html.home-anim .js-intro { opacity: 0; }
html.home-anim .h-stage { opacity: 0; }

@media (max-width: 1100px) {
  html.dark.home .hero-dark h1.h-title { font-size: clamp(44px, 6.4vw, 72px); }
}
@media (max-width: 900px) {
  .home .h-hero { min-height: 0; padding: 36px 0 56px; }
  .home .h-hero-inner { grid-template-columns: 1fr; gap: 28px; }
  html.dark.home .hero-dark h1.h-title { font-size: clamp(42px, 11vw, 64px); max-width: 12ch; }
  .home .h-scroll { display: none; }
  .home .h-gl { display: none; }
  /* a cropped, tilted pair of real pages instead of the full deck */
  html.dark.home .h-stage { height: auto; }
  .home .h-deck { position: relative; inset: auto; height: clamp(320px, 84vw, 480px); overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent); }
  html.dark.home .h-stage .hdoc { position: absolute !important; display: block !important; height: auto !important; opacity: 1 !important; }
  html.dark.home .h-stage .hd1 { left: 8% !important; top: 26px; width: 68% !important; transform: rotate(-4deg) !important; z-index: 3; }
  html.dark.home .h-stage .hd2 { left: 34% !important; top: 8px; width: 60% !important; transform: rotate(5deg) !important; z-index: 2; opacity: 0.75 !important; }
  html.dark.home .h-stage .hd3 { display: none !important; }
  html.dark.home .h-stage .hero-caption { position: relative; left: auto; bottom: auto; width: auto; margin: -24px 0 0; }
}
@media (max-width: 420px) {
  .home .hero-ctas .btn { width: 100%; }
}

/* ---------- trust strip ---------- */
html.dark.home .h-trust { padding: 26px 0; background: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.home .h-trust-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
html.dark.home .h-trust .trust-bar-label { margin: 0; text-align: left; max-width: 300px; font-size: 11px; line-height: 1.6; }
.home .h-trust .trust-logos { gap: 16px; justify-content: flex-end; }
html.dark.home .h-trust .trust-logos img { height: 52px; padding: 7px 11px; }
@media (max-width: 900px) {
  .home .h-trust-inner { flex-direction: column; gap: 18px; }
  html.dark.home .h-trust .trust-bar-label { text-align: center; max-width: none; }
  .home .h-trust .trust-logos { justify-content: center; gap: 12px; }
  html.dark.home .h-trust .trust-logos img { height: 44px; }
}

/* ==========================================================================
   2. PROBLEM: one statement, three facts
   ========================================================================== */
.home .h-problem { padding: clamp(96px, 13vw, 176px) 0 clamp(80px, 10vw, 136px); }
html.dark.home .h-statement { font-size: clamp(38px, 5.6vw, 84px); line-height: 1.02; letter-spacing: -0.025em; max-width: 17ch; margin-bottom: clamp(56px, 7vw, 96px); }
.home .h-statement em { font-style: italic; color: var(--mute); }
.home .h-ledger { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.home .h-ledger li { border-top: 1px solid var(--line-2); padding-top: 26px; }
.home .h-ledger-n { display: block; font-family: 'Instrument Serif', Georgia, serif; font-style: italic; color: var(--orange); font-size: 20px; margin-bottom: 18px; }
html.dark.home .h-ledger h3 { font-size: 22px; margin-bottom: 10px; }
.home .h-ledger p { color: var(--text-2); font-size: 16px; margin: 0; max-width: 34ch; }
.home .h-ledger .h-num { color: var(--text); font-weight: 600; }
@media (max-width: 820px) { .home .h-ledger { grid-template-columns: 1fr; gap: 32px; } }

/* ==========================================================================
   3. SEE THE DIFFERENCE: the centrepiece
   ========================================================================== */
html.dark.home .h-demo { padding: 0; background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; overflow: clip; }
.home .h-demo-pin { padding: clamp(88px, 11vw, 140px) 0; position: relative; }
.home .h-demo-inner { max-width: var(--hx); display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); column-gap: clamp(40px, 6vw, 96px); align-items: center; }
.home .h-demo-head { grid-column: 1; grid-row: 1; align-self: end; }
html.dark.home .h-demo-head h2 { font-size: clamp(38px, 4.4vw, 66px); line-height: 1.0; letter-spacing: -0.025em; margin-bottom: 18px; }
.home .h-demo-head p { color: var(--text-2); font-size: 17px; max-width: 44ch; margin-bottom: 36px; }
.home .h-demo-stage { display: contents; }
.home .h-before { grid-column: 1; grid-row: 2; align-self: start; }
.home .h-after { grid-column: 2; grid-row: 1 / span 2; }
.home .h-demo-arrow { display: none; }
.home .h-demo-progress { display: none; }
.home .h-demo .demo-note { grid-column: 1 / -1; grid-row: 3; text-align: center; margin: 36px auto 0; color: var(--mute); font-size: 13.5px; }
html.dark.home .h-before .msg-card { max-width: 400px; border: 1px solid var(--line); padding: 20px; border-radius: 22px; }
.home .h-before .msg-bubble { font-size: 16px; line-height: 1.55; }
.home .msg-bubble mark { background: transparent; color: inherit; border-radius: 4px; padding: 0 2px; margin: 0 -2px; box-shadow: inset 0 0 0 transparent; }
.home .h-before .demo-gaps { margin-top: 20px; }
.home .demo-label { margin-bottom: 16px; }

/* the proposal, built in HTML so each line can arrive on its own */
.home .qdoc { background: #fff; border-radius: 16px; overflow: hidden; color: #0F1E30; font-family: 'Inter', sans-serif;
  box-shadow: 0 50px 100px -40px rgba(0,0,0,0.85), 0 0 0 1px rgba(255,255,255,0.10); max-width: 580px; }
.home .qdoc-band { background: #1C3353; padding: 22px 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; transform-origin: left center; }
.home .qdoc-title { font-family: 'Instrument Serif', Georgia, serif; color: #fff; font-size: 26px; line-height: 1.1; }
.home .qdoc-for { color: #C9D6E6; font-size: 12.5px; margin-top: 4px; }
.home .qdoc-logo { background: #E8640A; color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; padding: 10px 12px; border-radius: 7px; white-space: nowrap; }
.home .qdoc-rule { height: 4px; background: #E8640A; transform-origin: left center; }
.home .qdoc-body { padding: 20px 28px 24px; }
.home .qdoc-h { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #5A6B7D; padding-bottom: 8px; border-bottom: 1px solid #E5DFD3; margin-bottom: 4px; }
.home .qdoc-h2 { margin-top: 18px; border-bottom: 0; margin-bottom: 0; }
.home .qdoc-row { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; padding: 9px 0; border-bottom: 1px solid #F0EADD; position: relative; }
.home .qdoc-row span { color: #0F1E30; }
.home .qdoc-row b { color: #1C3353; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.home .qdoc-total { display: flex; justify-content: space-between; align-items: center; background: #F9F5EF; border-radius: 10px; padding: 12px 16px; margin-top: 12px; }
.home .qdoc-total span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #5A6B7D; }
.home .qdoc-total b { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: 32px; line-height: 1; color: #C8560A; font-variant-numeric: tabular-nums; }
.home .qdoc-inc { list-style: none; margin: 8px 0 0; }
.home .qdoc-inc li { font-size: 13.5px; padding: 4px 0 4px 20px; position: relative; color: #0F1E30; }
.home .qdoc-inc li::before { content: ''; position: absolute; left: 2px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: #2D7A4A; }
.home .qdoc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; gap: 12px; }
.home .qdoc-accept { background: #1C3353; color: #fff; font-size: 13px; font-weight: 600; padding: 12px 20px; border-radius: 9px; }
.home .qdoc-valid { font-size: 12px; color: #5A6B7D; }
html.dark.home .h-after .demo-sent { margin: 18px 0 0; }

/* scrub mode (desktop, set by home.js): a progress rail under the scene */
.home .h-demo.is-scrub .h-demo-progress { display: block; position: absolute; left: 50%; bottom: 36px; width: 180px; margin-left: -90px; height: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.home .h-demo.is-scrub .h-demo-progress span { display: block; height: 100%; background: var(--orange); transform-origin: left; transform: scaleX(0); }

@media (max-width: 1023px) {
  .home .h-demo-inner { grid-template-columns: 1fr; }
  .home .h-demo-head, .home .h-before, .home .h-after, .home .h-demo .demo-note { grid-column: 1; grid-row: auto; }
  .home .h-demo-head { text-align: left; }
  .home .h-demo-arrow { display: block; color: var(--orange); width: 24px; height: 64px; margin: 20px auto; }
  .home .h-demo-arrow svg { width: 64px; height: 24px; transform: rotate(90deg) translate(20px, 20px); }
  .home .qdoc { max-width: 100%; }
}
@media (max-width: 520px) {
  .home .qdoc-band { padding: 16px 18px; }
  .home .qdoc-title { font-size: 21px; }
  .home .qdoc-body { padding: 14px 16px 18px; }
  .home .qdoc-row { font-size: 13px; }
  .home .qdoc-logo { padding: 8px 9px; font-size: 9.5px; }
  html.dark.home .h-after .demo-sent { white-space: normal; text-align: center; width: auto; max-width: 100%; }
}

/* ==========================================================================
   4. WHAT'S INSIDE
   ========================================================================== */
html.dark.home .h-inside { background: var(--ink); border: 0; padding: clamp(96px, 12vw, 160px) 0; }
.home .h-inside-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.home .h-inside-sticky { position: sticky; top: 104px; }
.home .h-nine { font-family: 'Instrument Serif', Georgia, serif; font-size: clamp(120px, 15vw, 220px); line-height: 0.78; color: var(--orange); letter-spacing: -0.04em; margin: 0 0 18px -6px; font-style: italic; }
html.dark.home .h-inside h2 { font-size: clamp(34px, 3.8vw, 54px); line-height: 1.02; letter-spacing: -0.02em; max-width: 12ch; }
.home .h-inside-lede { color: var(--text-2); max-width: 36ch; }
.home .h-pages { position: relative; height: 250px; margin-top: 34px; max-width: 340px; }
.home .h-page { position: absolute; top: 0; width: 150px; height: auto; border-radius: 6px; background: #fff; box-shadow: 0 28px 60px -24px rgba(0,0,0,0.9); transition: transform .6s var(--ease-out), opacity .4s ease; opacity: .72; }
.home .h-page[data-page="proposal"] { left: 0; transform: rotate(-7deg) translateY(14px); z-index: 1; }
.home .h-page[data-page="followup"] { left: 95px; transform: rotate(0deg); z-index: 1; }
.home .h-page[data-page="signoff"] { left: 190px; transform: rotate(7deg) translateY(14px); z-index: 1; }
.home .h-page.is-front { opacity: 1; z-index: 3; transform: rotate(0deg) translateY(-12px) scale(1.06); }
.home .h-contents { list-style: none; counter-reset: none; }
.home .h-contents li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 26px 24px 26px 16px; border-bottom: 1px solid var(--line); border-radius: 14px; transition: background .3s ease; }
.home .h-contents li:first-child { border-top: 1px solid var(--line); }
.home .h-idx { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-size: 22px; color: var(--orange); line-height: 1.3; transition: transform .35s var(--ease-out); }
.home .h-contents li:hover .h-idx, .home .h-contents li.is-active .h-idx { transform: translateX(6px); }
.home .h-contents strong { display: block; color: var(--text); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 4px; }
.home .h-contents div span { color: var(--text-2); font-size: 15.5px; }
@media (max-width: 860px) {
  .home .h-inside-grid { grid-template-columns: 1fr; }
  .home .h-inside-sticky { position: static; }
  .home .h-pages { display: none; }
  .home .h-nine { font-size: 120px; }
  .home .h-contents li { grid-template-columns: 40px 1fr; padding: 22px 8px; }
}

/* ==========================================================================
   5. TRADES
   ========================================================================== */
html.dark.home .h-trades { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(88px, 11vw, 144px) 0; }
.home .h-trades-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 48px; flex-wrap: wrap; }
html.dark.home .h-trades-head h2 { font-size: clamp(34px, 4vw, 58px); line-height: 1.02; letter-spacing: -0.02em; max-width: 14ch; margin: 0; }
.home .h-tabs { position: relative; display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 5px; margin: 0; border: 1px solid var(--line-2); border-radius: 999px; background: var(--ink); }
html.dark.home .h-tabs .trade-tab { position: relative; z-index: 1; background: transparent; border: 0; color: var(--text-2); min-height: 44px; padding: 10px 20px; box-shadow: none; transform: none; }
html.dark.home .h-tabs .trade-tab:hover { color: var(--text); }
html.dark.home .h-tabs .trade-tab.active { background: var(--orange); color: #fff; }
html.dark.home .h-tabs.has-ink .trade-tab.active { background: transparent; }
.home .h-tab-ink { position: absolute; z-index: 0; top: 5px; left: 5px; height: 44px; width: 0; border-radius: 999px; background: var(--orange); box-shadow: 0 10px 26px -10px rgba(232,100,10,0.7); opacity: 0; }
.home .h-tabs.has-ink .h-tab-ink { opacity: 1; }
.home .h-panels { position: relative; }
html.dark.home .h-trades .trade-panel.active { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); }
.home .h-panels.gs .trade-panel.active { animation: none; }
html.dark.home .h-trades .trade-panel h3 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.05; font-weight: 400; }
.home .h-panel-copy > p { color: var(--text-2); font-size: 17px; }
.home .h-trades .trade-panel li { border-bottom: 1px solid var(--line); padding: 12px 0; }
.home .h-trades .trade-photo { aspect-ratio: 5 / 4; max-height: 520px; border-radius: 22px; box-shadow: 0 50px 90px -40px rgba(0,0,0,0.9); }
.home .h-trades .trade-photo img { transform-origin: center; }
@media (max-width: 860px) {
  html.dark.home .h-trades .trade-panel.active { grid-template-columns: 1fr; }
  .home .h-tabs { border-radius: 18px; width: 100%; }
  html.dark.home .h-tabs .trade-tab { flex: 1 1 auto; padding: 10px 14px; }
  .home .h-tab-ink { border-radius: 14px; }
  .home .h-trades .trade-photo { order: -1; aspect-ratio: 16 / 10; }
}

/* ==========================================================================
   6. HOW IT WORKS: a line, three numbers
   ========================================================================== */
html.dark.home .h-how { padding: clamp(96px, 12vw, 160px) 0; }
.home .h-how-head { text-align: center; margin: 0 auto 72px; max-width: 760px; }
.home .h-how-head .eyebrow { justify-content: center; }
html.dark.home .h-how-head h2 { font-size: clamp(34px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -0.02em; }
.home .h-steps-wrap { position: relative; }
.home .h-steps-line { position: absolute; top: 36px; left: 16.66%; right: 16.66%; height: 1px; background: var(--line-2); }
.home .h-steps-line span { display: block; height: 100%; background: var(--orange); transform-origin: left center; }
.home .h-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); position: relative; }
.home .h-step { text-align: center; padding: 0 8px; }
.home .h-step-n { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; margin: 0 auto 28px; border-radius: 50%; background: var(--ink); border: 1px solid var(--line-2);
  font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-size: 38px; color: var(--orange); line-height: 1; }
html.dark.home .h-step h3 { font-size: 21px; margin-bottom: 10px; }
.home .h-step p { color: var(--text-2); font-size: 15.5px; max-width: 32ch; margin: 0 auto; }
@media (max-width: 820px) {
  .home .h-steps { grid-template-columns: 1fr; gap: 40px; }
  .home .h-steps-line { top: 36px; bottom: 36px; left: 36px; right: auto; width: 1px; height: auto; }
  .home .h-steps-line span { width: 100%; height: 100%; transform-origin: top center; }
  .home .h-step { text-align: left; display: grid; grid-template-columns: 72px 1fr; column-gap: 20px; padding: 0; }
  .home .h-step-n { grid-row: span 2; margin: 0; }
  .home .h-step p { margin: 0; }
}

/* ==========================================================================
   7. FOLLOW-UP: messages arrive on a phone
   ========================================================================== */
html.dark.home .h-seq { padding: 0; background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: clip; }
.home .h-seq-pin { padding: clamp(88px, 11vw, 140px) 0 clamp(64px, 8vw, 96px); }
.home .h-seq-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
html.dark.home .h-seq-copy h2 { font-size: clamp(34px, 3.9vw, 56px); line-height: 1.02; letter-spacing: -0.02em; max-width: 15ch; }
.home .h-seq-lede { color: var(--text-2); max-width: 48ch; margin-bottom: 28px; }
.home .h-seq-steps { list-style: none; }
.home .h-seq-step { display: grid; grid-template-columns: 76px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); transition: opacity .4s ease; }
.home .h-seq-step .seq-day { margin: 2px 0 0; justify-self: start; align-self: start; }
html.dark.home .h-seq-step h3 { font-size: 17px; margin-bottom: 4px; color: var(--text); }
.home .h-seq-step p { font-size: 14.5px; color: var(--text-2); margin: 0; line-height: 1.5; }
html.dark.home .h-seq-step.seq-won { background: transparent; border-color: var(--line); }
html.dark.home .h-seq-step.seq-won .seq-day { background: rgba(45,122,74,0.3); color: #9FE3B8; }
.home .h-seq.is-scrub .h-seq-step { opacity: 0.4; }
.home .h-seq.is-scrub .h-seq-step.is-on { opacity: 1; }
.home .h-seq.is-scrub .h-seq-step.is-on .seq-day { background: var(--orange); color: #fff; }
html.dark.home .h-seq.is-scrub .h-seq-step.seq-won.is-on .seq-day { background: #2D7A4A; color: #fff; }
.home .h-seq .seq-note { text-align: left; margin: 36px 0 0; max-width: 70ch; color: var(--mute); }

.home .h-phone-wrap { display: flex; justify-content: center; }
.home .h-phone { position: relative; width: 340px; max-width: 100%; height: 640px; border-radius: 48px; background: #05090F; padding: 12px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.14), 0 0 0 7px #1a2536, 0 60px 120px -40px rgba(0,0,0,0.95); }
.home .h-phone-notch { position: absolute; top: 20px; left: 50%; width: 96px; height: 26px; margin-left: -48px; border-radius: 20px; background: #000; z-index: 2; }
.home .h-phone-top { display: flex; align-items: center; gap: 10px; padding: 56px 18px 14px; border-radius: 38px 38px 0 0; background: #F2F2F5; border-bottom: 1px solid #DEDEE3; }
.home .h-phone-av { width: 36px; height: 36px; border-radius: 50%; background: #8E97A6; color: #fff; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.home .h-phone-top b { display: block; font-size: 14px; color: #111; }
.home .h-phone-top span { font-size: 12px; color: #555; }
.home .h-phone-thread { position: relative; background: #fff; height: calc(100% - 107px); border-radius: 0 0 38px 38px; padding: 14px 12px 18px; overflow: hidden; }
.home .h-thread-inner { display: flex; flex-direction: column; gap: 10px; }
.home .h-msg { align-self: flex-end; max-width: 86%; }
.home .h-msg-day { display: block; text-align: right; font-size: 10.5px; font-weight: 600; color: #555; margin: 0 6px 4px; letter-spacing: .02em; }
.home .h-msg p { background: #0060DF; color: #fff; font-size: 13px; line-height: 1.42; padding: 9px 13px; border-radius: 18px 18px 5px 18px; margin: 0; }
.home .h-msg-doc { display: flex; gap: 10px; align-items: center; background: #EDEDF2; border-radius: 16px; padding: 10px 12px; }
.home .h-doc-ic { width: 30px; height: 38px; border-radius: 4px; background: #fff; border: 1px solid #D0D0D8; position: relative; flex-shrink: 0; }
.home .h-doc-ic::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 9px; background: #1C3353; border-bottom: 2px solid #E8640A; border-radius: 3px 3px 0 0; }
.home .h-msg-doc b { display: block; font-size: 12px; color: #111; }
.home .h-msg-doc span { font-size: 11px; color: #555; }
.home .h-msg-end { align-self: center; max-width: none; }
.home .h-msg-end span { display: inline-block; font-size: 11px; font-weight: 600; color: #1F6B3B; background: #E3F2E8; padding: 5px 10px; border-radius: 999px; }
@media (max-width: 1023px) {
  .home .h-seq-grid { grid-template-columns: 1fr; }
  .home .h-phone { height: auto; }
  .home .h-phone-thread { height: auto; }
}
@media (max-width: 400px) {
  .home .h-phone { border-radius: 40px; }
  .home .h-seq-step { grid-template-columns: 1fr; gap: 8px; }
}

/* ==========================================================================
   8. FOUNDING
   ========================================================================== */
html.dark.home .h-founding { background: var(--ink); border: 0; padding: clamp(96px, 12vw, 160px) 0; }
.home .h-founding-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.home .h-founding-price { position: sticky; top: 110px; }
.home .h-big-price { font-family: 'Instrument Serif', Georgia, serif; font-size: clamp(104px, 13vw, 200px); line-height: 0.85; color: var(--text); letter-spacing: -0.04em; }
.home .h-was { font-size: 18px; color: var(--mute); margin-top: 14px; }
.home .h-was s { color: var(--text-2); }
html.dark.home .h-founding-copy h2 { font-size: clamp(34px, 4vw, 58px); line-height: 1.02; letter-spacing: -0.02em; }
.home .h-founding-lede { font-size: 18px; color: var(--text-2); max-width: 56ch; margin-bottom: 40px; }
.home .h-founding-lede strong { color: var(--text); }
.home .h-frow { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); column-gap: 32px; padding: 28px 20px; border-top: 1px solid var(--line); border-radius: 14px; }
.home .h-frow:last-child { border-bottom: 1px solid var(--line); }
html.dark.home .h-frow h3 { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: 26px; line-height: 1.1; grid-row: span 2; }
.home .h-frow p { color: var(--text-2); font-size: 15.5px; margin-bottom: 6px; }
.home .h-frow .h-link { grid-column: 2; justify-self: start; }
@media (max-width: 860px) {
  .home .h-founding-grid { grid-template-columns: 1fr; }
  .home .h-founding-price { position: static; }
  .home .h-frow { grid-template-columns: 1fr; padding: 24px 4px; }
  html.dark.home .h-frow h3 { grid-row: auto; margin-bottom: 8px; }
  .home .h-frow .h-link { grid-column: 1; }
}

/* ==========================================================================
   9. PRICING, 10. FOUNDER, 11. FAQ
   ========================================================================== */
html.dark.home .h-pricing { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(96px, 12vw, 152px) 0; }
.home .h-pricing-head { max-width: 760px; margin-bottom: 56px; }
html.dark.home .h-pricing-head h2 { font-size: clamp(44px, 6vw, 92px); line-height: 0.98; letter-spacing: -0.03em; }
.home .compare { box-shadow: 0 60px 120px -60px rgba(0,0,0,0.9); }
.home .compare-sub { font-size: 14px; margin: 8px 0 0; color: var(--text-2); }
.home .compare-foot-note { font-size: 14px; text-align: center; }
.home .compare-price { font-size: 44px; }

html.dark.home .h-founder h2 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.04; letter-spacing: -0.02em; }
.home .founder-stat .n { font-size: 40px; }

html.dark.home .h-faq { padding: clamp(96px, 12vw, 152px) 0; }
.home .h-faq-grid { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.home .h-faq-side { position: sticky; top: 110px; }
html.dark.home .h-faq-side h2 { font-size: clamp(38px, 4.6vw, 68px); line-height: 1; letter-spacing: -0.02em; }
.home .h-faq-side p { color: var(--text-2); }
.home .h-faq .faq-list { max-width: none; margin: 0; }
.home .faq-item summary { min-height: 44px; }
.home .faq-item summary::after { transition: transform .3s var(--ease-out); }
.home .faq-item[open] summary::after { transform: rotate(180deg); }
@supports selector(::details-content) {
  .home .faq-item::details-content { block-size: 0; overflow: hidden; transition: block-size .4s var(--ease-out), content-visibility .4s allow-discrete; }
  .home .faq-item[open]::details-content { block-size: auto; }
}
@media (max-width: 860px) {
  .home .h-faq-grid { grid-template-columns: 1fr; }
  .home .h-faq-side { position: static; }
}

/* ==========================================================================
   12. FINAL CTA
   ========================================================================== */
html.dark.home .h-final { padding: clamp(112px, 14vw, 192px) 0 0; background: var(--ink); border-top: 1px solid var(--line); overflow: hidden; }
html.dark.home .h-final h2 { font-size: clamp(48px, 7.6vw, 124px); line-height: 0.96; letter-spacing: -0.03em; max-width: 12ch; margin: 0 auto 26px; }
.home .h-final .container > p:not(.hero-note) { font-size: 19px; }
.home .h-final-pages { position: relative; height: clamp(180px, 22vw, 300px); margin-top: clamp(56px, 7vw, 96px); display: flex; justify-content: center; align-items: flex-start;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 95%); mask-image: linear-gradient(to bottom, #000 30%, transparent 95%); }
.home .h-final-pages img { width: clamp(150px, 20vw, 280px); height: auto; border-radius: 6px; background: #fff; box-shadow: 0 -20px 60px -20px rgba(0,0,0,0.8); margin: 0 -2vw; }
.home .h-final-pages img:nth-child(1) { transform: rotate(-9deg) translateY(40px); opacity: .8; }
.home .h-final-pages img:nth-child(2) { position: relative; z-index: 2; }
.home .h-final-pages img:nth-child(3) { transform: rotate(9deg) translateY(40px); opacity: .8; }

/* ==========================================================================
   Mobile rhythm
   ========================================================================== */
@media (max-width: 760px) {
  .home .h-problem, html.dark.home .h-inside, html.dark.home .h-trades, html.dark.home .h-how, html.dark.home .h-founding, html.dark.home .h-pricing, html.dark.home .h-faq { padding: 80px 0; }
  .home .h-demo-pin, .home .h-seq-pin { padding: 80px 0 64px; }
  html.dark.home .h-final { padding-top: 96px; }
  .home .h-how-head { margin-bottom: 48px; text-align: left; }
  .home .h-how-head .eyebrow { justify-content: flex-start; }
  .home .h-kicker { font-size: 13px; }
}

/* ==========================================================================
   Reduced motion: no motion at all, everything visible
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html.home-anim .js-intro, html.home-anim .h-stage { opacity: 1 !important; }
  .home .h-scroll span { animation: none; }
  .home *, .home *::before, .home *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .home .h-gl { display: none !important; }
}

/* pinned scenes (desktop): fill the viewport under the sticky header */
.home .h-demo.is-scrub .h-demo-pin, .home .h-seq.is-scrub .h-seq-pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 88px 0 48px; }
.home .h-demo.is-scrub .h-demo-pin > .container, .home .h-seq.is-scrub .h-seq-pin > .container { width: 100%; }

/* v1 fixes */
.home .h-final::before { display: none; }
.home .compare-price .h-num { font-size: inherit; opacity: 1; font-family: inherit; margin: 0; }
.home .h-seq:not(.is-scrub) .h-phone, .home .h-seq:not(.is-scrub) .h-phone-thread { height: auto; }

/* pinned follow-up scene: only the active step shows its detail, so the list fits one screen */
.home .h-seq.is-scrub .h-seq-step p { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .45s var(--ease-out), opacity .35s ease; }
.home .h-seq.is-scrub .h-seq-step.is-on p { max-height: 90px; opacity: 1; }
.home .h-seq.is-scrub .h-seq-step { padding: 12px 0; }
.home .h-seq.is-scrub .h-phone { height: min(640px, calc(100vh - 150px)); }

/* shorter desktop screens (laptops): tighten the pinned scenes */
@media (min-width: 1024px) and (max-height: 900px) {
  html.dark.home .h-demo-head h2 { font-size: clamp(36px, 6.4vh, 58px); }
  .home .h-demo-head p { margin-bottom: 22px; }
  .home .h-demo.is-scrub .h-demo-pin, .home .h-seq.is-scrub .h-seq-pin { padding: 80px 0 36px; }
  .home .h-before .demo-gaps { margin-top: 12px; }
  .home .h-before .demo-gaps li { padding: 3px 0 3px 24px; }
  .home .qdoc-band { padding: 16px 24px; }
  .home .qdoc-row { padding: 7px 0; }
  .home .qdoc-total { padding: 8px 14px; margin-top: 8px; }
  .home .qdoc-h2 { margin-top: 12px; }
  .home .qdoc-inc li { padding: 2px 0 2px 20px; }
  .home .qdoc-inc li::before { top: 9px; }
  .home .qdoc-foot { margin-top: 12px; }
  html.dark.home .h-seq-copy h2 { font-size: clamp(32px, 6vh, 52px); }
  .home .h-seq-lede { margin-bottom: 18px; font-size: 16px; }
}

/* tablet header: keep the shared nav on one line */
@media (min-width: 761px) and (max-width: 1040px) {
  .home .nav-links { gap: 16px; }
  .home .nav-links a:not(.btn) { font-size: 14px; white-space: nowrap; }
  .home .logo { white-space: nowrap; }
  .home .btn-nav { padding: 10px 14px; }
}
.home .h-contents li, .home .h-frow { border-radius: 0; }
.home .compare-row strong { margin-right: 0.3em; }
@media (max-width: 720px) { .home .compare-row.section-row .col-self, .home .compare-row.section-row .col-dwy { display: none; } }
