/* ============================================================
   3DScanOrthotics - clinical white system
   ============================================================ */

:root {
  /* Surfaces - crisp clinical whites, faintly cool */
  --bg:    #FFFFFF;
  --bg-2:  #F5F7F9;
  --bg-3:  #ECEFF2;
  --bg-4:  #E3E7EB;

  /* Ink - cool near-black ramp */
  --ink:   #0D1117;
  --ink-2: #39424C;
  --ink-3: #69727C;
  --ink-4: #99A1AA;
  --ink-5: #C2C8CE;

  /* Hairlines */
  --line:   rgba(13, 17, 23, 0.10);
  --line-2: rgba(13, 17, 23, 0.055);
  --line-3: rgba(13, 17, 23, 0.025);

  /* Brand - navy primary + orange pop (from the logo) */
  --accent:      #00366C;
  --accent-2:    #FF8E01;
  --accent-deep: color-mix(in oklch, var(--accent) 80%, #06122e);
  --accent-soft: color-mix(in oklch, var(--accent) 9%, var(--bg));
  --accent-tint: color-mix(in oklch, var(--accent) 16%, var(--bg));
  --accent-line: color-mix(in oklch, var(--accent) 34%, transparent);
  --accent-glow: color-mix(in oklch, var(--accent) 55%, transparent);

  /* Type */
  --sans: "Geist", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Layout */
  --gutter: clamp(20px, 4.2vw, 72px);
  --maxw:   1320px;
  --sy:     clamp(56px, 7vw, 104px);
  --radius: 18px;
}

body[data-density="compact"] { --sy: clamp(64px, 7.5vw, 116px); }
body[data-density="roomy"]   { --sy: clamp(128px, 14vw, 224px); }

/* Dark sections read navy as almost-black, so they use the orange pop as their accent. */
.how, .nums, .tech { --accent: var(--accent-2); }
.tech .hs-card { --accent: #00366C; }  /* keep navy inside the white hotspot cards */

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv01";
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: 0; border: 0; padding: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 540; letter-spacing: -0.02em; }
p { margin: 0; }
::selection { background: var(--accent); color: #fff; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type primitives ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-transform: none;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 24px; height: 2px;
  border-radius: 2px;
  background: var(--accent-2);
  opacity: 0.95;
}
.eyebrow.plain::before,
.eyebrow.plain::after { display: none; }

.mono {
  font-family: var(--mono);
  letter-spacing: 0.02em;
  font-variant-ligatures: none;
}

.display {
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 0.98;
}

.lede {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 52ch;
  letter-spacing: -0.005em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 520;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform .12s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn .arrow { width: 15px; height: 15px; transition: transform .22s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(0,54,108,.2), 0 6px 18px -8px rgba(0,54,108,.45); }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost { background: var(--bg); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-4); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 9px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in oklch, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line-3);
  transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 82px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.nav-links-left { grid-column: 1; justify-self: end; }
.nav-inner > .brand { grid-column: 2; justify-self: center; margin: 0 44px; }
.nav-right { grid-column: 3; justify-self: start; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 560; font-size: 18px; letter-spacing: -0.025em; }
.brand-mark { width: 27px; height: 27px; display: grid; place-items: center; flex: 0 0 27px; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-logo { height: 40px; width: auto; display: block; }
.nav .brand-logo { height: 58px; }
.foot-brand .brand-logo { height: 46px; }
.brand .tail { color: var(--ink-3); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-link { font-size: 14px; color: var(--ink-2); transition: color .15s ease; white-space: nowrap; }
.nav-link:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
@media (max-width: 940px) { .nav-links { display: none; } .nav-cta .hide-sm { display: none; } }
@media (max-width: 700px) {
  .nav-inner { height: 66px; }
  .nav .brand-logo { height: 42px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 6.5vw, 104px) 0 clamp(56px, 6vw, 96px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(120% 90% at 84% -8%, var(--accent-soft) 0%, transparent 46%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg) 70%, var(--bg-2) 100%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(20px, 2.4vw, 40px);
  align-items: center;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

.hero-tag {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.005em; text-transform: none;
  color: var(--accent);
  margin-bottom: 26px;
}
.hero-tag::before, .hero-tag::after {
  content: ""; width: 24px; height: 2px; border-radius: 2px;
  background: var(--accent-2); opacity: 0.9;
}

.hero h1 {
  font-size: clamp(40px, 6.2vw, 80px);
  line-height: 0.97;
  letter-spacing: -0.035em;
  font-weight: 560;
}
.hero h1 .accent { color: var(--accent-2); }
.hero-sub { margin-top: 26px; max-width: 46ch; font-size: clamp(16px, 1.35vw, 19px); color: var(--ink-2); line-height: 1.55; }
.hero-cta { display: flex; gap: 11px; margin-top: 34px; flex-wrap: wrap; }

.hero-readout {
  display: flex; flex-wrap: wrap;
  margin-top: 44px; padding-top: 26px;
  border-top: 1px solid var(--line);
  gap: 0;
}
.hero-readout .item { padding-right: 28px; }
.hero-readout .item + .item { padding-left: 28px; border-left: 1px solid var(--line); }
.hero-readout .v { font-size: clamp(26px, 2.6vw, 34px); font-weight: 560; letter-spacing: -0.03em; line-height: 1; display: flex; align-items: baseline; gap: 3px; }
.hero-readout .v .u { font-family: var(--mono); font-size: 0.42em; font-weight: 500; color: var(--ink-3); letter-spacing: 0.04em; }
.hero-readout .v .accent { color: var(--accent-2); }
.hero-readout .l { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-3); margin-top: 9px; }

/* ---------- Scan device card (shared visual shell) ---------- */
.device {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.06;
  max-width: 540px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 0 #fff inset, 0 30px 60px -34px rgba(13,17,23,.28), 0 8px 24px -18px rgba(13,17,23,.2);
}
.device::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(var(--line-3) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-3) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(120% 100% at 50% 42%, #000 38%, transparent 84%);
}
.device-corner { position: absolute; width: 16px; height: 16px; border-color: var(--ink-4); opacity: .42; z-index: 5; }
.dc-tl { top: 14px; left: 14px; border-top: 1.5px solid; border-left: 1.5px solid; }
.dc-tr { top: 14px; right: 14px; border-top: 1.5px solid; border-right: 1.5px solid; }
.dc-bl { bottom: 14px; left: 14px; border-bottom: 1.5px solid; border-left: 1.5px solid; }
.dc-br { bottom: 14px; right: 14px; border-bottom: 1.5px solid; border-right: 1.5px solid; }

.device-head {
  position: absolute; top: 16px; left: 18px; right: 18px; z-index: 6;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3);
}
.device-head .mode { color: var(--ink); transition: color .4s ease; }
.device-head .live { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); }
.device-head .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.device-foot {
  position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 6;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line-2);
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
}
.device-foot .cell { background: color-mix(in oklch, var(--bg) 86%, transparent); backdrop-filter: blur(6px); padding: 11px 13px; }
.device-foot .l { font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 3px; }
.device-foot .v { font-family: var(--mono); font-size: 12.5px; color: var(--ink); }
.device-foot .v.accent { color: var(--accent-2); }

/* foot artwork holder */
.device-art { position: absolute; inset: 10% 23% 16%; z-index: 2; display: grid; place-items: center; }
.device-art svg { width: 100%; height: 100%; overflow: visible; }

/* callout pills */
.callout {
  position: absolute; z-index: 4;
  display: inline-flex; align-items: center; gap: 7px;
  background: color-mix(in oklch, var(--bg) 88%, transparent);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  padding: 5px 9px; border-radius: 8px;
  font-family: var(--mono); font-size: 10.5px; white-space: nowrap;
  color: var(--ink-2);
  box-shadow: 0 6px 16px -12px rgba(13,17,23,.4);
}
.callout .v { color: var(--ink); }
.callout .led { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: 0 0 5px; }

/* scanline */
.scanline {
  position: absolute; left: 21%; right: 21%; height: 2px; z-index: 3;
  background: linear-gradient(90deg, transparent, var(--accent) 50%, transparent);
  box-shadow: 0 0 22px 3px var(--accent-glow);
  opacity: 0;
}
.device[data-anim="on"] .scanline { animation: scan 4.2s ease-in-out infinite; }
@keyframes scan { 0% { top: 16%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: 80%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .device[data-anim="on"] .scanline { animation: none; opacity: .6; top: 48%; } }

/* ---------- Logo / trust strip ---------- */
.trust { border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); background: var(--ink); color: #fff; }
.trust-inner { display: flex; align-items: center; gap: clamp(20px, 4vw, 56px); padding: 26px var(--gutter); max-width: var(--maxw); margin: 0 auto; flex-wrap: wrap; }
.trust-lab { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-5); white-space: nowrap; }
.trust-logos { display: flex; align-items: center; gap: clamp(22px, 4vw, 50px); flex-wrap: wrap; flex: 1; }
.trust-logo { font-size: 17px; font-weight: 560; letter-spacing: -0.02em; color: rgba(255,255,255,.72); opacity: 1; }

/* ---------- Section header ---------- */
.s-head { margin-bottom: clamp(40px, 5vw, 72px); }
.s-head h2 { font-size: clamp(32px, 4.6vw, 60px); line-height: 1.0; letter-spacing: -0.035em; font-weight: 560; margin-top: 18px; max-width: 18ch; }
.s-head h2 .accent { color: var(--accent-2); }
.s-head .lede { margin-top: 22px; }
.s-head.center { text-align: center; max-width: 760px; margin-inline: auto; margin-bottom: clamp(48px, 6vw, 80px); }
.s-head.center .lede { margin-inline: auto; }
.s-head.center .eyebrow { justify-content: center; }

/* ============================================================
   HOW IT WORKS - sticky scan transform
   ============================================================ */
.how { background: var(--ink); color: #fff; border-top: 1px solid rgba(255,255,255,.08); padding: var(--sy) 0; }
/* Base + mobile + no-JS: steps are a simple vertical list beside a sticky
   device; the active step is whichever sits nearest the viewport midline. */
.how-grid {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: clamp(36px, 5vw, 88px);
  align-items: start;
  width: 100%;
}
.how-sticky { position: sticky; top: calc(82px + 5vh); }
.how-track { display: block; }
.how-step { position: relative; padding: clamp(40px, 10vh, 100px) 0; }
.how-step:first-child { padding-top: clamp(10px, 3vh, 28px); }
.how-nav { display: none; }

@media (max-width: 940px) {
  .how-grid { grid-template-columns: 1fr; gap: 0; }
  .how-sticky { top: 74px; z-index: 5; margin-bottom: 24px; }
  .how-sticky .device { max-width: 360px; }
  .how-step { padding: 36px 0; }
  .how-step:first-child { padding-top: 12px; }
}

/* Desktop + JS: pinned theatre. Scroll position selects a DISCRETE step; the
   change itself is a timed, choreographed transition (step exits upward, the
   next staggers in, the device tilts). Nothing can strand half-way, and the
   numbered tab rail shows progress and is clickable. */
@media (min-width: 941px) {
  html.js-anim .how { height: 220vh; padding: 0; }
  html.js-anim .how-pin {
    position: sticky; top: 82px; height: calc(100vh - 82px);
    display: flex; flex-direction: column; justify-content: center;
    padding: clamp(16px, 3vh, 36px) 0;
    overflow: hidden;
  }
  html.js-anim .how .s-head { margin-bottom: clamp(16px, 3vh, 34px); }
  html.js-anim .how-sticky { position: static; }
  html.js-anim .how-grid { align-items: center; }
  html.js-anim .how-track { display: grid; }
  html.js-anim .how-step {
    grid-area: 1 / 1; padding: 0;
    opacity: 0; transform: translateY(36px);
    transition: opacity .5s ease, transform .55s cubic-bezier(.22, .8, .24, 1);
    pointer-events: none;
  }
  html.js-anim .how-step.prev { transform: translateY(-36px); }
  /* translateY(0), not none — keeps the stacking context so the ghost numeral
     (z-index -1) stays above the section background */
  html.js-anim .how-step.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
  html.js-anim .how-step > * {
    opacity: 0; transform: translateY(16px);
    transition: opacity .4s ease, transform .45s cubic-bezier(.22, .8, .24, 1);
  }
  html.js-anim .how-step.active > * { opacity: 1; transform: translateY(0); }
  html.js-anim .how-step.active > *:nth-child(1) { transition-delay: .08s; }
  html.js-anim .how-step.active > *:nth-child(2) { transition-delay: .16s; }
  html.js-anim .how-step.active > *:nth-child(3) { transition-delay: .24s; }
  html.js-anim .how-step.active > *:nth-child(4) { transition-delay: .32s; }
  html.js-anim .how-step::before {
    content: attr(data-ghost);
    position: absolute; top: -0.42em; right: -0.02em;
    font-family: var(--mono); font-size: clamp(130px, 15vw, 220px);
    font-weight: 600; line-height: 1;
    color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .10);
    pointer-events: none; z-index: -1;
  }
  html.js-anim #howDevice { transition: transform .7s cubic-bezier(.22, .8, .24, 1); }
  html.js-anim #howDevice[data-step="1"] { transform: rotate(-1.1deg); }
  html.js-anim #howDevice[data-step="2"] { transform: rotate(0.9deg) scale(1.012); }
  html.js-anim #howDevice[data-step="3"] { transform: rotate(-0.5deg) scale(1.006); }

  /* numbered step tabs with a scroll-fill underline */
  html.js-anim .how-nav { display: flex; gap: 34px; margin: 0 0 clamp(16px, 3vh, 32px); }
  html.js-anim .how-nav-btn {
    position: relative; display: flex; align-items: baseline; gap: 9px;
    padding: 0 2px 10px; font-size: 14px; font-weight: 560; letter-spacing: -0.005em;
    color: rgba(255, 255, 255, .45); transition: color .25s ease;
  }
  html.js-anim .how-nav-btn:hover { color: #fff; }
  html.js-anim .how-nav-btn .n { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; color: rgba(255, 255, 255, .35); transition: color .25s ease; }
  html.js-anim .how-nav-btn::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, .14); border-radius: 2px; }
  html.js-anim .how-nav-btn::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); border-radius: 2px; transform: scaleX(0); transform-origin: left; }
  html.js-anim .how-nav-btn.is-active { color: #fff; }
  html.js-anim .how-nav-btn.is-active .n { color: var(--accent); }
  html.js-anim .how-nav-btn.is-active::after { transform: scaleX(var(--fill, 0)); }
  html.js-anim .how-nav-btn.is-done::after { transform: scaleX(1); }

  /* keep the pinned viewport from clipping on short laptop screens */
  html.js-anim .how-sticky .device { max-width: min(540px, 54vh); }
}
@media (min-width: 941px) and (max-height: 840px) {
  html.js-anim .how .s-head h2 { font-size: clamp(26px, 4.4vh, 40px); }
  html.js-anim .how .s-head { margin-bottom: 12px; }
  html.js-anim .how .s-head .lede { font-size: 16px; }
  html.js-anim .how-nav { margin-bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html.js-anim .how-step, html.js-anim .how-step > *, html.js-anim #howDevice { transition: none !important; }
}

.how-step .num {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,.4);
  display: inline-flex; align-items: center; gap: 12px;
  transition: color .35s ease;
}
.how-step .num::after { content: ""; width: 30px; height: 1px; background: rgba(255,255,255,.22); transition: background .35s ease, width .35s ease; }
.how-step h3 {
  font-size: clamp(28px, 3.4vw, 46px); line-height: 1.02; letter-spacing: -0.03em;
  font-weight: 560; margin: 18px 0 0; color: rgba(255,255,255,.5);
  transition: color .4s ease;
}
.how-step p { margin-top: 18px; max-width: 44ch; font-size: 16.5px; line-height: 1.6; color: rgba(255,255,255,.42); transition: color .4s ease; }
.how-step .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.how-step .chip {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em;
  color: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05);
  padding: 6px 11px; border-radius: 999px;
  opacity: .5; transition: opacity .4s ease, border-color .4s ease, color .4s ease;
}
.how-step.active .num { color: var(--accent); }
.how-step.active .num::after { background: var(--accent); width: 44px; }
.how-step.active h3 { color: #fff; }
.how-step.active p { color: rgba(255,255,255,.74); }
.how-step.active .chip { opacity: 1; border-color: rgba(255,255,255,.24); }
.how .s-head h2 { color: #fff; }
.how .s-head .lede { color: rgba(255,255,255,.6); }
.how .eyebrow { color: var(--ink-5); }
.how .eyebrow::before, .how .eyebrow::after { background: var(--accent); }

.how-progress { display: none; }

/* scan-state panes inside the sticky device */
.pane { position: absolute; inset: 0; z-index: 2; opacity: 0; transform: scale(.985); transition: opacity .55s ease, transform .55s ease; pointer-events: none; }
.pane.on { opacity: 1; transform: scale(1); }

/* zones (prescribe) */
.zone { transition: opacity .5s ease; }
.zone-label {
  position: absolute; z-index: 4;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em;
  color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px;
}
.zone-label .sw { width: 9px; height: 9px; border-radius: 3px; flex: 0 0 9px; }

/* print progress bar */
.print-bar { position: absolute; left: 23%; right: 23%; bottom: 21%; z-index: 4; }
.print-bar .track { height: 4px; border-radius: 999px; background: var(--bg-4); overflow: hidden; }
.print-bar .fill { height: 100%; width: 76%; border-radius: 999px; background: var(--accent); }
.print-bar .row { display: flex; justify-content: space-between; margin-top: 9px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em; color: var(--ink-3); }
.print-bar .row .v { color: var(--ink); }

/* ============================================================
   BENEFITS - comparison
   ============================================================ */
.why { padding: var(--sy) 0; }
.cmp { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2.4vw, 30px); align-items: stretch; }
@media (max-width: 720px) { .cmp { grid-template-columns: 1fr; } }
.cmp-col { padding: clamp(26px, 3.2vw, 42px); border-radius: var(--radius); }
.cmp-col.old { background: var(--bg-2); border: 1px dashed var(--ink-5); }
.cmp-col.old .eyebrow { color: var(--ink-3); }
.cmp-col.old .eyebrow::before, .cmp-col.old .eyebrow::after { background: var(--ink-4); }
.cmp-col.new {
  background: linear-gradient(160deg, var(--accent) 0%, color-mix(in oklch, var(--accent) 80%, #04102a) 100%);
  color: #fff;
  box-shadow: 0 34px 80px -34px color-mix(in oklch, var(--accent) 60%, transparent);
}
.cmp-col.new .eyebrow { color: var(--accent-2); }
.cmp-col.new .eyebrow::before, .cmp-col.new .eyebrow::after { background: var(--accent-2); }
.cmp-col h3 { font-size: clamp(22px, 2.3vw, 30px); letter-spacing: -0.025em; font-weight: 560; margin: 10px 0 22px; }
.cmp-col.old h3 { color: var(--ink-2); }
.cmp-col.new h3 { color: #fff; }
.cmp-row { display: flex; gap: 13px; padding: 15px 0; border-top: 1px solid var(--line-2); align-items: flex-start; }
.cmp-col.new .cmp-row { border-top-color: rgba(255,255,255,.14); }
.cmp-row:first-of-type { border-top: 0; }
.cmp-ic { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 1px; }
.cmp-col.old .cmp-ic { color: var(--ink-4); }
.cmp-col.new .cmp-ic { color: var(--accent-2); }
.cmp-row .txt { font-size: 14.5px; line-height: 1.5; }
.cmp-col.old .cmp-row .txt { color: var(--ink-3); }
.cmp-col.new .cmp-row .txt { color: rgba(255,255,255,.74); }
.cmp-col.old .cmp-row .txt b { color: var(--ink-2); font-weight: 560; }
.cmp-col.new .cmp-row .txt b { color: #fff; font-weight: 560; }
.cmp::after {
  content: "VS"; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); z-index: 2;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: var(--ink-3);
  box-shadow: 0 10px 28px -12px rgba(13,17,23,.3);
}
@media (max-width: 720px) { .cmp::after { display: none; } }

/* ============================================================
   OUTCOMES - by the numbers
   ============================================================ */
.nums { padding: var(--sy) 0; background: var(--ink); color: #fff; }
.nums .eyebrow { color: var(--ink-5); }
.nums .eyebrow::before, .nums .eyebrow::after { background: var(--accent); }
.nums h2 { color: #fff; }
.nums-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); overflow: hidden;
  margin-top: clamp(36px, 4vw, 56px);
}
@media (max-width: 820px) { .nums-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .nums-grid { grid-template-columns: 1fr; } }
.nums-cell { padding: clamp(26px, 3vw, 40px); border-right: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); }
.nums-grid .nums-cell:nth-child(4n) { border-right: 0; }
@media (max-width: 820px) { .nums-grid .nums-cell:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.12); } .nums-grid .nums-cell:nth-child(even) { border-right: 0; } }
.nums-cell .v { font-size: clamp(44px, 5.6vw, 72px); font-weight: 560; letter-spacing: -0.04em; line-height: 0.92; display: flex; align-items: baseline; gap: 4px; }
.nums-cell .v .u { font-size: 0.34em; font-family: var(--mono); font-weight: 500; color: var(--accent); letter-spacing: 0.02em; }
.nums-cell .l { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-5); margin-top: 16px; }
.nums-cell .sub { font-size: 14px; color: rgba(255,255,255,.62); margin-top: 8px; line-height: 1.5; max-width: 24ch; }

/* ============================================================
   CTA
   ============================================================ */
.cta { padding: var(--sy) 0; }
.cta-card {
  position: relative; overflow: hidden;
  border-radius: clamp(20px, 2.4vw, 30px);
  border: 1px solid var(--line);
  background:
    radial-gradient(110% 130% at 88% 6%, var(--accent-soft) 0%, transparent 50%),
    var(--bg);
  padding: clamp(40px, 6vw, 88px);
  text-align: center;
}
.cta-card::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(var(--line-3) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-3) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(80% 80% at 88% 6%, #000, transparent 62%);
}
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 { font-size: clamp(34px, 5.2vw, 68px); line-height: 1.0; letter-spacing: -0.035em; font-weight: 560; max-width: 20ch; margin: 16px auto 0; }
.cta-card h2 .accent { color: var(--accent-2); }
.cta-card .lede { margin: 20px auto 0; text-align: center; }
.cta-form { display: flex; gap: 10px; max-width: 480px; margin: 34px auto 0; flex-wrap: wrap; justify-content: center; }
.cta-form input {
  flex: 1; min-width: 220px; height: 50px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  padding: 0 18px; font: inherit; font-size: 15px; outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.cta-form input::placeholder { color: var(--ink-4); }
.cta-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cta-form .btn { height: 50px; }
.cta-meta { margin-top: 22px; display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.cta-meta span { display: inline-flex; align-items: center; gap: 7px; }
.cta-meta span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* ============================================================
   Footer
   ============================================================ */
footer { border-top: 1px solid var(--line); padding: clamp(56px, 6vw, 84px) 0 36px; background: var(--bg-2); }
.foot-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
.foot-brand .brand { font-size: 19px; margin-bottom: 16px; }
.foot-tag { font-size: 16px; color: var(--ink-2); max-width: 28ch; line-height: 1.5; letter-spacing: -0.01em; }
.foot-col h5 { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 16px; }
.foot-col a { display: block; font-size: 14.5px; color: var(--ink-2); padding: 5px 0; transition: color .15s ease; }
.foot-col a:hover { color: var(--accent); }
.foot-bottom { margin-top: clamp(48px, 6vw, 72px); padding-top: 26px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-3); }

/* ---------- scroll reveal (progressive enhancement) ----------
   Content is visible by default. Only when JS confirms it's running
   (html.js-anim) do we hide-then-reveal, so a failed/slow script or a
   static capture never leaves the page blank. */
html.js-anim .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
html.js-anim .reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .07s; }
.reveal[data-d="2"] { transition-delay: .14s; }
.reveal[data-d="3"] { transition-delay: .21s; }
@media (prefers-reduced-motion: reduce) { html.js-anim .reveal { opacity: 1; transform: none; transition: none; } }

/* embedded step media (video/img fills the phone screen) */
.device-art:has(.art-media){inset:0;}
.device-art .art-media{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:0;display:block;}
/* Step 2 (prescribe): shift crop down so the top ~10% is cropped out */
.device-art[data-art="prescribe"] .art-media{object-position:50% 22%;}
/* Hero: exploded product render — show the whole thing (no crop) */
.hero-visual .device-art .art-media{object-fit:contain;}
/* Hero: shape the frame to the image so nothing is cropped or letterboxed */
.hero-visual .device{aspect-ratio:720/544;max-width:600px;}


/* ---------- Live 3D scan section ---------- */
.scan3d { padding: clamp(64px, 8vw, 120px) 0; }
.scan3d-stage { position: relative; max-width: 600px; margin: clamp(28px, 4vw, 48px) auto 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); overflow: hidden; background-image: linear-gradient(var(--line-3) 1px, transparent 1px), linear-gradient(90deg, var(--line-3) 1px, transparent 1px); background-size: 30px 30px; }
.foot3d { width: 100%; height: clamp(400px, 62vw, 600px); touch-action: none; cursor: grab; }
.foot3d:active { cursor: grabbing; }
.foot3d canvas { display: block; width: 100%; height: 100%; }
.scan3d-hint { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-3); pointer-events: none; }


/* ---------- 3D showcase (stepped) ---------- */
.showcase { padding: clamp(48px, 6vw, 88px) 0; }
.sc-tabs { display: flex; gap: 4px; width: max-content; max-width: 100%; margin: clamp(24px, 3vw, 36px) auto 0; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); }
.sc-tab { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; cursor: pointer; padding: 9px 16px; border-radius: 10px; font-size: 13.5px; font-weight: 550; letter-spacing: -0.01em; color: var(--ink-3); white-space: nowrap; transition: background .18s ease, color .18s ease, box-shadow .18s ease; }
.sc-tab:hover { color: var(--ink-2); }
.sc-tab.is-active { background: var(--bg); color: var(--ink); box-shadow: 0 1px 2px rgba(13,17,23,.06), 0 2px 8px -4px rgba(13,17,23,.12); }
.sc-n { font-family: var(--mono); font-size: 11px; color: var(--ink-4); }
.sc-tab.is-active .sc-n { color: var(--accent); }
.sc-pane { display: none; }
.sc-pane.is-active { display: block; }
.sc-soon { height: clamp(400px, 62vw, 600px); display: grid; place-items: center; text-align: center; padding: 24px; color: var(--ink-3); font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
@media (max-width: 520px) { .sc-tab { padding: 8px 11px; font-size: 12px; gap: 5px; } }

/* ================= INSIDE THE INSOLE (interactive exploded) ================= */
.tech { padding: var(--sy) 0; background: var(--ink); color: #fff; border-top: 1px solid rgba(255,255,255,.08); }
.tech .s-head h2 { color: #fff; }
.tech .s-head .lede { color: rgba(255,255,255,.6); }
.tech .eyebrow { color: var(--ink-5); }
.tech .eyebrow::before, .tech .eyebrow::after { background: var(--accent); }
.tech-stage { margin-top: clamp(30px, 4vw, 56px); display: flex; justify-content: center; }
.tech-figure { position: relative; width: 100%; max-width: 700px; }
.tech-figure img {
  display: block; width: 100%; height: auto; border-radius: 20px;
  border: 1px solid var(--line); box-shadow: 0 40px 90px -50px rgba(13,17,23,.6);
}
.tech-scrim {
  position: absolute; inset: 0; border-radius: 20px; pointer-events: none; opacity: 0;
  transition: opacity .4s ease;
  background: radial-gradient(circle at var(--spot-x,50%) var(--spot-y,50%),
              rgba(8,10,14,0) 66px, rgba(8,10,14,.58) 200px);
}
.tech-figure.spot .tech-scrim { opacity: 1; }

.hotspot {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%,-50%);
  z-index: 3; padding: 0; margin: 0; border: 0; background: none; cursor: pointer;
  transition: opacity .3s ease;
}
.tech-figure.spot .hotspot:not(.is-active) { opacity: .3; }
/* the open card must paint above every sibling dot (siblings share z-index 3,
   so DOM order would otherwise put later dots on top of an earlier card) */
.hotspot.is-active, .hotspot:focus-visible { z-index: 6; }
.hs-dot {
  display: block; position: relative; width: 15px; height: 15px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in oklch, var(--accent) 26%, transparent), 0 2px 8px rgba(0,0,0,.35);
  transition: transform .3s ease;
}
.hs-dot::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 15px; height: 15px;
  transform: translate(-50%,-50%); border-radius: 50%; border: 2px solid var(--accent);
  animation: hsPulse 2.4s ease-out infinite;
}
@keyframes hsPulse {
  0%   { transform: translate(-50%,-50%) scale(1);  opacity: .7; }
  70%  { opacity: 0; }
  100% { transform: translate(-50%,-50%) scale(3);  opacity: 0; }
}
.hotspot:hover .hs-dot, .hotspot:focus-visible .hs-dot, .hotspot.is-active .hs-dot { transform: scale(1.3); }

.hs-card {
  position: absolute; top: 50%; left: calc(100% + 16px);
  transform: translateY(-50%) translateX(6px) scale(.97);
  width: 244px; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 24px 60px -28px rgba(13,17,23,.55);
  padding: 14px 16px;
  opacity: 0; visibility: hidden; pointer-events: none; z-index: 5;
  transition: opacity .28s ease, transform .28s ease, visibility .28s;
}
.hotspot[data-side="left"] .hs-card {
  left: auto; right: calc(100% + 16px);
  transform: translateY(-50%) translateX(-6px) scale(.97);
}
.hotspot.is-active .hs-card, .hotspot:focus-visible .hs-card {
  opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0) scale(1);
}
.hs-card::before {
  content: ""; position: absolute; top: 50%; width: 10px; height: 10px; background: #fff;
  border: 1px solid var(--line); border-right: 0; border-top: 0;
}
.hotspot[data-side="right"] .hs-card::before { left: -6px; transform: translateY(-50%) rotate(45deg); }
.hotspot[data-side="left"]  .hs-card::before { right: -6px; transform: translateY(-50%) rotate(225deg); }
.hs-k { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: var(--accent); }
.hs-t { display: block; font-size: 16px; font-weight: 560; letter-spacing: -0.01em; margin-top: 7px; color: var(--ink); }
.hs-d { display: block; font-size: 13.5px; line-height: 1.5; color: var(--ink-3); margin-top: 7px; }

@media (max-width: 640px) {
  .hs-card { width: 178px; padding: 12px 13px; }
  .hs-t { font-size: 14.5px; }
  .hs-d { font-size: 12.5px; }
  .hs-dot { width: 13px; height: 13px; }
}

/* ================= FLOATING CTA ================= */
.fab-cta {
  position: fixed; z-index: 80;
  right: clamp(16px, 3vw, 30px); bottom: clamp(16px, 3vw, 30px);
  display: inline-flex; align-items: center; gap: 9px;
  height: 52px; padding: 0 22px;
  background: var(--accent); color: #fff;
  border-radius: 999px; text-decoration: none;
  font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  box-shadow: 0 14px 34px -10px color-mix(in oklch, var(--accent) 62%, transparent), 0 4px 14px rgba(13,17,23,.22);
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.96);
  transition: opacity .35s ease, transform .35s ease, visibility .35s, background .2s ease, box-shadow .25s ease;
}
.fab-cta.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.fab-cta:hover { background: var(--accent-deep); transform: translateY(-2px) scale(1); box-shadow: 0 20px 44px -10px color-mix(in oklch, var(--accent) 70%, transparent), 0 6px 16px rgba(13,17,23,.26); }
.fab-cta svg { width: 17px; height: 17px; flex: 0 0 17px; }
@media (max-width: 520px) { .fab-cta { height: 48px; padding: 0 18px; font-size: 14px; } }

/* ================= MODIFICATIONS MEGA-MENU ================= */
.nav-dd { position: static; }
.nav-dd-btn { display: inline-flex; align-items: center; gap: 5px; }
.dd-caret { width: 9px; height: 6px; opacity: .7; transition: transform .2s ease; }
.nav-dd.open .dd-caret { transform: rotate(180deg); }
.nav-dd-panel {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: min(1120px, 94vw);
  background: var(--bg); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 34px 80px -34px rgba(13,17,23,.42);
  padding: 26px 30px 22px; z-index: 70;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.nav-dd.open .nav-dd-panel { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(7px); }
.mods-mega-head { display: flex; align-items: baseline; gap: 22px; flex-wrap: wrap; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line-2); }
.mods-mega-head p { font-size: 13.5px; color: var(--ink-3); max-width: 56ch; line-height: 1.5; }
.mods-cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px 26px; }
.mods-col h5 { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); margin: 0 0 10px; font-weight: 600; }
.mods-item { display: block; font-size: 13.5px; color: var(--ink-2); padding: 5px 0; transition: color .15s ease; }
.mods-item:hover { color: var(--accent); }
.mods-mega-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.mods-mega-foot span { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; color: var(--ink-3); }
@media (max-width: 1140px) { .mods-cols { grid-template-columns: repeat(3, 1fr); } }

/* ================= MODIFICATION DETAIL PAGES ================= */
.mod-nav-inner { display: flex; justify-content: space-between; align-items: center; }
.mod-back { display: inline-flex; align-items: center; font-weight: 500; }
.mod-page { padding: clamp(46px, 8vw, 92px) 0 clamp(52px, 8vw, 96px); }
.mod-page .eyebrow { margin-bottom: 18px; }
.mod-title { font-size: clamp(38px, 6vw, 66px); line-height: 1.0; letter-spacing: -0.035em; font-weight: 560; }
.mod-lede { margin-top: 22px; max-width: 60ch; }
.mod-points { margin-top: 34px; display: grid; gap: 13px; max-width: 58ch; }
.mod-point { display: flex; align-items: flex-start; gap: 13px; font-size: 16px; color: var(--ink-2); line-height: 1.5; }
.mod-dot { flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-top: 8px; }
.mod-cta-row { margin-top: 42px; display: flex; gap: 12px; flex-wrap: wrap; }
.mod-foot { border-top: 1px solid var(--line); background: var(--bg-2); padding: 44px 0; margin-top: 20px; }
.mod-foot .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.mod-foot .brand-logo { height: 40px; }
.mod-foot-tag { color: var(--ink-3); font-size: 14px; }
.mod-foot-copy { color: var(--ink-4); font-size: 13px; }

/* ================= MODIFICATIONS LIBRARY PAGE ================= */
.mods-mega-viewall { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.mods-mega-viewall .arrow { width: 13px; height: 13px; }
.lib { padding: clamp(44px, 7vw, 84px) 0 clamp(56px, 8vw, 96px); }
.lib-head { max-width: 66ch; margin-bottom: clamp(30px, 4vw, 52px); }
.lib-head .eyebrow { margin-bottom: 18px; }
.lib-head .mod-title { font-size: clamp(34px, 5vw, 58px); }
.lib-head .lede { margin-top: 22px; }
.lib-cat { margin-top: clamp(34px, 4.5vw, 54px); }
.lib-cat-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; padding-bottom: 14px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.lib-cat-head h2 { font-size: clamp(19px, 2vw, 25px); letter-spacing: -0.02em; font-weight: 560; }
.lib-cat-head p { color: var(--ink-3); font-size: 14px; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 14px; }
.lib-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.lib-card:hover { border-color: var(--accent-line); transform: translateY(-2px); box-shadow: 0 16px 32px -22px rgba(13,17,23,.45); }
.lib-card-name { font-size: 16px; font-weight: 560; letter-spacing: -0.01em; color: var(--ink); padding-right: 22px; }
.lib-card-sub { font-size: 13px; color: var(--ink-3); line-height: 1.45; }
.lib-card-arrow { position: absolute; top: 18px; right: 18px; width: 14px; height: 14px; color: var(--ink-4); transition: color .18s ease, transform .18s ease; }
.lib-card:hover .lib-card-arrow { color: var(--accent); transform: translateX(2px); }

/* ================= MODIFICATIONS SIDEBAR LAYOUT ================= */
.mod-shell { padding: clamp(30px, 4vw, 52px) 0 clamp(48px, 6vw, 80px); }
.mod-layout { display: grid; grid-template-columns: 248px 1fr; gap: clamp(30px, 5vw, 68px); align-items: start; }
.mod-sidebar { position: sticky; top: 98px; max-height: calc(100vh - 118px); overflow-y: auto; overflow-x: hidden; }
.ml-nav { display: flex; flex-direction: column; }
.ml-home { font-size: 13px; font-weight: 600; color: var(--ink); padding: 6px 10px; margin: 0 0 8px; border-radius: 8px; }
.ml-home:hover { background: var(--bg-2); }
.ml-home.is-active { color: var(--accent); background: var(--accent-soft); }
.ml-group { margin-top: 16px; }
.ml-group-title { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); font-weight: 600; margin-bottom: 4px; padding: 0 10px; }
.ml-link { display: block; font-size: 13.5px; color: var(--ink-2); padding: 6px 10px; border-radius: 8px; line-height: 1.3; transition: color .15s ease, background .15s ease; }
.ml-link:hover { color: var(--ink); background: var(--bg-2); }
.ml-link.is-active { color: var(--accent); background: var(--accent-soft); font-weight: 560; }
.mod-content { min-width: 0; }
.mod-content .mod-title { font-size: clamp(32px, 4vw, 50px); }
.mod-content .mod-points strong { color: var(--ink); font-weight: 560; }
@media (max-width: 860px) {
  .mod-layout { grid-template-columns: 1fr; gap: 24px; }
  .mod-content { order: 1; }
  .mod-sidebar { order: 2; position: static; max-height: none; overflow: visible; padding: 22px 0 0; margin-top: 24px; border-top: 1px solid var(--line); }
}

/* ================= PRICING MODAL ================= */
.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.open { display: block; }
.modal-scrim { position: absolute; inset: 0; background: rgba(13,17,23,.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: pmfade .2s ease; }
.modal-card {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: min(460px, 92vw); max-height: 90vh; overflow-y: auto;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 18px; padding: clamp(24px, 4vw, 34px);
  box-shadow: 0 50px 100px -30px rgba(13,17,23,.55);
  animation: pmpop .24s cubic-bezier(.2,.7,.3,1);
}
@keyframes pmfade { from { opacity: 0; } }
@keyframes pmpop { from { opacity: 0; transform: translate(-50%,-46%) scale(.97); } }
.modal-x { position: absolute; top: 12px; right: 14px; font-size: 24px; line-height: 1; color: var(--ink-4); width: 34px; height: 34px; border-radius: 8px; }
.modal-x:hover { color: var(--ink); background: var(--bg-2); }
.modal-card .eyebrow { margin-bottom: 14px; }
.modal-title { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.03em; font-weight: 560; }
.modal-sub { margin-top: 10px; color: var(--ink-3); font-size: 14.5px; line-height: 1.5; }
.modal-form { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.modal-form input, .modal-form textarea {
  font: inherit; font-size: 15px; color: var(--ink);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; width: 100%; resize: vertical;
}
.modal-form input:focus, .modal-form textarea:focus { outline: none; border-color: var(--accent); background: var(--bg); }
.modal-form .btn { margin-top: 4px; justify-content: center; }
.modal-done { margin-top: 18px; color: var(--ink); font-size: 16px; font-weight: 500; }

/* ================= TECH TABS (Inside the insole / accuracy / engine / measurements) ================= */
.tech-tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: clamp(26px, 4vw, 46px); }
.tech-tab {
  font-size: 14px; font-weight: 560; letter-spacing: -0.005em;
  color: rgba(255,255,255,.55);
  padding: 10px 18px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px;
  background: none; cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.tech-tab:hover { color: #fff; border-color: rgba(255,255,255,.36); }
.tech-tab.is-active { color: var(--ink); background: var(--accent-2); border-color: var(--accent-2); font-weight: 600; }
@media (max-width: 560px) { .tech-tab { font-size: 13px; padding: 9px 13px; } }

.tech-panels { position: relative; overflow: hidden; transition: height .5s cubic-bezier(.22,.8,.24,1); }
.tech-panel {
  position: absolute; top: 0; left: 0; width: 100%;
  opacity: 0; transform: translateY(24px);
  transition: opacity .4s ease, transform .45s cubic-bezier(.22,.8,.24,1);
  pointer-events: none; visibility: hidden;
}
.tech-panel.is-active { position: relative; opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
@media (prefers-reduced-motion: reduce) {
  .tech-panels { transition: none; }
  .tech-panel { transition: none; transform: none; }
}

.tech-accuracy { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(26px, 4vw, 54px); align-items: center; margin-top: clamp(30px, 4vw, 50px); }
@media (max-width: 820px) { .tech-accuracy { grid-template-columns: 1fr; } }
.acc-media { border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 40px 90px -50px rgba(0,0,0,.75); background: #000; }
.acc-media video { display: block; width: 100%; height: auto; }
.acc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; overflow: hidden; }
.acc-stat { background: var(--ink); padding: clamp(18px, 2.4vw, 26px); }
.acc-v { display: flex; align-items: baseline; gap: 3px; font-size: clamp(30px, 4vw, 46px); font-weight: 560; letter-spacing: -0.03em; color: #fff; line-height: 1; }
.acc-v .acc-u { font-size: 0.4em; font-family: var(--mono); font-weight: 500; color: var(--accent-2); letter-spacing: 0.02em; }
.acc-l { display: block; margin-top: 12px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-5); }

/* ================= MOBILE MENU ================= */
.nav-burger {
  display: none; grid-column: 3; justify-self: end;
  width: 44px; height: 44px; padding: 10px;
  border: 0; background: none; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-burger .nb-bar { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-burger.open .nb-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open .nb-bar:nth-child(2) { opacity: 0; }
.nav-burger.open .nb-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 940px) { .nav-burger { display: flex; grid-row: 1; } .nav-right { display: none; } }

.mobile-menu {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 59;
  height: calc(100vh - 82px); height: calc(100dvh - 82px);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: var(--bg); border-top: 1px solid var(--line);
  padding: 14px var(--gutter) 44px;
}
@media (min-width: 941px) { .mobile-menu { display: none !important; } }
@media (max-width: 700px) { .mobile-menu { height: calc(100vh - 66px); height: calc(100dvh - 66px); } }
.mm-links { display: flex; flex-direction: column; }
.mm-link { display: block; padding: 14px 2px; font-size: 17px; font-weight: 520; color: var(--ink); border-bottom: 1px solid var(--line-2); }
.mm-acc-btn {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 14px 2px; font-size: 17px; font-weight: 520; color: var(--ink);
  background: none; border: 0; border-bottom: 1px solid var(--line-2);
  cursor: pointer; font-family: inherit; text-align: left;
}
.mm-acc-btn .dd-caret { width: 12px; height: 8px; opacity: .7; transition: transform .2s ease; }
.mm-acc-btn.open .dd-caret { transform: rotate(180deg); }
.mm-acc-panel { padding: 4px 0 10px; border-bottom: 1px solid var(--line-2); }
.mm-sub { display: block; padding: 10px 14px; font-size: 15px; color: var(--ink-2); }
.mm-sub:active, .mm-sub:hover { color: var(--accent); }
.mm-sub b { color: var(--accent); font-weight: 600; }
.mm-cta { margin-top: 24px; width: 100%; justify-content: center; }

/* ================= LEAD FORM FEEDBACK ================= */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form-done { color: var(--accent); font-weight: 560; margin: 16px 0 0; }
.cta .form-done { text-align: center; }
.form-err { color: #b3261e; font-size: 14.5px; margin: 12px 0 0; }
.cta .form-err { text-align: center; }
.btn:disabled { opacity: .6; pointer-events: none; }

/* ================= MOD PAGE DEEP SECTIONS ================= */
.mod-h2 { font-size: 20px; letter-spacing: -0.015em; color: var(--ink); margin: 42px 0 12px; padding-top: 26px; border-top: 1px solid var(--line-2); font-weight: 600; }
.mod-body { color: var(--ink-2); font-size: 15.5px; line-height: 1.75; margin: 0 0 14px; max-width: 68ch; }
.mod-ind { list-style: none; padding: 0; margin: 0; max-width: 68ch; }
.mod-ind li { position: relative; padding: 9px 0 9px 30px; color: var(--ink-2); font-size: 15px; line-height: 1.55; border-bottom: 1px solid var(--line-3); }
.mod-ind li:last-child { border-bottom: 0; }
.mod-ind li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 13px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.mod-specs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 2px; }
.mod-spec { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; color: var(--accent-deep); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 999px; padding: 6px 12px; }
.mod-pairs { display: flex; flex-wrap: wrap; gap: 10px; }
.mod-pair { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 520; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; transition: border-color .15s ease, color .15s ease; }
.mod-pair:hover { border-color: var(--accent); color: var(--accent); }
.mod-pair .arrow { width: 13px; height: 13px; }

/* ================= RX TEMPLATE PAGES ================= */
.tpl-meta {
  display: grid; grid-template-columns: 130px 1fr; gap: 12px 20px;
  margin: 22px 0 16px; max-width: 68ch;
  padding: 20px 22px; background: var(--bg-2);
  border: 1px solid var(--line-2); border-radius: 14px;
}
.tpl-meta dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding-top: 2px; }
.tpl-meta dd { margin: 0; font-size: 14.5px; color: var(--ink); line-height: 1.55; }
@media (max-width: 560px) { .tpl-meta { grid-template-columns: 1fr; gap: 2px 0; } .tpl-meta dt { margin-top: 10px; } }
.tpl-mod { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line-3); max-width: 68ch; }
.tpl-mod:last-of-type { border-bottom: 0; }
.tpl-mod a { font-weight: 560; font-size: 15px; color: var(--accent); white-space: nowrap; }
.tpl-mod a:hover { text-decoration: underline; }
.tpl-mod span { color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.tpl-disclaim { margin-top: 26px; padding: 14px 18px; background: var(--accent-soft); border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; font-size: 14px; }

/* ================= TECH THEATRE (Inside the insole) ================= */
/* hotspot markers spring in one-by-one as the stage reveals */
html.js-anim .tech-stage .hotspot { opacity: 0; transform: scale(.35); transition: opacity .4s ease, transform .55s cubic-bezier(.34, 1.5, .44, 1); }
html.js-anim .tech-stage.in .hotspot { opacity: 1; transform: scale(1); }
html.js-anim .tech-stage.in .hotspot:nth-of-type(1) { transition-delay: .30s; }
html.js-anim .tech-stage.in .hotspot:nth-of-type(2) { transition-delay: .46s; }
html.js-anim .tech-stage.in .hotspot:nth-of-type(3) { transition-delay: .62s; }
html.js-anim .tech-stage.in .hotspot:nth-of-type(4) { transition-delay: .78s; }
html.js-anim .tech-stage.in .hotspot:nth-of-type(5) { transition-delay: .94s; }
/* register the spotlight position vars so the scrim GLIDES between stops
   during the guided tour (gracefully instant where @property is unsupported) */
@property --spot-x { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
@property --spot-y { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
.tech-figure { transition: --spot-x .55s ease, --spot-y .55s ease; }
@media (prefers-reduced-motion: reduce) {
  html.js-anim .tech-stage .hotspot { transition: none; opacity: 1; transform: none; }
}

/* ================= NAV UPGRADES ================= */
.skip-link { position: absolute; left: -9999px; z-index: 200; }
.skip-link:focus { left: 12px; top: 12px; position: fixed; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 560; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .btn-sm { height: 38px; padding: 0 15px; }

/* condense on scroll */
.nav-inner { transition: height .28s ease; }
.brand-logo { transition: height .28s ease; }
.nav.scrolled { box-shadow: 0 10px 32px -22px rgba(13, 17, 23, .30); }
@media (min-width: 941px) {
  .nav.scrolled .nav-inner { height: 68px; }
  .nav.scrolled .brand-logo { height: 46px; }
}

/* current section (homepage scroll-spy) / current page (subpages) */
.nav-link { position: relative; }
.nav-link.is-current { color: var(--ink); }
.nav-link.is-current::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px;
  background: var(--accent-2); border-radius: 2px;
}
.nav-dd-btn.is-current::after { bottom: -6px; }

/* squeeze gracefully on narrow desktops */
@media (max-width: 1460px) {
  .nav-links { gap: 20px; }
  .nav-inner > .brand { margin: 0 24px; }
  .nav-right { gap: 16px; }
  .nav-actions .btn-sm { padding: 0 12px; }
}
@media (max-width: 1260px) {
  .nav-actions .btn-ghost { display: none; }
}

/* mobile menu: staggered entrance + sign-in link */
.mm-signin { display: block; text-align: center; margin-top: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; font-weight: 560; color: var(--ink); }
.mm-signin:active { border-color: var(--accent); color: var(--accent); }
@keyframes mmIn { from { opacity: 0; transform: translateY(12px); } }
.mobile-menu:not([hidden]) .mm-link,
.mobile-menu:not([hidden]) .mm-acc-btn,
.mobile-menu:not([hidden]) .mm-cta,
.mobile-menu:not([hidden]) .mm-signin { animation: mmIn .32s ease backwards; }
.mobile-menu:not([hidden]) .mm-link:nth-child(1) { animation-delay: .03s; }
.mobile-menu:not([hidden]) .mm-link:nth-child(2) { animation-delay: .07s; }
.mobile-menu:not([hidden]) .mm-link:nth-child(3) { animation-delay: .11s; }
.mobile-menu:not([hidden]) .mm-link:nth-child(4) { animation-delay: .15s; }
.mobile-menu:not([hidden]) .mm-link:nth-child(5) { animation-delay: .19s; }
.mobile-menu:not([hidden]) .mm-link:nth-child(6) { animation-delay: .23s; }
.mobile-menu:not([hidden]) .mm-acc-btn { animation-delay: .27s; }
.mobile-menu:not([hidden]) .mm-cta { animation-delay: .32s; }
.mobile-menu:not([hidden]) .mm-signin { animation-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  .mobile-menu:not([hidden]) .mm-link, .mobile-menu:not([hidden]) .mm-acc-btn,
  .mobile-menu:not([hidden]) .mm-cta, .mobile-menu:not([hidden]) .mm-signin { animation: none; }
  .nav-inner, .brand-logo { transition: none; }
}

/* ================= SCAN ACCURACY + PIPELINE SLIDES ================= */
.acc-col { display: flex; flex-direction: column; gap: 14px; }
.acc-points { display: flex; flex-direction: column; gap: 8px; }
.acc-point { position: relative; padding-left: 24px; font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,.6); }
.acc-point::before {
  content: ""; position: absolute; left: 2px; top: 5px; width: 11px; height: 6px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.pipe-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(26px, 4vw, 60px); align-items: start;
  margin-top: clamp(28px, 4vw, 48px);
}
@media (max-width: 860px) { .pipe-grid { grid-template-columns: 1fr; } }
.pipe-step { display: flex; gap: 18px; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.pipe-step:first-child { padding-top: 0; }
.pipe-step:last-child { border-bottom: 0; }
.pipe-num { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--accent); padding-top: 4px; flex: 0 0 auto; }
.pipe-step h4 { margin: 0 0 6px; font-size: 16.5px; font-weight: 560; letter-spacing: -0.01em; color: #fff; }
.pipe-step p { font-size: 14.5px; line-height: 1.62; color: rgba(255,255,255,.55); }

.pipe-callout {
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px; padding: 22px 24px;
}
.pc-k { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.pipe-math { margin: 14px 0 4px; }
.pm-row { display: flex; align-items: baseline; gap: 14px; padding: 8px 0; }
.pm-v { font-size: clamp(26px, 3vw, 36px); font-weight: 560; letter-spacing: -0.03em; color: #fff; line-height: 1; white-space: nowrap; }
.pm-v .pm-u { font-size: 0.42em; font-family: var(--mono); font-weight: 500; color: rgba(255,255,255,.5); margin-left: 2px; }
.pm-v.accent { color: var(--accent); }
.pm-v.accent .pm-u { color: color-mix(in oklch, var(--accent) 70%, #fff); }
.pm-l { font-size: 13.5px; color: rgba(255,255,255,.55); line-height: 1.4; }
.pm-arrow { font-family: var(--mono); font-size: 12px; letter-spacing: .05em; color: var(--accent); padding: 4px 0 4px 2px; }
.pipe-note { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13.5px; line-height: 1.65; color: rgba(255,255,255,.5); }

/* ================= NUMBERS UPGRADES ================= */
.nums .lede { color: rgba(255,255,255,.62); margin-top: 14px; }
.nums-cell { position: relative; transition: background .25s ease; }
.nums-cell:hover { background: rgba(255,255,255,.035); }
.nums-cell::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.nums-cell:hover::before { transform: scaleX(1); }
.nums-more { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; font-size: 13px; font-weight: 560; color: var(--accent); }
.nums-more .arrow { width: 13px; height: 13px; transition: transform .2s ease; }
.nums-more:hover .arrow { transform: translateX(3px); }

/* ================= RX TEMPLATES DROPDOWN ================= */
.nav-dd-panel.dd-narrow { width: min(680px, 94vw); }
.tpl-menu-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 28px; }

/* ================= TECH PANEL ARROWS ================= */
.tech-nav {
  position: absolute; top: 54%; transform: translateY(-50%); z-index: 6;
  width: 48px; height: 48px; border-radius: 50%; color: #fff;
  background: rgba(13,17,23,.55); border: 1px solid rgba(255,255,255,.25);
  display: grid; place-items: center; cursor: pointer;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .12s ease;
}
.tech-nav svg { width: 16px; height: 16px; }
.tech-nav:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--ink); }
.tech-nav:active { transform: translateY(-50%) scale(.94); }
.tech-prev { left: 6px; }
.tech-next { right: 6px; }
@media (max-width: 640px) { .tech-nav { width: 42px; height: 42px; top: auto; bottom: 10px; transform: none; } .tech-nav:active { transform: scale(.94); } }
.tech-nav[hidden] { display: none; }

/* reserve a lane for the panel arrows so they never sit on content */
@media (min-width: 941px) { .tech-panel { padding: 0 64px; } }
@media (max-width: 940px) { .tech-panel { padding-bottom: 64px; } }
