
:root {
  /* Colour */
  --paper:        #FBFAF7;
  --paper-tint:   #F3F1EC;
  --surface:      #FFFFFF;
  --ink:          #15181A;
  --ink-soft:     #5C6360;
  --ink-faint:    #8E938F;
  --line:         #E3E0D8;
  --line-strong:  #CFCBC0;
  /* Also hardcoded as fill="#0042CB" in logo.svg and icon.svg — an <img>-loaded
     SVG is its own document and cannot read this token. Change all three. */
  --accent:       #0042CB;
  --accent-soft:  #E8EEFC;

  /* Inverted palette, for the ink-backed CTA band */
  --on-ink-soft:  #A9AFAB;
  --on-ink-faint: #717873;
  --on-ink-line:  #3A403C;
  --on-ink-error: #E4A79A;

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Rhythm */
  --wrap: 1140px;
  --gutter: 24px;
  --nav-h: 92px;
  --section-y: 128px;
  --radius: 4px;
  --logo-h: 48px;
}

/* ── Reset ─────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv05" 1, "ss01" 1;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.14;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.7rem); letter-spacing: -0.03em; }
h3 { font-size: 1.2rem; }

p  { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

button, input { font: inherit; color: inherit; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 18px;
}
.skip:focus { left: 12px; top: 12px; }

/* ── Layout primitives ─────────────────────────────────── */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

/* Applied by hand in the markup so consecutive bands alternate paper/tint.
   Adding a section means re-checking its neighbours. */
.section--tint {
  background: var(--paper-tint);
  border-block: 1px solid var(--line);
}

.section__head { max-width: 46rem; margin-bottom: 72px; }
.section__sub {
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 40rem;
}

.eyebrow {
  margin: 0 0 20px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.eyebrow--mini { margin: 0; font-size: 0.66rem; }

/* ── Buttons ───────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--accent); }

.btn--ghost { border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); background: var(--surface); }

.btn--sm { padding: 10px 18px; font-size: 0.88rem; }

/* ── Navigation ────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.is-stuck { border-bottom-color: var(--line); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.logo {
  display: inline-flex;
  align-items: center;
}
/* logo.svg's viewBox is cropped to the artwork's true bbox, so this height is
   the visible height. Contexts resize by redeclaring --logo-h on themselves,
   which keeps the override local instead of leaking across breakpoints. */
.logo img {
  height: var(--logo-h);
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.93rem;
  color: var(--ink-soft);
}
.nav__links a:not(.btn):hover { color: var(--ink); }
.nav__cta { margin-left: 4px; color: var(--paper); }

/* ── Hero ──────────────────────────────────────────────── */

.hero { padding-block: 104px 112px; }

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
}

.hero__copy .lead {
  margin-top: 28px;
  font-size: 1.16rem;
  line-height: 1.62;
  color: var(--ink-soft);
  max-width: 33rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

/* Score card */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.chip {
  font-size: 0.76rem;
  color: var(--ink-soft);
  background: var(--paper-tint);
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
}

.ranking { margin-top: 6px; }

.ranking li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.ranking li.muted { opacity: 0.45; }

.rank {
  font-size: 0.76rem;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

.who { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.who b  { font-weight: 500; font-size: 0.95rem; }
.who em {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--ink-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score {
  font-size: 1.05rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.card__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 18px;
  font-size: 0.78rem;
  color: var(--ink-faint);
}
.dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }

/* ── Compare tracks ────────────────────────────────────── */

.track {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 32px 12px;
  background: var(--surface);
}
.track--new { border-color: var(--accent); background: var(--accent-soft); }

.track__title {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
  letter-spacing: -0.015em;
}
.track--new .track__title {
  border-bottom-color: color-mix(in srgb, var(--accent) 20%, transparent);
  color: var(--accent);
}

.steps li {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.track--new .steps li { border-bottom-color: color-mix(in srgb, var(--accent) 16%, transparent); }
.steps li:last-child { border-bottom: 0; }

.steps__time {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
  padding-top: 2px;
}
.track--new .steps__time { color: var(--accent); }

.steps p { font-size: 0.95rem; line-height: 1.58; color: var(--ink-soft); }
.track--new .steps p { color: var(--ink); }

/* ── Features ──────────────────────────────────────────── */

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature {
  background: var(--paper-tint);
  padding: 36px 30px 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature__num {
  font-size: 0.74rem;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.feature h3 { font-size: 1.08rem; }
.feature p { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.6; }

/* ── Split panels ──────────────────────────────────────── */

/* Two even columns, collapsing to one — shared by the tracks and the panels. */
.compare,
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 44px 40px;
}
.panel h3 {
  font-size: 1.5rem;
  letter-spacing: -0.028em;
  margin-bottom: 28px;
  line-height: 1.22;
}

.ticks li {
  position: relative;
  padding: 14px 0 14px 30px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px; top: 22px;
  width: 9px; height: 5px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}

/* ── CTA ───────────────────────────────────────────────── */

.cta {
  background: var(--ink);
  color: var(--paper);
  padding-block: 120px;
}
.cta__inner { max-width: 40rem; }
.cta h2 { font-size: clamp(2rem, 4vw, 3rem); }
.cta p {
  margin-top: 20px;
  color: var(--on-ink-soft);
  font-size: 1.05rem;
}

.form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}
.form input {
  flex: 1 1 260px;
  min-width: 0;
  padding: 14px 18px;
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--on-ink-line);
  border-radius: var(--radius);
  font-size: 0.95rem;
}
.form input::placeholder { color: var(--on-ink-faint); }
.form input:focus { border-color: var(--paper); outline: none; }

/* On ink, the button is already light — it brightens on hover rather than
   taking the accent fill that .btn--solid uses on paper. */
.form .btn--solid { background: var(--paper); color: var(--ink); }
.form .btn--solid:hover { background: var(--surface); }

.form__msg {
  flex-basis: 100%;
  min-height: 1.4em;
  font-size: 0.85rem;
  color: var(--on-ink-soft);
}
.form__msg.is-error { color: var(--on-ink-error); }

/* ── Footer ────────────────────────────────────────────── */

.footer {
  padding-block: 56px;
  border-top: 1px solid var(--line);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer__brand .logo img { --logo-h: 56px; }
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.footer__links a:hover { color: var(--ink); }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
  :root { --section-y: 96px; }

  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .hero__copy .lead { max-width: none; }

  .features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  /* No mobile menu and no footer — the nav bar carries the logo alone,
     and everything below the CTA is dropped. */
  .nav__links,
  .footer { display: none; }

  .compare,
  .split { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 640px) {
  :root { --section-y: 76px; --gutter: 20px; --nav-h: 104px; --logo-h: 64px; }

  body { font-size: 16px; }

  .hero { padding-block: 64px 72px; }
  .hero__copy .lead { font-size: 1.05rem; margin-top: 22px; }
  .hero__actions { margin-top: 32px; }
  .hero__actions .btn { flex: 1 1 100%; }

  .section__head { margin-bottom: 48px; }

  .card { padding: 20px; }
  .card__head { flex-direction: column; align-items: flex-start; gap: 10px; }

  .features { grid-template-columns: 1fr; }

  .track { padding: 26px 22px 8px; }
  .steps li { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }

  .panel { padding: 32px 24px; }
  .panel h3 { font-size: 1.3rem; }

  .cta { padding-block: 80px; }
  .form .btn { flex: 1 1 100%; }
}

/* ── Motion ────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
