/* ============================================================
   Vested - landing page styles
   Tech-product direction: blue accent, mono numerics
   ============================================================ */

:root {
  /* Type */
  --font-display: 'Inter Tight', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Surface - light */
  --ink: #0a1628;
  --ink-2: #1a2434;
  --slate: #5b6573;
  --slate-2: #8a93a1;
  --paper: #ffffff;
  --fog: #f5f7fa;
  --fog-2: #eef1f6;
  --border: #e3e7ed;
  --border-strong: #d2d7de;

  /* Surface - dark */
  --night: #0a0f1c;
  --night-2: #131a2c;
  --night-3: #1c2440;
  --night-border: #232c44;
  --night-ink: #f4f6fa;
  --night-slate: #8b95a8;

  /* Accent - electric blue */
  --accent: #2256ee;
  --accent-hover: #1a47d6;
  --accent-soft: #eaf0fe;
  --accent-mid: #b9cafc;
  --accent-ink: #122e8a;
  --accent-glow: rgba(34, 86, 238, 0.22);

  /* Status */
  --positive: #137a4a;
  --positive-bg: #e6f5ed;
  --muted-tint: #f3f4f7;

  /* Shape */
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --r-xl: 22px;

  /* Shadow */
  --sh-1: 0 1px 0 rgba(10,22,40,0.04), 0 1px 2px rgba(10,22,40,0.05);
  --sh-2: 0 1px 0 rgba(10,22,40,0.04), 0 4px 14px rgba(10,22,40,0.06), 0 1px 2px rgba(10,22,40,0.05);
  --sh-3: 0 1px 0 rgba(10,22,40,0.04), 0 16px 40px rgba(10,22,40,0.10), 0 4px 12px rgba(10,22,40,0.06);
  --ring: 0 0 0 1px var(--border);
  --ring-strong: 0 0 0 1px var(--border-strong);
}

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--accent); color: white; }

/* ---------- Layout ---------- */
.page {
  width: 100%;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 120px 0;
}
.section.tight { padding: 88px 0; }
.section.fog { background: var(--fog); }
.section.dark { background: var(--night); color: var(--night-ink); }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
}
.section.dark .eyebrow { color: var(--accent-mid); }

.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 16px 0 0;
}
.section.dark .display { color: var(--night-ink); }

.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 14px 0 0;
}
.section.dark .h2 { color: var(--night-ink); }

.h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0;
}

.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--slate);
  margin: 20px 0 0;
  max-width: 60ch;
}
.section.dark .lede { color: var(--night-slate); }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.005em;
  transition: background 80ms ease, transform 80ms ease, box-shadow 80ms ease, color 80ms ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(0.5px); }

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 1px 2px rgba(10,22,40,0.20), 0 8px 24px -8px var(--accent-glow);
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--fog); }

.btn-dark {
  background: white;
  color: var(--ink);
}
.btn-dark:hover { background: #f1f3f8; }

.btn-link {
  background: transparent;
  color: var(--ink);
  padding: 0 4px;
  height: auto;
  border: 0;
  font-weight: 500;
}
.btn-link:hover { color: var(--accent); }

.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 8px; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; border-radius: 12px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(227,231,237,0.7);
}
.nav-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-mark {
  width: 22px; height: 22px;
  border-radius: 6px;
  display: block;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 28px;
  margin-left: 8px;
}
.nav-links a {
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 450;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 120px;
  overflow: hidden;
  background: var(--paper);
}
.hero-grid { display: none; }
.hero-glow { display: none; }
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-copy { max-width: 580px; }
.hero h1 { font-size: clamp(48px, 6.2vw, 84px); }

/* Visual composition on the right */
.hero-visual {
  position: relative;
  height: 540px;
  width: 100%;
}

.hero-sun { display: none; }
.hero-blueprint { display: none; }

/* The qualifying cards */
.qcard {
  position: absolute;
  background: white;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-3);
  padding: 6px;
  font-family: var(--font-body);
  width: 460px;
}
.qcard-back {
  width: 360px;
  top: 22px;
  right: 8px;
  opacity: 0.78;
  transform: rotate(2deg);
  box-shadow: 0 1px 0 rgba(10,22,40,0.04), 0 8px 24px rgba(10,22,40,0.07);
  z-index: 1;
}
.qcard-back .qcard-head { padding: 12px 16px 10px; }
.qcard-back .qcard-title { font-size: 10px; }
.qcard-back .qcard-tag-no {
  background: rgba(91,101,115,0.10);
  color: var(--slate);
}
.qcard-body-mini {
  padding: 16px 18px;
}
.qrow-mini {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  font-size: 13px;
  color: var(--slate);
  border-bottom: 1px dashed var(--border);
}
.qrow-mini:last-child { border-bottom: 0; }
.qrow-mini .mono {
  font-family: var(--font-mono);
  color: var(--ink);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.qrow-mini.muted .mono { color: var(--slate-2); font-style: italic; }

.qcard-front {
  top: 80px;
  left: 0;
  z-index: 2;
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* Floating annotation pills */
.anno {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  box-shadow: var(--sh-2);
  z-index: 3;
  white-space: nowrap;
}
.anno strong { font-family: var(--font-mono); font-weight: 600; color: var(--accent); }
.anno-live {
  top: 30px;
  left: 8px;
  background: var(--ink);
  color: white;
  font-size: 12px;
}
.anno-live .anno-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--accent-mid);
  box-shadow: 0 0 0 4px rgba(185,202,252,0.22);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(185,202,252,0.22); }
  50%      { box-shadow: 0 0 0 7px rgba(185,202,252,0.10); }
}
.anno-unlock {
  top: -8px;
  right: -20px;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border: 1px solid var(--accent-mid);
}
.anno-unlock svg { color: var(--accent); }
.anno-shares {
  bottom: 12px;
  left: 30px;
}
.anno-shares .anno-check {
  width: 18px; height: 18px;
  border-radius: 999px;
  background: var(--positive-bg);
  color: var(--positive);
  display: grid; place-items: center;
}

.trust {
  margin-top: 80px;
  position: relative;
  width: 100%;
}
.trust > .container {
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.trust-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-2);
  margin-bottom: 28px;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--slate);
  opacity: 0.78;
  white-space: nowrap;
  transition: opacity 100ms ease, color 100ms ease;
}
.wordmark:hover { opacity: 1; color: var(--ink-2); }
.wordmark .dot { color: var(--accent); }

/* Marquee - full-bleed, edge-to-edge of viewport */
.marquee {
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}
.marquee-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: marquee 40s linear infinite;
  will-change: transform;
  padding: 4px 0;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .wordmark { font-size: 26px; opacity: 0.65; }
.trust-logo {
  height: 32px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  opacity: 0.7;
  filter: grayscale(100%);
  transition: opacity 150ms ease, filter 150ms ease;
  flex-shrink: 0;
}
.trust-logo:hover { opacity: 1; filter: grayscale(0%); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- Qualifying card internals ---------- */
.qcard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 12px;
}
.qcard-head-l { display: flex; align-items: center; gap: 10px; }
.qcard-dots { display: flex; gap: 5px; }
.qcard-dots span {
  width: 9px; height: 9px; border-radius: 999px; background: #e3e7ed;
}
.qcard-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--slate);
  text-transform: uppercase;
}
.qcard-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--positive-bg);
  color: var(--positive);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.qcard-body {
  background: var(--fog);
  border-radius: 12px;
  padding: 24px 24px 22px;
}
.qcard-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  color: var(--ink);
}
.qrow {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}
.qrow:last-of-type { border-bottom: none; }
.qrow-label { color: var(--slate); font-size: 14px; }
.qrow-value { font-family: var(--font-mono); font-size: 15px; color: var(--ink); font-weight: 500; }

.qrow.divider { border-bottom: 1px solid var(--ink); padding: 0; margin: 8px 0; }

.qrow.highlight .qrow-label {
  color: var(--ink);
  font-weight: 500;
}
.qrow.highlight .qrow-value {
  color: var(--accent);
  font-weight: 600;
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.qrow.highlight .arrow {
  display: inline-block;
  font-size: 10px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ---------- Section heading ---------- */
.section-head { max-width: 760px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-sub { color: var(--slate); font-size: 18px; line-height: 1.55; margin-top: 20px; max-width: 60ch; }
.section.dark .section-sub { color: var(--night-slate); }
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }

/* ---------- Problem comparison ---------- */
.compare {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.compare-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  box-shadow: var(--sh-1);
}
.compare-card.bad {
  background: var(--fog);
  border-style: dashed;
}
.compare-card.bad .compare-cap { color: var(--slate); }
.compare-card.bad .compare-num { color: var(--slate); text-decoration: line-through; text-decoration-color: rgba(91,101,115,0.4); }
.compare-card.good {
  background: white;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft), var(--sh-2);
}
.compare-cap {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.compare-card.bad .compare-cap { color: var(--slate-2); }
.compare-row { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px dashed var(--border); }
.compare-row:last-of-type { border-bottom: 0; }
.compare-row .label { font-size: 14px; color: var(--slate); }
.compare-row .label strong { color: var(--ink); font-weight: 500; }
.compare-row.muted .label,
.compare-row.muted .compare-num { color: var(--slate-2); }
.compare-row.plus .label { color: var(--ink-2); }
.compare-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--slate-2);
  margin-top: 4px;
  letter-spacing: 0.02em;
}
.compare-num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.compare-num.small {
  font-size: 18px;
  font-weight: 500;
  color: var(--slate);
}
.compare-num.small.accent {
  color: var(--accent);
  font-weight: 600;
}
.compare-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0 0;
}
.compare-divider.strong {
  background: var(--ink);
  height: 1px;
}
.compare-card.good .compare-divider.strong {
  background: var(--accent);
}
.compare-card.good .compare-num.hero-num { color: var(--accent); font-size: 34px; }
.compare-result {
  margin-top: auto;
  padding-top: 18px;
  font-size: 14px;
  color: var(--slate);
}
.compare-card.good .compare-result strong { color: var(--positive); }
.compare-caption {
  margin-top: 32px;
  font-size: 16px;
  color: var(--slate);
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.smallprint {
  margin-top: 14px;
  font-size: 12px;
  color: var(--slate-2);
  text-align: center;
  font-family: var(--font-mono);
}

/* ---------- How it works ---------- */
.steps {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: repeating-linear-gradient(to right, var(--border-strong) 0 6px, transparent 6px 12px);
}
.step {
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--border);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 auto 28px;
  box-shadow: var(--sh-1);
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  text-align: center;
}
.step p { color: var(--slate); font-size: 15px; text-align: center; margin: 0; line-height: 1.55; }
.section.dark .steps::before { background: repeating-linear-gradient(to right, rgba(185,202,252,0.22) 0 6px, transparent 6px 12px); }
.section.dark .step-num { background: rgba(255,255,255,0.04); border-color: var(--night-border); color: var(--night-ink); box-shadow: none; }
.section.dark .step h3 { color: var(--night-ink); }
.section.dark .step p { color: var(--night-slate); }

/* ---------- Dark "no pledge" section ---------- */
.never {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
@media (max-width: 1024px) { .never { grid-template-columns: repeat(2,1fr); } }
.never-card {
  border: 1px solid var(--night-border);
  border-radius: var(--r);
  padding: 28px 22px;
  background: linear-gradient(180deg, rgba(28,36,64,0.4) 0%, rgba(19,26,44,0.4) 100%);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.never-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(185,202,252,0.10);
  border: 1px solid rgba(185,202,252,0.18);
  display: grid; place-items: center;
  color: var(--accent-mid);
}
.never-card h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--night-ink);
}
.never-card p {
  color: var(--night-slate);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}
.never-close {
  margin: 56px auto 0;
  max-width: 800px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--night-slate);
  text-align: center;
}
.never-close strong { color: var(--night-ink); }

/* ---------- Eligibility ---------- */
.elig-shell {
  margin-top: 56px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  background: white;
  border-radius: 18px;
  box-shadow: var(--sh-3);
  padding: 8px;
  position: relative;
}
.elig-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px 12px;
}
.elig-progress {
  flex: 1;
  height: 4px;
  background: var(--fog-2);
  border-radius: 999px;
  overflow: hidden;
}
.elig-progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 220ms ease;
}
.elig-counter {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--slate);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.elig-body {
  background: var(--fog);
  border-radius: 12px;
  padding: 44px 48px 36px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
}
.elig-q-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.elig-q {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 30px;
  letter-spacing: -0.025em;
  margin: 10px 0 6px;
  line-height: 1.15;
  color: var(--ink);
}
.elig-hint { font-size: 14px; color: var(--slate); margin: 0 0 24px; }
.elig-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.elig-options.single { grid-template-columns: 1fr; }
.elig-opt {
  text-align: left;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 15px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 90ms ease;
  font-weight: 450;
}
.elig-opt:hover { border-color: var(--accent); background: var(--accent-soft); }
.elig-opt[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.elig-opt .check {
  width: 18px; height: 18px;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: all 90ms ease;
}
.elig-opt[aria-pressed="true"] .check {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.elig-opt .check svg { opacity: 0; }
.elig-opt[aria-pressed="true"] .check svg { opacity: 1; }
.elig-input {
  width: 100%;
  height: 56px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: white;
  padding: 0 18px;
  font-size: 16px;
  font-family: var(--font-body);
  color: var(--ink);
  transition: border-color 90ms ease, box-shadow 90ms ease;
}
.elig-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.elig-foot {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.elig-back {
  background: none;
  border: 0;
  color: var(--slate);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.elig-back:hover { color: var(--ink); }
.elig-skip {
  font-size: 12px;
  color: var(--slate-2);
  font-family: var(--font-mono);
}

/* Eligibility result */
.elig-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 24px;
}
.elig-result .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--positive);
  background: var(--positive-bg);
  padding: 6px 12px;
  border-radius: 999px;
}
.elig-result h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--slate);
  margin: 24px 0 8px;
}
.elig-result .big {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 72px;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
}
.elig-result .desc { color: var(--slate); font-size: 15px; max-width: 44ch; }
.elig-result .email-row {
  margin-top: 28px;
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 440px;
}
.elig-result .email-row input {
  flex: 1;
  height: 48px;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 0 14px;
  font: inherit;
  font-size: 15px;
}
.elig-result .email-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

.elig-result.thanks .big { font-size: 56px; color: var(--ink); }

/* ---------- Honest Fit ---------- */
.fit {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.fit-col {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px 36px 32px;
  box-shadow: var(--sh-1);
  position: relative;
  overflow: hidden;
}
.fit-col.yes {
  background: linear-gradient(180deg, var(--accent-soft) 0%, white 38%);
  border-color: var(--accent-mid);
}
.fit-col.no {
  background: linear-gradient(180deg, var(--fog) 0%, white 38%);
}

.fit-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--border);
  margin-bottom: 24px;
}
.fit-badge {
  width: 28px; height: 28px;
  border-radius: 999px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.fit-col.yes .fit-badge {
  background: var(--accent);
  color: white;
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.fit-col.no .fit-badge {
  background: white;
  color: var(--slate-2);
  border: 1px solid var(--border-strong);
}
.fit-head-text {
  display: flex;
  align-items: baseline;
  gap: 12px;
  white-space: nowrap;
  min-width: 0;
}
.fit-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  flex-shrink: 0;
}
.fit-col.yes .fit-tag { color: var(--accent); }
.fit-col.no .fit-tag { color: var(--slate-2); }
.fit-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.fit-col.no .fit-title { color: var(--slate); }

.fit-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.fit-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  align-items: flex-start;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
}
.fit-list li .glyph {
  margin-top: 8px;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--accent);
  justify-self: center;
}
.fit-col.no .fit-list li {
  color: var(--slate);
}
.fit-col.no .fit-list li .glyph {
  background: transparent;
  border: 1.5px solid var(--border-strong);
}
.fit-col.no .fit-list li strong { color: var(--ink-2); }

.fit-note {
  margin-top: 40px;
  text-align: center;
  color: var(--slate);
  font-size: 15px;
}

/* ---------- FAQ ---------- */
.faq {
  margin-top: 48px;
  border-top: 1px solid var(--border);
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  background: none;
  border: 0;
  padding: 24px 0;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.faq-q .glyph {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border: 1px solid var(--border);
  border-radius: 999px;
  display: grid; place-items: center;
  transition: transform 140ms ease, background 140ms ease, color 140ms ease;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
  color: var(--slate);
}
.faq-item[data-open="true"] .faq-q .glyph {
  transform: rotate(45deg);
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 220ms ease, padding 220ms ease;
  color: var(--slate);
  font-size: 16px;
  line-height: 1.6;
}
.faq-item[data-open="true"] .faq-a {
  max-height: 320px;
  padding: 0 0 24px;
}

/* ---------- Final CTA ---------- */
.final {
  text-align: center;
  background: linear-gradient(180deg, var(--accent) 0%, #1a47d6 100%);
  color: white;
  border-radius: 24px;
  padding: 80px 32px;
  position: relative;
  overflow: hidden;
}
.final::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, black 30%, transparent 80%);
}
.final > * { position: relative; }
.final .h2 { color: white; }
.final p { color: rgba(255,255,255,0.82); margin: 18px auto 0; max-width: 600px; font-size: 18px; }
.final .btn { margin-top: 36px; }

/* ---------- Footer ---------- */
.footer {
  padding: 0 0 48px;
  background: var(--paper);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-l { max-width: 360px; }
.footer-tag { color: var(--slate); font-size: 14px; margin-top: 14px; }
.footer-links { display: flex; gap: 36px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: var(--slate); }
.footer-links a:hover { color: var(--ink); }
.footer-rule {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--border);
  margin: 48px 0 0;
}
.footer-rule-top { margin: 0 0 56px; }
.footer-disclaim {
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.7;
  color: var(--slate-2);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { height: 480px; max-width: 560px; margin: 0 auto; }
  .qcard-front { width: 100%; max-width: 460px; left: 0; right: 0; }
  .qcard-back { width: 78%; max-width: 360px; right: 0; }
  .anno-unlock { right: 4px; bottom: 60px; }
  .compare { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 48px; }
  .steps::before { display: none; }
  .fit { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .section { padding: 80px 0; }
}

@media (max-width: 720px) {
  /* Nav: drop the "Sign in" link, keep the primary CTA prominent */
  .nav-cta .btn-link { display: none; }
  .nav-inner { gap: 16px; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }

  /* Section rhythm tightens on phones */
  .section { padding: 64px 0; }
  .section.tight { padding: 56px 0; }

  /* Display + body sizes - keep things from feeling oversized */
  .hero { padding: 56px 0 64px; }
  .lede { font-size: 17px; }
  .section-sub { font-size: 16px; margin-top: 16px; }

  /* Nav */
  .nav-inner { height: 56px; gap: 12px; }
  .nav-cta { gap: 0; }

  /* Hero buttons: full-width on mobile so they're easy to tap */
  .hero-copy + div { width: 100%; }
  .hero-copy .btn { width: 100%; justify-content: center; }
  .hero h1 { font-size: clamp(40px, 11vw, 56px); }

  /* Hero visual: simplify - hide the decorative back card, let front be the star */
  .hero-visual { height: auto; min-height: 0; max-width: 100%; }
  .qcard-back { display: none; }
  .qcard-front {
    position: relative;
    top: 0;
    width: 100%;
    max-width: 100%;
    animation: none;
  }
  .qcard-body { padding: 20px 18px 18px; }
  .qcard-heading { font-size: 17px; margin-bottom: 14px; }

  /* qrow: let the label wrap if it must, but keep value on one line and right-aligned */
  .qrow { padding: 10px 0; gap: 12px; grid-template-columns: minmax(0, 1fr) auto; }
  .qrow-label { font-size: 13px; line-height: 1.35; }
  .qrow-value { font-size: 14px; white-space: nowrap; }
  .qrow.highlight .qrow-value { font-size: 15px; gap: 4px; flex-wrap: nowrap; }
  .qrow.highlight .arrow { font-size: 9px; padding: 2px 5px; }

  /* Trust strip */
  .trust { margin-top: 56px; padding-top: 28px; }
  .trust-label { margin-bottom: 20px; font-size: 10px; }
  .trust-logo { height: 26px; max-width: 110px; }
  .marquee-track { gap: 44px; }

  /* Section heads */
  .section-head { max-width: 100%; }

  /* Problem compare */
  .compare { margin-top: 36px; gap: 16px; }
  .compare-card { padding: 24px 22px; gap: 14px; }
  .compare-num { font-size: 24px; }
  .compare-num.small { font-size: 16px; }
  .compare-card.good .compare-num.hero-num { font-size: 28px; }
  .compare-row { padding: 12px 0; gap: 12px; }
  .compare-row .label { font-size: 13px; }
  .compare-sub { font-size: 10px; }

  /* How it works steps */
  .steps { margin-top: 40px; gap: 36px; }
  .step { padding: 0 8px; }
  .step-num { width: 48px; height: 48px; margin-bottom: 20px; font-size: 14px; }
  .step h3 { font-size: 19px; }
  .step p { font-size: 14px; }

  /* Never (dark) cards - stack to single column for clarity on phones */
  .never { grid-template-columns: 1fr; gap: 10px; margin-top: 40px; }
  .never-card { padding: 22px 20px; gap: 12px; }
  .never-icon { width: 32px; height: 32px; }
  .never-card h4 { font-size: 16px; }
  .never-card p { font-size: 13px; }
  .never-close { margin-top: 40px; font-size: 16px; line-height: 1.55; }

  /* Eligibility */
  .elig-shell { margin-top: 36px; border-radius: 14px; padding: 6px; }
  .elig-bar { padding: 12px 14px 10px; gap: 10px; }
  .elig-body { padding: 28px 20px 22px; min-height: 0; }
  .elig-options { grid-template-columns: 1fr; gap: 8px; }
  .elig-opt { padding: 14px 16px; font-size: 15px; }
  .elig-q { font-size: 24px; margin: 8px 0 6px; }
  .elig-hint { font-size: 13px; margin-bottom: 20px; }
  .elig-q-tag { font-size: 10px; }
  .elig-input { height: 52px; font-size: 16px; padding: 0 16px; }
  .elig-foot { padding-top: 22px; gap: 8px; flex-wrap: wrap; }
  .elig-skip { font-size: 11px; }

  /* Eligibility result email row stacks on mobile */
  .elig-result { padding-top: 16px; }
  .elig-result h3 { font-size: 16px; margin: 18px 0 6px; }
  .elig-result .desc { font-size: 14px; }
  .elig-result .email-row {
    flex-direction: column;
    gap: 10px;
    margin-top: 22px;
  }
  .elig-result .email-row input { width: 100%; }
  .elig-result .email-row .btn { width: 100%; justify-content: center; }
  .elig-result.thanks h3 { font-size: 22px !important; }

  /* FAQ */
  .faq { margin-top: 32px; }
  .faq-q { padding: 20px 0; font-size: 17px; gap: 16px; }
  .faq-q .glyph { width: 24px; height: 24px; font-size: 14px; }
  .faq-a { font-size: 15px; line-height: 1.55; }
  /* Let answers expand to whatever height they need on mobile */
  .faq-item[data-open="true"] .faq-a { max-height: 1200px; padding: 0 0 22px; }

  /* Final CTA */
  .final { padding: 48px 22px; border-radius: 18px; }
  .final p { font-size: 16px; margin-top: 14px; }
  .final .btn { margin-top: 28px; width: 100%; justify-content: center; }

  /* Footer */
  .footer { padding: 0 0 36px; }
  .footer-row { gap: 28px; flex-direction: column; align-items: flex-start; }
  .footer-links { gap: 14px 24px; }
  .footer-rule-top { margin: 0 0 36px; }
  .footer-rule { margin: 36px 0 0; }
  .footer-disclaim { font-size: 10px; line-height: 1.65; padding-top: 18px; }
}

/* Extra-small phones (Pixel, Galaxy S8 ~360px and below) */
@media (max-width: 380px) {
  .container { padding: 0 16px; }
  .nav-inner { gap: 8px; }
  .brand span { font-size: 16px; }
  .btn-sm { padding: 0 12px; font-size: 13px; }
  .hero h1 { font-size: clamp(36px, 11vw, 48px); }
  .h2 { font-size: clamp(26px, 8vw, 36px); }
  .compare-num { font-size: 22px; }
  .compare-card.good .compare-num.hero-num { font-size: 26px; }
  .elig-q { font-size: 22px; }
  .qrow-label { font-size: 12px; }
  .qrow-value { font-size: 13px; }
  .qrow.highlight .qrow-value { font-size: 14px; }
}

/* Touch targets: make sure tappable things are big enough on touch devices */
@media (hover: none) and (pointer: coarse) {
  .faq-q { min-height: 56px; }
  .elig-opt { min-height: 52px; }
  .nav-links a { padding: 8px 0; }
}
