/* ============================================================
   ConnectNYC — Design System
   Internet that respects you. Built for New York.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Color */
  --ink: #05080F;
  --navy-950: #070D1C;
  --navy-900: #0A1224;
  --navy-800: #0E1832;
  --navy-700: #16224447;
  --navy-line: rgba(148, 184, 255, 0.13);
  --cyan: #2DD9F2;
  --cyan-bright: #7BEBFF;
  --cyan-dim: #0FB5CF;
  --coral: #FF6A5B;
  --coral-bright: #FF8A7E;
  --coral-deep: #E8503F;
  --gold: #FFC857;
  --green: #3DDC97;
  --paper: #F6F8FC;
  --paper-2: #EDF1F8;
  --paper-line: #DCE4F0;
  --text-hi: #F4F8FF;
  --text-mid: #B9C6DE;
  --text-low: #7E8DA8;
  --text-ink: #0C1426;
  --text-ink-mid: #41506B;

  /* Type */
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, monospace;

  /* Scale */
  --max-w: 1180px;
  --max-w-narrow: 880px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --shadow-lift: 0 22px 50px -18px rgba(4, 10, 26, 0.45);
  --shadow-card: 0 10px 36px -16px rgba(8, 16, 38, 0.5);
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  --speed: 0.55s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-hi);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

::selection { background: var(--cyan); color: var(--ink); }

/* Focus */
:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--cyan);
  color: var(--ink);
  font-weight: 700;
  padding: 0.8rem 1.4rem;
  border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.display-xl { font-size: clamp(2.7rem, 6.4vw, 4.9rem); }
.display-lg { font-size: clamp(2.2rem, 5vw, 3.7rem); }
.display-md { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.display-sm { font-size: clamp(1.25rem, 2.2vw, 1.55rem); line-height: 1.2; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}
.on-light .eyebrow { color: var(--cyan-dim); }

.lede {
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
  line-height: 1.6;
  color: var(--text-mid);
  max-width: 36em;
  text-wrap: pretty;
}
.on-light .lede { color: var(--text-ink-mid); }

.accent { color: var(--cyan); }
.accent-coral { color: var(--coral); }

.kicker-period { color: var(--coral); }

/* ---------- Layout ---------- */
.wrap { width: min(var(--max-w), 100% - 2.6rem); margin-inline: auto; }
.wrap-narrow { width: min(var(--max-w-narrow), 100% - 2.6rem); margin-inline: auto; }

.section { padding-block: clamp(4.2rem, 9vw, 7.5rem); position: relative; }
.section-tight { padding-block: clamp(3rem, 6vw, 4.5rem); }

.on-dark { background: var(--ink); color: var(--text-hi); }
.on-navy { background: var(--navy-900); color: var(--text-hi); }
.on-light { background: var(--paper); color: var(--text-ink); }
.on-light-2 { background: var(--paper-2); color: var(--text-ink); }

.section-head { max-width: 780px; margin-bottom: clamp(2.4rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head .lede { margin-top: 1.1rem; }

.grid-2 { display: grid; gap: 1.4rem; grid-template-columns: repeat(2, 1fr); }
.grid-3 { display: grid; gap: 1.4rem; grid-template-columns: repeat(3, 1fr); }
.grid-4 { display: grid; gap: 1.4rem; grid-template-columns: repeat(4, 1fr); }

@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background var(--speed) ease, box-shadow var(--speed) ease, border-color var(--speed) ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(6, 10, 20, 0.82);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--navy-line);
  box-shadow: 0 12px 40px -22px rgba(0, 0, 0, 0.8);
}
.scroll-progress {
  position: absolute;
  bottom: -1px; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--coral));
  transition: width 0.08s linear;
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand b { color: var(--cyan); font-weight: 700; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a:hover { color: var(--text-hi); background: rgba(125, 165, 255, 0.08); }
.nav-links a[aria-current="page"] {
  color: var(--text-hi);
  position: relative;
}
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.85rem; right: 0.85rem; bottom: 0.25rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--coral));
}
.nav-cta-group { display: flex; align-items: center; gap: 0.8rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--navy-line);
  border-radius: 12px;
  width: 46px; height: 46px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle .bar {
  width: 20px; height: 2px;
  background: var(--text-hi);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1060px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: fixed;
    inset: 76px 0 auto 0;
    background: rgba(7, 11, 22, 0.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--navy-line);
    padding: 1rem 1.3rem 2rem;
    display: none;
  }
  .nav-menu.is-open { display: block; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0.2rem; }
  .nav-links a { font-size: 1.15rem; padding: 0.9rem 1rem; }
  .nav-cta-desktop { display: none; }
  .nav-menu .btn { width: 100%; justify-content: center; margin-top: 0.8rem; }
}
@media (min-width: 1061px) {
  .nav-menu { display: contents; }
  .nav-menu > .btn { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.7rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--coral), var(--coral-deep));
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(255, 106, 91, 0.55);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px -10px rgba(255, 106, 91, 0.7);
}
.btn-ghost {
  background: transparent;
  color: var(--text-hi);
  border-color: rgba(148, 184, 255, 0.35);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan-bright); transform: translateY(-2px); }
.on-light .btn-ghost { color: var(--text-ink); border-color: rgba(12, 20, 38, 0.28); }
.on-light .btn-ghost:hover { border-color: var(--cyan-dim); color: var(--cyan-dim); }
.btn-cyan {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dim));
  color: var(--ink);
  box-shadow: 0 12px 30px -10px rgba(45, 217, 242, 0.45);
}
.btn-cyan:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -10px rgba(45, 217, 242, 0.6); }
.btn-sm { padding: 0.65rem 1.25rem; font-size: 0.92rem; }
.btn-lg { padding: 1.1rem 2.1rem; font-size: 1.08rem; }
.btn .arrow { transition: transform 0.25s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(9rem, 16vw, 12.5rem);
  padding-bottom: clamp(4.5rem, 9vw, 7.5rem);
  overflow: clip;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(52rem 30rem at 78% -12%, rgba(45, 217, 242, 0.16), transparent 60%),
    radial-gradient(44rem 30rem at -8% 32%, rgba(91, 95, 255, 0.18), transparent 62%),
    radial-gradient(38rem 26rem at 95% 78%, rgba(255, 106, 91, 0.12), transparent 60%),
    var(--ink);
}
.hero-aurora {
  position: absolute;
  inset: -20% -10%;
  z-index: -1;
  opacity: 0.5;
  background:
    radial-gradient(30rem 18rem at 22% 28%, rgba(45, 217, 242, 0.13), transparent 70%),
    radial-gradient(26rem 18rem at 75% 60%, rgba(255, 106, 91, 0.1), transparent 70%);
  animation: aurora-drift 16s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes aurora-drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(2.5%, 2%, 0) scale(1.06); }
}
.hero-grid-lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(148, 184, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 184, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70rem 40rem at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(70rem 40rem at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-inner { max-width: 880px; }
.hero h1 { margin-bottom: 1.4rem; }
.hero .lede { margin-bottom: 2.4rem; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin-top: 1.8rem;
  padding: 0;
  list-style: none;
}
.hero-badges li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.93rem;
  color: var(--text-mid);
  font-weight: 500;
}
.hero-badges .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.live-strip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-top: 2rem;
  padding: 0.55rem 1.1rem 0.55rem 0.6rem;
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-pill);
  background: rgba(13, 24, 50, 0.55);
  font-size: 0.92rem;
  color: var(--text-mid);
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(61, 220, 151, 0.12);
  color: var(--green);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}
.live-pill .pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-glow 2s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.6); }
  50% { box-shadow: 0 0 0 7px rgba(61, 220, 151, 0); }
}

/* ---------- Address checker ---------- */
.checker { max-width: 640px; }
.checker-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.45rem;
  border-radius: var(--radius-pill);
  background: rgba(13, 24, 50, 0.72);
  border: 1px solid rgba(148, 184, 255, 0.22);
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.9);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.checker-form:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(45, 217, 242, 0.16), 0 24px 60px -28px rgba(0, 0, 0, 0.9);
}
.checker-form input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  padding: 0.7rem 1.1rem;
  font-size: 1.02rem;
  color: var(--text-hi);
}
.checker-form input::placeholder { color: var(--text-low); }
.checker-form input:focus { outline: none; }
.checker-form .btn { flex: none; }

.on-light .checker-form { background: #fff; border-color: var(--paper-line); }
.on-light .checker-form input { color: var(--text-ink); }

.checker-result {
  margin-top: 1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  padding: 1.1rem 1.3rem;
  font-size: 0.99rem;
  line-height: 1.55;
  display: none;
  animation: result-in 0.45s var(--ease-out);
}
@keyframes result-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.checker-result.is-visible { display: block; }
.checker-result strong { font-family: var(--font-display); }
.checker-result .result-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.9rem; }
.checker-result.state-yes {
  background: rgba(61, 220, 151, 0.09);
  border-color: rgba(61, 220, 151, 0.35);
}
.checker-result.state-yes strong { color: var(--green); }
.checker-result.state-soon {
  background: rgba(255, 200, 87, 0.08);
  border-color: rgba(255, 200, 87, 0.3);
}
.checker-result.state-soon strong { color: var(--gold); }
.checker-result.state-unknown {
  background: rgba(148, 184, 255, 0.07);
  border-color: var(--navy-line);
}
.on-light .checker-result.state-yes { background: rgba(61, 220, 151, 0.12); }
.on-light .checker-result.state-soon { background: rgba(255, 178, 36, 0.12); }
.on-light .checker-result.state-unknown { background: rgba(12, 20, 38, 0.05); }
.checker-hint {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: var(--text-low);
}

/* ---------- Stat band ---------- */
.stat-band { border-block: 1px solid var(--navy-line); background: var(--navy-950); }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-cell {
  padding: 2.4rem 1.6rem;
  text-align: center;
  position: relative;
}
.stat-cell + .stat-cell::before {
  content: "";
  position: absolute;
  left: 0; top: 22%; bottom: 22%;
  width: 1px;
  background: var(--navy-line);
}
.stat-value {
  font-family: var(--font-mono);
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
  font-weight: 700;
  color: var(--cyan);
  display: block;
  line-height: 1;
}
.stat-label {
  display: block;
  margin-top: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-low);
}
@media (max-width: 760px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(3)::before { display: none; }
  .stat-cell:nth-child(n + 3) { border-top: 1px solid var(--navy-line); }
}

/* ---------- Cards ---------- */
.card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 1.9rem;
  background: linear-gradient(180deg, rgba(20, 33, 66, 0.55), rgba(12, 20, 42, 0.55));
  border: 1px solid var(--navy-line);
  transition: transform 0.35s var(--ease-out), border-color 0.3s ease, box-shadow 0.35s var(--ease-out);
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(45, 217, 242, 0.4);
  box-shadow: var(--shadow-card);
}
.card h3 { font-size: 1.32rem; margin-bottom: 0.7rem; }
.card p { color: var(--text-mid); font-size: 0.99rem; }

.on-light .card,
.card.card-light {
  background: #fff;
  border-color: var(--paper-line);
}
.on-light .card p, .card.card-light p { color: var(--text-ink-mid); }

.card-icon {
  width: 52px; height: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  margin-bottom: 1.3rem;
  background: rgba(45, 217, 242, 0.1);
  border: 1px solid rgba(45, 217, 242, 0.25);
  color: var(--cyan);
}
.on-light .card-icon { background: rgba(15, 181, 207, 0.1); color: var(--cyan-dim); border-color: rgba(15, 181, 207, 0.25); }

.step-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(45, 217, 242, 0.4);
  margin-bottom: 1.2rem;
}
.on-light .step-num { color: var(--cyan-dim); border-color: rgba(15, 181, 207, 0.45); }

.step-card { counter-increment: step; }
.steps-connected { position: relative; }
@media (min-width: 981px) {
  .steps-connected::before {
    content: "";
    position: absolute;
    top: 3.6rem;
    left: 4rem; right: 4rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(45, 217, 242, 0.35), rgba(45, 217, 242, 0.35), transparent);
  }
}

/* ---------- Pricing ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: stretch; }
@media (max-width: 980px) { .plan-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }

.plan-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  padding: 2.1rem 1.9rem;
  background: linear-gradient(180deg, rgba(18, 30, 60, 0.6), rgba(10, 18, 36, 0.7));
  border: 1px solid var(--navy-line);
  position: relative;
  transition: transform 0.35s var(--ease-out), border-color 0.3s ease, box-shadow 0.35s var(--ease-out);
}
.plan-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: rgba(148,184,255,0.3); }
.plan-card.is-featured {
  background: linear-gradient(180deg, rgba(23, 42, 84, 0.85), rgba(12, 22, 46, 0.9));
  border-color: rgba(45, 217, 242, 0.55);
  box-shadow: 0 0 0 1px rgba(45, 217, 242, 0.25), 0 30px 70px -30px rgba(45, 217, 242, 0.35);
}
.plan-flag {
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dim));
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.38rem 1rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.plan-name { font-size: 1.45rem; margin-bottom: 0.3rem; }
.plan-speed {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--cyan);
  letter-spacing: 0.06em;
  margin-bottom: 1.4rem;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 1.6rem;
}
.plan-price .amount {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.plan-price .per { color: var(--text-low); font-size: 0.95rem; }
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.8rem;
  display: grid;
  gap: 0.68rem;
  flex: 1;
}
.plan-features li {
  display: flex;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.45;
}
.plan-features .tick { color: var(--green); flex: none; margin-top: 0.18rem; }
.plan-card .btn { width: 100%; }
.plan-note {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--text-low);
  text-align: center;
}

/* ---------- Comparison table ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-lg); }
.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(12, 20, 42, 0.6);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: 0.97rem;
}
.compare-table th, .compare-table td {
  padding: 1.05rem 1.3rem;
  text-align: left;
  border-bottom: 1px solid var(--navy-line);
}
.compare-table thead th {
  font-family: var(--font-display);
  font-size: 1.05rem;
  background: rgba(20, 33, 66, 0.7);
}
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table tbody th {
  font-weight: 600;
  color: var(--text-mid);
  font-size: 0.92rem;
  width: 30%;
}
.compare-table .col-us {
  background: rgba(45, 217, 242, 0.07);
  border-left: 1px solid rgba(45, 217, 242, 0.3);
  border-right: 1px solid rgba(45, 217, 242, 0.3);
}
.compare-table .yes { color: var(--green); font-weight: 600; }
.compare-table .no { color: var(--coral-bright); font-weight: 600; }
.compare-table .meh { color: var(--gold); font-weight: 500; }
.on-light .compare-table { background: #fff; border-color: var(--paper-line); }
.on-light .compare-table th, .on-light .compare-table td { border-color: var(--paper-line); }
.on-light .compare-table thead th { background: var(--paper-2); }
.on-light .compare-table tbody th { color: var(--text-ink-mid); }
.on-light .compare-table .col-us { background: rgba(15, 181, 207, 0.07); }

/* ---------- Nutrition labels ---------- */
.label-card {
  background: #fff;
  color: var(--text-ink);
  border: 2px solid var(--text-ink);
  border-radius: 14px;
  padding: 1.5rem 1.5rem 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.label-card h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  padding-bottom: 0.7rem;
  border-bottom: 3px solid var(--text-ink);
  margin-bottom: 0.4rem;
}
.label-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.52rem 0;
  border-bottom: 1px solid #D8DEE9;
}
.label-row:last-child { border-bottom: 0; }
.label-row .k { color: var(--text-ink-mid); }
.label-row .v { font-weight: 700; text-align: right; white-space: nowrap; }

/* ---------- Promise band ---------- */
.promise-band {
  position: relative;
  overflow: clip;
  padding-block: clamp(5rem, 11vw, 8.5rem);
  background:
    radial-gradient(48rem 26rem at 80% 10%, rgba(255, 106, 91, 0.14), transparent 60%),
    radial-gradient(40rem 26rem at 12% 90%, rgba(45, 217, 242, 0.12), transparent 60%),
    var(--navy-900);
}
.promise-quote {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.6vw, 3.3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 21em;
}
.promise-quote .hl {
  background: linear-gradient(120deg, var(--cyan) 0%, var(--cyan-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.promise-attr {
  margin-top: 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--text-low);
  text-transform: uppercase;
}

/* ---------- Skyline divider ---------- */
.skyline {
  display: block;
  width: 100%;
  height: auto;
  color: var(--navy-950);
  margin-bottom: -1px;
}

/* ---------- Marquee ---------- */
.marquee-band {
  border-block: 1px solid var(--navy-line);
  background: var(--navy-950);
  overflow: hidden;
  padding-block: 1.05rem;
}
.marquee {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee-scroll 36s linear infinite;
}
.marquee-band:hover .marquee { animation-play-state: paused; }
.marquee span {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-low);
  display: inline-flex;
  align-items: center;
  gap: 3rem;
  white-space: nowrap;
}
.marquee .tick-sep { color: var(--cyan); }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- FAQ accordion ---------- */
.faq-tools { display: grid; gap: 1rem; margin-bottom: 2.2rem; }
.faq-search {
  width: 100%;
  padding: 1rem 1.3rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--paper-line);
  background: #fff;
  color: var(--text-ink);
  font-size: 1rem;
}
.faq-search:focus { outline: none; border-color: var(--cyan-dim); box-shadow: 0 0 0 4px rgba(15, 181, 207, 0.15); }
.faq-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.faq-filter {
  border: 1px solid var(--paper-line);
  background: #fff;
  color: var(--text-ink-mid);
  border-radius: var(--radius-pill);
  padding: 0.45rem 1.05rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.faq-filter:hover { border-color: var(--cyan-dim); color: var(--cyan-dim); }
.faq-filter[aria-pressed="true"] {
  background: var(--text-ink);
  color: #fff;
  border-color: var(--text-ink);
}
.faq-list { display: grid; gap: 0.8rem; }
.faq-item {
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq-item:hover { border-color: rgba(15, 181, 207, 0.5); }
.faq-item[open] { border-color: var(--cyan-dim); box-shadow: 0 14px 34px -20px rgba(8, 16, 38, 0.25); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.15rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.04rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .chevron {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--paper-line);
  display: grid;
  place-items: center;
  transition: transform 0.3s var(--ease-out), background 0.2s, color 0.2s;
  color: var(--text-ink-mid);
}
.faq-item[open] .chevron { transform: rotate(45deg); background: var(--cyan-dim); border-color: var(--cyan-dim); color: #fff; }
.faq-body {
  padding: 0 1.4rem 1.3rem;
  color: var(--text-ink-mid);
  font-size: 0.98rem;
  max-width: 64ch;
}
.faq-body a { color: var(--cyan-dim); font-weight: 600; }
.faq-empty {
  display: none;
  text-align: center;
  color: var(--text-ink-mid);
  padding: 2.5rem 1rem;
}
.faq-empty.is-visible { display: block; }

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3.5vw, 2.6rem);
  box-shadow: 0 30px 70px -40px rgba(8, 16, 38, 0.35);
}
.form-grid { display: grid; gap: 1.15rem; grid-template-columns: repeat(2, 1fr); }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-ink);
  margin-bottom: 0.45rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.85rem 1.05rem;
  border-radius: 13px;
  border: 1px solid var(--paper-line);
  background: var(--paper);
  color: var(--text-ink);
  font-size: 0.98rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cyan-dim);
  box-shadow: 0 0 0 4px rgba(15, 181, 207, 0.14);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 130px; }
.field .optional { color: var(--text-ink-mid); font-weight: 400; }
.form-foot { margin-top: 1.4rem; display: grid; gap: 0.9rem; }
.form-foot .fineprint { font-size: 0.84rem; color: var(--text-ink-mid); text-align: center; }
.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* Inline (dark) email capture */
.email-capture {
  display: flex;
  gap: 0.5rem;
  padding: 0.4rem;
  border-radius: var(--radius-pill);
  background: rgba(13, 24, 50, 0.72);
  border: 1px solid rgba(148, 184, 255, 0.22);
  max-width: 520px;
}
.email-capture input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  padding: 0.6rem 1rem;
  color: var(--text-hi);
}
.email-capture input:focus { outline: none; }
.email-capture input::placeholder { color: var(--text-low); }
.on-light .email-capture { background: #fff; border-color: var(--paper-line); }
.on-light .email-capture input { color: var(--text-ink); }

/* ---------- Map ---------- */
.map-shell {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--paper-line);
  box-shadow: var(--shadow-card);
  position: relative;
}
#coverage-map { height: 520px; width: 100%; background: var(--paper-2); }
@media (max-width: 640px) { #coverage-map { height: 400px; } }
.map-legend {
  position: absolute;
  z-index: 500;
  left: 14px; bottom: 14px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  border: 1px solid var(--paper-line);
  padding: 0.7rem 1rem;
  font-size: 0.82rem;
  color: var(--text-ink);
  display: grid;
  gap: 0.4rem;
}
.map-legend .row { display: flex; align-items: center; gap: 0.55rem; }
.map-legend .swatch { width: 14px; height: 14px; border-radius: 4px; }
.map-legend .swatch.live { background: rgba(45, 217, 242, 0.35); border: 2px solid #0FB5CF; }
.map-legend .swatch.next { background: rgba(255, 200, 87, 0.25); border: 2px dashed #D99A1B; }

/* ---------- Tech / diagram ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split-figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--navy-line);
  background: var(--navy-900);
}
.on-light .split-figure { border-color: var(--paper-line); background: #fff; box-shadow: var(--shadow-card); }
.split-figure svg { width: 100%; height: auto; }

.check-list { list-style: none; padding: 0; display: grid; gap: 0.85rem; margin-top: 1.6rem; }
.check-list li { display: flex; gap: 0.8rem; align-items: flex-start; }
.check-list .tick {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(61, 220, 151, 0.14);
  color: var(--green);
  margin-top: 0.1rem;
}
.on-light .check-list .tick { background: rgba(22, 163, 110, 0.12); color: #14935F; }
.check-list b { display: block; font-family: var(--font-display); }
.check-list span.sub { color: var(--text-mid); font-size: 0.95rem; }
.on-light .check-list span.sub { color: var(--text-ink-mid); }

/* ---------- Value props (numbered editorial list) ---------- */
.value-list { display: grid; gap: 0; border-top: 1px solid var(--paper-line); }
.value-row {
  display: grid;
  grid-template-columns: 90px 1fr 1.3fr;
  gap: 1.6rem;
  padding: 2rem 0.4rem;
  border-bottom: 1px solid var(--paper-line);
  align-items: baseline;
}
.value-row .num { font-family: var(--font-mono); color: var(--cyan-dim); font-size: 0.95rem; }
.value-row h3 { font-size: 1.45rem; }
.value-row p { color: var(--text-ink-mid); }
@media (max-width: 800px) {
  .value-row { grid-template-columns: 1fr; gap: 0.6rem; }
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: clip;
  text-align: center;
  padding-block: clamp(5rem, 11vw, 8rem);
  background:
    radial-gradient(50rem 28rem at 50% 120%, rgba(255, 106, 91, 0.18), transparent 65%),
    radial-gradient(60rem 32rem at 50% -30%, rgba(45, 217, 242, 0.14), transparent 60%),
    var(--ink);
}
.cta-band .checker { margin-inline: auto; margin-top: 2.4rem; }
.cta-band h2 { margin-bottom: 0.7rem; }
.cta-band .lede { margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  border-top: 1px solid var(--navy-line);
  padding-top: clamp(3.4rem, 7vw, 5.4rem);
  color: var(--text-mid);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { margin-top: 1rem; max-width: 30ch; color: var(--text-low); }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-low);
  margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.footer-col a { text-decoration: none; color: var(--text-mid); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--cyan-bright); }
.footer-bottom {
  border-top: 1px solid var(--navy-line);
  padding-block: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-low);
}
.footer-bottom a { color: var(--text-low); }
.footer-bottom a:hover { color: var(--cyan-bright); }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal-stagger.is-in > * { opacity: 1; transform: none; }
.reveal-stagger.is-in > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-in > *:nth-child(2) { transition-delay: 0.14s; }
.reveal-stagger.is-in > *:nth-child(3) { transition-delay: 0.23s; }
.reveal-stagger.is-in > *:nth-child(4) { transition-delay: 0.32s; }
.reveal-stagger.is-in > *:nth-child(5) { transition-delay: 0.41s; }
.reveal-stagger.is-in > *:nth-child(6) { transition-delay: 0.5s; }

/* ---------- Calculator ---------- */
.calc-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--navy-line);
  background: linear-gradient(180deg, rgba(18, 30, 60, 0.65), rgba(10, 18, 36, 0.75));
  padding: clamp(1.6rem, 3.5vw, 2.6rem);
}
.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; align-items: center; }
@media (max-width: 860px) { .calc-row { grid-template-columns: 1fr; } }
.calc-slider label { font-weight: 600; display: block; margin-bottom: 1rem; }
.calc-slider output {
  font-family: var(--font-mono);
  color: var(--cyan);
  font-size: 1.25rem;
  font-weight: 700;
}
input[type="range"].slider {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--cyan) var(--fill, 50%), rgba(148, 184, 255, 0.18) var(--fill, 50%));
  cursor: pointer;
}
input[type="range"].slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--cyan);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}
input[type="range"].slider::-moz-range-thumb {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--cyan);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}
.calc-result { text-align: center; }
.calc-result .calc-headline {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-low);
}
.calc-result .calc-amount {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--green);
  line-height: 1.1;
}
.calc-result .calc-sub { color: var(--text-mid); font-size: 0.95rem; max-width: 34ch; margin: 0.5rem auto 0; }

.bars { display: grid; gap: 1.1rem; margin-top: 2rem; }
.bar-row { display: grid; gap: 0.45rem; }
.bar-row .bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-family: var(--font-mono);
  color: var(--text-mid);
}
.bar-track {
  height: 14px;
  border-radius: 7px;
  background: rgba(148, 184, 255, 0.12);
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 7px;
  width: 0%;
  transition: width 1.1s var(--ease-out);
}
.bar-fill.us { background: linear-gradient(90deg, var(--cyan), var(--cyan-bright)); }
.bar-fill.them { background: linear-gradient(90deg, var(--coral), #C73E30); }

/* ---------- Trust / compliance blocks ---------- */
.legal-grid { display: grid; gap: 2.2rem; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 800px) { .legal-grid { grid-template-columns: 1fr; } }
.legal-item h3 { font-size: 1.18rem; margin-bottom: 0.55rem; display: flex; align-items: center; gap: 0.6rem; }
.legal-item h3 .mini-icon { color: var(--cyan-dim); flex: none; }
.legal-item p { color: var(--text-ink-mid); font-size: 0.97rem; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  position: relative;
  padding-top: clamp(8.5rem, 14vw, 11rem);
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
  overflow: clip;
  isolation: isolate;
}
.page-hero .hero-bg { z-index: -2; }
.page-hero h1 { max-width: 18em; }
.page-hero .lede { margin-top: 1.3rem; }

/* ---------- Notice / info chips ---------- */
.notice {
  display: flex;
  gap: 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(45, 217, 242, 0.35);
  background: rgba(45, 217, 242, 0.07);
  padding: 1.3rem 1.5rem;
}
.notice .notice-icon { flex: none; color: var(--cyan); margin-top: 0.15rem; }
.notice h3 { font-size: 1.12rem; margin-bottom: 0.35rem; }
.notice p { color: var(--text-mid); font-size: 0.96rem; }
.on-light .notice { background: rgba(15, 181, 207, 0.07); border-color: rgba(15, 181, 207, 0.35); }
.on-light .notice .notice-icon { color: var(--cyan-dim); }
.on-light .notice p { color: var(--text-ink-mid); }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 140%);
  transition: transform 0.5s var(--ease-out);
  display: none;
}
.sticky-cta.is-visible { transform: translate(-50%, 0); }
@media (max-width: 760px) {
  .sticky-cta { display: block; }
}

/* ---------- 404 ---------- */
.error-hero {
  min-height: 86vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-top: 7rem;
}
.error-code {
  font-family: var(--font-mono);
  font-size: clamp(5rem, 16vw, 9rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--cyan), var(--coral));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.6rem; }
.mt-4 { margin-top: 2.4rem; } .mt-5 { margin-top: 3.4rem; }
.mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.6rem; } .mb-4 { margin-bottom: 2.4rem; }
.flex-center { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.text-link {
  color: var(--cyan);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(45, 217, 242, 0.4);
  transition: border-color 0.2s ease;
}
.text-link:hover { border-bottom-color: var(--cyan); }
.on-light .text-link { color: var(--cyan-dim); border-bottom-color: rgba(15, 181, 207, 0.4); }
.on-light .text-link:hover { border-bottom-color: var(--cyan-dim); }

.fineprint-note { font-size: 0.84rem; color: var(--text-low); max-width: 62ch; }
.on-light .fineprint-note { color: var(--text-ink-mid); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
  .marquee { animation: none; flex-wrap: wrap; width: auto; }
}
