/* ============================================================
   CRNA Pilot — Design Tokens
   Navy + Crimson brand system, light & dark
   ============================================================ */

:root,
[data-theme='light'] {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.125rem);
  --text-2xl: clamp(2rem, 1.4rem + 2.4vw, 3.375rem);

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

  /* Surfaces — cool ice-blue neutrals */
  --color-bg: #f5f8fc;
  --color-surface: #ffffff;
  --color-surface-2: #fafcfe;
  --color-surface-offset: #ecf1f8;
  --color-surface-dynamic: #e2e9f3;
  --color-divider: #e3e9f2;
  --color-border: oklch(0.25 0.04 258 / 0.13);

  /* Text — navy ink */
  --color-text: #0c1b33;
  --color-text-muted: #48586f;
  --color-text-faint: #8b9cb3;
  --color-text-inverse: #f4f8fd;

  /* Crimson — primary action */
  --color-primary: #c8102e;
  --color-primary-hover: #a80d27;
  --color-primary-active: #8c0b20;
  --color-primary-highlight: #fbe5e9;

  /* Navy — brand structure */
  --color-navy: #14418a;
  --color-navy-hover: #0f3570;
  --color-navy-deep: #0a1f44;
  --color-navy-deeper: #071731;
  --color-navy-tint: #e5edf9;

  /* Support */
  --color-success: #1e7a4e;
  --color-success-highlight: #ddefe5;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Motion */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows — cool-toned */
  --shadow-sm: 0 1px 2px oklch(0.25 0.05 258 / 0.07);
  --shadow-md: 0 2px 4px oklch(0.25 0.05 258 / 0.06), 0 8px 24px oklch(0.25 0.05 258 / 0.08);
  --shadow-lg: 0 4px 8px oklch(0.25 0.05 258 / 0.08), 0 20px 48px oklch(0.25 0.05 258 / 0.14);

  /* Widths */
  --content-narrow: 640px;
  --content-default: 1080px;
  --content-wide: 1200px;

  /* Fonts */
  --font-display: 'Cabinet Grotesk', 'Satoshi', 'Helvetica Neue', sans-serif;
  --font-body: 'Satoshi', 'Helvetica Neue', Arial, sans-serif;

  /* Band (dark navy sections) — constant across themes */
  --band-bg: #0a1f44;
  --band-bg-2: #0d2857;
  --band-text: #eef3fb;
  --band-text-muted: #a9bcd9;
  --band-border: oklch(0.9 0.02 258 / 0.14);
}

[data-theme='dark'] {
  --color-bg: #081226;
  --color-surface: #0e1b33;
  --color-surface-2: #12213c;
  --color-surface-offset: #16274a;
  --color-surface-dynamic: #1c3054;
  --color-divider: #1a2947;
  --color-border: oklch(0.85 0.03 258 / 0.15);

  --color-text: #dce5f1;
  --color-text-muted: #97a8c1;
  --color-text-faint: #5f718c;
  --color-text-inverse: #0c1b33;

  --color-primary: #f04258;
  --color-primary-hover: #f66276;
  --color-primary-active: #d92e45;
  --color-primary-highlight: #3c1723;

  --color-navy: #5c8bd6;
  --color-navy-deep: #0a1f44;
  --color-navy-deeper: #071731;
  --color-navy-tint: #12213c;

  --color-success: #4cae7f;
  --color-success-highlight: #12301f;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.45);

  --band-bg: #0a1a38;
  --band-bg-2: #0e2349;
}

/* ============================================================
   Utilities
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 4vw, var(--space-8));
}

.section {
  padding-block: clamp(var(--space-12), 6vw, var(--space-16));
}
.section--tight {
  padding-block: clamp(var(--space-10), 5vw, var(--space-12));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-top: var(--space-3);
}
.section-lede {
  color: var(--color-text-muted);
  margin-top: var(--space-3);
  max-width: 56ch;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1;
  padding: 0.8em 1.5em;
  min-height: 44px;
  border-radius: var(--radius-md);
  white-space: nowrap;
  text-decoration: none;
  transition:
    background var(--transition-interactive),
    color var(--transition-interactive),
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive),
    transform var(--transition-interactive);
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: var(--shadow-sm);
}
.btn--primary {
  background: var(--color-primary);
  color: #fff;
}
.btn--primary:hover {
  background: var(--color-primary-hover);
}
.btn--navy {
  background: var(--color-navy-deep);
  color: #fff;
}
[data-theme='dark'] .btn--navy {
  background: var(--color-surface-offset);
  color: var(--color-text);
}
.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}
.btn--ghost:hover {
  border-color: var(--color-text-faint);
  background: var(--color-surface);
}
.btn--light {
  background: #fff;
  color: var(--color-navy-deep);
}
.btn--lg {
  padding: 1em 1.9em;
  font-size: var(--text-sm);
}

/* Scroll reveals — content visible by default, never hidden */
.reveal {
  opacity: 1;
}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      opacity: 0.001;
      animation: reveal-fade linear both;
      animation-timeline: view();
      animation-range: entry 5% entry 45%;
    }
  }
}
@keyframes reveal-fade {
  to {
    opacity: 1;
  }
}

/* ============================================================
   Header
   ============================================================ */

.skip-link {
  position: fixed;
  left: var(--space-4);
  top: -120px;
  z-index: 100;
  background: var(--color-surface);
  color: var(--color-text);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.skip-link:focus {
  top: var(--space-3);
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    box-shadow 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out);
}
.header--scrolled {
  border-bottom-color: var(--color-divider);
  box-shadow: var(--shadow-sm);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
  margin-right: auto;
}
.brand__logo {
  display: block;
  height: 54px;
  width: auto;
}
.brand__logo--dark {
  display: none;
}
[data-theme='dark'] .brand__logo--light {
  display: none;
}
[data-theme='dark'] .brand__logo--dark {
  display: block;
}
.footer .brand__logo {
  height: 42px;
}
@media (max-width: 640px) {
  .brand__logo {
    height: 38px;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  white-space: nowrap;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
}
.nav a:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
}
.theme-toggle:hover {
  background: var(--color-surface-offset);
  color: var(--color-text);
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}
.menu-btn:hover {
  background: var(--color-surface-offset);
}

/* Mobile nav panel */
.mobile-nav {
  display: none;
  border-top: 1px solid var(--color-divider);
  background: var(--color-bg);
  padding: var(--space-4) 0 var(--space-6);
}
.mobile-nav.is-open {
  display: block;
}
.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 var(--space-2);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-text);
  text-decoration: none;
  border-radius: var(--radius-md);
}
.mobile-nav a:active {
  background: var(--color-surface-offset);
}
.mobile-nav__cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding: 0 var(--space-2);
}

@media (max-width: 900px) {
  .nav,
  .header__actions .btn--ghost {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
  }
  .header__inner {
    min-height: 60px;
  }
}

@media (max-width: 640px) {
  .header__actions .btn--primary {
    display: none;
  }
  .header__actions {
    gap: var(--space-2);
  }
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  overflow: clip;
  padding-block: clamp(var(--space-10), 6vw, var(--space-20)) clamp(var(--space-12), 7vw, var(--space-24));
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(52rem 30rem at 85% -10%, var(--color-navy-tint), transparent 65%),
    radial-gradient(40rem 26rem at -12% 100%, oklch(from var(--color-primary) l c h / 0.06), transparent 60%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.07em;
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--color-navy);
  background: var(--color-navy-tint);
  border: 1px solid oklch(from var(--color-navy) l c h / 0.2);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
}
[data-theme='dark'] .hero__badge {
  color: #9db9e8;
}
.hero__badge svg {
  flex: none;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-top: var(--space-5);
}
.hero h1 em {
  font-style: normal;
  color: var(--color-primary);
  position: relative;
  white-space: nowrap;
}
.hero h1 em .underline-swash {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.18em;
  width: 100%;
  height: 0.22em;
  color: var(--color-primary);
  opacity: 0.9;
}

.hero__lede {
  margin-top: var(--space-5);
  color: var(--color-text-muted);
  font-size: var(--text-base);
  max-width: 52ch;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin-top: var(--space-8);
  padding: 0;
  list-style: none;
}
.hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
}
.hero__trust svg {
  color: var(--color-success);
  flex: none;
}

/* Hero visual — flight panel */
.hero__visual {
  position: relative;
  min-width: 0;
}
.flight-panel {
  position: relative;
  background: linear-gradient(160deg, var(--band-bg) 0%, var(--band-bg-2) 100%);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: clamp(var(--space-5), 3vw, var(--space-8));
  overflow: hidden;
}
.flight-panel__sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.flight-panel__route {
  width: 100%;
  height: auto;
  display: block;
}
.route-path {
  fill: none;
  stroke: oklch(0.9 0.02 258 / 0.35);
  stroke-width: 2;
  stroke-dasharray: 7 9;
  stroke-linecap: round;
}
.route-path--glow {
  stroke: #ff5a6e;
  stroke-width: 2.5;
  stroke-dasharray: 90 660;
  stroke-dashoffset: 0;
  animation: route-run 7s linear infinite;
  filter: drop-shadow(0 0 6px oklch(0.65 0.22 15 / 0.55));
}
@keyframes route-run {
  from {
    stroke-dashoffset: 750;
  }
  to {
    stroke-dashoffset: 0;
  }
}
.route-plane {
  offset-path: path('M20 150 C 130 30, 300 170, 420 48');
  offset-rotate: auto 45deg;
  animation: plane-fly 7s linear infinite;
}
@keyframes plane-fly {
  from {
    offset-distance: 0%;
  }
  to {
    offset-distance: 100%;
  }
}
.route-dot {
  fill: #ff5a6e;
}
.route-node {
  fill: var(--band-bg);
  stroke: oklch(0.9 0.02 258 / 0.55);
  stroke-width: 2;
}

/* Flight panel v2 — tracker board */
.fp-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.fp-head__flight {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #a9bcd9;
}
.fp-head__flight svg {
  color: #ff5a6e;
}
.fp-head__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #8fdcb4;
  background: oklch(0.75 0.15 160 / 0.1);
  border: 1px solid oklch(0.75 0.15 160 / 0.28);
  border-radius: 999px;
  padding: 4px 11px;
}
.fp-head__status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  animation: fp-beacon 1.6s ease-in-out infinite;
}
.fp-board {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.fp-airport {
  min-width: 0;
}
.fp-airport__code {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 2.4vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: 0.05em;
  color: #ffffff;
}
.fp-airport__city {
  display: block;
  margin-top: 3px;
  font-size: var(--text-xs);
  color: var(--band-text-muted);
}
.fp-airport__meta {
  display: block;
  margin-top: 7px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #8ea6cf;
}
.fp-airport__city {
  white-space: nowrap;
}
.fp-airport--arrive {
  text-align: right;
}
.fp-airport--arrive .fp-airport__code {
  color: #ff8496;
}
.fp-board__mid {
  flex: none;
  display: grid;
  justify-items: center;
  gap: 3px;
  color: #5c7bb0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.fp-map {
  margin-top: var(--space-3);
  border-radius: var(--radius-lg);
  border: 1px solid oklch(1 0 0 / 0.09);
  background: oklch(0 0 0 / 0.18);
  overflow: hidden;
}
.fp-map__grid path {
  stroke: oklch(1 0 0 / 0.05);
  stroke-width: 1;
}
.fp-map__rings circle {
  fill: none;
  stroke: oklch(1 0 0 / 0.07);
  stroke-width: 1;
}
.fp-cloud {
  fill: oklch(1 0 0 / 0.06);
  animation: fp-drift 16s ease-in-out infinite alternate;
}
.fp-cloud--2 {
  animation-duration: 21s;
  animation-delay: -8s;
}
@keyframes fp-drift {
  from {
    transform: translateX(-9px);
  }
  to {
    transform: translateX(13px);
  }
}
.route-plane__beacon {
  animation: fp-beacon 1.1s ease-in-out infinite;
}
@keyframes fp-beacon {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 1;
  }
}
.fp-progress {
  margin-top: var(--space-4);
}
.fp-progress__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: var(--text-xs);
  color: var(--band-text-muted);
  margin-bottom: 7px;
}
.fp-progress__head strong {
  color: #ffffff;
  font-size: var(--text-sm);
}
.fp-progress__track {
  height: 8px;
  border-radius: 999px;
  background: oklch(1 0 0 / 0.12);
  overflow: hidden;
}
.fp-progress__fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: #ff5a6e;
  transition: width 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.fp-tear {
  position: relative;
  margin: var(--space-5) calc(-1 * clamp(var(--space-5), 3vw, var(--space-8)));
  border-top: 2px dashed oklch(1 0 0 / 0.16);
}
.fp-tear::before,
.fp-tear::after {
  content: '';
  position: absolute;
  top: -11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-bg);
}
.fp-tear::before {
  left: -10px;
}
.fp-tear::after {
  right: -10px;
}

.flight-panel__chips {
  position: relative;
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.chip {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: oklch(1 0 0 / 0.07);
  border: 1px solid var(--band-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  backdrop-filter: blur(4px);
}
.chip__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  background: oklch(1 0 0 / 0.1);
  color: #ffb3bd;
}
.chip__icon--blue {
  color: #9dc2f5;
}
.chip__icon--green {
  color: #8fdcb4;
}
.chip strong {
  display: block;
  color: var(--band-text);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.3;
}
.chip span {
  display: block;
  color: var(--band-text-muted);
  font-size: var(--text-xs);
  line-height: 1.4;
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
  .hero__cta .btn {
    flex: 1 1 auto;
  }
  .hero h1 {
    margin-top: var(--space-4);
  }
  .hero__badge {
    white-space: normal;
    text-align: left;
    line-height: 1.5;
  }
}

/* ============================================================
   Stats band
   ============================================================ */

.stats {
  border-block: 1px solid var(--color-divider);
  background: var(--color-surface);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  padding-block: clamp(var(--space-8), 4vw, var(--space-10));
}
.stat {
  text-align: left;
}
.stat__value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-navy);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
[data-theme='dark'] .stat__value {
  color: #8fb0e4;
}
.stat__label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  margin-top: var(--space-1);
  max-width: 22ch;
}
@media (max-width: 800px) {
  .stats__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6) var(--space-4);
  }
}

/* ============================================================
   Features (asymmetric)
   ============================================================ */

.features__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--space-5);
  margin-top: clamp(var(--space-8), 4vw, var(--space-12));
}
.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-6), 3vw, var(--space-8));
  box-shadow: var(--shadow-sm);
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.feature-card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-3);
}
.feature-card--main {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.feature-card__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
}

/* CE gauge inside main feature */
.gauge-wrap {
  display: flex;
  align-items: center;
  gap: clamp(var(--space-5), 3vw, var(--space-8));
  margin-top: auto;
  background: var(--color-surface-offset);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  flex-wrap: wrap;
}
.gauge {
  flex: none;
}
.gauge__track {
  stroke: var(--color-surface-dynamic);
}
.gauge__a {
  stroke: var(--color-navy);
  transition: stroke-dashoffset 1.1s var(--ease-out);
}
[data-theme='dark'] .gauge__a {
  stroke: #6f9ade;
}
.gauge__b {
  stroke: var(--color-primary);
  transition: stroke-dashoffset 1.1s var(--ease-out) 0.25s;
}
.gauge__num {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  fill: var(--color-text);
}
.gauge__cap {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  fill: var(--color-text-faint);
}
.gauge-legend {
  display: grid;
  gap: var(--space-2);
  min-width: 150px;
}
.gauge-legend li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  list-style: none;
}
.gauge-legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--color-navy);
  flex: none;
}
[data-theme='dark'] .gauge-legend i {
  background: #6f9ade;
}
.gauge-legend li:nth-child(2) i {
  background: var(--color-primary);
}
.gauge-legend li:nth-child(3) i {
  background: var(--color-surface-dynamic);
}

.feature-card__icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-navy-tint);
  color: var(--color-navy);
  margin-bottom: var(--space-4);
}
[data-theme='dark'] .feature-card__icon {
  color: #8fb0e4;
}

@media (max-width: 900px) {
  .features__grid {
    grid-template-columns: 1fr;
  }
  .feature-card--main {
    grid-row: auto;
  }
}

/* ============================================================
   Vault band (navy full-bleed)
   ============================================================ */

.band {
  position: relative;
  background: linear-gradient(150deg, var(--band-bg), var(--band-bg-2));
  color: var(--band-text);
  overflow: clip;
}
.band__routes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  pointer-events: none;
}
.band__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  align-items: center;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  padding-block: clamp(var(--space-16), 7vw, var(--space-20));
}
.band h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.015em;
}
.band p {
  color: var(--band-text-muted);
  margin-top: var(--space-4);
  max-width: 52ch;
}
.band .eyebrow {
  color: #ff8a99;
}
.band .eyebrow::before {
  background: #ff8a99;
}
.band__list {
  display: grid;
  gap: var(--space-4);
  list-style: none;
}
.band__list li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: var(--text-sm);
  color: var(--band-text);
  font-weight: 500;
}
.band__list svg {
  flex: none;
  margin-top: 2px;
  color: #8fdcb4;
}
@media (max-width: 900px) {
  .band__inner {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   How it works — flight plan steps
   ============================================================ */

.steps {
  position: relative;
  margin-top: clamp(var(--space-10), 5vw, var(--space-16));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.steps__path {
  position: absolute;
  top: 26px;
  left: 8%;
  right: 8%;
  height: 24px;
  pointer-events: none;
}
.steps__path path {
  fill: none;
  stroke: var(--color-border);
  stroke-width: 2;
  stroke-dasharray: 6 8;
}
.step {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.step__num {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  background: var(--color-navy-deep);
  color: #fff;
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 1;
}
.step:nth-child(3) .step__num {
  background: var(--color-primary);
}
[data-theme='dark'] .step__num {
  background: var(--color-surface-dynamic);
  color: var(--color-text);
}
[data-theme='dark'] .step:nth-child(3) .step__num {
  background: var(--color-primary);
  color: #fff;
}
.step h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
}
.step p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-2);
}
.step__note {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-success);
}
@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr;
  }
  .steps__path {
    display: none;
  }
}

/* ============================================================
   Portal preview
   ============================================================ */

.portal__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
}
.portal__copy .btn {
  margin-top: var(--space-6);
}
.portal-mock {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-size: var(--text-xs);
}
.portal-mock__bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-divider);
  background: var(--color-surface-2);
}
.portal-mock__bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-surface-dynamic);
}
.portal-mock__url {
  margin-left: var(--space-2);
  font-weight: 600;
  color: var(--color-text-faint);
  background: var(--color-surface-offset);
  padding: 2px 10px;
  border-radius: var(--radius-full);
}
.portal-mock__body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-4);
  padding: var(--space-5);
}
.pm-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}
.pm-card h4 {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pm-ring {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-3);
}
.pm-ring svg {
  flex: none;
}
.pm-ring__track {
  stroke: var(--color-surface-dynamic);
}
.pm-ring__fill {
  stroke: var(--color-success);
  transition: stroke-dashoffset 1.2s var(--ease-out) 0.2s;
}
.pm-ring__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  fill: var(--color-text);
}
.pm-ring p {
  color: var(--color-text-muted);
  line-height: 1.5;
}
.pm-ring strong {
  color: var(--color-text);
}
.pm-list {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-3);
  list-style: none;
}
.pm-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  font-weight: 600;
}
.pm-badge {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--color-success-highlight);
  color: var(--color-success);
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex: none;
}
.pm-badge--warn {
  background: var(--color-primary-highlight);
  color: var(--color-primary);
}
.pm-progress {
  margin-top: var(--space-3);
}
.pm-progress + .pm-progress {
  margin-top: var(--space-3);
}
.pm-progress__head {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  margin-bottom: var(--space-1);
}
.pm-progress__head span:last-child {
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}
.pm-progress__track {
  height: 7px;
  background: var(--color-surface-dynamic);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.pm-progress__fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--color-navy);
  transition: width 1.1s var(--ease-out) 0.3s;
}
[data-theme='dark'] .pm-progress__fill {
  background: #6f9ade;
}
.pm-progress--b .pm-progress__fill {
  background: var(--color-primary);
}
@media (max-width: 900px) {
  .portal__inner {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .portal-mock__body {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Pricing
   ============================================================ */

.pricing-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
}
.billing-toggle {
  display: inline-flex;
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 2px;
}
.billing-toggle button {
  font-size: var(--text-xs);
  font-weight: 700;
  padding: var(--space-2) var(--space-4);
  min-height: 38px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
}
.billing-toggle button[aria-pressed='true'] {
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}
.billing-toggle .save {
  color: var(--color-success);
  font-weight: 800;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: clamp(var(--space-8), 4vw, var(--space-10));
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6) var(--space-6);
  box-shadow: var(--shadow-sm);
}
.plan--featured {
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-lg);
}
.plan__flag {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  white-space: nowrap;
}
.plan__flag--navy {
  background: var(--color-navy-deep);
}
[data-theme='dark'] .plan__flag--navy {
  background: var(--color-surface-dynamic);
  color: var(--color-text);
}
.plan__kicker {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}
.plan h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  margin-top: var(--space-1);
}
.plan__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-top: var(--space-4);
  font-variant-numeric: tabular-nums;
}
.plan__amount {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.plan__per {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 600;
}
.plan__was {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-2);
  min-height: 1.2em;
}
.plan__was s {
  text-decoration-color: var(--color-primary);
}
.plan__desc {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-4);
}
.plan__list {
  display: grid;
  gap: var(--space-3);
  list-style: none;
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-divider);
}
.plan__list li {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  font-size: var(--text-sm);
  color: var(--color-text);
}
.plan__list svg {
  flex: none;
  margin-top: 3px;
  color: var(--color-success);
}
.plan__list .muted {
  color: var(--color-text-faint);
}
.plan .btn {
  margin-top: var(--space-6);
  width: 100%;
}
@media (max-width: 900px) {
  .plans {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }
  .plan--featured {
    order: -1;
  }
}

/* Comparison table */
.compare {
  margin-top: var(--space-8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  overflow: hidden;
}
.compare > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-base);
  cursor: pointer;
  list-style: none;
  min-height: 44px;
}
.compare > summary::-webkit-details-marker {
  display: none;
}
.compare > summary:hover {
  background: var(--color-surface-2);
}
.compare > summary svg {
  flex: none;
  transition: transform 0.25s var(--ease-out);
  color: var(--color-text-muted);
}
.compare[open] > summary svg {
  transform: rotate(180deg);
}
.compare__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.compare table {
  min-width: 640px;
  font-size: var(--text-sm);
  table-layout: fixed;
}
.compare thead th:first-child {
  width: 40%;
}
.compare th,
.compare td {
  padding: var(--space-3) var(--space-4);
  text-align: center;
  border-top: 1px solid var(--color-divider);
}
.compare th[scope='row'],
.compare td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--color-text-muted);
}
.compare thead th {
  border-top: none;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--color-text);
  background: var(--color-surface-2);
  position: sticky;
  top: 0;
}
.compare thead th small {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--color-text-faint);
  font-size: var(--text-xs);
}
.compare .group th {
  text-align: left;
  background: var(--color-surface-offset);
  color: var(--color-text);
  font-weight: 800;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.compare .yes {
  color: var(--color-success);
  font-weight: 800;
}
.compare .no {
  color: var(--color-text-faint);
}
.compare .featured-col {
  background: oklch(from var(--color-primary) l c h / 0.045);
}

/* ============================================================
   Giving back
   ============================================================ */

.giving {
  background: var(--color-surface);
  border-block: 1px solid var(--color-divider);
}
.giving__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(var(--space-6), 4vw, var(--space-10));
  align-items: center;
  padding-block: clamp(var(--space-10), 5vw, var(--space-12));
}
.giving__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
}
.giving h2 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
}
.giving p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-2);
  max-width: 68ch;
}
@media (max-width: 640px) {
  .giving__inner {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   About / founders
   ============================================================ */

.about__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  margin-top: clamp(var(--space-8), 4vw, var(--space-12));
}
.quote {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-6), 3vw, var(--space-8));
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.quote svg {
  color: var(--color-primary);
  opacity: 0.85;
}
.quote blockquote {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.65;
}
.quote figcaption {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}
.quote__name {
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--color-text);
}
.quote__role {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
}
@media (max-width: 800px) {
  .about__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   FAQ
   ============================================================ */

.faq {
  max-width: 62rem;
  margin-inline: auto;
}
.faq__list {
  margin-top: clamp(var(--space-6), 3vw, var(--space-8));
  display: grid;
  gap: var(--space-3);
}
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  font-weight: 700;
  font-size: var(--text-sm);
  cursor: pointer;
  list-style: none;
  min-height: 48px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary:hover {
  background: var(--color-surface-2);
}
.faq-item summary svg {
  flex: none;
  color: var(--color-text-faint);
  transition: transform 0.25s var(--ease-out);
}
.faq-item[open] summary svg {
  transform: rotate(45deg);
  color: var(--color-primary);
}
.faq-item__body {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.faq-item__body p + p {
  margin-top: var(--space-3);
}

/* ============================================================
   Contact / final CTA
   ============================================================ */

.cta-band {
  position: relative;
  background: linear-gradient(150deg, var(--band-bg), var(--band-bg-2));
  color: var(--band-text);
  overflow: clip;
}
.cta-band__inner {
  position: relative;
  text-align: center;
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  max-width: 22ch;
}
.cta-band p {
  color: var(--band-text-muted);
  margin-top: var(--space-4);
  max-width: 46ch;
}
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-8);
}
.cta-band__mail {
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--band-text-muted);
}
.cta-band__mail a {
  color: var(--band-text);
  font-weight: 700;
  text-decoration-color: oklch(1 0 0 / 0.3);
  text-underline-offset: 3px;
}
.cta-band__mail a:hover {
  text-decoration-color: currentColor;
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  background: var(--color-bg);
  padding-block: clamp(var(--space-10), 5vw, var(--space-12));
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-2);
}
.footer__nav a {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-2) var(--space-2);
  border-radius: var(--radius-sm);
}
.footer__nav a:hover {
  color: var(--color-text);
}
.footer__meta {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  justify-content: space-between;
  border-top: 1px solid var(--color-divider);
  margin-top: var(--space-2);
  padding-top: var(--space-5);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.footer__meta a {
  color: inherit;
}

/* ============ Platform tabs ============ */
.tabs {
  margin-top: clamp(var(--space-6), 3vw, var(--space-8));
}
.tabs__bar {
  display: flex;
  gap: var(--space-1);
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: var(--space-1);
}
.tabs__bar::-webkit-scrollbar {
  display: none;
}
.tabs__bar [role='tab'] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 10px 20px;
  min-height: 44px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--color-text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease;
}
.tabs__bar [role='tab']:hover {
  color: var(--color-text);
}
.tabs__bar [role='tab'][aria-selected='true'] {
  background: var(--color-surface);
  color: var(--color-navy);
  box-shadow: var(--shadow-sm);
}
[data-theme='dark'] .tabs__bar [role='tab'][aria-selected='true'] {
  color: var(--color-text);
}
.tabs__bar [role='tab']:focus-visible {
  outline: 2px solid var(--color-navy);
  outline-offset: 2px;
}
.tabs__panel {
  margin-top: clamp(var(--space-6), 3vw, var(--space-8));
}
.tabs__panel:not([hidden]) {
  animation: tab-in 0.35s ease both;
}
@keyframes tab-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tabs__panel:not([hidden]) {
    animation: none;
  }
}
.tabs__panel .features__grid,
.tabs__panel .portal__inner {
  margin-top: 0;
}

/* Vault as card inside tab panel */
.band--card {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.band--card .band__inner {
  padding: clamp(var(--space-8), 4.5vw, var(--space-12));
}

/* FAQ two columns */
.faq__list--cols {
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3) var(--space-6);
  align-items: start;
}
.faq-col {
  min-width: 0;
  display: grid;
  gap: var(--space-3);
  align-content: start;
}
@media (max-width: 800px) {
  .faq__list--cols {
    grid-template-columns: 1fr;
  }
}

/* Flight panel small-screen tuning */
@media (max-width: 420px) {
  .fp-head {
    font-size: 0.6rem;
  }
  .fp-board__mid svg {
    width: 44px;
  }
  .fp-airport__code {
    font-size: 1.55rem;
  }
  .fp-airport__city {
    font-size: 0.72rem;
  }
  .fp-airport__meta {
    font-size: 0.52rem;
    letter-spacing: 0.06em;
  }
}

/* ============================================================
   CE CALCULATOR
   ============================================================ */

.calc {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px dashed var(--color-border);
  width: 100%;
}
.calc__title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}
.calc__row {
  display: grid;
  grid-template-columns: 56px 1fr 34px;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
  cursor: pointer;
}
.calc__label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text);
}
.calc__row output {
  font-size: var(--text-xs);
  font-weight: 800;
  color: var(--color-navy);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.calc__row input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 24px;
  background: transparent;
  cursor: pointer;
}
.calc__row input[type='range']::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-border);
}
.calc__row input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--color-navy);
  border: 3px solid var(--color-bg);
  box-shadow: 0 1px 4px rgba(10, 31, 68, 0.35);
  transition: transform 0.15s ease;
}
.calc__row input[type='range']::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}
.calc__row input[type='range']::-moz-range-track {
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-border);
}
.calc__row input[type='range']::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-navy);
  border: 3px solid var(--color-bg);
}
.calc__row input[type='range']:focus-visible {
  outline: 2px solid var(--color-navy);
  outline-offset: 2px;
  border-radius: var(--radius-full);
}
.calc__msg {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
  min-height: 2.2em;
}
.calc__msg strong {
  color: var(--color-primary);
}
[data-theme='dark'] .calc__row input[type='range']::-webkit-slider-thumb {
  background: var(--color-navy);
  border-color: var(--color-surface);
}

/* ============================================================
   PLAN FINDER
   ============================================================ */

.plan-finder {
  margin: var(--space-6) 0 var(--space-8);
  padding: clamp(var(--space-5), 2.5vw, var(--space-6));
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}
.plan-finder__head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}
.plan-finder__head svg {
  color: var(--color-primary);
  flex: none;
}
.plan-finder__qs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}
.plan-finder__q > span {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.chip-group {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.chip-group button {
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 700;
  padding: 10px 16px;
  min-height: 44px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.chip-group button:hover {
  border-color: var(--color-navy);
  color: var(--color-navy);
}
.chip-group button[aria-pressed='true'] {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: #fff;
}
.plan-finder__result {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px dashed var(--color-border);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.plan-finder__result.is-set {
  color: var(--color-text);
}
.plan-finder__result strong {
  color: var(--color-primary);
}
.plan--recommended {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-highlight), var(--shadow-md);
  position: relative;
}
@media (max-width: 800px) {
  .plan-finder__qs {
    grid-template-columns: 1fr;
  }
}

