/* ============================================================================
   FOREFITTER — the precision fitting lab
   A launch-monitor / carbon-lab front desk that unifies the Ball Lab
   (Golf Ball Selector) and the Shaft Lab (Shaftology).

   Brand DNA carried from both tools:
     · Fraunces (display serif) · Hanken Grotesk (sans) · JetBrains Mono (data)
     · Chartreuse "volt" accent · copper secondary · carbon-green / clubhouse-paper
   ========================================================================== */

/* ---------------- THEME TOKENS ---------------- */
:root[data-theme="dark"] {
  --bg:         #0a0d0c;
  --bg-2:       #0d1110;
  --panel:      #121816;
  --panel-2:    #161d1b;
  --panel-3:    #1b231f;
  --line:       rgba(216, 255, 62, 0.11);
  --line-soft:  rgba(255, 255, 255, 0.07);
  --line-hard:  rgba(255, 255, 255, 0.14);

  --ink:        #eaf0ea;
  --ink-dim:    #96a099;
  --ink-faint:  #616a63;

  --volt:       #d8ff3e;
  --volt-deep:  #a9cc1f;
  --volt-soft:  rgba(216, 255, 62, 0.14);
  --copper:     #edb057;
  --copper-deep:#c98a2e;
  --copper-soft:rgba(237, 176, 87, 0.13);
  --sky:        #7dc7d3;
  --rose:       #e8728a;

  --on-volt:    #0b0f08;
  --on-copper:  #1a1206;

  --ball-hi:    #f4fce0;
  --ball-mid:   #e6f2b8;
  --ball-lo:    #b9cc70;

  --shadow:     0 30px 70px -34px rgba(0, 0, 0, 0.85);
  --shadow-sm:  0 12px 28px -18px rgba(0, 0, 0, 0.8);
  --grain-op:   0.4;
  --topo-op:    0.5;
  --mon-glow:   rgba(216, 255, 62, 0.18);

  --head-bg:    linear-gradient(180deg, rgba(10,13,12,0.86), rgba(10,13,12,0.5));
  --body-glow:  radial-gradient(1200px 720px at 82% -8%, rgba(216,255,62,0.07), transparent 60%),
                radial-gradient(900px 620px at -6% 6%, rgba(125,199,211,0.05), transparent 55%),
                radial-gradient(1100px 800px at 50% 120%, rgba(237,176,87,0.04), transparent 60%);
}

:root[data-theme="light"] {
  --bg:         #f2f3ea;
  --bg-2:       #e9ebde;
  --panel:      #ffffff;
  --panel-2:    #f6f8ee;
  --panel-3:    #eef1e3;
  --line:       rgba(80, 118, 12, 0.22);
  --line-soft:  rgba(20, 30, 12, 0.11);
  --line-hard:  rgba(20, 30, 12, 0.20);

  --ink:        #171c12;
  --ink-dim:    #55604b;
  --ink-faint:  #8b9580;

  --volt:       #5f8a00;
  --volt-deep:  #456609;
  --volt-soft:  rgba(95, 138, 0, 0.14);
  --copper:     #a5691d;
  --copper-deep:#7f4f13;
  --copper-soft:rgba(165, 105, 29, 0.13);
  --sky:        #2f7d8a;
  --rose:       #c2455f;

  --on-volt:    #f6f8ee;
  --on-copper:  #f6f8ee;

  --ball-hi:    #ffffff;
  --ball-mid:   #eef4d8;
  --ball-lo:    #c3d488;

  --shadow:     0 30px 60px -36px rgba(40, 55, 15, 0.3);
  --shadow-sm:  0 14px 30px -22px rgba(40, 55, 15, 0.32);
  --grain-op:   0.22;
  --topo-op:    0.7;
  --mon-glow:   rgba(95, 138, 0, 0.16);

  --head-bg:    linear-gradient(180deg, rgba(255,255,255,0.9), rgba(242,243,234,0.55));
  --body-glow:  radial-gradient(1200px 720px at 82% -8%, rgba(95,138,0,0.08), transparent 60%),
                radial-gradient(900px 620px at -6% 6%, rgba(47,125,138,0.06), transparent 55%),
                radial-gradient(1100px 800px at 50% 120%, rgba(165,105,29,0.05), transparent 60%);
}

/* ---------------- BASE ---------------- */
:root {
  --sans:  'Hanken Grotesk', system-ui, sans-serif;
  --serif: 'Fraunces', Georgia, serif;
  --mono:  'JetBrains Mono', ui-monospace, monospace;
  --r:     16px;
  --r-sm:  10px;
  --maxw:  1200px;
  --ease:  cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--body-glow), var(--bg);
  background-attachment: fixed;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .4s ease, color .4s ease;
}

::selection { background: var(--volt); color: var(--on-volt); }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.02; letter-spacing: -0.02em; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 500; color: var(--volt); }

.mono-inline { font-family: var(--mono); font-size: 0.9em; color: var(--volt); font-weight: 600; letter-spacing: 0.02em; }

/* ---------------- BACKGROUND TEXTURE ---------------- */
.grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: var(--grain-op);
  background-image:
    repeating-linear-gradient(45deg,  rgba(255,255,255,0.015) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,0.20) 0 1px, transparent 1px 4px);
  mix-blend-mode: overlay;
}
.topo {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0;
  pointer-events: none; opacity: var(--topo-op);
}
.topo-line { fill: none; stroke: var(--volt); stroke-width: 1; opacity: 0.20; }
.topo-line.faint { opacity: 0.10; }
.topo-hole { fill: var(--copper); opacity: 0.5; }

/* ---------------- LAYOUT SHELL ---------------- */
main, .nav, .footer { position: relative; z-index: 2; }
section { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ---------------- NAV ---------------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 24px;
  max-width: 100%;
  padding: 14px 32px;
  background: var(--head-bg);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { display: grid; place-items: center; }
.brand-mark svg { display: block; }
.bm-ring { fill: none; stroke: var(--line-hard); stroke-width: 1.4; }
.bm-pole { stroke: var(--ink-dim); stroke-width: 1.6; stroke-linecap: round; }
.bm-flag { fill: var(--volt); }
.bm-ball { fill: var(--ink); }
.brand-word { font-family: var(--serif); font-weight: 600; font-size: 1.32rem; letter-spacing: -0.02em; }
.brand-accent { color: var(--volt); }

.nav-links { display: flex; gap: 26px; margin-left: 10px; }
.nav-links a {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-dim);
  position: relative; padding: 4px 0; transition: color .2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--volt); transition: width .28s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav-cta {
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.01em;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line-hard); color: var(--ink);
  transition: border-color .2s, background .2s, color .2s;
}
.nav-cta:hover { border-color: var(--volt); color: var(--volt); background: var(--volt-soft); }

.theme-toggle {
  display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 999px; border: 1px solid var(--line-hard);
  background: var(--panel); color: var(--ink); cursor: pointer;
  transition: border-color .2s, color .2s, transform .2s;
}
.theme-toggle:hover { border-color: var(--volt); color: var(--volt); transform: rotate(-18deg); }
.theme-toggle svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.theme-toggle .icon-moon { fill: currentColor; stroke: none; }
:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="light"] .icon-moon { display: none; }

/* ---------------- BUTTONS ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.005em;
  padding: 13px 22px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform .18s var(--ease), box-shadow .2s, background .2s, border-color .2s, color .2s;
}
.btn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--volt); color: var(--on-volt); box-shadow: 0 0 0 0 var(--volt-soft); }
.btn-primary:hover { box-shadow: 0 14px 30px -12px var(--volt), 0 0 0 4px var(--volt-soft); transform: translateY(-2px); }

.btn-copper { background: var(--copper); color: var(--on-copper); }
.btn-copper:hover { box-shadow: 0 14px 30px -12px var(--copper), 0 0 0 4px var(--copper-soft); transform: translateY(-2px); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-hard); }
.btn-ghost:hover { border-color: var(--volt); color: var(--volt); transform: translateY(-2px); }

/* ---------------- HERO ---------------- */
.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
  padding-top: 76px; padding-bottom: 40px;
}
.eyebrow {
  font-family: var(--mono); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.22em;
  color: var(--ink-dim); text-transform: uppercase; display: flex; align-items: center; gap: 8px;
}
.eyebrow .tick { color: var(--volt); font-size: 0.7rem; }
.hero h1 {
  font-size: clamp(2.9rem, 7.2vw, 5.6rem); margin: 20px 0 22px; letter-spacing: -0.035em;
}
.hero-sub {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: var(--ink-dim); max-width: 33em; line-height: 1.62;
}
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, auto); gap: 34px;
  margin-top: 42px; padding-top: 26px; border-top: 1px solid var(--line);
}
.hero-stats dt { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 5px; }
.hero-stats dd { font-family: var(--serif); font-size: 2.15rem; font-weight: 600; line-height: 1; color: var(--ink); }
.hero-stats dd::first-letter { color: var(--volt); }
.hero-stats .no-count { color: var(--volt); }

/* ---- launch monitor panel ---- */
.monitor {
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-hard); border-radius: var(--r);
  box-shadow: var(--shadow); overflow: hidden;
  position: relative;
}
.monitor::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: var(--r);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.monitor-head, .monitor-foot {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em;
  color: var(--ink-dim); text-transform: uppercase;
}
.monitor-head { border-bottom: 1px solid var(--line); background: var(--panel-3); }
.mon-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--volt); box-shadow: 0 0 10px var(--volt); }
.mon-label { font-weight: 600; color: var(--ink); }
.mon-live { margin-left: auto; color: var(--rose); font-weight: 600; letter-spacing: 0.1em; }
.monitor-foot { border-top: 1px solid var(--line); justify-content: space-between; }
.monitor-foot b { color: var(--ink); }
.mon-cal { color: var(--volt); }

.monitor-screen {
  padding: 16px 16px 6px;
  background:
    radial-gradient(120% 90% at 50% 0%, var(--mon-glow), transparent 60%),
    var(--bg-2);
}
.trajectory { width: 100%; height: auto; display: block; }
.tj-grid line { stroke: var(--line-soft); stroke-width: 1; }
.tj-grid line.soft { stroke-dasharray: 2 6; }
.tj-yards text { font-family: var(--mono); font-size: 9px; fill: var(--ink-faint); text-anchor: middle; }
.tj-path { fill: none; stroke: var(--line-hard); stroke-width: 1.4; stroke-dasharray: 3 5; }
.tj-path-lead {
  fill: none; stroke: var(--volt); stroke-width: 2.4; stroke-linecap: round;
  filter: drop-shadow(0 0 4px var(--volt));
  stroke-dasharray: 340; stroke-dashoffset: 340;
  animation: draw 2.6s var(--ease) infinite;
}
@keyframes draw { 0% { stroke-dashoffset: 340; } 55%,100% { stroke-dashoffset: 0; } }
.tj-flag line { stroke: var(--ink-dim); stroke-width: 1.5; }
.tj-flag path { fill: var(--copper); }
.tj-ball { fill: var(--ink); stroke: var(--volt); stroke-width: 1.5; }

.readouts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  margin-top: 12px; background: var(--line); border-top: 1px solid var(--line);
}
.ro { background: var(--panel); padding: 11px 13px; display: flex; flex-direction: column; gap: 3px; }
.ro-k { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.12em; color: var(--ink-faint); }
.ro-v { font-family: var(--mono); display: flex; align-items: baseline; gap: 4px; }
.ro-v b { font-size: 1.32rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.ro-v i { font-style: normal; font-size: 0.62rem; color: var(--ink-dim); }

/* ---------------- RIBBON TICKER ---------------- */
.ribbon {
  position: relative; z-index: 2; margin-top: 26px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--panel); overflow: hidden;
}
.ribbon-track {
  display: inline-flex; align-items: center; gap: 22px; white-space: nowrap;
  padding: 11px 0; will-change: transform;
  animation: marquee 34s linear infinite;
}
.ribbon-track span {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em; font-weight: 600;
  color: var(--ink-dim); text-transform: uppercase;
}
.ribbon .rib-dot { color: var(--volt); font-size: 0.5rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ribbon:hover .ribbon-track { animation-play-state: paused; }

/* ---------------- SECTION HEADINGS ---------------- */
.section-head { max-width: 46rem; margin: 0 auto 46px; text-align: center; }
.sec-eyebrow { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.24em; color: var(--volt-deep); font-weight: 600; margin-bottom: 14px; }
.section-head h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin-bottom: 16px; }
.sec-sub { color: var(--ink-dim); font-size: 1.04rem; line-height: 1.62; }

/* ---------------- THE BAYS ---------------- */
.bays { padding-top: 96px; }
.bay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

.bay {
  --bay-accent: var(--volt); --bay-on: var(--on-volt); --bay-soft: var(--volt-soft);
  position: relative; display: flex; flex-direction: column;
  padding: 30px 30px 34px; border-radius: var(--r);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-hard); box-shadow: var(--shadow-sm);
  overflow: hidden; transition: transform .35s var(--ease), border-color .3s, box-shadow .3s;
}
.bay::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--bay-accent), transparent 70%);
  opacity: 0.85;
}
.bay::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px;
  background: radial-gradient(circle, var(--bay-soft), transparent 68%);
  pointer-events: none;
}
.bay:hover { transform: translateY(-6px); border-color: var(--bay-accent); box-shadow: var(--shadow); }
.bay--shaft { --bay-accent: var(--copper); --bay-on: var(--on-copper); --bay-soft: var(--copper-soft); }

.bay-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.bay-tag {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em; font-weight: 600;
  color: var(--bay-accent); text-transform: uppercase;
}
.bay-status {
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.16em; font-weight: 700;
  color: var(--bay-accent); text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px;
}
.bay-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--bay-accent); box-shadow: 0 0 8px var(--bay-accent); }

.bay-visual { display: grid; place-items: center; padding: 12px 0 20px; }
.bay-visual svg { width: 172px; height: 172px; }

/* ball viz */
.fit-ring-track { fill: none; stroke: var(--line); stroke-width: 6; }
.fit-ring { fill: none; stroke: var(--volt); stroke-width: 6; stroke-linecap: round;
  stroke-dasharray: 98 100; transform: rotate(-90deg); transform-origin: center;
  filter: drop-shadow(0 0 6px var(--volt-soft)); }
.ball-body { filter: drop-shadow(0 8px 16px rgba(0,0,0,0.3)); }
.dimples circle { fill: rgba(30,40,10,0.10); }
:root[data-theme="dark"] .dimples circle { fill: rgba(20,26,8,0.16); }
/* the ball sphere is a light cream in both themes, so keep this text dark for contrast */
.fit-pct { font-family: var(--mono); font-size: 30px; font-weight: 700; fill: #1b2410; }
.fit-pct-sm { font-size: 15px; fill: #5f7d0e; }
.fit-cap { font-family: var(--mono); font-size: 9px; letter-spacing: 0.28em; fill: #47571f; font-weight: 600; }

/* shaft viz */
.radar-grid polygon { fill: none; stroke: var(--line); stroke-width: 1; }
.radar-spokes line { stroke: var(--line-soft); stroke-width: 1; }
.radar-fill { fill: var(--copper-soft); stroke: var(--copper); stroke-width: 2;
  filter: drop-shadow(0 0 6px var(--copper-soft));
  stroke-dasharray: 100; stroke-dashoffset: 100; }
.reveal.is-in .radar-fill { animation: draw2 1.4s var(--ease) .3s forwards; }
@keyframes draw2 { to { stroke-dashoffset: 0; } }
.radar-nodes circle { fill: var(--copper); }

.bay h3 { font-size: 1.9rem; margin-bottom: 2px; }
.bay-sub { font-size: 0.9rem; color: var(--ink-faint); margin-bottom: 14px; }
.bay-sub em { color: var(--bay-accent); font-style: italic; }
.bay-desc { color: var(--ink-dim); font-size: 0.98rem; line-height: 1.62; }
.bay-desc strong { color: var(--ink); font-weight: 600; }

.bay-feats { list-style: none; margin: 18px 0 24px; display: grid; gap: 9px; }
.bay-feats li {
  position: relative; padding-left: 24px; font-size: 0.9rem; color: var(--ink-dim);
  font-family: var(--mono); letter-spacing: 0.01em;
}
.bay-feats li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 8px;
  border-left: 2px solid var(--bay-accent); border-bottom: 2px solid var(--bay-accent);
  transform: rotate(-45deg);
}
.bay-btn { margin-top: auto; align-self: flex-start; }

/* ---------------- HOW IT WORKS ---------------- */
.how { padding-top: 108px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step {
  position: relative; padding: 28px 24px 30px; border-radius: var(--r);
  background: var(--panel); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
  transition: transform .3s var(--ease), border-color .3s;
}
.step:hover { transform: translateY(-4px); border-color: var(--line-hard); }
.step-no {
  font-family: var(--mono); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em;
  color: var(--volt); margin-bottom: 12px;
}
.step-body h3 { font-size: 1.5rem; margin-bottom: 8px; }
.step-body p { color: var(--ink-dim); font-size: 0.95rem; line-height: 1.6; }
.step-ico {
  position: absolute; top: 24px; right: 22px; color: var(--ink-faint);
  display: grid; place-items: center; opacity: 0.75;
}
.step-ico svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.step:hover .step-ico { color: var(--volt); }

/* connector dashes between steps */
.step:not(:last-child)::after {
  content: ""; position: absolute; right: -18px; top: 50%; width: 14px; height: 2px;
  background-image: linear-gradient(90deg, var(--line-hard) 0 4px, transparent 4px 8px);
  background-size: 8px 2px;
}

/* ---------------- THE LAB / SCORECARD ---------------- */
.lab { padding-top: 112px; }
.lab-inner {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center;
}
.lab-copy h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); margin: 14px 0 16px; }
.lab-points { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 26px; margin-top: 30px; }
.lab-point { display: flex; flex-direction: column; gap: 5px; padding-left: 16px; border-left: 2px solid var(--volt); }
.lp-k { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); font-weight: 600; }
.lp-v { font-size: 0.9rem; color: var(--ink-dim); line-height: 1.5; }

.scorecard {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-hard); border-radius: var(--r);
  box-shadow: var(--shadow); overflow: hidden;
}
.sc-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; background: var(--panel-3); border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
}
.sc-head span:first-child { font-weight: 700; color: var(--ink); }
.sc-par { color: var(--ink-faint); }
.scorecard table { width: 100%; border-collapse: collapse; }
.scorecard td { padding: 13px 18px; border-bottom: 1px solid var(--line); }
.sc-hole { color: var(--ink-dim); font-size: 0.92rem; }
.sc-num {
  text-align: right; font-family: var(--mono); font-weight: 700; font-size: 1.15rem;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.sc-total td { border-bottom: none; background: var(--volt-soft); }
.sc-total .sc-hole { color: var(--ink); font-weight: 600; font-family: var(--serif); font-style: italic; font-size: 1.05rem; }
.sc-total .sc-num { color: var(--volt-deep); font-size: 1.4rem; }

/* ---------------- FINAL CTA ---------------- */
.final-cta { padding-top: 116px; padding-bottom: 20px; }
.fc-inner {
  text-align: center; padding: 64px 40px; border-radius: calc(var(--r) + 6px);
  background:
    radial-gradient(90% 130% at 50% -20%, var(--volt-soft), transparent 60%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-hard); box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.fc-inner::before, .fc-inner::after {
  content: ""; position: absolute; width: 60px; height: 60px; pointer-events: none;
  border: 2px solid var(--volt); opacity: 0.5;
}
.fc-inner::before { left: 20px; top: 20px; border-right: none; border-bottom: none; }
.fc-inner::after { right: 20px; bottom: 20px; border-left: none; border-top: none; }
.fc-inner .eyebrow { justify-content: center; margin-bottom: 16px; }
.fc-inner h2 { font-size: clamp(2.2rem, 5.4vw, 3.8rem); margin-bottom: 30px; }
.fc-inner .hero-cta { justify-content: center; margin-top: 0; }

/* ---------------- FOOTER ---------------- */
.footer { border-top: 1px solid var(--line); margin-top: 90px; background: var(--bg-2); }
.foot-grid {
  max-width: var(--maxw); margin: 0 auto; padding: 52px 32px 34px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px;
}
.foot-brand .brand { margin-bottom: 14px; }
.foot-tag { color: var(--ink-dim); font-size: 0.92rem; max-width: 26em; line-height: 1.55; }
.foot-col h4 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; margin-bottom: 14px; }
.foot-col a, .foot-note { display: block; font-size: 0.92rem; color: var(--ink-dim); margin-bottom: 9px; transition: color .2s; }
.foot-col a:hover { color: var(--volt); }
.foot-note { color: var(--ink-faint); }
.foot-bottom {
  max-width: var(--maxw); margin: 0 auto; padding: 20px 32px 34px;
  border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px;
  font-size: 0.8rem; color: var(--ink-faint); flex-wrap: wrap;
}
.foot-fine { max-width: 44em; }

/* ---------------- REVEAL ANIMATION ---------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 52px; }
  .monitor { order: 2; }
  .lab-inner { grid-template-columns: 1fr; gap: 34px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 760px) {
  section { padding: 0 22px; }
  .nav { padding: 12px 20px; gap: 14px; }
  .nav-links { display: none; }
  .bay-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
  .lab-points { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
  .hero-stats dd { font-size: 1.8rem; }
  .foot-bottom { flex-direction: column; gap: 10px; }
}
@media (max-width: 480px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .readouts { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr; }
  .nav-cta { display: none; }
  .fc-inner { padding: 44px 24px; }
}
