/* ============================================================
   Northline Audit site styles. One system for every page, shared with the app.
   1. Tokens   2. Fonts and base   3. Type   4. Shell (nav, buttons, footer)
   5. Page frame (wrap, sections, page heads, CTA)   6. Surfaces (cards, rows, tiles, pills)
   7. Home hero   8. Sample freight bill   9. Home sections   10. Clips and fragments
   11. Inner pages (estimate, book, lists, FAQ)   12. Motion   13. Responsive
   Decision (Nov 23, 2026): the earlier calm visual direction, rebuilt on the app's tokens.
   docs/site/BRAND.md records it. Paper: Northline Audit - Marketing, "Site · Foundations".
   ============================================================ */

/* 1. Tokens ------------------------------------------------- */
/* App tokens, copied by name and value from the app repo:
   jn5-app/packages/web/src/app/design-tokens.css (Paper token hash f89d53da, 2026-11-23).
   Change a value there first, then here. Never rename these. */
:root {
  --color-app-background: #F6F8F7;
  --color-app-surface: #FFFFFF;
  --color-app-foreground: #17231D;
  --color-app-muted-foreground: #5D6B63;
  --color-app-border: #DDE5DF;
  --color-app-input-border: #7D8D82;
  --color-app-primary: #0B5A3C;
  --color-app-primary-foreground: #FFFFFF;
  --color-app-muted: #F0F4F1;
  --color-app-signal-wash: #E7F1EC;
  --color-app-warn: #8A5A00;
  --color-app-warn-wash: #FCEFD3;
  --color-app-danger: #9B2929;
  --color-app-danger-wash: #FFF0EE;
  --color-app-ring: #0B5A3C;
  --font-app: "Geist";
  --font-app-mono: "Geist Mono";
  --text-app-caption: 12px;
  --text-app-meta: 13px;
  --text-app-body: 14px;
  --text-app-emphasis: 15px;
  --text-app-section: 15px;
  --text-app-title: 22px;
  --text-app-amount: 28px;
  --font-weight-app-normal: 400;
  --font-weight-app-medium: 500;
  --font-weight-app-semibold: 600;
  --tracking-app-normal: 0em;
  --tracking-app-title: -0.02em;
  --tracking-app-amount: -0.03em;
  --leading-app-caption: 16px;
  --leading-app-meta: 18px;
  --leading-app-body: 20px;
  --leading-app-emphasis: 22px;
  --leading-app-section: 22px;
  --leading-app-title: 28px;
  --leading-app-amount: 34px;
  --opacity-app-disabled: 50%;
  --breakpoint-app-mobile: 768px;
  --breakpoint-app-detail: 1100px;
  --container-app-desktop: 1440px;
  --container-app-mobile: 390px;
  --spacing-app-4: 4px;
  --spacing-app-8: 8px;
  --spacing-app-12: 12px;
  --spacing-app-16: 16px;
  --spacing-app-20: 20px;
  --spacing-app-24: 24px;
  --spacing-app-32: 32px;
  --spacing-app-40: 40px;
  --spacing-app-48: 48px;
  --spacing-app-control: 36px;
  --spacing-app-control-mobile: 44px;
  --spacing-app-row: 48px;
  --radius-app-control: 6px;
  --radius-app-surface: 8px;
  --radius-app-overlay: 12px;
  --radius-app-chip: 4px;
}

/* Site-only marketing additions. Same naming, "site" instead of "app". */
:root {
  --color-site-body: #3F4C45;          /* long marketing paragraphs, 9.0:1 on white */
  --color-site-hairline: #E8EEEA;      /* row dividers inside a card */
  --color-site-signal-line: #BFD8CB;   /* focus halo and outlined positive edges */
  --color-site-primary-hover: #08452E;
  --color-site-inset: #FCFCFC;         /* inner card on a white card */
  --color-site-art: #F4F5F4;           /* ground behind clips */
  --text-site-display: clamp(32px, 3.4vw, 40px);  /* page h1, Geist 500 */
  --leading-site-display: 1.1;
  --tracking-site-display: -0.03em;
  --text-site-h2: clamp(26px, 2.6vw, 32px);       /* section heads */
  --leading-site-h2: 1.2;
  --tracking-site-h2: -0.02em;
  --text-site-h3: 16px;
  --leading-site-h3: 24px;
  --text-site-lede: 17px;
  --leading-site-lede: 28px;
  --text-site-body: 15px;
  --leading-site-body: 24px;
  --space-site-section: 120px;         /* top of every home section; 80 under 720px */
  --space-site-head: 40px;             /* section head to its content */
  --container-site: 1040px;            /* every page, nav and footer */
  --measure-site: 640px;               /* heads and prose */
  --nav-h: 64px;
}

/* Aliases the components read. Values come only from the two blocks above. */
:root {
  --bg: var(--color-app-surface);
  --plate: var(--color-app-background);
  --ink: var(--color-app-foreground);
  --body: var(--color-site-body);
  --muted: var(--color-app-muted-foreground);
  --faint: var(--color-app-input-border);   /* input borders and rules only, never text */
  --border: var(--color-app-border);
  --border-subtle: var(--color-site-hairline);
  --signal: var(--color-app-primary);
  --signal-hover: var(--color-site-primary-hover);
  --signal-wash: var(--color-app-signal-wash);
  --signal-line: var(--color-site-signal-line);
  --warn: var(--color-app-warn);
  --warn-wash: var(--color-app-warn-wash);
  --danger: var(--color-app-danger);
  --danger-wash: var(--color-app-danger-wash);
  --mute: var(--color-app-muted);
  --font: var(--font-app), ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: var(--font-app-mono), ui-monospace, "SFMono-Regular", Menlo, monospace;
  --radius-chip: var(--radius-app-chip);
  --radius-control: var(--radius-app-control);
  --radius-surface: var(--radius-app-surface);
  --radius-card: var(--radius-app-overlay);
  --control: var(--spacing-app-control);
  --control-lg: var(--spacing-app-control-mobile);
  --pad: var(--spacing-app-16);
  --frag-shadow: 0 1px 2px rgba(23, 35, 29, .05), 0 10px 24px rgba(23, 35, 29, .08);

  /* Motion. Every transition and animation reads from these. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-out-emph: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-loop: cubic-bezier(0.45, 0, 0.55, 1);
  --dur-micro: 120ms;
  --dur-small: 200ms;
  --dur-medium: 320ms;
  --dur-large: 560ms;
  --stagger: 70ms;
  --art-pace: 1.3;
}

/* 2. Fonts and base ----------------------------------------- */
@font-face { font-family: "Geist"; src: url("/assets/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--body);
  font: 400 var(--text-site-body)/var(--leading-site-body) var(--font);
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--color-app-ring); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ic { flex-shrink: 0; display: block; overflow: visible; }

/* 3. Type ---------------------------------------------------- */
/* Geist 500 for every heading, one colour, tight tracking. 600 only for the one primary money figure. */
h1, h2, h3 { color: var(--ink); font-family: var(--font); font-weight: var(--font-weight-app-medium); text-wrap: balance; }
h1 { font-size: var(--text-site-display); line-height: var(--leading-site-display); letter-spacing: var(--tracking-site-display); }
h2 { font-size: var(--text-site-h2); line-height: var(--leading-site-h2); letter-spacing: var(--tracking-site-h2); }
h3 { font-size: var(--text-site-h3); line-height: var(--leading-site-h3); letter-spacing: -0.01em; }
.lede { max-width: 600px; color: var(--body); font-size: var(--text-site-lede); line-height: var(--leading-site-lede); text-wrap: pretty; }
.label, .eyebrow { color: var(--signal); font-size: var(--text-app-meta); line-height: var(--leading-app-meta); font-weight: var(--font-weight-app-medium); letter-spacing: 0; }
.fine { color: var(--muted); font-size: var(--text-app-meta); line-height: var(--leading-app-meta); }
.small { color: var(--muted); font-size: var(--text-app-meta); line-height: var(--leading-app-meta); }
.src { color: var(--muted); font-size: var(--text-app-caption); line-height: var(--leading-app-caption); }
.src cite { font-style: normal; }
.src a, .fine a { color: inherit; text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
/* Identifiers only: freight bill, PRO, charge codes. Never money, never labels. */
.id { font-family: var(--mono); font-size: .93em; letter-spacing: 0; font-variant-numeric: tabular-nums slashed-zero; }
.money { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* 4. Shell: nav, buttons, links, footer ---------------------- */
.mk-wrap, .wrap { width: min(var(--container-site), 100% - 32px); margin: 0 auto; }
.mk-nav { position: sticky; top: 0; z-index: 30; isolation: isolate; }
.mk-nav::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6);
  border-bottom: 1px solid var(--border-subtle); opacity: 0; transition: opacity var(--dur-medium) var(--ease-out);
}
.scrolled .mk-nav::before, .mk-nav.open::before { opacity: 1; }
.mk-nav-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--nav-h); }
.mk-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-size: 15px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; text-decoration: none; }
.mk-links { display: flex; align-items: center; gap: 22px; font-size: var(--text-app-meta); line-height: var(--leading-app-meta); }
.mk-links a:not(.btn):not(.nav-login) { color: var(--body); text-decoration: none; transition: color var(--dur-micro) var(--ease-out); }
.mk-links a[aria-current="page"]:not(.btn) { color: var(--ink); font-weight: var(--font-weight-app-medium); }
.mk-links .nav-login { margin-left: 2px; }
.mk-menu { display: none; align-items: center; justify-content: center; width: var(--control-lg); height: var(--control-lg); margin-right: -10px; border: 0; border-radius: var(--radius-control); background: none; color: var(--ink); cursor: pointer; }

/* Buttons: 36px on desktop, 44px for the page's main action and on phones. App: 6px radius, 13/18 medium. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--control); padding: 0 14px;
  border: 1px solid var(--signal); border-radius: var(--radius-control); background: var(--signal); color: var(--color-app-primary-foreground);
  font: var(--font-weight-app-medium) var(--text-app-meta)/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.btn-lg { height: var(--control-lg); padding: 0 18px; font-size: var(--text-app-body); }
.btn-ghost, .nav-login { background: var(--bg); color: var(--ink); border-color: var(--border); }
.nav-login { display: inline-flex; align-items: center; height: var(--control); padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-control); text-decoration: none; white-space: nowrap; transition: border-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out); }
.btn .ic { transition: transform var(--dur-small) var(--ease-out); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; transition: color var(--dur-micro) var(--ease-out), text-decoration-color var(--dur-micro) var(--ease-out); }
.more { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; color: var(--signal); font-size: var(--text-app-body); font-weight: var(--font-weight-app-medium); line-height: 20px; text-decoration: none; transition: color var(--dur-micro) var(--ease-out); }
.more .ic { transition: transform var(--dur-small) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .mk-links a:not(.btn):not(.nav-login):hover { color: var(--signal); }
  .btn:hover { background: var(--signal-hover); border-color: var(--signal-hover); }
  .btn-ghost:hover { background: var(--plate); border-color: var(--border); }
  .nav-login:hover { border-color: var(--signal-line); color: var(--signal); }
  .link:hover { text-decoration-color: var(--signal); }
  .more:hover { color: var(--signal-hover); }
  .motion .btn:hover .ic, .motion .more:hover .ic { transform: translateX(2px); }
}
.motion .btn:active { transform: scale(.97); }

/* Footer: brand row, hairline link table, legal row, then the cropped wordmark (after humblytics.com). */
.mk-foot { margin-top: 24px; padding-top: 56px; color: var(--muted); font-size: var(--text-app-meta); line-height: var(--leading-app-meta); }
.ft-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding: 20px; border: 1px solid var(--border-subtle); }
.ft-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-size: 15px; font-weight: 500; letter-spacing: -0.01em; text-decoration: none; }
.ft-tag { max-width: 520px; color: var(--muted); }
.ft-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-left: 1px solid var(--border-subtle); }
.ft-col { display: flex; flex-direction: column; border-right: 1px solid var(--border-subtle); }
.ft-h { padding: 20px 20px 12px; border-bottom: 1px solid var(--border-subtle); color: var(--ink); font-weight: var(--font-weight-app-medium); }
.ft-col a { padding: 11px 20px; border-bottom: 1px solid var(--border-subtle); color: var(--body); text-decoration: none; transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .ft-col a:hover { background: var(--plate); color: var(--signal); } .ft-brand:hover { color: var(--ink); } }
.ft-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 14px 20px; border: 1px solid var(--border-subtle); border-top: 0; font-size: var(--text-app-caption); line-height: var(--leading-app-caption); }
.ft-mark { height: clamp(52px, 11.5vw, 120px); margin-top: 20px; overflow: hidden; user-select: none; }
.ft-mark span { display: block; color: var(--plate); font-size: clamp(88px, 19.5vw, 204px); font-weight: 600; line-height: .9; letter-spacing: -0.055em; white-space: nowrap; -webkit-text-stroke: 1px var(--border-subtle); }

/* 5. Page frame ---------------------------------------------- */
/* Every section: label, heading and lede on top, then the work. 120px between sections. */
.section { padding-top: var(--space-site-section); }
.sec-head { display: flex; flex-direction: column; gap: 12px; max-width: var(--measure-site); }
.sec-head p:not(.label) { max-width: 560px; color: var(--body); font-size: 16px; line-height: 26px; text-wrap: pretty; }
.sec-head .more { margin-top: 4px; }
.sec-row { display: flex; flex-direction: column; gap: 16px; margin-top: var(--space-site-head); }
.sec-row > .vs { order: 2; }
.sec-split > .card, .sec-split > .sec-body { margin-top: var(--space-site-head); }
.sec-body { display: flex; flex-direction: column; gap: 16px; min-width: 0; margin-top: var(--space-site-head); }
.sec-foot { margin-top: 16px; }
@media (min-width: 1100px) {
  .sec-row { display: grid; grid-template-columns: minmax(0, 444fr) minmax(0, 568fr); gap: 28px; align-items: stretch; }
  .sec-row.flip { grid-template-columns: minmax(0, 568fr) minmax(0, 444fr); }
  .sec-row > * { grid-row: 1; }
  .sec-row > .vs { display: flex; grid-column: 1; }
  .sec-row > :not(.vs) { grid-column: 2; }
  .sec-row.flip > .vs { grid-column: 2; }
  .sec-row.flip > :not(.vs) { grid-column: 1; }
  .sec-row > .vs .vh-stage { flex: 1 1 auto; max-width: none; min-height: 320px; aspect-ratio: auto; margin: 0; }
  .sec-split { display: grid; grid-template-columns: minmax(0, 444fr) minmax(0, 568fr); gap: 28px; align-items: start; }
  .sec-split > .card, .sec-split > .sec-body { margin-top: 0; }
  .sec-split > .sec-head { position: sticky; top: calc(var(--nav-h) + 24px); }
}

/* Inner page head: label, h1, lede; a clip on the right when the page has one */
.page-head { display: flex; flex-direction: column; gap: 16px; padding: 72px 0 0; }
.page-head > div { display: flex; flex-direction: column; gap: 16px; max-width: var(--measure-site); }
.page-head .vs { margin: 0; }
@media (min-width: 900px) {
  .page-head.has-clip { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 40px; align-items: center; padding-top: 56px; }
  .page-head.has-clip .vh-stage { max-width: none; }
}

/* Closing ask, centred, same on every page */
.cta { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 144px 0 120px; text-align: center; }
.cta h2 { max-width: 640px; }
.cta p { max-width: 520px; color: var(--body); font-size: 16px; line-height: 26px; }
.cta .actions { justify-content: center; padding-top: 8px; }

/* 6. Surfaces ------------------------------------------------ */
/* One outer card (12px, hairline, no shadow), inner cards (8px) inside it, rows split by hairlines.
   App surfaces are 8px with no shadow; the outer 12px is the site's panel, matching app overlays. */
.card { display: flex; flex-direction: column; min-width: 0; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-card); }
.card-pad { padding: var(--pad); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; min-height: 52px; padding: 12px var(--pad); }
.card-head-main { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.card-title { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; color: var(--ink); font-size: var(--text-app-body); line-height: var(--leading-app-body); font-weight: var(--font-weight-app-medium); }
.card-meta { color: var(--muted); font-size: var(--text-app-meta); line-height: var(--leading-app-meta); font-weight: 400; }
.card-inners { display: flex; flex-direction: column; gap: 8px; padding: var(--pad); }
.card-head + .card-inners { padding-top: 0; }
.inner { min-width: 0; background: var(--color-site-inset); border: 1px solid var(--border-subtle); border-radius: var(--radius-surface); }
.inner.pad { padding: var(--pad); }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0; padding: 12px var(--pad); border-top: 1px solid var(--border-subtle); color: var(--body); font-size: var(--text-app-meta); line-height: var(--leading-app-meta); }
.card-foot li { display: inline-flex; align-items: center; gap: 6px; }
.card-foot .ic { color: var(--signal); }

/* Tiles hold icons: 32px (.lg) or 28px, 8px radius, plate fill */
.tile { width: 28px; height: 28px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-surface); background: var(--plate); color: var(--muted); font-size: var(--text-app-meta); font-weight: var(--font-weight-app-medium); line-height: 1; }
.tile.lg { width: 32px; height: 32px; }
.tile.signal { background: var(--signal-wash); color: var(--signal); }
.tile.warn { background: var(--warn-wash); color: var(--warn); }

/* Rows: tile, words, value lane. Rows grow evenly when the card stretches beside a clip. */
.xrows { display: flex; flex-direction: column; }
.sx { gap: 0; }
.sx > .card-inners { flex: 1 1 auto; }
.sx .xrows { flex: 1 1 auto; }
.xr { position: relative; flex: 1 1 auto; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; column-gap: 12px; min-height: 60px; padding: 12px var(--pad); color: var(--ink); font-size: var(--text-app-body); line-height: var(--leading-app-body); outline: 0; }
.xr + .xr { border-top: 1px solid var(--border-subtle); }
.xr.top { align-items: start; }
.xr:focus-visible { box-shadow: inset 0 0 0 2px var(--signal-line); border-radius: var(--radius-surface); }
.xr-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.xr-text b { color: var(--ink); font-weight: var(--font-weight-app-medium); }
.xr-text > span, .xr-text > p { color: var(--body); font-size: var(--text-app-body); line-height: var(--leading-app-body); }
.xr-text > .xr-sub { color: var(--muted); font-size: var(--text-app-meta); line-height: var(--leading-app-meta); }
.xr-text > .xr-sub b { color: var(--ink); font-weight: var(--font-weight-app-medium); }
.xr-text a { color: var(--signal); text-decoration: underline; text-decoration-color: var(--signal-line); text-underline-offset: 3px; }
.xr-text ul { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; color: var(--body); font-size: var(--text-app-meta); line-height: var(--leading-app-meta); }
.xr-text ul li { position: relative; padding-left: 14px; }
.xr-text ul li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 4px; height: 4px; border-radius: 1px; background: var(--signal); }
.xr-v { display: flex; align-items: center; justify-content: flex-end; gap: 12px; color: var(--ink); white-space: nowrap; }
.xr-amt { min-width: 64px; text-align: right; font-variant-numeric: tabular-nums; }
.xr-due { display: flex; justify-content: flex-end; min-width: 168px; color: var(--muted); font-size: var(--text-app-meta); line-height: var(--leading-app-meta); }
.xr-who { color: var(--muted); font-size: var(--text-app-meta); line-height: var(--leading-app-meta); }
.xr-ok { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--signal-wash); color: var(--signal); }

/* Status pill: the app's .jn5-status. 20px, 12/16 medium, 4px radius, word always present. */
.status { display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0 8px; border-radius: var(--radius-chip); background: var(--mute); color: var(--muted); font-size: var(--text-app-caption); line-height: var(--leading-app-caption); font-weight: var(--font-weight-app-medium); white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.pos { background: var(--signal-wash); color: var(--signal); }
.status.warn { background: var(--warn-wash); color: var(--warn); }
.status.plain::before { display: none; }
/* Deadline text, as the app writes it: amber pill under 14 days, plain meta otherwise */
.due { color: var(--muted); font-size: var(--text-app-meta); line-height: var(--leading-app-meta); white-space: nowrap; }
/* Tag: a status-shaped label for categories (not a state) */
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: var(--radius-chip); background: var(--plate); color: var(--muted); font-size: var(--text-app-caption); line-height: 1; font-weight: var(--font-weight-app-medium); white-space: nowrap; }
.tag.pos { background: var(--signal-wash); color: var(--signal); }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--border); color: var(--ink); font-size: var(--text-app-caption); font-weight: var(--font-weight-app-medium); line-height: 16px; white-space: nowrap; }

/* Metric row: the app's .jn5-metrics. One primary figure 28/34 semibold, others 22/28 medium. */
.metrics { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.metric { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 12px var(--pad); }
.metric + .metric { border-left: 1px solid var(--border-subtle); }
.metric span { color: var(--muted); font-size: var(--text-app-meta); line-height: var(--leading-app-meta); }
.metric b { color: var(--ink); font-size: var(--text-app-title); line-height: var(--leading-app-title); font-weight: var(--font-weight-app-medium); letter-spacing: var(--tracking-app-title); font-variant-numeric: tabular-nums; }
.metric.primary b { font-size: var(--text-app-amount); line-height: var(--leading-app-amount); font-weight: var(--font-weight-app-semibold); letter-spacing: var(--tracking-app-amount); color: var(--signal); }
.metric.primary span { color: var(--signal); }

/* Rule tooltips on rows and bill lines */
[data-rule] { position: relative; }
[data-rule]::after {
  content: attr(data-rule); position: absolute; left: 8px; bottom: calc(100% + 4px); z-index: 5; width: max-content; max-width: min(300px, 80vw);
  padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--radius-surface); background: var(--bg); color: var(--ink);
  font-size: var(--text-app-caption); font-weight: 400; line-height: var(--leading-app-caption); text-align: left; letter-spacing: 0;
  display: none; pointer-events: none;
}
[data-rule]:hover::after, [data-rule]:focus-visible::after { display: block; animation: fade var(--dur-small) var(--ease-out) both; }

/* 7. Home hero ----------------------------------------------- */
.hero-row { display: flex; flex-direction: column; padding: 8px 0 0; }
.hero-row .vh-hero { order: -1; margin: 0 0 8px; }
.hero { display: flex; flex-direction: column; gap: 20px; }
.hero .lede { max-width: 520px; }
.hero .actions { padding-top: 4px; }
.trust { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--body); font-size: var(--text-app-meta); line-height: var(--leading-app-meta); }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust .ic { color: var(--signal); }
@media (min-width: 1100px) {
  .hero-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 40px; padding: 72px 0 40px; }
  .hero-row .vh-hero { order: 0; margin: 0; }
  .hero-row .vh-hero .vh-stage { max-width: none; margin: 0; }
}

/* 8. Sample freight bill: a printed carrier bill with the green pencil on it, and the finding as the app shows it */
.figure { padding: 32px 0 0; }
.fb-duo { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.fb-stage { position: relative; padding: 14px 10px 18px 2px; }
.fb-sheet {
  --rule: #d9d9d9; --print: #1a1a1a; --print-2: #5c5c5c;
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px 34px 20px 26px;
  background: url("brand/bill/grain.svg") 0 0 / 160px 160px, #fffefb; border-radius: 2px; color: var(--print);
  font-size: 12px; line-height: 16px; font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 1px rgba(40, 32, 16, .06), 0 1px 1px rgba(40, 32, 16, .04), 0 3px 6px -2px rgba(40, 32, 16, .06), 0 18px 32px -14px rgba(40, 32, 16, .16), 0 34px 60px -30px rgba(40, 32, 16, .12);
  transform: rotate(-1.2deg); transform-origin: 50% 40%;
}
.fb-sheet address { font-style: normal; }
.fb-label, .fb-sheet dt, .fb-th { color: var(--print-2); font-size: 11px; line-height: 14px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
.fb-head { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.fb-carrier { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.fb-brand { display: flex; align-items: center; gap: 9px; }
.fb-logo { flex-shrink: 0; display: block; }
.fb-brand p { display: flex; flex-direction: column; }
.fb-brand b { font-size: 16px; line-height: 19px; font-weight: 700; letter-spacing: -.01em; }
.fb-brand span { color: var(--print-2); font-size: 11px; line-height: 14px; }
.fb-carrier address { color: var(--print-2); font-size: 11px; line-height: 15px; }
.fb-doc { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; flex-shrink: 0; }
.fb-title { font-size: 15px; line-height: 18px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.fb-meta { display: grid; grid-template-columns: auto auto; column-gap: 12px; row-gap: 1px; }
.fb-meta div { display: contents; }
.fb-meta dt { text-align: right; line-height: 16px; }
.fb-meta dd { text-align: right; font-size: 12px; line-height: 16px; font-weight: 500; }
.fb-meta div:first-child dd { font-weight: 700; }
.fb-barcode { display: block; margin-top: 3px; }
.fb-parties { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--rule); }
.fb-parties > div { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px 9px; min-width: 0; }
.fb-parties > div + div { border-left: 1px solid var(--rule); }
.fb-parties b { display: block; font-weight: 600; }
.fb-parties p:last-child { color: var(--print-2); }
.fb-parties p:last-child b { color: var(--print); }
.fb-refs { display: flex; flex-wrap: wrap; column-gap: 18px; row-gap: 2px; }
.fb-refs div { display: flex; align-items: baseline; gap: 6px; }
.fb-refs dd { font-weight: 500; }
.fb-table { display: flex; flex-direction: column; margin-top: 2px; }
.fb-tr { position: relative; display: grid; grid-template-columns: 24px 40px minmax(0, 1fr) 54px 68px 56px; column-gap: 10px; align-items: baseline; padding: 8px 2px; border-bottom: 1px solid var(--rule); font-size: 12.5px; line-height: 17px; outline: 0; }
.fb-th { padding: 5px 2px; border-top: 1px solid #cfcfcf; border-bottom-color: #cfcfcf; background: rgba(40, 32, 16, .025); }
.fb-tr .fb-qty, .fb-tr .fb-wt, .fb-tr .fb-rate, .fb-tr .fb-amt { text-align: right; }
.fb-code { font-weight: 600; letter-spacing: .02em; }
.fb-desc small { display: none; }
.fb-amt { font-weight: 500; }
.fb-tr:focus-visible { box-shadow: inset 0 0 0 1px var(--signal-line); }
.fb-flag[data-rule]::after { background: var(--signal-wash); border-color: var(--signal-line); color: var(--signal); }
.fb-ink { position: absolute; overflow: visible; pointer-events: none; }
.fb-ink path { fill: none; stroke: var(--signal); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fb-tick { right: -27px; top: 50%; width: 20px; height: 20px; margin-top: -12px; }
.fb-loop { left: -10px; right: -12px; top: -5px; bottom: -6px; width: calc(100% + 22px); height: calc(100% + 11px); }
.fb-struck { position: relative; display: inline-block; }
.fb-strike { left: -4px; right: -4px; top: 50%; width: calc(100% + 8px); height: 8px; margin-top: -4px; }
.fb-strike path { stroke-width: 1.5; }
.fb-sum { display: flex; justify-content: space-between; gap: 20px; }
.fb-remarks { position: relative; flex: 1; min-width: 0; min-height: 64px; }
.fb-remarks .fb-label { display: none; }
.fb-note { left: 70px; top: -16px; width: 150px; height: 50px; }
.fb-note path { stroke-width: 1.5; }
.fb-note g path { stroke-width: .97; }
.fb-totals { display: grid; grid-template-columns: auto auto; row-gap: 3px; align-self: start; min-width: 190px; padding-top: 2px; }
.fb-totals div { display: contents; }
.fb-totals dd { padding-left: 22px; text-align: right; font-size: 12.5px; }
.fb-totals .fb-due dt, .fb-totals .fb-due dd { padding-top: 6px; margin-top: 3px; border-top: 1px solid #bdbdbd; color: var(--print); }
.fb-totals .fb-due dd { font-size: 14px; font-weight: 700; }
.fb-foot { display: flex; flex-direction: column; gap: 4px; padding-top: 10px; border-top: 1px solid var(--rule); color: var(--print-2); font-size: 11px; line-height: 15px; }
.fb-foot b { color: var(--print); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-right: 4px; }
.fb-stamp { position: absolute; left: 64px; top: 116px; color: #2b2b2b; opacity: .22; transform: rotate(-7deg); mix-blend-mode: multiply; pointer-events: none; }
.fb-tag { position: absolute; z-index: 2; top: -16px; right: -14px; display: flex; align-items: center; justify-content: center; width: 86px; height: 50px; background: #e3efe8; color: var(--signal); box-shadow: 0 1px 1px rgba(11, 60, 40, .08), 0 6px 12px -6px rgba(11, 60, 40, .25); transform: rotate(5deg); transform-origin: 70% 0; }
.fb-tag span { font-size: 16px; line-height: 20px; font-weight: 600; letter-spacing: -.01em; padding-top: 6px; }
.fb-clip { position: absolute; left: 14px; top: -14px; }
.fb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The finding beside the bill: the app's finding, word for word */
.fb-side { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; }
.bill-claim { color: var(--ink); font-size: 18px; line-height: 26px; font-weight: var(--font-weight-app-medium); letter-spacing: -0.01em; text-wrap: balance; }
.finding { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-surface); }
.finding-top { display: flex; flex-direction: column; gap: 4px; padding: 12px var(--pad); }
.finding-check { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: var(--text-app-body); line-height: var(--leading-app-body); font-weight: var(--font-weight-app-medium); }
.finding-check .ic { color: var(--muted); }
.finding-meta { color: var(--muted); font-size: var(--text-app-caption); line-height: var(--leading-app-caption); }
.finding-money { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.finding-money div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; min-width: 0; }
.finding-money div + div { border-left: 1px solid var(--border-subtle); }
.finding-money dt { color: var(--muted); font-size: var(--text-app-caption); line-height: var(--leading-app-caption); }
.finding-money dd { color: var(--ink); font-size: var(--text-app-body); line-height: var(--leading-app-body); font-variant-numeric: tabular-nums; }
.finding-money .diff dd { font-weight: var(--font-weight-app-semibold); color: var(--signal); }
.finding-ev { display: flex; align-items: flex-start; gap: 8px; padding: 10px var(--pad); color: var(--body); font-size: var(--text-app-meta); line-height: var(--leading-app-meta); }
.finding-ev .ic { margin-top: 1px; color: var(--muted); }
.finding-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px var(--pad); border-top: 1px solid var(--border-subtle); }
.fee-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0 2px; color: var(--muted); font-size: var(--text-app-meta); line-height: var(--leading-app-meta); }
.fee-split div { display: flex; justify-content: space-between; gap: 8px; padding: 2px 12px 2px 0; }
.fee-split div + div { padding: 2px 0 2px 12px; border-left: 1px solid var(--border-subtle); }
.fee-split dd { color: var(--ink); font-variant-numeric: tabular-nums; }
.fee-split .keep dd { color: var(--signal); font-weight: var(--font-weight-app-medium); }
.fig-note { max-width: 600px; margin-top: 20px; }

/* 9. Home sections ------------------------------------------- */
/* Status quo: four ways teams cope, each with its cost */
.xr-cost { color: var(--ink); font-size: var(--text-app-meta); line-height: var(--leading-app-meta); font-weight: var(--font-weight-app-medium); }
.sec-close { max-width: 600px; margin-top: 24px; color: var(--ink); font-size: 16px; line-height: 26px; }

/* The clock: cited windows as bars, then live deadlines in fixed lanes */
.bars { display: flex; flex-direction: column; gap: 16px; padding: var(--pad); }
.bar { display: flex; flex-direction: column; gap: 6px; }
.bar-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: var(--ink); font-size: var(--text-app-body); line-height: var(--leading-app-body); }
.bar-top b { font-weight: var(--font-weight-app-medium); white-space: nowrap; }
.bar-track { position: relative; height: 8px; border-radius: 4px; background: var(--border-subtle); overflow: hidden; }
.bar-track i { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 4px; background: var(--signal); transform-origin: left; }
.bar.short .bar-top b { color: var(--warn); }
.bar.short .bar-track i { background: var(--warn); }
.bar-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: var(--text-app-caption); line-height: var(--leading-app-caption); }

/* What we check: the incidence card */
.mix { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 32px; align-items: center; margin-top: 16px; padding: 24px; }
.mix-lead b { display: block; color: var(--ink); font-size: 40px; line-height: 44px; font-weight: var(--font-weight-app-medium); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.mix-lead p { margin-top: 8px; color: var(--body); font-size: var(--text-app-body); line-height: var(--leading-app-body); }
.mix-rows { display: flex; flex-direction: column; gap: 10px; }
.mix-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 52px; gap: 12px; align-items: center; color: var(--ink); font-size: var(--text-app-body); line-height: var(--leading-app-body); }
.mix-row i { display: block; height: 8px; border-radius: 4px; background: var(--border-subtle); overflow: hidden; }
.mix-row i::before { content: ""; display: block; height: 100%; width: var(--w); border-radius: 4px; background: var(--signal); }
.mix-row b { text-align: right; font-weight: var(--font-weight-app-medium); font-variant-numeric: tabular-nums; }
.mix .src { grid-column: 1 / -1; }

/* What you see: the app's finding list */
.ledger-rows { display: flex; flex-direction: column; padding: 4px 8px 8px; }
.lrow { position: relative; isolation: isolate; display: grid; grid-template-columns: 28px minmax(0, 1fr) 156px 72px; align-items: center; column-gap: 12px; padding: 10px 8px; color: var(--ink); font-size: var(--text-app-body); line-height: var(--leading-app-body); }
.lrow + .lrow { border-top: 1px solid var(--border-subtle); }
.lrow-what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lrow-what small { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--muted); font-size: var(--text-app-caption); line-height: var(--leading-app-caption); }
.lrow-status { position: relative; display: flex; }
.lrow > b { text-align: right; font-weight: 400; font-variant-numeric: tabular-nums; }
.lrow-credit::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: var(--radius-surface); background: var(--signal-wash); }
.lrow-credit > b { color: var(--signal); font-weight: var(--font-weight-app-semibold); }
.lrow-credit .tile { background: var(--bg); color: var(--signal); }
.lrow-credit + .lrow { border-top-color: transparent; }
.st-before { position: absolute; left: 0; top: 0; opacity: 0; }

/* Service vs software */
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare { width: 100%; min-width: 720px; border-collapse: separate; border-spacing: 0; font-size: var(--text-app-body); line-height: var(--leading-app-body); }
.compare th, .compare td { padding: 14px var(--pad); text-align: left; vertical-align: top; border-bottom: 1px solid var(--border-subtle); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th { height: var(--control); padding-top: 10px; padding-bottom: 10px; background: var(--plate); color: var(--muted); font-size: var(--text-app-meta); line-height: var(--leading-app-meta); font-weight: var(--font-weight-app-medium); border-bottom-color: var(--border); }
.compare thead th:first-child { border-top-left-radius: var(--radius-card); }
.compare thead th:last-child { border-top-right-radius: var(--radius-card); }
.compare tbody th { width: 20%; color: var(--ink); font-weight: var(--font-weight-app-medium); }
.compare td { color: var(--body); }
.compare .us { color: var(--ink); font-weight: var(--font-weight-app-medium); background: rgba(231, 241, 236, .45); }
.compare thead .us { background: var(--signal-wash); color: var(--signal); }

/* Pricing: the share and the terms in one card */
.share { display: flex; align-items: baseline; gap: 16px; }
.share b { color: var(--signal); font-size: 64px; line-height: 1; font-weight: var(--font-weight-app-medium); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.share span { min-width: 0; max-width: 300px; color: var(--body); font-size: var(--text-app-body); line-height: var(--leading-app-body); }
.terms { display: flex; flex-direction: column; border-top: 1px solid var(--border-subtle); }
.term { display: flex; align-items: center; gap: 12px; padding: 12px var(--pad); color: var(--ink); font-size: var(--text-app-body); line-height: var(--leading-app-body); }
.term + .term { border-top: 1px solid var(--border-subtle); }
.term > span:not(.tile) { flex: 1; min-width: 0; }
.term b { font-weight: var(--font-weight-app-medium); text-align: right; }
.math { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 12px var(--pad); color: var(--body); font-size: var(--text-app-meta); line-height: var(--leading-app-meta); border-top: 1px solid var(--border-subtle); }
.math b { color: var(--ink); font-weight: var(--font-weight-app-medium); font-variant-numeric: tabular-nums; }
.math .eq { color: var(--muted); }
.math b.keep { color: var(--signal); }

/* Two offers */
.offers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.offer { display: flex; flex-direction: column; gap: 12px; padding: 24px; }
.offer .tag { align-self: flex-start; }
.offer h3 { font-size: 20px; line-height: 28px; letter-spacing: -0.015em; }
.offer > p { color: var(--body); }
.offer ul { display: flex; flex-direction: column; gap: 6px; color: var(--body); font-size: var(--text-app-body); line-height: var(--leading-app-body); }
.offer li { display: flex; align-items: flex-start; gap: 8px; }
.offer li .ic { margin-top: 2px; color: var(--signal); }
.offer .actions { margin-top: auto; padding-top: 8px; }
.offer.primary { border-color: var(--signal-line); box-shadow: inset 0 0 0 1px var(--signal-line); }

/* Questions: grouped accordion on native details, works without JS */
.faq { gap: 0; }
.faq-list { display: flex; flex-direction: column; padding: 4px; }
.faq-group { display: flex; flex-direction: column; overflow: hidden; }
.faq-gh { margin: 0; padding: 12px var(--pad) 4px; color: var(--muted); font-size: var(--text-app-meta); line-height: var(--leading-app-meta); font-weight: var(--font-weight-app-medium); letter-spacing: 0; }
.faq-q + .faq-q { border-top: 1px solid var(--border-subtle); }
.faq-q summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--spacing-app-row); padding: 12px var(--pad); color: var(--ink); font-size: var(--text-app-emphasis); line-height: var(--leading-app-emphasis); font-weight: var(--font-weight-app-medium); list-style: none; cursor: pointer; border-radius: var(--radius-surface); }
.faq-q summary::-webkit-details-marker { display: none; }
.faq-q summary:focus-visible { outline: 2px solid var(--color-app-ring); outline-offset: -2px; }
.faq-q summary .ic { color: var(--muted); transition: transform var(--dur-small) var(--ease-out), color var(--dur-micro) var(--ease-out); }
.faq-q[open] summary .ic { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) { .faq-q summary:hover .ic { color: var(--ink); } }
.faq-a p { max-width: 600px; padding: 0 calc(var(--pad) + 28px) 14px var(--pad); color: var(--body); font-size: var(--text-app-body); line-height: 22px; }
.faq-a p + p { margin-top: -6px; }
.motion .faq { interpolate-size: allow-keywords; }
.motion .faq-q::details-content { block-size: 0; opacity: 0; overflow: clip; transition: block-size var(--dur-medium) var(--ease-out), opacity var(--dur-medium) var(--ease-out), content-visibility var(--dur-medium) allow-discrete; }
.motion .faq-q[open]::details-content { block-size: auto; opacity: 1; }

/* 10. Clips and fragments ------------------------------------ */
/* Miniature scenes shot on white: each clip melts into the page through a wide feather. */
.vh { position: relative; margin: 0; }
.vh-stage { position: relative; width: 100%; aspect-ratio: 3 / 2; isolation: isolate; }
.vh-hero .vh-stage { max-width: 600px; margin: 0 auto; }
.vs .vh-stage { max-width: 440px; aspect-ratio: 4 / 3; margin: 0 auto; background: var(--color-site-art); border-radius: var(--radius-card); overflow: clip; }
.vh-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: transparent; }
.vh-main {
  mix-blend-mode: multiply; filter: brightness(1.06) contrast(1.04) saturate(.95);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 6%, rgba(0,0,0,.8) 13%, #000 20%, #000 80%, rgba(0,0,0,.8) 87%, rgba(0,0,0,.35) 94%, transparent 100%), linear-gradient(180deg, transparent 0%, rgba(0,0,0,.35) 7%, rgba(0,0,0,.8) 15%, #000 23%, #000 77%, rgba(0,0,0,.8) 85%, rgba(0,0,0,.35) 93%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 6%, rgba(0,0,0,.8) 13%, #000 20%, #000 80%, rgba(0,0,0,.8) 87%, rgba(0,0,0,.35) 94%, transparent 100%), linear-gradient(180deg, transparent 0%, rgba(0,0,0,.35) 7%, rgba(0,0,0,.8) 15%, #000 23%, #000 77%, rgba(0,0,0,.8) 85%, rgba(0,0,0,.35) 93%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.vh-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2; box-shadow: inset 0 0 48px 28px var(--bg); }
.vs .vh-stage::after { box-shadow: inset 0 0 48px 28px var(--color-site-art); }
/* Product fragments over the clips: white chips and mini panels in app vocabulary */
.frag-pos { position: absolute; z-index: 3; }
.at-tl { left: 12%; top: 16%; }
.at-br { right: 12%; bottom: 16%; }
.at-bl { left: 12%; bottom: 16%; }
.frag { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--radius-surface); background: var(--bg); box-shadow: var(--frag-shadow); color: var(--ink); font-size: var(--text-app-meta); line-height: var(--leading-app-meta); white-space: nowrap; }
.frag b { font-weight: var(--font-weight-app-medium); font-variant-numeric: tabular-nums; }
.frag .status { margin-left: 2px; }
.frag-col { flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 14px; }
.frag-col span { color: var(--muted); font-size: var(--text-app-caption); line-height: var(--leading-app-caption); }
.frag-col b { color: var(--signal); font-size: 18px; line-height: 22px; font-weight: var(--font-weight-app-semibold); }

/* 11. Inner pages ------------------------------------------- */
.page-sec { padding-top: 96px; }
.page-sec .sec-head + .card, .page-sec .sec-head + .sec-body, .page-sec .sec-head + .money-card { margin-top: 32px; }
.page-sec .lede + .lede { margin-top: 0; }
.prose { display: flex; flex-direction: column; gap: 12px; max-width: 600px; }
.prose p { color: var(--body); font-size: 16px; line-height: 26px; }
.prose a, .lede a, .sec-head a:not(.more):not(.btn) { color: var(--signal); text-decoration: underline; text-decoration-color: var(--signal-line); text-underline-offset: 3px; }

/* Money comparison (pricing worked example) */
.money-card { max-width: 568px; }
.money-rows { display: flex; flex-direction: column; }
.money-rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px var(--pad); color: var(--body); font-size: var(--text-app-body); line-height: var(--leading-app-body); }
.money-rows > div + div { border-top: 1px solid var(--border-subtle); }
.money-rows dd { color: var(--ink); font-variant-numeric: tabular-nums; }
.money-rows .diff dd { color: var(--ink); font-weight: var(--font-weight-app-medium); }
.money-rows .keep { background: var(--signal-wash); border-radius: 0 0 var(--radius-card) var(--radius-card); }
.money-rows .keep dt, .money-rows .keep dd { color: var(--signal); font-weight: var(--font-weight-app-semibold); }

/* Estimator (/estimate/): inputs card left, receipt card right */
.est { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 24px; align-items: start; margin-top: 40px; }
.est-in { padding: 4px var(--pad) var(--pad); }
.est-field { display: flex; flex-direction: column; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--border-subtle); }
.est-field:last-of-type { border-bottom: 0; padding-bottom: 4px; }
.est-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.est-top label { color: var(--ink); font-size: var(--text-app-body); line-height: var(--leading-app-body); font-weight: var(--font-weight-app-medium); }
.hint { margin: 0; color: var(--muted); font-size: var(--text-app-meta); line-height: var(--leading-app-meta); }
.hint a { color: inherit; text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
.est-num { display: inline-flex; align-items: center; gap: 2px; flex-shrink: 0; height: var(--control); padding: 0 10px; border: 1px solid var(--faint); border-radius: var(--radius-control); background: var(--bg); color: var(--ink); font-size: var(--text-app-body); font-variant-numeric: tabular-nums; transition: border-color var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out); }
.est-num:focus-within { border-color: var(--signal); box-shadow: 0 0 0 3px var(--signal-wash); }
.est-num span { color: var(--muted); }
.est-num input { width: 110px; padding: 0 2px; border: 0; outline: 0; background: none; text-align: right; }
.est-num.sm input { width: 56px; }
.range { --p: 50%; width: 100%; height: 18px; margin: 0; background: none; -webkit-appearance: none; appearance: none; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--signal) var(--p), var(--border-subtle) var(--p)); }
.range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--border-subtle); }
.range::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--signal); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border: 1.5px solid var(--signal); border-radius: 50%; background: var(--bg); transition: transform var(--dur-small) var(--ease-out); }
.range::-moz-range-thumb { width: 16px; height: 16px; border: 1.5px solid var(--signal); border-radius: 50%; background: var(--bg); }
.range:focus-visible { outline: 0; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--signal-wash), 0 0 0 4.5px var(--signal); }
.range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--signal-wash), 0 0 0 4.5px var(--signal); }
.motion .range:active::-webkit-slider-thumb { transform: scale(1.2); }
.seg { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--border); border-radius: var(--radius-control); background: var(--bg); }
.seg button { height: 30px; padding: 0 12px; border: 0; border-radius: var(--radius-chip); background: none; color: var(--body); font-size: var(--text-app-meta); font-weight: var(--font-weight-app-medium); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--signal-wash); color: var(--signal); }
.est-out { position: sticky; top: calc(var(--nav-h) + 16px); }
.est-range { display: flex; flex-direction: column; gap: 4px; padding: var(--pad); }
.est-range > p:first-child { color: var(--muted); font-size: var(--text-app-meta); line-height: var(--leading-app-meta); }
.est-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; color: var(--signal); font-size: var(--text-app-amount); line-height: var(--leading-app-amount); font-weight: var(--font-weight-app-semibold); letter-spacing: var(--tracking-app-amount); font-variant-numeric: tabular-nums; }
.est-big i { font-style: normal; color: var(--muted); font-size: var(--text-app-body); font-weight: 400; letter-spacing: 0; }
.est-per { color: var(--muted); font-size: var(--text-app-meta); line-height: var(--leading-app-meta); }
.est-ledger { display: flex; flex-direction: column; border-top: 1px solid var(--border-subtle); }
.est-ledger li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 10px var(--pad); color: var(--ink); font-size: var(--text-app-body); line-height: var(--leading-app-body); }
.est-ledger li + li { border-top: 1px solid var(--border-subtle); }
.est-ledger em { display: block; font-style: normal; color: var(--muted); font-size: var(--text-app-caption); line-height: var(--leading-app-caption); }
.est-ledger b { font-weight: 400; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.est-ledger li.total { background: var(--signal-wash); color: var(--signal); }
.est-ledger li.total b { font-weight: var(--font-weight-app-semibold); }
.caveat { margin: 0; padding: 10px 12px; border-radius: var(--radius-surface); background: var(--warn-wash); color: #5c3d00; font-size: var(--text-app-meta); line-height: var(--leading-app-meta); }
.caveat b { font-weight: var(--font-weight-app-medium); }
.est-cta { display: flex; flex-direction: column; gap: 12px; padding: var(--pad); }
.est-cta .btn { width: 100%; }
.table-card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-card table { width: 100%; border-collapse: collapse; font-size: var(--text-app-body); line-height: var(--leading-app-body); }
.table-card th, .table-card td { padding: 12px var(--pad); text-align: left; vertical-align: top; border-bottom: 1px solid var(--border-subtle); }
.table-card thead th { padding-top: 9px; padding-bottom: 9px; background: var(--plate); color: var(--muted); font-size: var(--text-app-meta); line-height: var(--leading-app-meta); font-weight: var(--font-weight-app-medium); border-bottom-color: var(--border); }
.table-card tr:last-child td { border-bottom: 0; }
.table-card td:first-child { color: var(--ink); font-weight: var(--font-weight-app-medium); }
.table-card td { color: var(--body); }
.table-card td.n { white-space: nowrap; color: var(--ink); }
.table-card a { color: var(--signal); text-decoration: underline; text-decoration-color: var(--signal-line); text-underline-offset: 3px; }

/* Book: what the call covers left, the request form right */
.book { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 24px; align-items: start; margin-top: 40px; }
.book-left { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.form { position: sticky; top: calc(var(--nav-h) + 16px); display: flex; flex-direction: column; gap: 14px; padding: 20px; }
.form h2 { font-size: var(--text-app-title); line-height: var(--leading-app-title); letter-spacing: var(--tracking-app-title); }
.form .row { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form label, .form legend { color: var(--ink); font-size: var(--text-app-meta); line-height: var(--leading-app-meta); font-weight: var(--font-weight-app-medium); padding: 0; }
.form fieldset { margin: 0; padding: 0; border: 0; }
.form legend { margin-bottom: 8px; }
.form input:not([type=checkbox]), .form select, .form textarea { width: 100%; min-height: var(--control); padding: 7px 12px; border: 1px solid var(--faint); border-radius: var(--radius-control); background: var(--bg); color: var(--ink); font-size: var(--text-app-body); line-height: var(--leading-app-body); }
.form select { appearance: none; padding-right: 36px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 20 20' fill='none' stroke='%235d6b63' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 12px center; }
.form input::placeholder { color: var(--muted); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--signal); box-shadow: 0 0 0 3px var(--signal-wash); }
.checks-row { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.checks-row label { display: inline-flex; align-items: center; gap: 8px; min-height: 24px; font-weight: 400; color: var(--body); font-size: var(--text-app-body); }
.checks-row input { width: 16px; height: 16px; margin: 0; accent-color: var(--signal); }
.form .btn { width: 100%; height: var(--control-lg); font-size: var(--text-app-body); }
.form .err { color: var(--danger); font-size: var(--text-app-meta); line-height: var(--leading-app-meta); }
.form .done { color: var(--signal); font-size: var(--text-app-meta); line-height: var(--leading-app-meta); }
.form .done a { color: inherit; }
.placeholder { padding: 10px 12px; border: 1px dashed #d9b46a; border-radius: var(--radius-surface); background: #fffaf0; color: #6b4700; font-size: var(--text-app-meta); line-height: var(--leading-app-meta); }

/* Page end: the gap before the footer when a page has no closing ask */
.page-end { height: var(--space-site-section); }

/* FAQ page */
.faq-page .faq { margin-top: 40px; }
.faq-page .card-inners { gap: 8px; }

/* 12. Motion ------------------------------------------------- */
/* Hidden-start states exist only with JS on, motion allowed (html.motion, set in <head>)
   and the failsafe not fired (html.settled). Without them every element is in its final state. */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
/* Hero load: clip fades, then the copy rises on a short stagger. Under 900ms. */
.motion:not(.settled) .vh-hero .vh-stage { animation: fade var(--dur-large) var(--ease-out) both; }
.motion:not(.settled) .hero > * { animation: rise 480ms var(--ease-out-emph) both; }
.motion:not(.settled) .hero > .eyebrow { animation-delay: 80ms; }
.motion:not(.settled) .hero > h1 { animation-delay: 140ms; }
.motion:not(.settled) .hero > .lede { animation-delay: 240ms; }
.motion:not(.settled) .hero > .actions { animation-delay: 320ms; }
.motion:not(.settled) .hero > .trust { animation-delay: 380ms; }

/* Section reveal: head lines rise on a stagger, the card rises 24px from 180ms, the clip only fades */
.motion [data-reveal] .rv { transition: opacity var(--dur-large) var(--ease-out-emph), transform var(--dur-large) var(--ease-out-emph); transition-delay: calc(var(--rv, 0) * var(--stagger)); }
.motion:not(.settled) [data-reveal]:not(.seen) .rv { opacity: 0; transform: translateY(12px); }
.motion [data-reveal] .rv-card { transition: opacity 640ms var(--ease-out-emph) 180ms, transform 640ms var(--ease-out-emph) 180ms; }
.motion [data-reveal] .rv-clip { transition: opacity 720ms var(--ease-out) 260ms; }
.motion:not(.settled) [data-reveal]:not(.seen) .rv-card { opacity: 0; transform: translateY(24px); }
.motion:not(.settled) [data-reveal]:not(.seen) .rv-clip { opacity: 0; }

/* Sample bill: draw the pencil in order, then land the tag and the finding. Paused while off screen. */
.motion .fb-ink path { stroke-dasharray: 1 2; }
.motion:not(.settled) .fb-duo:not(.in) .fb-ink path { stroke-dashoffset: 1; }
.motion:not(.settled) .fb-duo:not(.in) :is(.fb-tag, .fb-side) { opacity: 0; }
.motion .fb-duo.in .fb-ink path { animation: fb-draw calc(var(--t, .24s) * .85) var(--ease-out) calc(var(--d, 0s) * .8) both; }
.motion .fb-duo.in .fb-side { animation: rise var(--dur-medium) var(--ease-out-emph) .88s both; }
.motion .fb-duo.in .fb-tag { animation: fb-tag 480ms var(--ease-out-emph) 1.16s both; }
.motion .fb-duo.off * { animation-play-state: paused; }
@keyframes fb-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fb-tag {
  0% { opacity: 0; transform: translate(10px, -18px) rotate(14deg); }
  55% { opacity: 1; transform: translate(0, 1px) rotate(3.5deg); }
  78% { transform: translate(0, 0) rotate(5.6deg); }
  100% { opacity: 1; transform: rotate(5deg); }
}
/* The clock: the windows fill in turn */
.motion .bar-track i { transition: transform 900ms var(--ease-loop); }
.motion .bar:nth-child(2) .bar-track i { transition-delay: 120ms; }
.motion .bar:nth-child(3) .bar-track i { transition-delay: 240ms; }
.motion:not(.settled) .h-clock:not(.in) .bar-track i { transform: scaleX(0); }
/* How it works: the steps light in order */
.motion .step > * { transition: opacity var(--dur-small) var(--ease-out); }
.motion .step:nth-child(2) > * { transition-delay: 160ms; }
.motion .step:nth-child(3) > * { transition-delay: 320ms; }
.motion .step:nth-child(4) > * { transition-delay: 480ms; }
.motion:not(.settled) .h-how:not(.in) .step > * { opacity: .35; }
/* What you see: the tailgate moves from with carrier to credited */
.motion .lrow-credit::before, .motion .lrow-credit .st-before, .motion .lrow-credit .st-after { transition: opacity var(--dur-small) var(--ease-out) 400ms; }
.motion:not(.settled) .h-see:not(.in) .lrow-credit::before { opacity: 0; }
.motion:not(.settled) .h-see:not(.in) .lrow-credit .st-before { opacity: 1; }
.motion:not(.settled) .h-see:not(.in) .lrow-credit .st-after { opacity: 0; }
/* Fragments land once their clip is seen */
.motion [data-vh].seen .frag-land { animation: frag-land calc(var(--dur-large) * var(--art-pace)) var(--ease-out-emph) calc(240ms * var(--art-pace)) both; }
.motion:not(.settled) [data-vh]:not(.seen) .frag-land { opacity: 0; }
@keyframes frag-land { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

/* Reduced motion: final states, no movement */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation: none !important; transition-property: opacity, color, background-color, border-color, text-decoration-color !important; }
}
/* Touch: every control gets at least a 44px hit area without changing what is drawn */
@media (pointer: coarse) {
  .btn, .nav-login, .link, .more { position: relative; }
  :is(.btn, .nav-login)::after { content: ""; position: absolute; inset: -4px -2px; }
  :is(.link, .more)::after { content: ""; position: absolute; inset: -12px -6px; }
  .range { height: 40px; margin: -11px 0; }
}

/* 13. Responsive --------------------------------------------- */
@media (max-width: 1099px) {
  .sec-row > .vs .vh-stage { max-width: 100%; }
}
@media (max-width: 1000px) {
  .est, .book { grid-template-columns: minmax(0, 1fr); }
  .est-out, .form { position: static; }
  .fb-duo { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .fb-side { max-width: 440px; padding-top: 0; }
}
@media (max-width: 980px) {
  .mk-menu { display: inline-flex; }
  .mk-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 4px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--border); }
  .mk-nav.open .mk-links { display: flex; }
  .mk-links a:not(.btn):not(.nav-login) { display: flex; align-items: center; min-height: var(--control-lg); border-bottom: 1px solid var(--border-subtle); font-size: var(--text-app-emphasis); }
  .mk-links .nav-login, .mk-links .btn { justify-content: center; height: var(--control-lg); margin: 12px 0 0; font-size: var(--text-app-body); }
}
@media (max-width: 720px) {
  :root { --space-site-section: 80px; --space-site-head: 28px; }
  .page-head { padding-top: 40px; }
  .page-sec { padding-top: 64px; }
  .cta { padding: 96px 0 80px; }
  .offers { grid-template-columns: minmax(0, 1fr); }
  .mix { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: var(--pad); }
  .mix-row { grid-template-columns: 112px minmax(0, 1fr) 48px; }
  .metrics { grid-template-columns: minmax(0, 1fr); }
  .metric + .metric { border-left: 0; border-top: 1px solid var(--border-subtle); }
  .metric { flex-direction: row; justify-content: space-between; align-items: baseline; }
  .form .pair { grid-template-columns: minmax(0, 1fr); }
  .btn, .nav-login { height: var(--control-lg); }
  .hero .actions .btn { flex: 1 1 100%; }
  .form input:not([type=checkbox]), .form select, .est-num input { font-size: 16px; }
}
@media (max-width: 640px) {
  .vh-stage { aspect-ratio: 4 / 3; }
  .vh-hero .vh-stage { aspect-ratio: 1 / 1; }
  .vh-hero video { object-position: 58% 50%; }
  .at-tl { left: 8%; top: 12%; }
  .at-br { right: 8%; bottom: 12%; }
  .at-bl { left: 8%; bottom: 12%; }
  .card-inners { padding: 8px; }
  .xr { padding: 12px; }
  /* Rows stack: words first, the value lane under them */
  .xr { grid-template-columns: 32px minmax(0, 1fr); row-gap: 8px; align-items: start; }
  .xr-v { grid-column: 2; justify-content: flex-start; flex-wrap: wrap; white-space: normal; }
  .xr-amt, .xr-due { min-width: 0; text-align: left; }
  .xr-check .xr-v { display: none; }
  .lrow { grid-template-columns: 28px minmax(0, 1fr) auto; row-gap: 6px; align-items: start; }
  .lrow-status { grid-column: 2; grid-row: 2; }
  .lrow > b { grid-column: 3; grid-row: 1; }
  .share b { font-size: 56px; }
  .term { flex-wrap: wrap; }
  .fee-split { grid-template-columns: minmax(0, 1fr); }
  .fee-split div + div { padding: 2px 0; border-left: 0; }
  .fb-stage { padding: 12px 0 8px; }
  .fb-sheet { transform: none; padding: 18px 26px 16px 20px; gap: 12px; }
  .fb-head { flex-direction: column; gap: 12px; }
  .fb-doc { align-items: flex-start; }
  .fb-meta dt, .fb-meta dd { text-align: left; }
  .fb-parties { grid-template-columns: 1fr 1fr; }
  .fb-parties > div:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--rule); }
  .fb-tr { grid-template-columns: 38px minmax(0, 1fr) 50px; }
  .fb-tr .fb-qty, .fb-tr .fb-wt, .fb-tr .fb-rate { display: none; }
  .fb-desc small { display: block; color: var(--print-2); font-size: 12px; line-height: 16px; }
  .fb-tick { right: -24px; width: 18px; height: 18px; }
  .fb-sum { flex-direction: column; gap: 4px; }
  .fb-remarks { min-height: 44px; }
  .fb-totals { min-width: 0; align-self: flex-end; }
  .fb-note { left: 44px; }
  .fb-loop { left: -14px; width: calc(100% + 26px); }
  .fb-stamp { left: auto; right: 14px; top: 96px; }
  .fb-tag { right: -4px; top: -6px; width: 78px; height: 44px; }
  .fb-tag span { font-size: 15px; }
  .ft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media print {
  .mk-nav, .mk-foot, .cta, .vh { display: none !important; }
}
