/* Acclines marketing — the "thread of evidence" hero (homepage).
   Loaded by index.html after site.css + close.css. Everything is scoped under
   `.thread-hero` so it can't touch the shared primitives or the module tour
   below it. Reuses site.css tokens/colours (blue = AI provenance only, amber =
   attention, green = confirmed). The concept's own token names were reconciled
   to site.css names; only the three genuinely-missing tokens are added here. */

:root{
  --mono:'Geist Mono',ui-monospace,'SF Mono',Menlo,monospace;
  --subtle:#6C757D;
  --rule:rgba(17,17,17,.12);
}
body{overflow-x:hidden}

/* ---------- hero text ---------- */
/* trim the section's default 104px padding: the stage below carries its own air */
.thread-hero{position:relative;padding:64px 0;isolation:isolate}
/* A tactile field of source paper sits behind the opening copy. It is evidence,
   not decoration: neutral, text-free, and edge-weighted so the real product
   sequence remains the hero. The mask lets the paper recede before the first
   interactive specimen instead of ending on a visible image edge. */
.thread-hero .hero-paper-bg{position:absolute;z-index:-1;inset:0 0 auto;width:100%;height:760px;object-fit:cover;object-position:center top;opacity:.28;pointer-events:none;
  -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 50%,transparent 70%);
          mask-image:linear-gradient(to bottom,#000 0%,#000 50%,transparent 70%)}
.thread-hero .th-hero{position:relative;z-index:1;max-width:920px;margin:0 auto;padding:56px 24px 26px;text-align:center}
.thread-hero .eyebrow{font-family:var(--mono);font-size:11px;font-weight:500;letter-spacing:.16em;text-transform:uppercase;color:var(--subtle);margin-bottom:26px}
.thread-hero .th-hero h1{font-family:var(--serif);font-size:clamp(40px,5.4vw,64px);line-height:1.05;letter-spacing:-.02em;font-weight:500;text-wrap:balance;margin:0 auto 22px;max-width:16ch}
/* keep the italic emphasis in ink — blue is reserved for AI provenance only,
   so it must not leak onto a headline word (site.css styles <em> blue). */
.thread-hero .th-hero h1 em{font-style:italic;font-weight:400;color:var(--ink)}
.thread-hero .th-hero .sub{font-size:18.5px;line-height:1.55;color:var(--meta);max-width:44ch;margin:0 auto 34px;text-wrap:balance}
.thread-hero .cta-row{display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap;margin-bottom:52px}
.thread-hero .follow{font-family:var(--mono);font-size:10px;letter-spacing:.18em;text-transform:uppercase;color:var(--subtle)}
.thread-hero .follow .arr{display:block;margin-top:6px;font-size:12px}
@keyframes threadBob{0%,100%{transform:translateY(0)}50%{transform:translateY(3px)}}
@media(prefers-reduced-motion:no-preference){.thread-hero .follow .arr{animation:threadBob 1.9s ease-in-out infinite}}

/* ---------- the stage: one continuous ink line ----------
   Stacked layout carries a left gutter so the spine can run down the left as a
   rail (the wide media query below re-lays everything as the routed thread). */
.thread-hero .th-stage{position:relative;max-width:560px;margin:0 auto;padding:36px 24px 48px 48px}
.thread-hero .thread-svg,.thread-hero .spine-svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.thread-hero .thread-svg{display:none}
.thread-hero .spine-svg{z-index:0}
.thread-hero .thread-svg path,.thread-hero .spine-svg path{fill:none;stroke:var(--action);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.thread-hero .start-dot{display:none;position:absolute;width:7px;height:7px;border-radius:50%;background:var(--action)}
.thread-hero .nib{opacity:0;fill:var(--action);stroke:var(--canvas);stroke-width:3;pointer-events:none}

/* vignette cards — left-aligned (right of the rail) in the stacked layout */
.thread-hero .v{position:relative;z-index:2;background:var(--surface);border:1px solid var(--border);border-radius:10px;box-shadow:var(--shadow-shot);overflow:hidden;margin:0 0 60px;max-width:480px}

/* waypoint labels — sit beside the rail in the stacked layout */
.thread-hero .wp{position:relative;z-index:2;display:block;width:max-content;margin:0 0 60px;font-family:var(--mono);font-size:13px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--meta);background:var(--canvas);padding:4px 12px}

/* ---- shared specimen bits ---- */
.thread-hero .colh{font-size:9px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--subtle)}
.thread-hero .chip{display:inline-flex;align-items:center;gap:5px;font-size:9.5px;font-weight:600;letter-spacing:.07em;text-transform:uppercase;padding:3px 9px;border-radius:99px;white-space:nowrap;line-height:1.4}
.thread-hero .chip.amber{background:var(--warn-bg);color:var(--warn-text)}
.thread-hero .chip.green{background:var(--ok-bg);color:var(--ok-text)}
.thread-hero .tchip{display:inline-flex;align-items:center;gap:5px;font-size:10.5px;font-weight:500;padding:3px 9px;border-radius:6px;white-space:nowrap;line-height:1.5}
.thread-hero .tchip.amber{background:var(--warn-bg);color:var(--warn-text)}
.thread-hero .tchip.green{background:var(--ok-bg);color:var(--ok-text)}
.thread-hero .tchip .det{color:var(--subtle);font-weight:400}
.thread-hero .aif{display:flex;align-items:center;justify-content:space-between;gap:8px;background:var(--ai-bg);border:1px solid var(--ai-border);color:var(--ai-strong);border-radius:6px;padding:4px 9px;font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:11.5px;transition:background .45s ease,border-color .45s ease,color .45s ease}
.thread-hero .flabel{font-size:8.5px;font-weight:600;letter-spacing:.09em;text-transform:uppercase;color:var(--subtle);margin-bottom:4px}
.thread-hero .key{display:inline-grid;place-items:center;width:26px;height:26px;border:1px solid #D9D9D3;border-bottom-width:2.5px;border-radius:6px;background:#fff;font-family:var(--mono);font-size:12.5px;color:var(--ink)}
.thread-hero .sparkle{width:12px;height:12px;flex:none}
.thread-hero .aud{font-size:.8em;color:var(--subtle);margin-left:.3em;font-weight:400}

/* ---- V1 source document — a real tax invoice, not a file-preview shell.
   The uploaded filename is a small caption above the card, so the card
   itself reads as the document rather than app chrome around it. ---- */
.thread-hero .v1-caption{display:flex;align-items:center;justify-content:center;gap:7px;margin:0 auto 14px;max-width:480px;font-family:var(--mono);font-size:10.5px;color:var(--subtle)}
.thread-hero .v1-caption svg{width:12px;height:12px;flex:none;color:var(--subtle)}
.thread-hero .v1-caption b{font-weight:500;color:var(--meta)}

.thread-hero .v1 .paper{padding:20px 20px 18px;background:var(--surface)}
.thread-hero .v1 .inv-head{display:flex;align-items:flex-start;gap:10px;padding-bottom:14px;margin-bottom:14px;border-bottom:1px solid var(--border)}
.thread-hero .v1 .inv-mark{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;background:var(--ink);color:var(--canvas);font-family:var(--serif);font-weight:500;font-size:15px;flex:none}
.thread-hero .v1 .inv-brand{flex:1;min-width:0}
.thread-hero .v1 .inv-supplier{font-family:var(--serif);font-size:15px;font-weight:500;letter-spacing:-.005em;color:var(--ink);line-height:1.3}
.thread-hero .v1 .inv-doctype{margin-top:2px;font-family:var(--mono);font-size:10px;letter-spacing:.03em;color:var(--subtle)}
.thread-hero .v1 .inv-date{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:10.5px;color:var(--meta);text-align:right;white-space:nowrap;flex:none;padding-top:3px}
.thread-hero .v1 .inv-line{display:flex;justify-content:space-between;align-items:baseline;gap:10px;font-size:12px;color:var(--meta);padding-bottom:16px;margin-bottom:14px;border-bottom:1px solid var(--border)}
.thread-hero .v1 .inv-line-amt{font-family:var(--mono);font-variant-numeric:tabular-nums;color:var(--ink);flex:none}
.thread-hero .v1 .inv-totals{display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.thread-hero .v1 .inv-t-row{display:flex;justify-content:space-between;gap:24px;width:100%;max-width:200px;font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:11px;color:var(--subtle)}
.thread-hero .v1 .inv-t-row.inv-total{padding-top:8px;margin-top:2px;border-top:1px solid var(--border);font-size:13px;font-weight:600;color:var(--ink)}

/* ---- V2 structured bill ---- */
.thread-hero .v2{padding:16px 18px}
.thread-hero .v2 .head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}
.thread-hero .v2 .supplier{font-family:var(--serif);font-size:16.5px;font-weight:500;letter-spacing:-.01em;line-height:1.25}
.thread-hero .v2 .banner{display:flex;align-items:center;gap:7px;background:var(--ai-bg);border:1px solid var(--ai-border);color:var(--ai-strong);border-radius:6px;padding:5px 9px;font-size:10.8px;line-height:1.4;margin-bottom:12px}
.thread-hero .v2 .fields{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:13px}
.thread-hero .v2 .fields>div{min-width:118px;flex:1}
.thread-hero .v2 .li-h{display:grid;grid-template-columns:1fr 26px 60px 66px;gap:8px;padding-bottom:5px;border-bottom:1px solid var(--border);margin-bottom:7px}
.thread-hero .v2 .li-h span:nth-child(n+2){text-align:right}
.thread-hero .v2 .li{display:grid;grid-template-columns:1fr 26px 60px 66px;gap:8px;align-items:center;margin-bottom:10px}
.thread-hero .v2 .li .aif{padding:3px 7px;font-size:10.5px;justify-content:flex-end}
.thread-hero .v2 .li .aif.desc{justify-content:flex-start;font-family:var(--font);white-space:nowrap;overflow:hidden;display:block;text-overflow:ellipsis;min-width:0}
/* the AI-coded account gets its own labelled blue box under the line */
.thread-hero .v2 .li-account{margin:0 0 12px}
.thread-hero .v2 .li-account .aif{display:inline-flex;width:auto;min-width:190px;padding:4px 9px;font-size:11px;justify-content:flex-start}
.thread-hero .v2 .totals{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding-top:10px;border-top:1px solid var(--border)}
.thread-hero .v2 .tot-r{display:flex;flex-direction:column;align-items:flex-end;gap:4px;min-width:150px}
.thread-hero .v2 .tr-row{display:flex;justify-content:space-between;gap:20px;width:100%;font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:10.5px;color:var(--subtle)}
.thread-hero .v2 .tr-row.tr-total{padding-top:6px;margin-top:1px;border-top:1px solid var(--border);font-size:12.5px;font-weight:600;color:var(--ink)}

/* ---- V3 approval ---- */
.thread-hero .v3{padding:16px 18px}
/* while the timeline waits for the visitor's A, the keycap pulses quietly —
   the only invitation to the interaction (a fallback plays it regardless) */
@keyframes keyAwait{0%,100%{background:rgba(255,255,255,.2)}50%{background:rgba(255,255,255,.45)}}
@media(prefers-reduced-motion:no-preference){
  .thread-hero .v3 .approve-btn .key.await{animation:keyAwait 1.15s ease-in-out infinite}
}
.thread-hero .v3 .head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.thread-hero .v3 .supplier{font-family:var(--serif);font-size:16.5px;font-weight:500;letter-spacing:-.01em;line-height:1.25}
.thread-hero .v3 .chipstack{display:grid}
.thread-hero .v3 .chipstack>*{grid-area:1/1;justify-self:end}
.thread-hero .v3 .fields{display:flex;gap:10px;margin-bottom:14px}
.thread-hero .v3 .fields>div{flex:1}
.thread-hero .v3 .v3-foot{display:flex;align-items:center;justify-content:space-between;gap:14px}
.thread-hero .v3 .v3-foot .cap{flex:1;font-size:10.8px;color:var(--subtle);line-height:1.4;margin:0}
/* the emerald Approve button — the app's success style: solid green, white label */
.thread-hero .v3 .approve-btn{display:inline-flex;align-items:center;gap:8px;flex:none;background:var(--ok-text);color:#fff;border:0;border-radius:8px;padding:8px 14px;font-family:var(--font);font-size:12.5px;font-weight:600;letter-spacing:-.005em;cursor:pointer;box-shadow:0 1px 2px rgba(27,133,92,.28)}
.thread-hero .v3 .approve-btn .key{width:auto;min-width:17px;height:17px;padding:0 4px;border:0;border-bottom-width:0;background:rgba(255,255,255,.2);color:#fff;font-size:10.5px}
.thread-hero .v3 .audit{display:flex;align-items:center;gap:7px;margin-top:13px;padding-top:11px;border-top:1px solid var(--border);font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:10.8px;color:var(--meta)}
.thread-hero .v3 .audit .dot{width:6px;height:6px;border-radius:50%;background:var(--ok-text);flex:none}
.thread-hero .v3.cleared .aif{background:#fff;border-color:var(--border);color:var(--ink)}

/* ---- V4 bank line ---- */
.thread-hero .v4{padding:14px 16px}
.thread-hero .v4 .acct{font-family:var(--mono);font-size:9.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--subtle);margin-bottom:9px}
.thread-hero .v4 .row-h{display:grid;grid-template-columns:82px 1fr 70px 118px;gap:10px;padding-bottom:5px;border-bottom:1px solid var(--border)}
.thread-hero .v4 .row-h span:nth-child(3){text-align:right}
.thread-hero .v4 .row{display:grid;grid-template-columns:82px 1fr 70px 118px;gap:10px;align-items:center;min-height:46px;border-bottom:1px solid var(--border)}
.thread-hero .v4 .d{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:10px;color:var(--meta)}
.thread-hero .v4 .desc{font-family:var(--mono);font-size:10px;letter-spacing:.02em;line-height:1.45}
.thread-hero .v4 .amt{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:11px;text-align:right}
.thread-hero .v4 .chipstack{display:grid;justify-items:end}
.thread-hero .v4 .chipstack>*{grid-area:1/1}
.thread-hero .v4 .cap{font-size:10.8px;color:var(--subtle);padding-top:9px}

/* ---- V5 trial balance ---- */
.thread-hero .v5{padding:18px 24px}
.thread-hero .v5 .head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;height:30px}
.thread-hero .v5 .head .t{font-family:var(--serif);font-size:17px;font-weight:500;letter-spacing:-.01em}
.thread-hero .v5 .head .asat{font-family:var(--mono);font-size:9.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--subtle)}
.thread-hero .v5 .g{display:grid;grid-template-columns:44px 1fr 104px 104px;gap:10px;align-items:center}
.thread-hero .v5 .gh{height:24px;margin-top:4px;border-bottom:1px solid var(--border)}
.thread-hero .v5 .gh span:nth-child(n+3){text-align:right}
.thread-hero .v5 .gr{height:30px;border-bottom:1px solid var(--border);font-size:11.5px}
.thread-hero .v5 .gr .code{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:10.5px;color:var(--meta)}
.thread-hero .v5 .gr .num{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:11px;text-align:right}
.thread-hero .v5 .gr .num.dash{color:var(--subtle)}
.thread-hero .v5 .systag{display:inline-block;font-size:8px;font-weight:500;letter-spacing:.05em;color:var(--subtle);border:1px solid var(--border);border-radius:99px;padding:1px 6px;margin-left:7px;vertical-align:1px;white-space:nowrap}
.thread-hero .v5 .ell{height:24px;border-bottom:0;color:var(--subtle);font-size:11px}
.thread-hero .v5 .closing{height:40px;font-size:12px;font-weight:600;border-bottom:0}
.thread-hero .v5 .closing .num{font-size:11.5px;font-weight:600}
.thread-hero .v5 .rule-upper{position:absolute;left:24px;right:24px;top:267px;border-top:2px solid var(--action);border-radius:1px}
.thread-hero .v5 .rule-lower{position:absolute;left:24px;right:24px;top:272px;border-top:1px solid rgba(17,17,17,.45)}

/* ---- finale: the thread lifts into the mark ---- */
.thread-hero .finale{position:relative;z-index:2;text-align:center;padding-top:8px}
.thread-hero .finale .peak{display:inline-block;margin-bottom:26px}
.thread-hero .finale .peak svg{width:64px;height:64px;display:block}
.thread-hero .finale .peak path{fill:none;stroke:var(--action);stroke-width:4.2;stroke-linecap:round}
.thread-hero .finale .statement{font-family:var(--serif);font-size:clamp(24px,3vw,30px);font-weight:500;letter-spacing:-.015em;line-height:1.2;margin-bottom:14px;text-wrap:balance}
.thread-hero .finale .fsub{font-size:14.5px;color:var(--meta);max-width:44ch;margin:0 auto 10px;line-height:1.55;text-wrap:balance}
.thread-hero .finale .fsub.owner{margin-bottom:26px;color:var(--meta)}
.thread-hero .quiet-link{font-size:14.5px;font-weight:500;color:var(--ink);display:inline-flex;align-items:baseline;gap:7px}
.thread-hero .quiet-link .arr{font-family:var(--mono);font-size:13px;color:var(--subtle);transition:transform .15s ease}
.thread-hero .quiet-link:hover{text-decoration:underline;text-underline-offset:4px}
.thread-hero .quiet-link:hover .arr{transform:translateX(2px)}

/* ============================================================
   wide composition — the routed thread (the line weaves between cards)
   ============================================================ */
@media(min-width:1180px){
  .thread-hero .th-stage{max-width:none;width:1120px;height:2680px;padding:0}
  .thread-hero .thread-svg{display:block;z-index:3}
  .thread-hero .spine-svg{display:none}
  .thread-hero .start-dot{display:block;left:556px;top:-3px}
  .thread-hero .v{position:absolute;margin:0;max-width:none}
  /* Sit the invoice above the thread's y=350 cross-segment so the line passes
     cleanly below the card instead of striking through the Total row. */
  .thread-hero .v1{left:70px;top:96px;width:380px;height:auto}
  .thread-hero .v1-caption{position:absolute;left:70px;top:66px;width:380px;margin:0;justify-content:flex-start}
  .thread-hero .v2{left:600px;top:500px;width:470px;height:auto}
  .thread-hero .v3{left:70px;top:1060px;width:500px;height:auto}
  .thread-hero .v4{left:550px;top:1490px;width:520px;height:190px}
  .thread-hero .v5{left:250px;top:1900px;width:620px;height:300px}
  .thread-hero .v5 .rule-upper{display:none}
  .thread-hero .wp{position:absolute;margin:0;padding:3px 10px}
  .thread-hero .wp-read{left:470px;top:296px}
  .thread-hero .wp-coded{left:606px;top:892px}
  .thread-hero .wp-approved{left:466px;top:1310px}
  .thread-hero .wp-matched{left:552px;top:1707px}
  .thread-hero .wp-tied{left:118px;top:2180px}
  .thread-hero .finale{position:absolute;left:0;right:0;top:2434px;padding-top:0}
}

/* small screens: tighten specimen grids */
@media(max-width:430px){
  .thread-hero .hero-paper-bg{height:620px;object-position:center top;opacity:.2;
    -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 48%,transparent 66%);
            mask-image:linear-gradient(to bottom,#000 0%,#000 48%,transparent 66%)}
  /* drop the line-total column (the row total repeats in the totals block below) */
  .thread-hero .v2 .li-h,.thread-hero .v2 .li{grid-template-columns:1fr 28px 64px}
  .thread-hero .v2 .li-h span:nth-child(4),.thread-hero .v2 .li .aif:nth-child(4){display:none}
  .thread-hero .v2 .colh{white-space:nowrap}
  .thread-hero .v4 .row-h,.thread-hero .v4 .row{grid-template-columns:70px 1fr 108px}
  .thread-hero .v4 .row-h span:nth-child(3),.thread-hero .v4 .row .amt{display:none}
  /* trial balance: keep every row on one line so the fixed row heights (and the
     double rule pinned beneath the closing row) stay true */
  .thread-hero .v5{padding:18px 14px}
  .thread-hero .v5 .g{grid-template-columns:34px 1fr 78px 78px;gap:6px}
  .thread-hero .v5 .gr>span:nth-child(2){white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
  .thread-hero .v5 .systag{display:none}
  .thread-hero .v5 .gr .num{font-size:10px}
  .thread-hero .v5 .closing{font-size:11px}
  .thread-hero .v5 .closing .num{font-size:10.5px}
  /* the closing row's code cell is empty — let the label use it instead of truncating */
  .thread-hero .v5 .closing>span:first-child{display:none}
  .thread-hero .v5 .closing>span:nth-child(2){grid-column:1/3}
  .thread-hero .v5 .aud{display:none}
  .thread-hero .v5 .rule-upper,.thread-hero .v5 .rule-lower{left:14px;right:14px}
}

/* narrowest phones: drop the matched-bill detail so the treatment chip fits
   its column instead of pushing past the card */
@media(max-width:360px){
  .thread-hero .v4 .tchip .det{display:none}
}
