/* ChiroScore marketing site — page styles on top of tokens.css.
   Recreated from the 2026-08-18 design handoff (Marketing Home); values that
   aren't tokens are the handoff's own (section paddings, hero type ramp). */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ui);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green); }
a:hover { color: var(--chrome-bg); }
.wrap { max-width: 1120px; margin: 0 auto; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--r-sm); }
.on-chrome :focus-visible { box-shadow: var(--focus-ring-chrome); }

/* ---- header ---- */
.site-head { background: var(--chrome-bg); color: var(--chrome-ink); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; padding: 18px 24px; }
.wordmark { font-size: 1.125rem; font-weight: 700; letter-spacing: -.02em; color: var(--chrome-ink); text-decoration: none; }
.wordmark b { color: var(--accent-chrome); font-weight: 700; }
.site-head nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.site-head nav a { font-size: .875rem; color: var(--chrome-ink-80); text-decoration: none; }
.site-head nav a:hover { color: var(--chrome-ink); }

.btn { font-family: var(--ui); font-weight: 600; color: var(--accent-ink); background: var(--accent-chrome);
  border: 0; border-radius: var(--r-sm); padding: 10px 16px; min-height: var(--touch-min);
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn:active { background: var(--accent-active); }
.btn-lg { font-size: .95rem; border-radius: var(--r-md); padding: 14px 22px; min-height: 48px; }

/* ---- hero ---- */
.hero { background: var(--chrome-bg); color: var(--chrome-ink); padding: 56px 24px 0; }
.hero h1 { font-size: 2.6rem; line-height: 1.1; font-weight: 700; letter-spacing: -.03em; margin: 0;
  max-width: 26ch; text-wrap: balance; }
.hero .sub { font-size: 1.05rem; line-height: 1.6; color: var(--chrome-ink-80); margin: 20px 0 0;
  max-width: 60ch; text-wrap: pretty; }
.hero .cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 28px; }
.hero .cta-note, .hero .cta-aud { font-size: .875rem; color: var(--chrome-ink-80); }
.hero .cta-aud { margin-left: auto; font-size: var(--text-sm); }

/* Product shot: an HTML recreation of the board. The container sets its own
   ink — without it every value inherits chrome ink onto white (1.13:1). */
.shot { margin-top: 40px; background: var(--surface); color: var(--ink);
  border: 1px solid var(--chrome-line); border-radius: 12px 12px 0 0; overflow: hidden;
  box-shadow: 0 -2px 32px rgba(16, 35, 26, .28); }
.shot-bar { display: flex; align-items: center; gap: 8px; background: var(--hover-bg);
  border-bottom: 1px solid var(--line); padding: 9px 12px; }
.shot-bar i { width: 9px; height: 9px; border-radius: var(--r-pill); background: var(--line-strong); }
.board-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; padding: 14px 20px 0; }
.board-head h2 { font-size: 1.05rem; font-weight: 600; letter-spacing: -.02em; margin: 0; }
.board-head span { font-size: .82rem; color: var(--muted); }
.board { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding: 16px 20px 24px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--green);
  border-radius: var(--r-md); padding: 20px; min-width: 0; }
.tile.amber { border-left-color: var(--amber); }
.tile .label { display: flex; align-items: center; gap: 6px; min-height: 20px;
  font-size: .875rem; font-weight: 500; color: var(--muted); }
.tile .value-row { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.tile .value { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 1.875rem; font-weight: 600; line-height: 1.1; }
.tile .delta { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: .75rem; white-space: nowrap; flex: 0 0 auto; }
.tile .delta.up { color: var(--green); }
.tile .delta.down { color: var(--red); }
.track { position: relative; height: 10px; border-radius: 5px; overflow: hidden; margin-top: 14px; display: flex; }
.track i { height: 100%; }
.track .t-red { background: var(--red-bg); }
.track .t-amber { background: var(--amber-bg); }
.track .t-green { background: var(--green-bg); }
.ticks { position: relative; height: 0; }
.tick-goal { position: absolute; top: -13px; width: 2px; height: 16px; background: var(--muted); }
.tick-value { position: absolute; top: -15px; width: 3px; height: 20px; background: var(--ink); }
.tile .caption { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: .75rem;
  color: var(--muted); margin-top: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .caption b { color: var(--ink); font-weight: 600; }

/* ---- shared section shells ---- */
.sect { padding: 64px 24px; }
.sect h2 { font-size: 1.7rem; font-weight: 700; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.sect .lede { font-size: 1rem; line-height: 1.6; color: var(--ink-80); margin: 12px 0 0;
  max-width: 64ch; text-wrap: pretty; }
.cardgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 32px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; min-width: 0; }
.card .no { font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.card h3 { font-size: 1.05rem; font-weight: 600; margin: 8px 0 0; }
.card p { font-size: var(--text-base); line-height: 1.6; color: var(--ink-80); margin: 8px 0 0; }

/* ---- funnel section ---- */
.funnel-sect { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; align-items: center; }
.split > div { min-width: 0; }
.split .fine { font-size: var(--text-base); line-height: 1.6; color: var(--muted); margin: 16px 0 0; }
.funnel { background: var(--bg); border: 1px solid var(--tile-line); border-radius: var(--r-md); padding: 20px; }
.funnel-rows { display: flex; flex-direction: column; gap: 8px; }
.frow { display: grid; grid-template-columns: 120px minmax(0, 1fr) 74px; align-items: center; gap: 10px; }
.frow .stage { font-size: .78rem; }
.frow .lane { position: relative; height: 18px; }
.frow .bar { position: absolute; left: 50%; transform: translateX(-50%); height: 18px;
  background: var(--green); border-radius: 3px; min-width: 3px; }
.frow .n { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: .78rem; text-align: right; }
.frow.late .stage, .frow.late .n { color: var(--muted); }
.frow.late .bar { background: var(--line-strong); }
.funnel .steps { font-size: var(--text-xs); color: var(--muted); margin: 14px 0 0; }

/* ---- metrics ---- */
.cat .count { font-family: var(--mono); font-size: .78rem; color: var(--muted); margin: 6px 0 0; }
.cat p.list { font-size: var(--text-base); line-height: 1.7; color: var(--ink-80); margin: 12px 0 0; }
.more { display: inline-flex; align-items: center; font-size: var(--text-base); font-weight: 600;
  margin-top: 20px; text-decoration: none; }

/* ---- security ---- */
.security { background: var(--chrome-bg); color: var(--chrome-ink); }
.security .lede, .security .fine { color: var(--chrome-ink-80); }
.security .fine { font-size: var(--text-base); line-height: 1.6; margin: 16px 0 0; }
.sec-cards { display: flex; flex-direction: column; gap: 12px; }
.sec-card { background: var(--chrome-hover); border: 1px solid var(--chrome-line); border-radius: var(--r-md); padding: 16px 18px; }
.sec-card h3 { font-size: .95rem; font-weight: 600; margin: 0; }
.sec-card p { font-size: .9rem; line-height: 1.6; color: var(--chrome-ink-80); margin: 6px 0 0; }

/* ---- demo ---- */
.demo-sect { padding-bottom: 72px; }
.demo-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 40px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; align-items: center; }
.demo-card > * { min-width: 0; }
.demo-card h2 { font-size: 1.6rem; }
.demo-card .pitch { font-size: 1rem; line-height: 1.6; color: var(--ink-80); margin: 12px 0 0; max-width: 48ch; }
.demo-card .pricing { font-size: .875rem; color: var(--muted); margin: 16px 0 0; }
.demo-form { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: .78rem; color: var(--muted); }
.field input { font-family: var(--ui); font-size: .95rem; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px; min-height: 48px; }
.field input:hover { border-color: var(--line-strong); }
.field input:focus-visible { outline: none; border-color: var(--focus); box-shadow: var(--focus-ring); }
.seg { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 3px; background: var(--surface); }
.seg button { flex: 1; font-family: var(--ui); font-size: var(--text-sm); font-weight: 600; color: var(--muted);
  background: transparent; border: 0; border-radius: 4px; padding: 8px 0; min-height: 40px; cursor: pointer; }
.seg button:hover { background: var(--hover-bg); color: var(--ink); }
.seg button[aria-pressed='true'] { background: var(--accent-chrome); color: var(--accent-ink); }
.demo-form .send { font-size: .95rem; border-radius: var(--r-md); padding: 14px; min-height: 48px; }
.demo-form .fineprint { font-size: var(--text-xs); color: var(--muted); margin: 0; }
.demo-form .form-msg { font-size: var(--text-sm); margin: 0; }
.demo-form .form-msg.ok { color: var(--green); }
.demo-form .form-msg.err { color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- footer ---- */
.site-foot { background: #0F3323; color: var(--chrome-ink-80); padding: 40px 24px; }
.site-foot .cols { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px; }
.site-foot .blurb { min-width: 220px; flex: 1 1 260px; }
.site-foot .blurb p { font-size: .875rem; line-height: 1.6; margin: 10px 0 0; max-width: 44ch; }
.site-foot .groups { display: flex; flex-wrap: wrap; gap: 40px; }
.site-foot .group { display: flex; flex-direction: column; gap: 8px; }
.site-foot .cap { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.site-foot a { font-size: .875rem; color: var(--chrome-ink-80); text-decoration: none; }
.site-foot a:hover { color: var(--chrome-ink); }
.site-foot .legal { border-top: 1px solid var(--chrome-line); margin-top: 32px; padding-top: 16px; font-size: .75rem; }

@media (max-width: 640px) {
  .hero h1 { font-size: 2rem; }
  .demo-card { padding: 24px; }
}
