/* Dispatch Trace LLC company site — "Ledger" design system.
   Light only. Tokens live in :root; components follow. No third-party
   resources: every font is self-hosted from /assets/fonts. */

@font-face { font-family: 'Geist'; src: url('assets/fonts/Geist-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('assets/fonts/Geist-Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('assets/fonts/Geist-SemiBold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('assets/fonts/InstrumentSerif-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }

:root {
    --paper: #FBFAF7;
    --paper-2: #F3F1EB;
    --card: #FFFFFF;
    --ink: #0E1B2C;
    --ink-2: #56606E;
    --line: #D9D6CE;
    --brand: #009FDE;      /* logo, bars, large accents only — ~3:1, never small text */
    --brand-ink: #0072A3;  /* buttons, links, eyebrows — ~5:1 */
    --glow: rgb(0 159 222 / .7); /* --brand with alpha: the pointer-glow ring on cards */
    --steel: #7FA7BF;      /* maintenance segment in the cost bar */
    --danger: #A32D2D;
    --ok: #1E6B45;
    --ok-bg: #E4F1E9;
    --warn: #8A5300;       /* "Look" tags in example illustrations */
    --warn-bg: #FBF0DC;
    --wash: #E3F2FA;       /* pill and tile tint */
    --ink-soft: #A9B4C2;   /* muted text on the ink band */
    --ease: cubic-bezier(.2, .7, .2, 1);
    --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
    --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --wrap: 1120px;
    --r-card: 12px;
    --r-btn: 6px;
    color-scheme: light;
}

/* ---- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--sans); }
img, svg { max-width: 100%; height: auto; }
a { color: var(--brand-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
h1, h2, h3 { margin: 0; font-weight: inherit; }
p { margin: 0 0 1em; }
strong { font-weight: 600; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; padding: 8px 12px; border-radius: var(--r-btn); background: var(--ink); color: var(--paper); }
.skip:focus { left: 8px; }

/* ---- Layout -------------------------------------------------------------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.sect { padding: 64px 0; }
.band { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rule { border-top: 1px solid var(--line); }
.grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.grid-wide { gap: 48px; align-items: start; }
@media (min-width: 760px) {
    .wrap { padding: 0 24px; }
    .sect { padding: 88px 0; }
    .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---- Type ---------------------------------------------------------------- */
.eyebrow { margin: 0 0 14px; font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); }
.h-hero { font: 400 clamp(42px, 6.2vw, 68px)/1.03 var(--serif); letter-spacing: -.015em; margin-bottom: 22px; }
.h-page { font: 400 clamp(36px, 5vw, 52px)/1.08 var(--serif); margin-bottom: 16px; }
.h-sect { font: 400 clamp(30px, 4vw, 40px)/1.12 var(--serif); margin-bottom: 16px; }
.h-card { font: 600 18px/1.3 var(--sans); margin-bottom: 8px; }
.lede { font-size: 18px; color: var(--ink-2); max-width: 640px; }
.muted { color: var(--ink-2); }
.xs { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }

/* ---- Buttons and cards --------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border: 1px solid var(--ink); border-radius: 999px; background: var(--card); color: var(--ink); font: 500 15px/1.2 var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--paper-2); color: var(--ink); }
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--wash); color: var(--brand-ink); font: 500 11px/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.pill-ink { background: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; }
.card-link { display: inline-block; margin-top: 4px; font-weight: 500; }

/* ---- Header -------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
/* site.js adds .scrolled once the page moves. */
.site-header.scrolled { background: rgba(251, 250, 247, .92); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 17px; text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark { display: block; width: 48px; height: 24px; }
.nav { display: none; }
.nav a:not(.btn) { color: var(--ink); font-size: 15px; text-decoration: none; }
.nav a:not(.btn):hover, .nav a[aria-current]:not(.btn) { color: var(--brand-ink); }
.navtoggle { min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--card); color: var(--ink); font: 500 15px var(--sans); cursor: pointer; }
html:not(.js) .navtoggle { display: none; } /* without JS the footer is the nav */
.mobilenav { display: none; padding: 4px 16px 12px; border-top: 1px solid var(--line); }
.mobilenav.open { display: block; }
.mobilenav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.mobilenav a:last-child { border-bottom: 0; }
@media (min-width: 900px) {
    .nav { display: flex; align-items: center; gap: 28px; }
    .navtoggle, .mobilenav, .mobilenav.open { display: none; }
}

/* ---- Footer -------------------------------------------------------------- */
.site-footer { padding: 48px 0 32px; background: var(--paper-2); border-top: 1px solid var(--line); font-size: 14px; }
.foot-grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer h2 { margin-bottom: 12px; font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 0 0 8px; }
.site-footer a:not(.brand) { color: var(--ink); text-decoration: none; }
.site-footer a:not(.brand):hover { color: var(--brand-ink); }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 13px; }

/* ---- Hero and page head -------------------------------------------------- */
/* Both sit on a faint ledger grid that fades out from one focal point. The
   hero's focal point follows the pointer (--mx/--my, set by site.js). */
.hero { --mx: 76%; --my: 42%; padding: 56px 0 72px; overflow: hidden; background:
    radial-gradient(40% 60% at 78% 45%, rgba(0, 159, 222, .13), transparent 70%),
    radial-gradient(45% 65% at var(--mx) var(--my), rgba(251, 250, 247, 0) 0%, var(--paper) 100%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--paper); }
.hero-grid { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 900px) { .hero { padding: 88px 0 96px; } .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 24px; } }
.h-hero em { font-style: italic; color: var(--brand-ink); }
.who { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.page-head { padding: 48px 0 40px; border-bottom: 1px solid var(--line); background:
    radial-gradient(35% 90% at 88% 20%, rgba(0, 159, 222, .10), transparent 70%),
    radial-gradient(40% 110% at 88% 20%, rgba(251, 250, 247, 0) 0%, var(--paper) 100%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--paper); }
.crumbs { margin-bottom: 20px; color: var(--ink-2); font-size: 13px; }
.crumbs a { color: var(--ink-2); }

/* ---- Numbered steps ------------------------------------------------------ */
.steps { display: grid; grid-template-columns: minmax(0, 1fr); margin: 24px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); counter-reset: step; }
.steps li { padding: 20px 0 8px; counter-increment: step; }
.steps li + li { border-top: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 10px; font: 400 32px/1 var(--serif); font-variant-numeric: tabular-nums; }
.steps h3 { margin-bottom: 6px; font: 600 17px/1.3 var(--sans); }
.steps p { color: var(--ink-2); font-size: 15px; }
@media (min-width: 760px) {
    .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .steps li { padding-right: 20px; }
    .steps li + li { padding-left: 20px; border-top: 0; border-left: 1px solid var(--line); }
}
/* Stacked variant (contact sidebar): one column at every width. */
.steps.stack { grid-template-columns: minmax(0, 1fr); }
.steps.stack li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }

/* ---- Lists: ticks, don'ts ------------------------------------------------ */
.ticks, .dont ul { margin: 20px 0 0; padding: 0; list-style: none; }
.ticks li, .dont li { position: relative; padding: 12px 0 12px 28px; border-top: 1px solid var(--line); }
.ticks li::before { content: "\2713"; position: absolute; left: 2px; top: 12px; color: var(--brand-ink); }
.dont { padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); }
.dont ul { margin-top: 12px; }
.dont li::before { content: "\2715"; position: absolute; left: 4px; top: 13px; color: var(--danger); font-size: 13px; }

/* ---- Service blocks ------------------------------------------------------ */
.service { padding: 48px 0; border-top: 1px solid var(--line); }
[id] { scroll-margin-top: 84px; } /* clear the sticky header on anchor jumps */
.page-head + .service { border-top: 0; }
.service-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .service-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; } }
.facts { margin: 0; }
.facts > div { padding: 12px 0; border-top: 1px solid var(--line); }
.facts dt { margin-bottom: 4px; font: 500 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.facts dd { margin: 0; }
.facts ul { margin: 0; padding-left: 18px; }
.facts li { margin-bottom: 4px; }

/* ---- Example illustrations (statements, reports) ------------------------- */
.example { margin: 0; }
.example-cap { margin-top: 10px; color: var(--ink-2); font-size: 13px; }
.statement { padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); font-size: 14px; }
.statement-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-bottom: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.statement table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.statement th, .statement td { padding: 8px 6px 8px 0; border-bottom: 1px solid var(--line); text-align: left; }
.statement th { font: 500 11px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.statement .r { text-align: right; padding-right: 0; }
.statement tfoot td { border-top: 1px solid var(--ink); border-bottom: 0; font-weight: 600; }
.statement-note { margin: 12px 0 0; color: var(--ink-2); font-size: 13px; }

/* ---- Calculators --------------------------------------------------------- */
.calc { padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); }
.calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 10px 12px; align-items: center; }
.calc label { color: var(--ink-2); font-size: 14px; }
.calc input { width: 100%; height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--paper); color: var(--ink); font: 400 15px var(--sans); font-variant-numeric: tabular-nums; text-align: right; }
.calc input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand-ink); outline: 2px solid transparent; box-shadow: 0 0 0 2px rgba(0, 114, 163, .25); }
.calc-out { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--ink); }
.calc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 4px 0; color: var(--ink-2); font-size: 14px; font-variant-numeric: tabular-nums; }
.calc-row output { color: var(--ink); }
.calc-total output { font: 400 34px/1.1 var(--serif); }
.calc-err { min-height: 20px; margin: 8px 0 4px; color: var(--danger); font-size: 13px; }
.calc-bar { display: flex; height: 10px; margin: 12px 0 8px; overflow: hidden; border-radius: 3px; background: var(--paper-2); }
.calc-bar span { display: block; height: 100%; width: 0; }
.calc-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 12px; }
.calc-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 2px; vertical-align: -1px; }
.seg-fixed { background: var(--ink); }
.seg-driver { background: var(--brand-ink); }
.seg-fuel { background: var(--brand); }
.seg-maint { background: var(--steel); }
.seg-other { background: var(--line); }
.formula { margin: 0 0 24px; padding: 16px; overflow-x: auto; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-btn); font: 400 13px/1.7 var(--mono); white-space: pre; }

/* ---- FAQ ----------------------------------------------------------------- */
.faq details { padding: 16px 0; border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; font-weight: 600; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand-ink); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 12px 0 0; color: var(--ink-2); }

/* ---- Forms --------------------------------------------------------------- */
.form { display: grid; gap: 18px; }
.field label, .form legend { display: block; margin-bottom: 6px; padding: 0; font-weight: 500; font-size: 15px; }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--card); color: var(--ink); font: 400 16px/1.4 var(--sans); }
.field textarea { min-height: 140px; resize: vertical; }
.form fieldset { margin: 0; padding: 0; border: 0; }
.checks { display: grid; gap: 4px 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.checks label { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 15px; }
.checks input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand-ink); }
.req { color: var(--danger); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
html:not(.js) #contactForm > :not(noscript) { display: none; }
.form-status:empty { margin: 0; }
.form-status--success, .form-status--error { margin: 0; padding: 14px 16px; border: 1px solid; border-radius: var(--r-btn); background: var(--card); }
.form-status--success { border-color: var(--ok); color: var(--ok); }
.form-status--error { border-color: var(--danger); color: var(--danger); }

/* ---- Prose (legal pages) ------------------------------------------------- */
.prose { max-width: 720px; }
.prose h2 { margin: 40px 0 12px; font: 400 28px/1.2 var(--serif); }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }

/* ---- Frame: the page sits between two hairlines on wide screens ----------- */
/* Every full-width seam gets a "+" where it meets the frame. */
.seam, .service, .rule, .band, .page-head, .site-footer { position: relative; }
@media (min-width: 1024px) {
    html { padding: 0 24px; background: var(--paper); }
    body { max-width: 1184px; min-height: 100vh; margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
    .seam::before, .seam::after, .service::before, .service::after, .rule::before, .rule::after,
    .band::before, .band::after, .site-footer::before, .site-footer::after, .page-head::before, .page-head::after {
        content: "+"; position: absolute; top: -11px; z-index: 1; width: 13px; text-align: center;
        font: 300 16px/20px var(--mono); color: var(--ink-2); pointer-events: none;
    }
    .seam::before, .service::before, .rule::before, .band::before, .site-footer::before, .page-head::before { left: -7px; }
    .seam::after, .service::after, .rule::after, .band::after, .site-footer::after, .page-head::after { right: -7px; }
    .page-head::before, .page-head::after { top: auto; bottom: -11px; }
}
.seam { border-top: 1px solid var(--line); }

/* ---- Home: example health check in the hero ------------------------------ */
/* Phones: the panel flows and two floating cards pin to its corners. Wide
   screens: everything sits on a fixed stage, as in the mockup. */
.stage { position: relative; margin: 0; padding: 30px 0 86px; }
.hc { position: relative; overflow: hidden; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(14, 27, 44, .04), 0 14px 36px -14px rgba(14, 27, 44, .2); }
.hc-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.hc-title { font-weight: 600; font-size: 15px; }
.hc-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--paper-2); font-size: 14px; }
.hc-row .v { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tag { padding: 5px 8px; border-radius: 6px; font: 500 11px/1 var(--mono); }
.tag-ok { background: var(--ok-bg); color: var(--ok); }
.tag-look { background: var(--warn-bg); color: var(--warn); }
.fl { position: absolute; z-index: 1; padding: 10px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px -14px rgba(14, 27, 44, .28); font-size: 13px; }
.fl-spots { top: 0; left: 8px; display: flex; align-items: center; gap: 8px; }
.fl-spots i { width: 8px; height: 8px; border-radius: 50%; background: #D98A00; box-shadow: 0 0 0 4px var(--warn-bg); }
.fl-plan { right: 8px; bottom: 0; width: 230px; }
.fl-plan .bar { display: flex; gap: 4px; margin: 10px 0 6px; }
.fl-plan .bar i { flex: 1; height: 6px; border-radius: 3px; background: var(--paper-2); }
.fl-plan .bar i.on { background: var(--brand); }
.fl-next { display: none; max-width: 240px; background: var(--ink); border-color: var(--ink); color: #fff; }
.fl-next .mono { color: #7CC9EE; }
.mono { font: 500 11px/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
@media (min-width: 900px) {
    .stage { height: 520px; padding: 0; }
    .hc { position: absolute; top: 50px; left: 40px; right: 30px; }
    .fl-spots { top: 0; left: -18px; }
    .fl-plan { right: -10px; bottom: 0; width: 250px; }
    .fl-next { display: block; left: -10px; bottom: 30px; }
}

/* ---- Home: practices bento ----------------------------------------------- */
.bento { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin-top: 36px; }
@media (min-width: 760px) { .bento { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } .tile-big { grid-row: span 2; } }
/* No overflow clip: the pointer-glow ring sits on the 1px border, outside the padding box. */
.tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.tile h3 { margin: 14px 0 10px; font: 400 32px/1.1 var(--serif); }
.tile p { margin: 0; }
.tile .card-link { margin-top: 18px; }
.trio { align-self: stretch; margin: 24px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.trio li { display: grid; grid-template-columns: 34px minmax(0, 1fr); padding: 14px 0; border-bottom: 1px solid var(--paper-2); }
.trio b { font: 400 22px/1 var(--serif); color: var(--brand-ink); }
.trio strong { display: block; font-size: 15px; }
.trio span { color: var(--ink-2); font-size: 14px; }
@media (min-width: 760px) { .tile-big .trio { margin-top: auto; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 0; }
.chips span { padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); font-size: 13px; }
.tile .chips { margin-bottom: 4px; }
.mini-ledger { align-self: stretch; margin: 16px 0 0; border-top: 1px solid var(--line); font: 13px/1.2 var(--mono); }
.mini-ledger div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); color: var(--ink-2); }
.mini-ledger dt { margin: 0; }
.mini-ledger dd { margin: 0; color: var(--ink); font-weight: 500; }
.browser { align-self: stretch; margin-top: 16px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.browser-bar { display: flex; gap: 5px; align-items: center; height: 22px; padding: 0 9px; background: var(--card); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.browser-body { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; padding: 14px; }
.sk { height: 8px; margin-bottom: 7px; border-radius: 4px; background: var(--line); }
.sk-h { width: 80%; height: 14px; background: var(--ink); }
.sk-b { width: 40%; height: 16px; margin-top: 10px; border-radius: 999px; background: var(--brand-ink); }
.sk-img { border-radius: 8px; background: var(--wash); }

/* ---- Where carriers lose money ------------------------------------------- */
.cells { display: grid; grid-template-columns: minmax(0, 1fr); margin: 36px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
@media (min-width: 560px) { .cells { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .cells { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cells li { padding: 22px; background: var(--paper); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cells .n { font: 500 11px var(--mono); letter-spacing: .06em; color: var(--ink-2); }
.cells h3 { margin: 16px 0 6px; font: 600 16px/1.3 var(--sans); }
.cells p { margin: 0; color: var(--ink-2); font-size: 14px; }

/* ---- Ink band (engagement steps) ----------------------------------------- */
.ink { background: var(--ink); color: #E8ECF1; }
.ink .eyebrow { color: #7CC9EE; }
.ink .h-sect { color: #fff; }
.steps-ink { position: relative; margin-top: 40px; border-top-color: rgba(255, 255, 255, .22); }
.steps-ink::after { content: ""; position: absolute; top: -1px; left: 0; width: 100%; height: 1px; background: var(--brand); transform-origin: left; }
.steps-ink li::before { margin-bottom: 18px; font-size: 56px; color: #fff; }
.steps-ink li + li { border-color: rgba(255, 255, 255, .14); }
.steps-ink h3 { color: #fff; }
.steps-ink p { color: var(--ink-soft); }

/* ---- Home: tools strip, FAQ split, call to action ------------------------ */
.tools-strip { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: stretch; }
@media (min-width: 900px) { .tools-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tool-card { display: flex; flex-direction: column; align-items: flex-start; padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; color: var(--ink); text-decoration: none; }
.tool-card:hover { color: var(--ink); }
.tool-fig { margin: 18px 0 4px; font: 400 52px/1 var(--serif); font-variant-numeric: tabular-nums; }
.tool-fig small { font: 400 17px var(--sans); color: var(--ink-2); }
.tool-card .muted { margin: 0; }
.tool-go { margin-top: auto; padding-top: 18px; color: var(--brand-ink); font-weight: 500; }
.split { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 56px; } }
.cta { padding: 88px 0; text-align: center; background: radial-gradient(50% 80% at 50% 100%, rgba(0, 159, 222, .14), transparent 70%), var(--paper); }
.cta .h-sect { font-size: clamp(36px, 5vw, 60px); }
.cta .lede { margin: 0 auto; }
.cta .btn-row { justify-content: center; }

/* ---- Footer wordmark ----------------------------------------------------- */
.wordmark-wrap { margin: 40px 0 -32px; overflow: hidden; }
.wordmark { font: 400 clamp(56px, 19.5vw, 236px)/.8 var(--serif); /* about 4.5em wide: fills ~92% of the frame */ letter-spacing: -.03em; text-align: center; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px #BDB8AC; transform: translateY(16%); user-select: none; }

/* ---- Motion -------------------------------------------------------------- */
/* Enhancement only. site.js adds .motion to <html> when the visitor has not
   asked for reduced motion; without it every element is in its final state.
   The polish-* blocks after this section come from .claude/skills/polish-*. */
@media (prefers-reduced-motion: no-preference) {
    /* polish-scroll-reveal adds .is-in once these are seen: the ink-band rule draws
       across, and the footer wordmark rises (it opts out of the fade, see below). */
    .motion .steps-ink::after { transform: scaleX(0); transition: transform 1.4s var(--ease) .3s; }
    .motion .steps-ink.is-in::after { transform: scaleX(1); }
    .motion .wordmark-wrap .wordmark { transform: translateY(70%); transition: transform 1.4s var(--ease); }
    .motion .wordmark-wrap.is-in .wordmark { transform: translateY(16%); }

    /* Hero: a scan line passes over the panel, the rows land one by one, then
       the floating cards arrive and drift. */
    .motion .hc::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--brand), transparent); opacity: 0; animation: hc-scan 1.6s var(--ease) .3s both; }
    .motion .hc-row { animation: hc-row .5s var(--ease) both; animation-delay: calc(.35s + var(--i, 0) * 120ms); }
    .motion .hc-row .tag { animation: hc-tag .35s var(--ease) both; animation-delay: calc(.6s + var(--i, 0) * 120ms); }
    .motion .fl { animation: fl-in .6s var(--ease) both, fl-bob 7s ease-in-out infinite; }
    .motion .fl-spots { animation-delay: 1.3s, 1.9s; }
    .motion .fl-next { animation-delay: 1.6s, 2.6s; }
    .motion .fl-plan { animation-delay: 1.8s, 3.2s; }

    .site-header { transition: background-color .3s; }
}
@keyframes hc-scan { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@keyframes hc-row { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@keyframes hc-tag { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
/* Individual translate/scale, not transform: transform carries each card's 3D depth (Signature). */
@keyframes fl-in { from { opacity: 0; translate: 0 12px; scale: .96; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes fl-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@media print { .site-header { position: static; } }

/* === polish-page-transitions === */
/* Cross-document view transitions: same-origin page loads crossfade instead of flashing.
   CSS only; every page loads this file. Unsupported browsers navigate normally. */
@media (prefers-reduced-motion: no-preference) {
    @view-transition { navigation: auto; }
}
::view-transition-old(root),
::view-transition-new(root) { animation-duration: .3s; animation-timing-function: var(--ease); }
/* The header stays still while the page under it crossfades. One per page. */
.site-header { view-transition-name: site-header; }

/* === polish-hover-states === */
/* States apply everywhere; the MOTION between states only when the visitor allows it.
   Hover-only effects sit behind (hover: hover) so they never stick on touch screens.
   One link style site-wide: the underline wipe on the header nav (in from the left, out to
   the right). It also marks the current page: aria-current="page", or "true" on tool pages. */
.nav a:not(.btn) { position: relative; }
.nav a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -.2em;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right center;
}
.nav a:not(.btn):focus-visible::after,
.nav a[aria-current]:not(.btn)::after { transform: scaleX(1); }

/* Card lift and arrow nudge (home bento tiles, tool cards). A tool card is itself a link,
   so keyboard focus gets the same cue as hover. */
.tool-card:focus-visible { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(14, 27, 44, .35); border-color: var(--ink-2); }
.tool-card:focus-visible .tool-go { transform: translateX(4px); }

@media (hover: hover) {
    .nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left center; }

    .tile:hover, .tool-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(14, 27, 44, .35); }
    .tool-card:hover { border-color: var(--ink-2); }
    .tool-card:hover .tool-go { transform: translateX(4px); }
    .cells li:hover { background: var(--card); }
    .cells li:hover .n { color: var(--brand-ink); }
}

@media (prefers-reduced-motion: no-preference) {
    .nav a:not(.btn)::after { transition: transform .3s var(--ease); }
    .tile, .tool-card, .cells li, .btn { transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, border-color .2s, color .2s; }
    .tool-go { transition: transform .25s var(--ease); }
}

/* === polish-scroll-reveal === */
/* Hidden state exists only under html.motion, which the head-loaded site.js adds before
   first paint. No JS, no IntersectionObserver, or reduced motion -> content is simply visible.
   Uses a keyframe with `backwards` fill (not a transition), so once an element has revealed
   it goes back to its own styles: the card hover transitions above keep their own timing.
   Selectors are written out per part (no :is) so tests/site.test.js sees .motion in each. */
@media (prefers-reduced-motion: no-preference) {
    .motion [data-reveal]:not(.is-in),
    .motion [data-stagger] > :not(.is-in) { opacity: 0; }
    .motion [data-reveal].is-in,
    .motion [data-stagger] > .is-in {
        animation: polish-reveal .7s var(--ease) backwards;
        animation-delay: calc(var(--i, 0) * 90ms);
    }
    /* The footer wordmark uses data-reveal only as a "seen" hook; it rises by itself (Motion). */
    .motion .wordmark-wrap[data-reveal] { opacity: 1; animation: none; }
}

@keyframes polish-reveal {
    from { opacity: 0; transform: translateY(var(--reveal-shift, 18px)); }
}

@media print {
    .motion :is([data-reveal], [data-stagger] > *) { opacity: 1 !important; animation: none !important; }
}

/* === polish-count-up === */
[data-count] { font-variant-numeric: tabular-nums; } /* digits keep one width while counting */

/* === polish-headline-reveal === */
/* Each word of the home hero h1 slides up from behind its own baseline mask. site.js wraps
   the words at runtime, so the HTML source (what crawlers and no-JS visitors get) stays plain. */
@media (prefers-reduced-motion: no-preference) {
    .motion [data-split]:not(.is-split) { visibility: hidden; } /* no flash of unsplit text */

    .motion [data-split] .w {
        display: inline-block;
        overflow: hidden;
        vertical-align: top;
        /* The mask grows past the word so descenders (g, y, j) and the slant of <em> stay
           inside it (only the upright Instrument Serif is loaded, so the italic is synthetic);
           the negative margins cancel the extra space. */
        padding: 0 .12em .12em;
        margin: 0 -.12em -.12em;
    }
    .motion [data-split] .w > span {
        display: inline-block;
        animation: polish-word .8s var(--ease) backwards;
        animation-delay: calc(120ms + var(--i, 0) * 55ms);
    }
}

@keyframes polish-word {
    from { transform: translateY(110%); }
}

/* === polish-pointer-glow === */
/* .glow-card: a soft light follows the mouse along the card border (home bento tiles and
   tool cards; mouse devices only). The --spin variant is not installed: there is no single
   featured card. The ring is drawn over the card's own 1px border with a padding box +
   mask "exclude", so the card must not clip its overflow. It exists only under html.motion,
   like every other hidden state on this site. --glow (in :root) is --brand with alpha. */
.glow-card { position: relative; isolation: isolate; }

.motion .glow-card::after {
    content: "";
    position: absolute;
    inset: -1px;
    padding: 1px;                         /* ring thickness */
    border-radius: inherit;
    pointer-events: none;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask-composite: exclude;
    background: radial-gradient(220px circle at var(--glow-x, 50%) var(--glow-y, 50%),
                var(--glow), transparent 70%);
    opacity: 0;
}
@media (hover: hover) {
    .motion .glow-card:hover::after { opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
    .motion .glow-card::after { transition: opacity .3s; }
}

/* ---- Home signature ------------------------------------------------------ */
/* What makes the first screen look different at rest, not only on hover:
   the health-check panel as a tilted 3D product shot with its cards floating
   at different depths, a hand-drawn underline under "leaks money.", a service
   ticker under the hero, step numbers that fill as you scroll, and a slow
   glow behind the closing call to action. */

/* Hero: 3D product shot (desktop). The tilt is static; with motion on, site.js
   steers it a few degrees toward the pointer. Below 900px the wrapper vanishes
   (display: contents) and the stacked mobile layout is unchanged. */
.stage-3d { display: contents; }
@media (min-width: 900px) {
    .stage { perspective: 1700px; perspective-origin: 55% 35%; }
    .stage::before { content: ""; position: absolute; inset: 6% -6% 0 4%; border-radius: 50%;
        background: radial-gradient(closest-side, rgba(0, 159, 222, .22), rgba(0, 159, 222, .06) 60%, transparent); }
    .stage-3d { display: block; position: absolute; inset: 0; transform-style: preserve-3d;
        transform: rotateX(var(--tilt-x, 7deg)) rotateY(var(--tilt-y, -13deg)) rotateZ(1deg); }
    .stage-3d .hc { box-shadow: 0 1px 2px rgba(14, 27, 44, .04), 0 50px 90px -40px rgba(14, 27, 44, .45); }
    .stage-3d .fl-spots { transform: translateZ(80px); }
    .stage-3d .fl-next { transform: translateZ(55px); }
    .stage-3d .fl-plan { transform: translateZ(100px); }
    .stage-3d .fl { box-shadow: 0 30px 50px -24px rgba(14, 27, 44, .4); }
}
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
    .motion .stage-3d { transition: transform .9s var(--ease); }
    .motion .stage::before { animation: stage-glow 9s ease-in-out infinite alternate; }
}
@keyframes stage-glow { to { transform: scale(1.08) translate(-2%, 3%); opacity: .8; } }

/* Headline: a brand-blue stroke drawn under "leaks money." once the words land. */
.h-hero em { position: relative; display: inline-block; }
.scribble { position: absolute; left: -3%; bottom: -.16em; width: 106%; height: .3em; overflow: visible; pointer-events: none; }
.scribble path { fill: none; stroke: var(--brand); stroke-width: 3px; stroke-linecap: round; vector-effect: non-scaling-stroke; }
@media (prefers-reduced-motion: no-preference) {
    .motion .scribble path { stroke-dasharray: 1; animation: scribble-draw .9s var(--ease) 1s backwards; }
}
@keyframes scribble-draw { from { stroke-dashoffset: 1; } }

/* === polish-marquee === */
/* Service ticker under the hero. Decorative (aria-hidden): every item is named elsewhere on the
   page, so there is no pause button; it pauses on hover. Reduced motion: a static wrapped row. */
.ticker-band { padding: 22px 0; background: var(--paper); }
.marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: flex; width: max-content; }
.marquee__group {
    display: flex; flex-shrink: 0; align-items: center;
    gap: var(--marquee-gap, 36px);
    margin: 0; padding: 0 var(--marquee-gap, 36px) 0 0;
    list-style: none;
    font: italic 400 clamp(24px, 2.6vw, 34px)/1.1 var(--serif);
    color: var(--ink);
    white-space: nowrap;
}
.marquee__group li { display: flex; align-items: center; gap: var(--marquee-gap, 36px); }
.marquee__group li::after { content: ""; width: 7px; height: 7px; background: var(--brand); transform: rotate(45deg); }
@media (prefers-reduced-motion: no-preference) {
    .marquee__track { animation: polish-marquee var(--marquee-speed, 60s) linear infinite; }
    .marquee:hover .marquee__track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
    .marquee { -webkit-mask-image: none; mask-image: none; }
    .marquee__track { width: auto; }
    .marquee__group { flex: 1 1 100%; flex-wrap: wrap; justify-content: center; row-gap: 14px; padding: 0 16px; white-space: normal; }
    .marquee__group + .marquee__group { display: none; }
}
@keyframes polish-marquee { to { transform: translate3d(-50%, 0, 0); } }

/* Ink band: the rule draws across and the outlined step numbers fill in, tied to scroll
   position. Without scroll-driven animations the earlier .is-in rule draws the line instead
   and the numbers stay solid white. */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .steps-ink { view-timeline-name: --steps; }
        .motion .steps-ink::after { transition: none; animation: steps-line linear both; animation-timeline: --steps; animation-range: entry 30% cover 55%; }
        .motion .steps-ink li::before { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .6); animation: step-fill linear both; animation-timeline: --steps; }
        .motion .steps-ink li:nth-child(1)::before { animation-range: entry 60% cover 38%; }
        .motion .steps-ink li:nth-child(2)::before { animation-range: cover 38% cover 46%; }
        .motion .steps-ink li:nth-child(3)::before { animation-range: cover 46% cover 55%; }
    }
}
@keyframes steps-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes step-fill { to { color: #fff; -webkit-text-stroke-color: #fff; } }

/* Eight-places grid: a soft light follows the mouse across the cells (site.js sets --sx/--sy). */
.cells { position: relative; }
.motion .cells::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
    background: radial-gradient(280px circle at var(--sx, 50%) var(--sy, 50%), rgba(0, 159, 222, .13), transparent 70%); }
@media (hover: hover) {
    .motion .cells:hover::after { opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
    .motion .cells::after { transition: opacity .3s; }
}

/* Closing CTA: two brand-blue fields drift slowly behind the call to action. */
.cta { isolation: isolate; }
.cta-aurora { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.cta-aurora::before { content: ""; position: absolute; inset: -30%;
    background:
        radial-gradient(26% 36% at 32% 62%, rgba(0, 159, 222, .20), transparent 70%),
        radial-gradient(24% 34% at 68% 52%, rgba(127, 167, 191, .30), transparent 70%),
        radial-gradient(34% 40% at 50% 92%, rgba(0, 159, 222, .14), transparent 70%); }
@media (prefers-reduced-motion: no-preference) {
    .cta-aurora::before { animation: polish-aurora 22s ease-in-out infinite alternate; }
}
@keyframes polish-aurora { to { transform: translate3d(5%, -4%, 0) rotate(8deg) scale(1.06); } }

