/* SecureScribe overrides + components — layered on top of styles.css */

:root {
  --brand: #146a8c;
  --brand-deep: #0e4d67;
  --navy: #0f1f38;
  --brand-light: rgba(20, 106, 140, .07);
  --ok: #15803d;
  --ok-bg: #eaf6ee;
  --warn: #b45309;
  --warn-bg: #fdf3e3;
  --alert: #b42318;
  --alert-bg: #fdeceb;
  --ink-2: #4a5568;
}

/* ---------- Hero ---------- */
.hero-section { padding-top: 132px; }
.hero-grid { align-items: stretch; gap: 20px; }
.hero-copy {
  aspect-ratio: auto; padding: 56px;
  background: linear-gradient(150deg, #f2f7f9 0%, #eef3f6 55%, #e8eef2 100%);
  justify-content: center; border-radius: 32px;
}
.hero-copy h1 { font-size: clamp(38px, 3.4vw, 50px); font-weight: 600; letter-spacing: -.035em; max-width: 560px; }
.hero-copy p { max-width: 540px; }
.eyebrow { color: var(--brand); }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 4px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px;
  background: rgba(255,255,255,.85); box-shadow: 0 0 0 1px rgba(15,31,56,.08);
  font-size: 13.5px; font-weight: 500; color: #253247;
}
.chip svg { width: 14px; height: 14px; stroke: var(--brand); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.hero-visual {
  position: relative; grid-column: span 6; border-radius: 32px; overflow: hidden;
  padding: 54px 46px;
  background: radial-gradient(115% 85% at 12% 0%, #1d6785 0%, #10344a 52%, #0a1f2e 100%);
  display: flex; align-items: center; justify-content: center;
}
/* ambient bloom behind the window */
.hero-visual::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(44% 36% at 50% 44%, rgba(127,208,232,.28), transparent 72%);
}

/* ---------- Hero app window ----------
   A software window, not a drawing of a device. Depth comes from layered CSS
   shadows and a stacked card behind, so there is nothing hand-drawn to look cheap.
   The screen holds ui.png / ui.webp at its native 3:2 — keep .app-screen's
   aspect-ratio matched to the screenshot so it never crops or letterboxes. */
.app-stack { position: relative; z-index: 1; width: 100%; max-width: 516px; }
/* second window peeking out behind, for depth */
.app-stack::before {
  content: ''; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  width: 90%; height: 28px; border-radius: 13px 13px 0 0;
  background: rgba(233,243,248,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.24);
}
.app-window {
  position: relative; border-radius: 13px; overflow: hidden; background: #fff;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.14),
    0 1px 2px rgba(4,16,25,.2),
    0 8px 16px rgba(4,16,25,.22),
    0 28px 52px rgba(4,16,25,.36);
}
.app-screen { aspect-ratio: 1303 / 886; background: #f7f9fb; }
.app-screen picture { display: block; }
.app-shot { display: block; width: 100%; height: auto; }

/* ---------- Problem ---------- */
.problem-section { background: #fff; padding: 96px 0; }
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.problem-grid h2 { margin: 0 0 20px; color: var(--navy); font-size: clamp(32px, 3vw, 42px); line-height: 1.14; letter-spacing: -.03em; font-weight: 500; }
.problem-grid > div > p { margin: 0; color: var(--ink-2); line-height: 28px; max-width: 520px; }
.shift-chart { width: 100%; height: auto; }
.problem-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; }
.pstat { padding: 26px 24px; border-radius: 16px; background: #f7f9fb; border-top: 3px solid var(--brand); }
.pstat i { font: 500 11px/1 'Geist Mono', monospace; font-style: normal; color: var(--brand); }
.pstat h3 { margin: 12px 0 8px; font-size: 20px; font-weight: 600; letter-spacing: -.02em; color: var(--navy); }
.pstat p { margin: 0; font-size: 15px; line-height: 23px; color: var(--ink-2); }

/* ---------- How it works (carousel) ---------- */
.stories-section { min-height: 0; background: linear-gradient(160deg, #f7f9fb 0%, #fff 70%); }
.story-copy h3 { font-weight: 500; color: var(--navy); }
.story-logo-mark i { border-radius: 14px; font-size: 15px; }
.story-copy blockquote { border-left-color: var(--brand); background: #fff; border-radius: 0 12px 12px 0; padding: 16px 20px 16px 24px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.story-copy blockquote p { font-size: 16.5px; line-height: 26px; }
.field-card { width: min(430px, 100%); background: #fff; border-radius: 16px; padding: 22px; box-shadow: 0 12px 40px rgba(15,31,56,.1), 0 0 0 1px rgba(15,31,56,.06); }
.field-card > h4 { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: var(--navy); }
.field-card > .meta { display: block; font-size: 12px; color: #8a95a5; margin-bottom: 16px; }
.field-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; border-radius: 9px; background: #f6f8fa; margin-bottom: 7px; font-size: 14px; }
.field-row.missing { background: var(--warn-bg); }
.field-row b { font-weight: 500; color: #2b3648; }
.field-row .val { font-size: 12.5px; color: #6b7684; text-align: right; }
.field-row .mark { width: 20px; height: 20px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: #fff; background: var(--ok); }
.field-row.missing .mark { background: var(--warn); }
.card-note { margin-top: 14px; padding-top: 13px; border-top: 1px solid #eef1f4; font-size: 12.5px; color: var(--ink-2); }
.card-note strong { color: var(--brand); }
.story-visual { height: auto; min-height: 460px; }
.story-visual .field-card { position: static; animation: cardIn2 .45s ease both; }
@keyframes cardIn2 { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: none } }

/* ---------- Clinical safety ---------- */
.safety-section { background: var(--navy); color: #fff; padding: 100px 0; }
.safety-section .section-header h2 { color: #fff; font-weight: 500; }
.safety-section .section-header p { color: rgba(255,255,255,.62); }
.safety-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.safety-card { padding: 28px 24px; border-radius: 16px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.safety-card .ico { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.1); display: grid; place-items: center; margin-bottom: 18px; }
.safety-card .ico svg { width: 21px; height: 21px; fill: none; stroke: #7fd0e8; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.safety-card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.safety-card p { margin: 0; font-size: 14.5px; line-height: 23px; color: rgba(255,255,255,.66); }

/* ---------- Outcomes ---------- */
.outcomes-section { background: #fff; padding: 96px 0; }
.outcome-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.outcome-card { padding: 30px; border-radius: 18px; background: #f7f9fb; }
.outcome-card h3 { margin: 0 0 8px; font-size: 20px; font-weight: 600; color: var(--navy); letter-spacing: -.02em; }
.outcome-card p { margin: 0 0 22px; font-size: 15px; line-height: 23px; color: var(--ink-2); }
.bar-compare { display: grid; gap: 10px; }
.bar-compare div { display: flex; align-items: center; gap: 10px; font: 500 11px/1 'Geist Mono', monospace; color: #77818f; }
.bar-compare i { height: 10px; border-radius: 999px; display: block; }
.bar-compare .before i { background: #d3dae1; }
.bar-compare .after i { background: var(--brand); }

/* ---------- Local AI ---------- */
.local-section { background: #f7f9fb; padding: 100px 0; }
.local-section .section-header { margin-bottom: 48px; }
.local-section .section-header h2 { color: var(--navy); font-weight: 500; }

.tech-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.tech-card {
  display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(15,31,56,.08);
}
.tech-card.is-good { box-shadow: 0 0 0 1.5px rgba(20,106,140,.4), 0 20px 44px rgba(15,31,56,.09); }
.tech-head { padding: 26px 30px 6px; }
.tech-head .kicker { font: 500 10.5px/1 'Geist Mono', monospace; text-transform: uppercase; letter-spacing: .09em; color: #99a3b0; }
.tech-card.is-good .tech-head .kicker { color: var(--brand); }
.tech-head h3 { margin: 12px 0 0; font-size: 21px; font-weight: 600; letter-spacing: -.025em; color: var(--navy); }
.tech-diagram { display: block; width: 100%; height: auto; padding: 10px 22px 4px; }
.tech-verdict {
  margin-top: auto; display: flex; align-items: center; gap: 11px;
  padding: 17px 30px; font-size: 14.5px; font-weight: 600; letter-spacing: -.01em;
}
.tech-verdict i { width: 20px; height: 20px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; color: #fff; }
.tech-verdict.bad { background: var(--alert-bg); color: var(--alert); }
.tech-verdict.bad i { background: var(--alert); }
.tech-verdict.good { background: rgba(20,106,140,.09); color: var(--brand-deep); }
.tech-verdict.good i { background: var(--brand); }

.tech-lede { max-width: 760px; margin: 0 auto 52px; text-align: center; color: var(--ink-2); line-height: 28px; }
.spec-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.spec { padding: 24px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(15,31,56,.07); }
.spec b { display: block; font-size: 19px; font-weight: 600; color: var(--brand); letter-spacing: -.025em; }
.spec span { display: block; margin-top: 7px; font-size: 13.5px; line-height: 20px; color: var(--ink-2); }

/* ---------- Implementation flow ---------- */
.flow-section { background: #fff; padding: 96px 0; }
.flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.flow-step { position: relative; padding: 28px 24px; border-radius: 16px; background: #f7f9fb; box-shadow: inset 0 0 0 1px rgba(15,31,56,.06); }
.flow-step::after { content: '→'; position: absolute; right: -19px; top: 50%; transform: translateY(-50%); color: #b9c4ce; font-size: 20px; z-index: 2; }
.flow-step:last-child::after { display: none; }
.flow-step i { font-style: normal; font: 500 11px/1 'Geist Mono', monospace; color: var(--brand); }
.flow-step h3 { margin: 12px 0 8px; font-size: 19px; font-weight: 600; color: var(--navy); letter-spacing: -.02em; }
.flow-step p { margin: 0; font-size: 14.5px; line-height: 22px; color: var(--ink-2); }
.flow-note { margin-top: 32px; text-align: center; font-size: 15px; color: var(--ink-2); }

/* ---------- Pilot ---------- */
.pilot-section { padding: 96px 0; background: #f7f9fb; }
.pilot-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; align-items: stretch; }
.pilot-card { padding: 40px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px rgba(15,31,56,.07); }
.pilot-card.primary { background: linear-gradient(155deg, #12506b, #0f1f38); color: #fff; box-shadow: 0 20px 50px rgba(15,31,56,.22); }
.pilot-card .kicker { font: 500 11px/1 'Geist Mono', monospace; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); }
.pilot-card.primary .kicker { color: #7fd0e8; }
.pilot-card h3 { margin: 14px 0 4px; font-size: 26px; font-weight: 600; letter-spacing: -.025em; }
.pilot-price { display: flex; align-items: baseline; gap: 8px; margin: 8px 0 26px; }
.pilot-price b { font-size: 46px; font-weight: 600; letter-spacing: -.035em; }
.pilot-price span { font-size: 15px; opacity: .65; }
.rings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 30px; }
.ring { text-align: center; }
.ring .dial { width: 84px; height: 84px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#7fd0e8 var(--p), rgba(255,255,255,.14) 0); }
.ring .dial em { width: 64px; height: 64px; border-radius: 50%; background: #133a51; display: grid; place-items: center; font-style: normal; font-size: 16px; font-weight: 600; }
.ring small { display: block; font-size: 12px; line-height: 17px; color: rgba(255,255,255,.66); }
.pilot-card ul { margin: 0 0 28px; padding: 0; list-style: none; display: grid; gap: 11px; }
.pilot-card li { display: flex; gap: 10px; font-size: 15px; line-height: 22px; color: var(--ink-2); }
.pilot-card li::before { content: '✓'; color: var(--brand); font-weight: 700; }
.pilot-card .pill-btn { width: 100%; }
.pilot-card.primary .pill-btn.primary { background: #fff; color: var(--navy); font-weight: 600; }

/* ---------- Footer CTA ---------- */
.cta-band { background: var(--brand); color: #fff; padding: 72px 0; text-align: center; }
.cta-band h2 { margin: 0 0 14px; font-size: clamp(30px, 3vw, 40px); font-weight: 500; letter-spacing: -.03em; }
.cta-band p { margin: 0 auto 28px; max-width: 560px; color: rgba(255,255,255,.8); line-height: 27px; }
.cta-band .pill-btn.primary { background: #fff; color: var(--brand); font-weight: 600; }

/* ---------- Brand lockup ---------- */
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { width: 30px; height: auto; flex: 0 0 auto; display: block; }
.footer-brand h2 { display: flex; align-items: center; gap: 11px; }
.footer-brand .brand-mark { width: 27px; }

/* ---------- Anchor variants of nav buttons ---------- */
a.trial-btn { display: inline-flex; align-items: center; justify-content: center; }
a.nav-link { display: inline-block; }
a.mobile-trial { width: 100%; }

/* ---------- Interior pages ---------- */
.page-hero { padding: 150px 0 64px; background: linear-gradient(160deg, #f2f7f9, #fff 70%); }
.page-hero .crumb { font: 500 11px/1 'Geist Mono', monospace; text-transform: uppercase; letter-spacing: .09em; color: var(--brand); margin-bottom: 22px; display: block; }
.page-hero h1 { margin: 0 0 20px; max-width: 760px; color: var(--navy); font-size: clamp(36px, 4vw, 52px); line-height: 1.08; letter-spacing: -.035em; font-weight: 600; }
.page-hero .lede { margin: 0; max-width: 660px; color: var(--ink-2); font-size: 19px; line-height: 30px; }
.page-hero .hero-actions { margin-top: 32px; }

.page-section { padding: 80px 0; background: #fff; }
.page-section.tint { background: #f7f9fb; }
.page-section > .container > h2 { margin: 0 0 16px; color: var(--navy); font-size: clamp(28px, 2.6vw, 36px); line-height: 1.18; letter-spacing: -.03em; font-weight: 500; }
.page-section > .container > .sub { margin: 0 0 44px; max-width: 680px; color: var(--ink-2); line-height: 28px; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.info-card { padding: 28px; border-radius: 16px; background: #f7f9fb; box-shadow: inset 0 0 0 1px rgba(15,31,56,.06); }
.page-section.tint .info-card { background: #fff; box-shadow: 0 0 0 1px rgba(15,31,56,.07); }
.info-card h3 { margin: 0 0 10px; font-size: 19px; font-weight: 600; color: var(--navy); letter-spacing: -.02em; }
.info-card p { margin: 0; font-size: 15px; line-height: 24px; color: var(--ink-2); }
.info-card .num { display: block; font: 500 11px/1 'Geist Mono', monospace; color: var(--brand); margin-bottom: 14px; }

/* Timeline */
.timeline { display: grid; gap: 0; }
.tl-item { display: grid; grid-template-columns: 150px 1fr; gap: 32px; padding: 26px 0; border-top: 1px solid var(--border); }
.tl-item:last-child { border-bottom: 1px solid var(--border); }
.tl-when { font: 500 12px/1.5 'Geist Mono', monospace; text-transform: uppercase; letter-spacing: .05em; color: var(--brand); padding-top: 3px; }
.tl-body h3 { margin: 0 0 8px; font-size: 19px; font-weight: 600; color: var(--navy); letter-spacing: -.02em; }
.tl-body p { margin: 0; color: var(--ink-2); line-height: 25px; font-size: 15.5px; }

/* Checklist */
.checklist { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 13px; font-size: 16px; line-height: 25px; color: var(--ink-2); }
.checklist li::before { content: '✓'; flex: 0 0 auto; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: rgba(20,106,140,.1); color: var(--brand); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.checklist li b { color: var(--navy); font-weight: 600; }

/* Contact block */
.contact-box { padding: 44px; border-radius: 20px; background: linear-gradient(155deg, #12506b, #0f1f38); color: #fff; }
.contact-box h2 { margin: 0 0 12px; font-size: clamp(26px, 2.4vw, 34px); font-weight: 500; letter-spacing: -.03em; }
.contact-box p { margin: 0 0 26px; max-width: 520px; color: rgba(255,255,255,.72); line-height: 27px; }
.contact-box .pill-btn.primary { background: #fff; color: var(--navy); font-weight: 600; }
.contact-lines { display: grid; gap: 10px; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.16); font-size: 14.5px; color: rgba(255,255,255,.72); }
.contact-lines a { color: #7fd0e8; }

/* Q&A blocks (AI-extractable) */
.qa { border-top: 1px solid var(--border); padding: 26px 0; }
.qa:last-child { border-bottom: 1px solid var(--border); }
.qa h3 { margin: 0 0 10px; font-size: 18px; font-weight: 600; color: var(--navy); letter-spacing: -.015em; }
.qa p { margin: 0; color: var(--ink-2); line-height: 27px; font-size: 16px; }

/* Fact table */
.fact-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.fact-table th, .fact-table td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--border); vertical-align: top; }
.fact-table th { width: 240px; color: var(--navy); font-weight: 600; background: #f7f9fb; }
.fact-table td { color: var(--ink-2); line-height: 24px; }
.page-section.tint .fact-table th { background: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .safety-grid, .flow-grid, .outcome-grid, .problem-stats, .spec-row, .card-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-step::after { display: none; }
  .problem-grid, .pilot-grid, .tech-compare { grid-template-columns: 1fr; gap: 40px; }
  .tech-compare { gap: 20px; }
}
@media (max-width: 768px) {
  .hero-grid { display: block; }
  .hero-copy { min-height: 0; margin-bottom: 16px; padding: 38px 30px; }
  .hero-visual { padding: 24px; min-height: 0; border-radius: 28px; }
  .story-visual { min-height: 0; order: -1; overflow: visible; }
  .safety-grid, .flow-grid, .outcome-grid, .problem-stats, .spec-row,
  .card-grid, .card-grid.two { grid-template-columns: 1fr; }
  .problem-section, .outcomes-section, .local-section, .flow-section, .pilot-section, .safety-section { padding: 72px 0; }
  .pilot-card { padding: 30px; }
  .page-hero { padding: 120px 0 52px; }
  .page-section { padding: 60px 0; }
  .tl-item { grid-template-columns: 1fr; gap: 10px; }
  .contact-box { padding: 30px; }
  .fact-table, .fact-table tbody, .fact-table tr, .fact-table th, .fact-table td { display: block; width: auto; }
  .fact-table th { border-bottom: 0; padding-bottom: 4px; }
}

/* ============================================================
   MODEL PAGE
   High visual-to-word ratio: every claim gets a chart, every
   section a different treatment. Charts render from MODEL_DATA
   in model.js — edit the numbers there, never in markup.
   ============================================================ */

/* provisional-data banner — DELETE once real benchmarks are in */
.data-notice {
  background: #fdf3e3; border-bottom: 1px solid #f0dcba; color: #8a5a12;
  padding: 11px 0; font-size: 14px; position: relative; z-index: 900;
}
.data-notice .container { display: flex; align-items: center; gap: 11px; }
.data-notice b { color: #6d460b; }
.data-notice i {
  flex: 0 0 auto; width: 19px; height: 19px; border-radius: 50%; background: #b45309;
  color: #fff; font-style: normal; font-size: 12px; font-weight: 700; display: grid; place-items: center;
}

/* dark hero for interior pages */
.dark-hero {
  position: relative; overflow: hidden; padding: 140px 0 84px; color: #fff;
  background: radial-gradient(115% 90% at 12% 0%, #1d6785 0%, #10344a 52%, #0a1f2e 100%);
}
.dark-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(42% 34% at 78% 30%, rgba(127,208,232,.22), transparent 72%);
}
.dark-hero .container { position: relative; z-index: 1; }
.dark-hero .crumb { color: #7fd0e8; }
.dark-hero h1 {
  margin: 0 0 20px; max-width: 800px; font-size: clamp(36px, 4.1vw, 54px);
  line-height: 1.07; letter-spacing: -.035em; font-weight: 600;
}
.dark-hero .lede { margin: 0; max-width: 640px; color: rgba(255,255,255,.72); font-size: 19px; line-height: 30px; }

/* headline stat strip */
.metric-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin-top: 52px; background: rgba(255,255,255,.14);
  border-radius: 16px; overflow: hidden;
}
.metric-strip div { background: rgba(9,32,45,.72); padding: 24px 22px; backdrop-filter: blur(6px); }
.metric-strip b { display: block; font-size: 30px; font-weight: 600; letter-spacing: -.03em; color: #fff; }
.metric-strip span { display: block; margin-top: 7px; font-size: 13px; line-height: 19px; color: rgba(255,255,255,.6); }

/* scaled model-size comparison */
.size-row { display: flex; align-items: flex-end; justify-content: center; gap: clamp(20px, 5vw, 64px); flex-wrap: wrap; }
.size-item { text-align: center; }
.size-disc {
  border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center;
  font: 600 13px/1 'Figtree', sans-serif; color: #fff;
}
.size-item h4 { margin: 0 0 4px; font-size: 16px; font-weight: 600; color: var(--navy); }
.size-item p { margin: 0; font-size: 13px; line-height: 19px; color: var(--ink-2); max-width: 160px; }

/* grouped benchmark cards — one card per task, three labelled bars */
.bench-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.bench-group {
  padding: 22px 24px 18px; border-radius: 16px; background: #fff;
  box-shadow: 0 0 0 1px rgba(15,31,56,.08);
}
.bench-group > h4 { margin: 0 0 3px; font-size: 16px; font-weight: 600; color: var(--navy); letter-spacing: -.015em; }
.bench-group > small { display: block; font-size: 12.5px; line-height: 17px; color: #8a95a5; margin-bottom: 17px; }
.bench-bar { display: grid; grid-template-columns: 112px 1fr 54px; align-items: center; gap: 12px; margin-bottom: 9px; }
.bench-bar:last-child { margin-bottom: 0; }
.bench-bar .who { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); }
.bench-bar .who i { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 2px; }
.bench-bar.is-ours .who { color: var(--navy); font-weight: 600; }
.bench-track { display: block; height: 18px; border-radius: 5px; background: #eef2f5; overflow: hidden; }
.bench-fill { display: block; height: 100%; border-radius: 5px; }
.bench-bar .v { display: block; font: 600 13px/1 'Geist Mono', monospace; text-align: right; color: #6b7684; }
.bench-bar.is-ours .v { color: var(--brand); }
.bench-note { max-width: 820px; margin: 26px auto 0; text-align: center; font-size: 13px; line-height: 21px; color: #8a95a5; }
.bench-note a { color: var(--brand); }

/* size discs need to breathe at large diameters */
.size-row { align-items: flex-end; }
.size-disc { box-shadow: 0 10px 30px rgba(15,31,56,.16); }
.size-mult {
  max-width: 700px; margin: 40px auto 0; text-align: center;
  font-size: 17px; line-height: 27px; color: var(--ink-2);
}
.size-mult b { color: var(--brand); font-weight: 600; }

/* comparison matrix */
.matrix-wrap { overflow-x: auto; border-radius: 16px; box-shadow: 0 0 0 1px rgba(15,31,56,.08); background: #fff; }
.matrix { width: 100%; min-width: 660px; border-collapse: collapse; font-size: 15px; }
.matrix th, .matrix td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.matrix thead th { background: #f5f8fa; font-size: 13.5px; font-weight: 600; color: var(--navy); }
.matrix thead th.own { background: var(--brand); color: #fff; }
.matrix tbody th { font-weight: 500; color: var(--navy); width: 32%; }
.matrix td { color: var(--ink-2); }
.matrix td.own { background: rgba(20,106,140,.06); color: var(--brand-deep); font-weight: 600; }
.matrix tr:last-child th, .matrix tr:last-child td { border-bottom: 0; }
.mk { display: inline-grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; font-size: 12px; color: #fff; }
.mk.y { background: var(--ok); } .mk.n { background: #c2ccd5; } .mk.p { background: var(--warn); }

/* method band (dark) */
.method-band { background: var(--navy); color: #fff; padding: 96px 0; }
.method-band .section-header h2 { color: #fff; font-weight: 500; }
.method-band .section-header p { color: rgba(255,255,255,.62); }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.method-card { padding: 28px 26px; border-radius: 16px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.method-card .num { font: 500 11px/1 'Geist Mono', monospace; color: #7fd0e8; }
.method-card h3 { margin: 13px 0 9px; font-size: 18px; font-weight: 600; }
.method-card p { margin: 0; font-size: 14.5px; line-height: 23px; color: rgba(255,255,255,.66); }

/* latency strip */
.lat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lat-card { padding: 28px; border-radius: 16px; background: #f7f9fb; box-shadow: inset 0 0 0 1px rgba(15,31,56,.06); }
.lat-card b { display: block; font-size: 34px; font-weight: 600; letter-spacing: -.03em; color: var(--brand); }
.lat-card b em { font-style: normal; font-size: 17px; color: #8a95a5; margin-left: 3px; }
.lat-card h3 { margin: 10px 0 6px; font-size: 16px; font-weight: 600; color: var(--navy); }
.lat-card p { margin: 0; font-size: 14px; line-height: 21px; color: var(--ink-2); }

@media (max-width: 980px) {
  .metric-strip, .method-grid, .lat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .dark-hero { padding: 116px 0 60px; }
  .metric-strip, .method-grid, .lat-grid { grid-template-columns: 1fr; }
  .method-band { padding: 68px 0; }
  .bench-grid { grid-template-columns: 1fr; }
  .bench-bar { grid-template-columns: 96px 1fr 48px; gap: 9px; }
}


/* ============================================================
   MOBILE — card rows become edge-to-edge snap carousels.
   Content stays in the DOM (crawlers still see it); only the
   layout changes, which is what actually kills the endless scroll.
   ============================================================ */
@media (max-width: 720px) {

  /* Compact 2-up grid for short icon/stat cards. Anything holding a chart,
     diagram or long prose stays full width so it stays readable. */
  .safety-grid, .spec-row, .flow-grid, .problem-stats, .method-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
    overflow: visible; margin: 0; padding: 0;
  }
  .card-grid, .card-grid.two, .outcome-grid, .tech-compare, .bench-grid {
    display: grid; grid-template-columns: 1fr; gap: 14px;
    overflow: visible; margin: 0; padding: 0;
  }
  .safety-grid > *, .spec-row > *, .flow-grid > *, .problem-stats > *,
  .method-grid > *, .card-grid > *, .outcome-grid > *, .tech-compare > * {
    flex: initial; margin: 0; min-width: 0;
  }

  /* tighten the 2-up cards so two fit a phone without clipping */
  .safety-card, .flow-step, .pstat, .spec, .method-card { padding: 17px 15px; }
  .safety-card h3, .flow-step h3, .pstat h3, .method-card h3 { font-size: 15.5px; line-height: 20px; }
  .safety-card p, .flow-step p, .pstat p, .method-card p, .spec span { font-size: 13px; line-height: 19px; }
  .spec b { font-size: 16px; }
  .safety-card .ico { width: 34px; height: 34px; margin-bottom: 13px; }
  .safety-card .ico svg { width: 17px; height: 17px; }
  .pstat i, .flow-step i, .method-card .num { font-size: 10px; }

  /* tighter rhythm */
  .problem-section, .outcomes-section, .local-section, .flow-section,
  .pilot-section, .safety-section, .method-band { padding: 56px 0 !important; }
  .page-section { padding: 52px 0; }
  .section-header { margin-bottom: 34px; }
  .section-header h2 { font-size: 27px; }
  .section-header p, .page-section > .container > .sub { font-size: 15.5px; line-height: 25px; }
  .tech-lede { margin-bottom: 34px; font-size: 15.5px; line-height: 25px; }
  .hero-section { padding-top: 104px; }
  .hero-copy { padding: 32px 26px; }
  .hero-copy h1 { font-size: 33px; }
  .hero-copy p { font-size: 16px; line-height: 25px; }
  .problem-grid, .local-grid { gap: 28px; }
  .problem-stats { margin-top: 34px; }

  /* secondary detail that costs height and earns little on a phone */
  .hero-chips { gap: 6px; }
  .chip { font-size: 12.5px; padding: 6px 11px; }
  .story-visual { min-height: 0; }
  .footer-inner { padding: 44px 22px; }
  .rings { gap: 8px; }
  .ring .dial { width: 68px; height: 68px; }
  .ring .dial em { width: 52px; height: 52px; font-size: 14px; }
  .ring small { font-size: 11px; line-height: 15px; }
}

/* nav scroll-spy: the existing nav doubles as the section indicator */
.nav-link.active { color: var(--brand); font-weight: 500; }
.nav-link.active::after { width: 100%; background: var(--brand); }

/* citations */
.cite-list { max-width: 820px; margin: 0 auto; padding: 0; list-style: none; counter-reset: c; }
.cite-list li { display: flex; gap: 16px; padding: 20px 0; border-top: 1px solid var(--border); }
.cite-list li:last-child { border-bottom: 1px solid var(--border); }
.cite-list li span {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-light);
  color: var(--brand); font: 600 12px/26px 'Geist Mono', monospace; text-align: center;
}
.cite-list li p { margin: 0; font-size: 15px; line-height: 25px; color: var(--ink-2); }
.cite-list li a { color: var(--brand); font-weight: 500; white-space: nowrap; }
.cite-note {
  max-width: 820px; margin: 30px auto 0; padding: 18px 20px; border-radius: 12px;
  background: #f7f9fb; font-size: 13.5px; line-height: 22px; color: #6b7684;
}

/* ============================================================
   Nav over a dark hero. The nav is transparent until scrolled,
   so on dark-hero pages its dark text is unreadable. Invert it
   until the white scrolled background takes over.
   ============================================================ */
body.dark-top .site-nav:not(.scrolled):not(.menu-open) .brand { color: #fff; }
body.dark-top .site-nav:not(.scrolled):not(.menu-open) .brand-mark { filter: brightness(0) invert(1); }
body.dark-top .site-nav:not(.scrolled):not(.menu-open) .nav-link { color: rgba(255,255,255,.82); }
body.dark-top .site-nav:not(.scrolled):not(.menu-open) .nav-link:hover { color: #fff; }
body.dark-top .site-nav:not(.scrolled):not(.menu-open) .nav-link::after { background: #fff; }
body.dark-top .site-nav:not(.scrolled):not(.menu-open) .nav-link.active { color: #fff; }
body.dark-top .site-nav:not(.scrolled):not(.menu-open) .menu-toggle { color: #fff; }
body.dark-top .site-nav:not(.scrolled):not(.menu-open) .trial-btn {
  background: #fff; color: var(--navy); font-weight: 600;
}

/* ---------- Compact nav on small screens ---------- */
@media (max-width: 900px) {
  .nav-inner { height: 68px; }
  .brand { font-size: 20px; gap: 9px; }
  .brand-mark { width: 24px; }
  .desktop-nav { margin-left: 18px; gap: 15px; }
  .nav-link { font-size: 14.5px; }
  .trial-btn { padding: 11px 15px; font-size: 14px; line-height: 14px; }
}
@media (max-width: 520px) {
  .nav-inner { height: 60px; }
  .brand { font-size: 17px; gap: 7px; letter-spacing: -.03em; }
  .brand-mark { width: 20px; }
  .menu-toggle { width: 34px; height: 34px; }
  .menu-toggle svg { width: 21px; height: 21px; }
  .mobile-menu-inner { padding: 14px 20px 22px; }
  .mobile-link { padding: 11px 0; font-size: 16.5px; }
  .trial-btn.mobile-trial { padding: 13px 16px; font-size: 15px; line-height: 15px; }
  .hero-section { padding-top: 88px; }
}
