/* ============================================================
   Apex Flow shared design system (v3, 2026-07-23)
   Navy forensic precision + teal recovery signal
   v3: billion-dollar polish pass. Product-UI mockups, specialty
   segmentation, deeper hero, signature moments. Brand tokens
   verified against BRAND/BRAND_SPEC.md (2026-07-17).
   ============================================================ */

:root {
  /* Color */
  --navy-950: #060d18;
  --navy-900: #0a1424;
  --navy-850: #0d1a2e;
  --navy-800: #112238;
  --navy-700: #1a3050;
  --ink: #10202f;
  --ink-soft: #3d4f5f;
  --ink-faint: #64788a;
  --paper: #f6f9fb;
  --paper-2: #eef3f7;
  --card: #ffffff;
  --line: #dde6ec;
  --line-dark: rgba(148, 196, 220, 0.14);
  --teal: #00c2a8;
  --teal-deep: #0a766a;
  --teal-glow: #2dd4bf;
  --cyan: #22d3e5;
  --text-on-dark: #e8f1f6;
  --text-on-dark-soft: #9fb4c4;
  --text-on-dark-faint: #6e8496;

  /* Type */
  --font-body: 'Satoshi', 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
  --text-xs: 0.8125rem;
  --text-sm: 0.9rem;
  --text-base: 1rem;
  --text-md: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem);
  --text-2xl: clamp(2rem, 1.5rem + 2.2vw, 3rem);
  --text-hero: clamp(2.5rem, 1.65rem + 3.7vw, 4.35rem);
  --text-3xl: clamp(2.3rem, 1.7rem + 2.6vw, 3.4rem);

  /* Space */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem;
  --s-5: 1.25rem; --s-6: 1.5rem; --s-8: 2rem; --s-10: 2.5rem;
  --s-12: 3rem; --s-16: 4rem; --s-20: 5rem; --s-24: 6rem;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(9, 24, 38, 0.06), 0 2px 8px rgba(9, 24, 38, 0.05);
  --shadow-md: 0 2px 6px rgba(9, 24, 38, 0.06), 0 10px 30px rgba(9, 24, 38, 0.09);
  --shadow-lg: 0 4px 12px rgba(9, 24, 38, 0.1), 0 24px 60px rgba(9, 24, 38, 0.16);

  --wrap: 1200px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* v3 signature treatments */
  --grad-accent: linear-gradient(100deg, var(--teal-glow), var(--cyan));
  --hairline: linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.45), transparent);
  --danger: #d64545;
  --ring: 0 0 0 3px rgba(0, 194, 168, 0.35);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--teal-deep); }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.015em; }
p { margin: 0; }

::selection { background: rgba(0, 194, 168, 0.28); color: inherit; }

a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 6px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(6, 13, 24, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-on-dark);
  margin-right: auto;
}

.logo-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.logo-name small {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-on-dark-faint);
  margin-top: 1px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.6rem);
}

.nav a {
  color: var(--text-on-dark-soft);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  white-space: nowrap;
  transition: color 160ms ease;
}

.nav a:hover, .nav a.active { color: #ffffff; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms var(--ease-out), box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: #04211d;
  box-shadow: 0 6px 20px rgba(0, 194, 168, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0, 194, 168, 0.45); }

.btn-ghost-dark {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-on-dark);
  border-color: rgba(159, 180, 196, 0.35);
}
.btn-ghost-dark:hover { border-color: rgba(45, 212, 191, 0.7); color: #fff; transform: translateY(-2px); }

.btn-ghost-light {
  background: transparent;
  color: var(--ink);
  border-color: #c3d2dc;
}
.btn-ghost-light:hover { border-color: var(--teal-deep); color: var(--teal-deep); transform: translateY(-2px); }

.btn-lg { padding: 1.05rem 1.9rem; font-size: var(--text-base); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--text-on-dark);
  padding: 0.4rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 560px at 76% -12%, rgba(0, 194, 168, 0.2), transparent 62%),
    radial-gradient(700px 420px at 96% 42%, rgba(34, 211, 229, 0.1), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(34, 211, 229, 0.08), transparent 55%),
    linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 70%, var(--navy-850) 100%);
  color: var(--text-on-dark);
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--hairline);
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 196, 220, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 196, 220, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 55% 20%, black 35%, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-top: clamp(3.5rem, 8vw, 6.5rem);
  padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-glow);
  margin-bottom: var(--s-5);
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--teal-glow);
}

.hero h1 {
  font-size: var(--text-hero);
  font-weight: 800;
  letter-spacing: -0.028em;
  color: #ffffff;
  max-width: 15ch;
  margin-bottom: var(--s-6);
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--teal-glow), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: var(--text-md);
  color: var(--text-on-dark-soft);
  max-width: 52ch;
  margin-bottom: var(--s-8);
}

.hero-sub strong { color: var(--text-on-dark); font-weight: 700; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-bottom: var(--s-6);
}

.hero-note {
  font-size: var(--text-xs);
  color: var(--text-on-dark-faint);
}

.hero-note a { color: var(--text-on-dark-soft); }

.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  margin-top: var(--s-8);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line-dark);
}

.trust-chips span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-on-dark-soft);
}

.trust-chips svg { color: var(--teal-glow); flex-shrink: 0; }

/* Calculator card */
.calc-card {
  position: relative;
  background: linear-gradient(160deg, rgba(17, 34, 56, 0.92), rgba(10, 20, 36, 0.96));
  border: 1px solid rgba(45, 212, 191, 0.22);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: 0 30px 80px rgba(2, 8, 16, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.calc-card .card-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: var(--s-3);
}

.calc-card h2 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--s-5);
}

.calc-field { margin-bottom: var(--s-4); }

.calc-field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-on-dark-faint);
  margin-bottom: 0.45rem;
}

.calc-field select {
  width: 100%;
  appearance: none;
  background: rgba(6, 13, 24, 0.7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239fb4c4' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.9rem center;
  border: 1px solid rgba(159, 180, 196, 0.28);
  border-radius: var(--radius-md);
  color: var(--text-on-dark);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 0.8rem 2.4rem 0.8rem 0.95rem;
  cursor: pointer;
}

.calc-field select:focus { outline: 2px solid var(--teal); outline-offset: 1px; }

.calc-result {
  background: rgba(0, 194, 168, 0.08);
  border: 1px solid rgba(45, 212, 191, 0.3);
  border-radius: var(--radius-md);
  padding: var(--s-4) var(--s-5);
  margin: var(--s-5) 0;
}

.calc-result-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-on-dark-faint);
  margin-bottom: 0.2rem;
}

.calc-result-value {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 700;
  color: var(--teal-glow);
  line-height: 1.1;
}

.calc-result-sub {
  font-size: var(--text-xs);
  color: var(--text-on-dark-faint);
  margin-top: 0.35rem;
}

.calc-card .btn { width: 100%; }

.calc-foot {
  font-size: 0.72rem;
  color: var(--text-on-dark-faint);
  margin-top: var(--s-4);
  line-height: 1.5;
}

/* ---------- Stat band ---------- */
.stat-band {
  background: var(--navy-850);
  border-top: 1px solid var(--line-dark);
  color: var(--text-on-dark);
}

.stat-band-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: var(--s-8) 0;
}

.stat {
  padding: var(--s-2) var(--s-6);
  border-left: 1px solid var(--line-dark);
}

.stat:first-child { border-left: 0; }

.stat-value {
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 700;
  color: var(--teal-glow);
  line-height: 1.15;
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--text-on-dark-soft);
  margin-top: 0.3rem;
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--paper-2); }
.section-dark {
  background:
    radial-gradient(900px 400px at 85% 0%, rgba(0, 194, 168, 0.12), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
  color: var(--text-on-dark);
}

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4.5vw, 3.5rem); }

.section-head .eyebrow { margin-bottom: var(--s-4); }
.section-head.on-light .eyebrow { color: var(--teal-deep); }
.section-head.on-light .eyebrow::before { background: var(--teal-deep); }

.section-head h2 {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: var(--s-4);
}

.section-dark .section-head h2 { color: #fff; }

.section-head p {
  font-size: var(--text-md);
  color: var(--ink-soft);
  max-width: 58ch;
}

.section-dark .section-head p { color: var(--text-on-dark-soft); }

/* ---------- Feature grid ---------- */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5);
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-8) var(--s-6);
  box-shadow: var(--shadow-sm);
  transition: transform 220ms var(--ease-out), box-shadow 220ms ease, border-color 220ms ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #bfe3dd;
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: linear-gradient(140deg, rgba(0, 194, 168, 0.14), rgba(34, 211, 229, 0.1));
  border: 1px solid rgba(0, 194, 168, 0.25);
  color: var(--teal-deep);
  margin-bottom: var(--s-5);
}

.feature-card h3 {
  font-size: var(--text-md);
  font-weight: 700;
  margin-bottom: var(--s-2);
}

.feature-card p {
  font-size: var(--text-sm);
  color: var(--ink-soft);
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-8) var(--s-6) var(--s-6);
  box-shadow: var(--shadow-sm);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--teal-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--s-4);
}

.step-num::after {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  background: var(--navy-900);
  color: var(--teal-glow);
  font-size: 0.78rem;
}

.step h3 { font-size: var(--text-md); font-weight: 700; margin-bottom: var(--s-2); }
.step p { font-size: var(--text-sm); color: var(--ink-soft); }

/* Timeline strip */
.timeline {
  margin-top: var(--s-10);
  background: var(--navy-900);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  color: var(--text-on-dark);
}

.timeline-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s-3);
  margin-bottom: var(--s-6);
}

.timeline-head h3 { font-size: var(--text-lg); font-weight: 700; color: #fff; }
.timeline-head span { font-size: var(--text-xs); color: var(--text-on-dark-faint); }

.timeline-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s-4);
}

.tl-item {
  position: relative;
  padding-top: var(--s-4);
  border-top: 2px solid rgba(45, 212, 191, 0.35);
}

.tl-item::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-glow);
  box-shadow: 0 0 10px rgba(45, 212, 191, 0.8);
}

.tl-day {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.35rem;
}

.tl-item h4 { font-size: var(--text-sm); font-weight: 700; color: #fff; margin-bottom: 0.3rem; }
.tl-item p { font-size: var(--text-xs); color: var(--text-on-dark-soft); }

/* ---------- Comparison table ---------- */
.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  min-width: 760px;
}

.compare th, .compare td {
  padding: var(--s-4) var(--s-5);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.compare thead th {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: var(--paper-2);
}

.compare tbody tr:last-child td { border-bottom: 0; }

.compare td:first-child {
  font-weight: 700;
  color: var(--ink);
  width: 18%;
}

.compare .col-us {
  background: rgba(0, 194, 168, 0.06);
  border-left: 2px solid var(--teal);
  border-right: 1px solid var(--line);
  font-weight: 600;
}

.compare thead .col-us {
  color: var(--teal-deep);
  background: rgba(0, 194, 168, 0.1);
}

.compare td { color: var(--ink-soft); }

.table-note {
  font-size: var(--text-xs);
  color: var(--ink-faint);
  margin-top: var(--s-4);
  max-width: 68ch;
}

/* ---------- Pricing ---------- */
.price-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-8) var(--s-6);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  background: linear-gradient(165deg, var(--navy-900), var(--navy-850));
  border-color: rgba(45, 212, 191, 0.35);
  color: var(--text-on-dark);
  box-shadow: var(--shadow-lg);
}

.price-tag {
  position: absolute;
  top: -12px;
  left: var(--s-6);
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  color: #04211d;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
}

.price-card h3 { font-size: var(--text-md); font-weight: 700; margin-bottom: var(--s-3); }

.price-value {
  font-family: var(--font-mono);
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  font-weight: 700;
  color: var(--teal-deep);
  margin-bottom: var(--s-4);
  line-height: 1.1;
}

.price-card.featured .price-value { color: var(--teal-glow); }

.price-card p { font-size: var(--text-sm); color: var(--ink-soft); }
.price-card.featured p { color: var(--text-on-dark-soft); }

.price-list {
  list-style: none;
  margin: var(--s-5) 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.price-list li {
  display: flex;
  gap: 0.55rem;
  font-size: var(--text-sm);
  color: var(--ink-soft);
}

.price-card.featured .price-list li { color: var(--text-on-dark-soft); }

.price-list svg { flex-shrink: 0; margin-top: 3px; color: var(--teal); }

.tier-table {
  margin-top: var(--s-8);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.tier-table table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }

.tier-table th {
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: var(--paper-2);
  padding: var(--s-3) var(--s-5);
}

.tier-table td {
  padding: var(--s-3) var(--s-5);
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.tier-table td:last-child {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--teal-deep);
}

.callout {
  margin-top: var(--s-6);
  display: flex;
  gap: var(--s-4);
  background: rgba(0, 194, 168, 0.07);
  border: 1px solid rgba(0, 194, 168, 0.25);
  border-radius: var(--radius-md);
  padding: var(--s-4) var(--s-5);
  font-size: var(--text-sm);
  color: var(--ink-soft);
}

.callout svg { flex-shrink: 0; color: var(--teal-deep); margin-top: 2px; }

/* ---------- Proof ---------- */
.proof-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
  transition: border-color 200ms ease, background 200ms ease;
}

.proof-card:hover {
  border-color: rgba(45, 212, 191, 0.4);
  background: rgba(255, 255, 255, 0.055);
}

.proof-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-glow);
  background: rgba(0, 194, 168, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.3);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--s-4);
}

.proof-card h3 { font-size: var(--text-base); font-weight: 700; color: #fff; margin-bottom: var(--s-2); }
.proof-card p { font-size: var(--text-sm); color: var(--text-on-dark-soft); }

.soc-note {
  margin-top: var(--s-6);
  font-size: var(--text-sm);
  color: var(--text-on-dark-faint);
}

/* ---------- Founder ---------- */
.founder-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.founder-photo {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.founder-photo img { width: 100%; height: auto; }

.founder-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(9, 24, 38, 0.1);
  pointer-events: none;
}

.founder-body h3 { font-size: var(--text-lg); font-weight: 700; margin: var(--s-6) 0 var(--s-3); }

.founder-body > p {
  font-size: var(--text-base);
  color: var(--ink-soft);
  margin-bottom: var(--s-4);
}

.founder-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
  margin-top: var(--s-6);
}

.founder-fact {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--s-4) var(--s-5);
}

.founder-fact strong { display: block; font-size: var(--text-sm); color: var(--ink); margin-bottom: 0.2rem; }
.founder-fact span { font-size: var(--text-xs); color: var(--ink-faint); }

.fine-print { font-size: var(--text-xs); color: var(--ink-faint); margin-top: var(--s-5); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; display: grid; gap: var(--s-3); }

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.faq-item[open] { border-color: #bfe3dd; box-shadow: var(--shadow-sm); }

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-5) var(--s-6);
  font-size: var(--text-base);
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary svg {
  flex-shrink: 0;
  color: var(--teal-deep);
  transition: transform 240ms var(--ease-out);
}

.faq-item[open] summary svg { transform: rotate(45deg); }

.faq-item .faq-body {
  padding: 0 var(--s-6) var(--s-5);
  font-size: var(--text-sm);
  color: var(--ink-soft);
  max-width: 68ch;
}

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(800px 400px at 85% 120%, rgba(34, 211, 229, 0.14), transparent 60%),
    radial-gradient(700px 380px at 10% -20%, rgba(0, 194, 168, 0.18), transparent 55%),
    linear-gradient(160deg, var(--navy-900), var(--navy-950));
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--text-on-dark);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
  border: 1px solid var(--line-dark);
}

.cta-band h2 {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: var(--s-4);
}

.cta-band p { font-size: var(--text-md); color: var(--text-on-dark-soft); max-width: 46ch; }

.cta-actions { display: grid; gap: var(--s-3); }

.cta-actions .btn { width: 100%; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-950);
  color: var(--text-on-dark-soft);
  padding: var(--s-16) 0 var(--s-8);
  border-top: 1px solid var(--line-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--s-10);
  margin-bottom: var(--s-12);
}

.footer .logo { margin-bottom: var(--s-4); }

.footer-blurb { font-size: var(--text-sm); max-width: 34ch; color: var(--text-on-dark-faint); }

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-on-dark-faint);
  margin-bottom: var(--s-4);
}

.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }

.footer-col a {
  color: var(--text-on-dark-soft);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color 150ms ease;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-4);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line-dark);
  font-size: var(--text-xs);
  color: var(--text-on-dark-faint);
}

/* ---------- KAIS page ---------- */
.kais-hero {
  text-align: center;
  padding-top: clamp(4rem, 9vw, 7rem);
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
  position: relative;
}

.kais-wordmark-svg {
  height: clamp(72px, 6vw + 40px, 120px);
  width: auto;
  margin: 0 auto var(--s-5);
  display: block;
}

.kais-tagline {
  font-size: var(--text-md);
  color: var(--text-on-dark-soft);
  max-width: 54ch;
  margin: 0 auto var(--s-4);
}

.kais-say {
  display: inline-block;
  line-height: 1.7;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--text-on-dark-faint);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-full);
  padding: 0.45rem 1rem;
  margin-bottom: var(--s-8);
}

.kais-say b { color: var(--cyan); font-weight: 600; }

.guardrail {
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
  max-width: 780px;
  margin: var(--s-10) auto 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: var(--s-5) var(--s-6);
  text-align: left;
}

.guardrail svg { flex-shrink: 0; color: var(--teal-glow); margin-top: 2px; }
.guardrail p { font-size: var(--text-sm); color: var(--text-on-dark-soft); }
.guardrail strong { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .calc-card { max-width: 560px; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .timeline-track { grid-template-columns: repeat(3, 1fr); row-gap: var(--s-6); }
  .stat-band-inner { grid-template-columns: 1fr 1fr; row-gap: var(--s-6); }
  .stat:nth-child(3) { border-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy-950);
    border-bottom: 1px solid var(--line-dark);
    padding: var(--s-4) var(--s-6) var(--s-6);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.8rem 0; border-bottom: 1px solid var(--line-dark); }
  .nav .btn { margin-top: var(--s-4); }
  .nav-toggle { display: inline-flex; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .founder-grid { grid-template-columns: 1fr; }
  .founder-photo { max-width: 380px; }
  .cta-band { grid-template-columns: 1fr; }
}

/* THE TOP MENU FOLDS BELOW 1200px (2026-10-05). With Prior Authorization in the menu, the
   links and the demo button need about 990px on one line and the header holds 969px at most,
   so labels wrapped onto two lines at every width and the header ran past the viewport from
   861px to about 960px. Below 1200px the menu opens from the toggle, with the demo button
   beside it; from 1200px every label sits on one line. */
@media (max-width: 1199px) {
  .nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy-950);
    border-bottom: 1px solid var(--line-dark);
    padding: var(--s-4) var(--s-6) var(--s-6);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.8rem 0; border-bottom: 1px solid var(--line-dark); }
  .nav .btn { margin-top: var(--s-4); }
  .nav-toggle { display: inline-flex; }
}
@media (min-width: 1200px) {
  .nav { gap: clamp(0.85rem, 1.4vw, 1.15rem); }
}

@media (max-width: 640px) {
  .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .timeline-track { grid-template-columns: 1fr 1fr; }
  .founder-facts { grid-template-columns: 1fr; }
  .stat-band-inner { grid-template-columns: 1fr 1fr; }
  .stat { padding: var(--s-2) var(--s-4); }
  .hero h1 { max-width: none; }
}

/* Header CTA: the companion to the hamburger, shown wherever the menu is folded */
.header-cta { display: none; }
@media (max-width: 1199px) {
  .header-cta { display: inline-flex; margin-left: auto; margin-right: var(--s-3); padding: 0.55rem 0.95rem; font-size: 0.82rem; }
}
@media (max-width: 420px) {
  .header-cta { display: none; }
}

/* ============================================================
   v3 COMPONENTS (2026-07-23)
   ============================================================ */

/* ---------- Product-UI browser mockup (pure CSS, no JS) ---------- */
.browser-mock {
  position: relative;
  border-radius: 16px;
  background: linear-gradient(165deg, #0d1a2e, #060d18);
  border: 1px solid rgba(45, 212, 191, 0.24);
  box-shadow: 0 44px 110px rgba(2, 8, 16, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-5deg) rotateX(1.5deg);
  transition: transform 600ms var(--ease-out);
}

.browser-mock:hover { transform: perspective(1400px) rotateY(-1.5deg) rotateX(0.5deg); }

.bm-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.02);
}

.bm-dots { display: inline-flex; gap: 5px; }
.bm-dots i { width: 9px; height: 9px; border-radius: 50%; background: #28425c; }
.bm-dots i:first-child { background: rgba(214, 69, 69, 0.65); }
.bm-dots i:nth-child(2) { background: rgba(45, 212, 191, 0.55); }
.bm-dots i:last-child { background: rgba(34, 211, 229, 0.5); }

.bm-url {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--text-on-dark-faint);
  background: rgba(6, 13, 24, 0.7);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-full);
  padding: 0.28rem 0.8rem;
  margin-left: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bm-body { padding: clamp(0.9rem, 2vw, 1.3rem); display: grid; gap: 0.9rem; }

.bm-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.bm-title {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-on-dark-soft);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  white-space: nowrap;
}

.pill-teal { color: var(--teal-glow); background: rgba(0, 194, 168, 0.12); border-color: rgba(45, 212, 191, 0.35); }
.pill-cyan { color: var(--cyan); background: rgba(34, 211, 229, 0.1); border-color: rgba(34, 211, 229, 0.3); }
.pill-red { color: #ff9d9d; background: rgba(214, 69, 69, 0.12); border-color: rgba(214, 69, 69, 0.35); }
.pill-dim { color: var(--text-on-dark-faint); background: rgba(255, 255, 255, 0.04); border-color: var(--line-dark); }

.bm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }

.bm-tile {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
}

.bm-tile .t-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-on-dark-faint);
  margin-bottom: 0.25rem;
}

.bm-tile .t-value {
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  font-weight: 700;
  color: var(--teal-glow);
  line-height: 1.1;
}

.bm-tile .t-value.cyan { color: var(--cyan); }
.bm-tile .t-value.white { color: #fff; }

.bm-table { display: grid; gap: 0.45rem; }

.bm-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 0.7rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line-dark);
  border-radius: 9px;
  padding: 0.55rem 0.75rem;
}

.bm-code {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--cyan);
  background: rgba(34, 211, 229, 0.08);
  border: 1px solid rgba(34, 211, 229, 0.22);
  border-radius: 6px;
  padding: 0.15rem 0.45rem;
  white-space: nowrap;
}

.bm-desc {
  font-size: 0.72rem;
  color: var(--text-on-dark-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bm-amt { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 700; color: #fff; white-space: nowrap; }

.bm-bars { display: flex; align-items: flex-end; gap: 6px; height: 44px; padding-top: 0.2rem; }
.bm-bars i {
  flex: 1;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.85), rgba(0, 194, 168, 0.25));
}
.bm-bars i.dim { background: linear-gradient(180deg, rgba(110, 132, 150, 0.6), rgba(110, 132, 150, 0.15)); }

.mock-caption {
  margin-top: var(--s-4);
  font-size: var(--text-xs);
  color: var(--text-on-dark-faint);
  text-align: center;
}

.mock-caption a { color: var(--teal-glow); text-decoration: none; border-bottom: 1px solid rgba(45, 212, 191, 0.4); }
.mock-caption a:hover { color: #fff; }

/* ---------- Product showcase (3 vignettes) ---------- */
.showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }

.show-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, var(--navy-850), var(--navy-950));
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-on-dark);
  transition: transform 260ms var(--ease-out), border-color 260ms ease, box-shadow 260ms ease;
}

.show-card:hover {
  transform: translateY(-5px);
  border-color: rgba(45, 212, 191, 0.45);
  box-shadow: 0 26px 60px rgba(2, 8, 16, 0.5);
}

.show-card .bm-body { border-bottom: 1px solid var(--line-dark); }

.show-meta { padding: var(--s-5) var(--s-6); }

.show-meta h3 { font-size: var(--text-base); font-weight: 700; color: #fff; margin-bottom: 0.35rem; }
.show-meta p { font-size: var(--text-sm); color: var(--text-on-dark-soft); }

.show-meta .go {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: var(--s-3);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--teal-glow);
}

/* ---------- Specialty segmentation ---------- */
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }

.spec-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-6) var(--s-5);
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 220ms var(--ease-out), box-shadow 220ms ease, border-color 220ms ease;
  overflow: hidden;
}

.spec-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--grad-accent);
  opacity: 0;
  transition: opacity 220ms ease;
}

.spec-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #bfe3dd; }
.spec-card:hover::before { opacity: 1; }

.spec-card h3 { font-size: var(--text-base); font-weight: 700; margin-bottom: 0.3rem; }
.spec-card p { font-size: var(--text-xs); color: var(--ink-faint); line-height: 1.55; }

.spec-card .spec-arrow {
  position: absolute;
  top: var(--s-5);
  right: var(--s-5);
  color: var(--teal-deep);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 220ms ease, transform 220ms var(--ease-out);
}

.spec-card:hover .spec-arrow { opacity: 1; transform: none; }

/* ---------- Leak-check band ---------- */
.leak-band {
  position: relative;
  background:
    radial-gradient(700px 300px at 12% 0%, rgba(0, 194, 168, 0.14), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  color: var(--text-on-dark);
}

.leak-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.leak-inner h2 { font-size: var(--text-xl); font-weight: 800; letter-spacing: -0.02em; color: #fff; margin-bottom: var(--s-3); }
.leak-inner .lede { font-size: var(--text-sm); color: var(--text-on-dark-soft); max-width: 44ch; }

.leak-ca
rd {
  background: linear-gradient(160deg, rgba(17, 34, 56, 0.92), rgba(10, 20, 36, 0.96));
  border: 1px solid rgba(45, 212, 191, 0.22);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  box-shadow: 0 24px 60px rgba(2, 8, 16, 0.5);
}

.leak-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.leak-card .calc-result { margin: var(--s-4) 0; }
.leak-card .btn { width: 100%; }

/* ---------- Founding-client case band ---------- */
.case-band {
  position: relative;
  border: 1px solid rgba(45, 212, 191, 0.28);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(600px 280px at 90% 0%, rgba(34, 211, 229, 0.12), transparent 60%),
    linear-gradient(160deg, rgba(17, 34, 56, 0.85), rgba(6, 13, 24, 0.9));
  padding: clamp(2rem, 4.5vw, 3.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.case-formula {
  font-size: clamp(1.3rem, 1rem + 1.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.25;
}

.case-formula .slot {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.case-band .case-copy { margin-top: var(--s-4); font-size: var(--text-sm); color: var(--text-on-dark-soft); max-width: 52ch; }

.case-perks { display: grid; gap: 0.6rem; }

.case-perks span {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: var(--text-sm);
  color: var(--text-on-dark-soft);
}

.case-perks svg { flex-shrink: 0; margin-top: 3px; color: var(--teal-glow); }

/* ---------- Stack chips strip ---------- */
.stack-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-3) var(--s-6);
  padding: var(--s-6) 0;
}

.stack-strip span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-on-dark-faint);
}

/* ---------- KAIS product page extras ---------- */
.tm { font-size: 0.45em; vertical-align: super; letter-spacing: 0; color: var(--teal-glow); }

.lane-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }

.lane-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-8) var(--s-6);
  box-shadow: var(--shadow-sm);
}

.lane-card.prevent { border-top: 3px solid var(--cyan); }
.lane-card.fix { border-top: 3px solid var(--teal); }

.lane-card h3 { font-size: var(--text-lg); font-weight: 800; margin-bottom: var(--s-3); }
.lane-card > p { font-size: var(--text-sm); color: var(--ink-soft); }

/* ---------- Section divider hairline ---------- */
.hairline { height: 1px; background: var(--hairline); border: 0; margin: 0; }

/* ---------- v3 responsive ---------- */
@media (max-width: 1024px) {
  .showcase { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .leak-inner { grid-template-columns: 1fr; }
  .case-band { grid-template-columns: 1fr; }
  .lane-grid { grid-template-columns: 1fr; }
  .browser-mock { transform: none; max-width: 640px; margin: 0 auto; }
}

@media (max-width: 640px) {
  .spec-grid { grid-template-columns: 1fr; }
  .leak-grid { grid-template-columns: 1fr; }
  .bm-stats { grid-template-columns: 1fr 1fr; }
  .bm-row { grid-template-columns: auto 1fr auto; }
  .bm-row .pill { display: none; }
}

/* ================= KAIS video series (self-hosted, captioned) ================= */
.kv-grid { display: grid; gap: 1.5rem; margin-top: 2rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .kv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kv-one { margin-top: 2rem; max-width: 960px; }
.kv-fig { margin: 0; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.kv-fig h3 { font-size: 1.05rem; margin: 0; padding: 1rem 1.25rem 0.75rem; }
.kv-fig video, .kv-short video { display: block; width: 100%; height: auto; background: #0A1628; }
.kv-fig video { aspect-ratio: 16 / 9; }
.kv-fig figcaption, .kv-short figcaption { padding: 0.8rem 1.25rem 1rem; font-size: 0.9rem; line-height: 1.55; color: var(--ink-soft); }
.kv-na, .kv-src { display: block; margin-top: 0.4rem; font-size: 0.8rem; }
.kv-shorts { display: grid; gap: 1.25rem; margin-top: 2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .kv-shorts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kv-short { margin: 0; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.kv-short video { aspect-ratio: 9 / 16; }
.kv-compact .kv-short figcaption { font-size: 0.82rem; padding: 0.6rem 0.8rem 0.8rem; }
.kv-more { margin-top: 1.25rem; font-weight: 600; }

/* Hub Access page (2026-10-12) */
.hub-grid{grid-template-columns:repeat(4,1fr)}
@media (max-width:900px){.hub-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.hub-grid{grid-template-columns:1fr}}
.hub-doors{grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr))}
.hub-doors .conn-card{min-width:0}
.hub-code{margin:1rem 0 0;padding:1rem 1.1rem;border-radius:12px;background:#0b1b2b;color:#cfe9ee;
  font:0.85rem/1.55 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow-x:auto;white-space:pre}
.hub-points{list-style:none;padding:0;margin:0;display:grid;gap:0.9rem;
  grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr))}
.hub-points li{background:#fff;border-radius:12px;padding:1rem 1.15rem;border:1px solid rgba(11,27,43,.08)}
