/* =========================================================
   Shortlist — UK Medical School Admissions Coaching
   Design language: Editorial Luxury × Editorial Split
   Warm paper ground · high-contrast variable serif · single teal accent
   Nested "tray" enclosures · film grain · spring-weighted motion
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Ground — warm paper, one consistent neutral family */
  --paper:      #FBF8F3;
  --paper-2:    #F5F0E7;
  --paper-3:    #EDE6D9;
  --paper-edge: #E2D9C9;

  /* Ink — brand navy, carried as the dark neutral */
  --ink:        #1B2438;
  --ink-2:      #39425A;
  --ink-muted:  #6E7488;

  /* The single accent. Everything else is neutral. */
  --accent:      #147F8A;
  --accent-deep: #0C5A63;
  --accent-wash: #E4F0F0;
  --accent-line: #B8DADD;

  --surface:      #FFFFFF;
  --surface-warm: #FFFDF9;

  --font-display: "Fraunces", "Georgia", "Times New Roman", serif;
  --font-body:    "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;

  --container: 1200px;

  /* Concentric radii — outer tray, inner core */
  --r-tray:  34px;
  --r-core:  27px;
  --r-sm:    16px;
  --tray-lip: 7px;

  /* Tinted, highly diffused — never black */
  --sh-1: 0 1px 2px rgba(27,36,56,.04), 0 10px 26px -14px rgba(27,36,56,.14);
  --sh-2: 0 2px 5px rgba(27,36,56,.04), 0 28px 56px -28px rgba(27,36,56,.20);
  --sh-3: 0 48px 96px -40px rgba(27,36,56,.26);
  --sh-accent: 0 18px 40px -18px rgba(20,127,138,.45);

  --ease:      cubic-bezier(.32,.72,0,1);
  --ease-soft: cubic-bezier(.16,1,.3,1);

  --sp-section: 152px;

  --z-nav: 60;
  --z-overlay: 70;
  --z-grain: 80;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 140px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 .5em;
  font-weight: 600;
  text-wrap: balance;
}
h1 {
  font-size: clamp(3rem, 6.6vw, 5.25rem);
  line-height: .96;
  letter-spacing: -.038em;
  font-variation-settings: "SOFT" 20, "WONK" 1;
}
h2 {
  font-size: clamp(2.25rem, 4.2vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -.032em;
  font-variation-settings: "SOFT" 16, "WONK" 1;
}
h3 { font-size: 1.5rem; line-height: 1.18; letter-spacing: -.02em; }
h4 { font-size: 1.0625rem; line-height: 1.35; letter-spacing: -.012em; }

p  { margin: 0 0 1.15em; max-width: 65ch; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
a  { color: var(--accent-deep); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--ink); }
ul { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 600; color: var(--ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }

/* Tabular figures wherever numbers carry meaning */
.stat__num, .cd-num, .split__index, .num-card__num, .step__num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ---------- Film grain — fixed, never on scrolling content ---------- */
.grain {
  position: fixed; inset: 0; z-index: var(--z-grain);
  pointer-events: none; opacity: .038; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout ---------- */
.container {
  width: 100%; max-width: var(--container);
  margin-left: auto; margin-right: auto;
  padding-left: 32px; padding-right: 32px;
}
.container--narrow { max-width: 820px; }

.section { padding-top: var(--sp-section); padding-bottom: calc(var(--sp-section) + 12px); }
section[id], article[id] { scroll-margin-top: 140px; }
.section--tight { padding-top: 104px; padding-bottom: 112px; }

/* Tone shifts stay inside one warm family — no jump to near-black mid-page */
.section--tint { background: var(--paper-2); }
.section--soft { background: var(--paper-2); }
.section--warm { background: var(--paper-3); }

.section-head { max-width: 22ch; margin-bottom: 72px; }
.section-head p { max-width: 52ch; font-size: 1.125rem; }
.section-head--center { max-width: 34ch; margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center p { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-block;
  padding: 6px 14px; margin-bottom: 26px;
  border-radius: 999px;
  background: var(--accent-wash);
  box-shadow: inset 0 0 0 1px var(--accent-line);
  color: var(--accent-deep);
  font-size: .625rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; line-height: 1.6;
}
.lead {
  font-size: 1.25rem; line-height: 1.55; color: var(--ink-2);
  letter-spacing: -.011em; max-width: 46ch;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper); padding: 14px 22px;
  z-index: 200; border-radius: 0 0 14px 0; text-decoration: none; font-weight: 600;
}
.skip-link:focus { left: 0; color: var(--paper); }

/* Accent rule behind a key phrase */
.hl {
  background: linear-gradient(transparent 62%, var(--accent-wash) 62%, var(--accent-wash) 94%, transparent 94%);
  box-shadow: inset 0 -3px 0 var(--accent-line);
}

/* ---------- Scroll reveal — heavy fade-up with defocus ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(56px);
  filter: blur(10px);
  transition: opacity .95s var(--ease-soft), transform .95s var(--ease-soft), filter .95s var(--ease-soft);
  transition-delay: var(--d, 0ms);
  will-change: transform, opacity;
}
.js .reveal.is-visible { opacity: 1; transform: none; filter: blur(0); will-change: auto; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-body);
  font-size: .9375rem; font-weight: 600; letter-spacing: -.008em; line-height: 1;
  padding: 11px 11px 11px 26px;
  border-radius: 999px; border: 0;
  text-decoration: none; cursor: pointer;
  transition: background-color .5s var(--ease), color .5s var(--ease),
              box-shadow .5s var(--ease), transform .35s var(--ease);
}
/* Button-in-button: the arrow lives in its own flush inner disc */
.btn svg {
  width: 34px; height: 34px; padding: 10px; flex: none; box-sizing: border-box;
  border-radius: 999px;
  transition: transform .5s var(--ease), background-color .5s var(--ease);
}
.btn:hover svg { transform: translate(3px, -1px) scale(1.06); }
.btn:active { transform: scale(.982); }

/* Buttons with no icon keep symmetric padding */
.btn:not(:has(svg)) { padding-right: 26px; }

.btn-primary { background: var(--ink); color: var(--paper); box-shadow: 0 16px 34px -18px rgba(27,36,56,.7); }
.btn-primary svg { background: rgba(251,248,243,.14); }
.btn-primary:hover { background: #121A2B; color: var(--paper); box-shadow: 0 22px 44px -18px rgba(27,36,56,.8); }
.btn-primary:hover svg { background: rgba(251,248,243,.24); }

.btn-warm { background: var(--accent); color: #fff; box-shadow: var(--sh-accent); }
.btn-warm svg { background: rgba(255,255,255,.18); }
.btn-warm:hover { background: var(--accent-deep); color: #fff; }
.btn-warm:hover svg { background: rgba(255,255,255,.28); }

.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--paper-edge); }
.btn-outline svg { background: rgba(27,36,56,.06); }
.btn-outline:hover { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

.btn-light { background: var(--paper); color: var(--ink); }
.btn-light svg { background: rgba(27,36,56,.08); }
.btn-light:hover { background: #fff; color: var(--ink); }

.btn-ghost-light { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1px rgba(251,248,243,.28); }
.btn-ghost-light svg { background: rgba(251,248,243,.14); }
.btn-ghost-light:hover { background: rgba(251,248,243,.08); color: #fff; box-shadow: inset 0 0 0 1px rgba(251,248,243,.5); }

.btn-sm { font-size: .875rem; padding: 8px 8px 8px 20px; }
.btn-sm svg { width: 28px; height: 28px; padding: 8px; }
.btn-sm:not(:has(svg)) { padding-right: 20px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.textlink {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: .9375rem; color: var(--accent-deep); text-decoration: none;
}
.textlink svg {
  width: 26px; height: 26px; padding: 7px; box-sizing: border-box;
  border-radius: 999px; background: var(--accent-wash);
  transition: transform .5s var(--ease), background-color .5s var(--ease);
}
.textlink:hover { color: var(--ink); }
.textlink:hover svg { transform: translate(3px, -1px); background: var(--accent-line); }

/* ---------- Floating island nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  padding: 20px 20px 0;
  pointer-events: none;
}
.header-inner {
  pointer-events: auto;
  width: max-content; max-width: 100%;
  margin: 0 auto;
  display: flex; align-items: center; gap: 34px;
  padding: 9px 9px 9px 22px;
  border-radius: 999px;
  background: rgba(251,248,243,.74);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  box-shadow: inset 0 0 0 1px rgba(27,36,56,.08),
              inset 0 1px 0 rgba(255,255,255,.7),
              0 14px 36px -20px rgba(27,36,56,.5);
  transition: box-shadow .6s var(--ease), background-color .6s var(--ease);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand__mark { width: 30px; height: 30px; flex: none; transition: transform .7s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.08); }
.brand__name {
  font-family: var(--font-display); font-size: 1.1875rem; font-weight: 600;
  color: var(--ink); letter-spacing: -.032em;
  font-variation-settings: "SOFT" 20, "WONK" 1;
}

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a {
  position: relative;
  font-size: .875rem; font-weight: 500; letter-spacing: -.006em;
  color: var(--ink-2); text-decoration: none; padding: 4px 0;
  transition: color .4s var(--ease);
}
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px;
  border-radius: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease);
}
.site-nav a:not(.btn):hover { color: var(--ink); }
.site-nav a:not(.btn):hover::after,
.site-nav a:not(.btn)[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a:not(.btn)[aria-current="page"] { color: var(--ink); font-weight: 600; }
.site-nav .btn { color: var(--paper); }

.nav-toggle {
  display: none; position: relative;
  width: 42px; height: 42px; padding: 0; flex: none;
  background: rgba(27,36,56,.05); border: 0; border-radius: 999px; cursor: pointer;
  transition: background-color .4s var(--ease);
}
.nav-toggle:hover { background: rgba(27,36,56,.09); }
.nav-toggle span {
  position: absolute; left: 50%; top: 50%;
  width: 16px; height: 1.5px; margin-left: -8px;
  background: var(--ink); border-radius: 2px;
  transition: transform .6s var(--ease), opacity .3s var(--ease);
}
.nav-toggle span:nth-child(1) { transform: translateY(-5px); }
.nav-toggle span:nth-child(2) { transform: translateY(0); }
.nav-toggle span:nth-child(3) { transform: translateY(5px); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(0) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(.3); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(0) rotate(-45deg); }

/* ---------- Hero — editorial split ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 208px 0 128px;
  background:
    radial-gradient(900px 520px at 88% -6%, rgba(20,127,138,.09), transparent 62%),
    radial-gradient(700px 420px at 6% 4%, rgba(226,217,201,.55), transparent 60%),
    var(--paper);
}
.hero-grid { display: grid; grid-template-columns: 1.14fr .86fr; gap: 88px; align-items: center; }
.hero h1 { margin-bottom: .3em; }
.hero .lead { max-width: 38ch; }
.hero .btn-row { margin-top: 42px; }
.hero-note {
  margin-top: 34px; font-size: .9375rem; color: var(--ink-muted);
  display: flex; align-items: flex-start; gap: 11px; max-width: 44ch;
}
.hero-note svg { width: 16px; height: 16px; color: var(--accent); flex: none; margin-top: 5px; }

.page-hero {
  position: relative;
  padding: 200px 0 96px;
  background:
    radial-gradient(760px 400px at 86% -12%, rgba(20,127,138,.08), transparent 60%),
    var(--paper);
}
.page-hero .lead { max-width: 52ch; }
.page-hero h1 { max-width: 14ch; }

/* ---------- Nested tray enclosure (Doppelrand) ----------
   The ::before is the outer machined tray; the element itself is the inner core. */
.card, .plan-card, .founder, .form-wrap, .router__card, .info-card, .quote {
  position: relative;
  border-radius: var(--r-core);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px rgba(27,36,56,.055),
              inset 0 1px 0 rgba(255,255,255,.9),
              var(--sh-1);
  transition: transform .7s var(--ease), box-shadow .7s var(--ease);
}
.card::before, .plan-card::before, .founder::before,
.form-wrap::before, .router__card::before, .quote::before {
  content: ""; position: absolute; inset: calc(var(--tray-lip) * -1);
  z-index: -1; border-radius: var(--r-tray);
  background: rgba(27,36,56,.028);
  box-shadow: inset 0 0 0 1px rgba(27,36,56,.05);
  transition: background-color .7s var(--ease);
}
.card:hover, .founder:hover, .plan-card:hover {
  transform: translateY(-6px);
  box-shadow: inset 0 0 0 1px rgba(27,36,56,.055),
              inset 0 1px 0 rgba(255,255,255,.9),
              var(--sh-2);
}
.card:hover::before, .founder:hover::before, .plan-card:hover::before { background: rgba(20,127,138,.07); }

.card { padding: 38px; }
.card h3 { margin-bottom: .5em; }
.card p:last-child { margin-bottom: 0; }

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

/* Asymmetric bento — replaces the three-equal-columns feature row */
/* Cards hug their content — a stretched card with a void reads as a mistake, not whitespace */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 34px; align-items: start; }
.bento > :nth-child(1) { grid-column: span 4; }
.bento > :nth-child(2) { grid-column: span 2; }
/* Full-width card puts the numeral in its own column rather than floating it,
   which would leave the body text wrapping raggedly around it. */
.bento > :nth-child(3) {
  grid-column: span 6;
  display: grid; grid-template-columns: 96px 1fr; gap: 4px 30px; align-items: start;
}
.bento > :nth-child(3) .num-card__num { grid-row: 1 / span 2; margin-bottom: 0; }

.num-card__num {
  display: block; margin-bottom: 22px;
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 600;
  color: var(--paper-edge); line-height: 1; letter-spacing: -.03em;
  transition: color .7s var(--ease);
}
.card:hover .num-card__num { color: var(--accent); }

.badge {
  width: 54px; height: 54px; border-radius: 18px; flex: none;
  display: grid; place-items: center; margin-bottom: 26px;
  background: var(--ink); color: var(--paper);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
  font-family: var(--font-body); font-weight: 600; font-size: .875rem; letter-spacing: .06em;
  transition: transform .7s var(--ease);
}
.card:hover .badge, .router__panel.is-active .badge { transform: rotate(-5deg) scale(1.05); }
.badge--teal { background: var(--accent); }
.badge--slate { background: var(--accent-deep); }

.badge-card { display: flex; flex-direction: column; }
.card-list { margin-top: 24px; padding-top: 24px; box-shadow: inset 0 1px 0 var(--paper-3); }
.card-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: .9375rem; color: var(--ink-2); padding: 7px 0;
}
.card-list svg { width: 15px; height: 15px; color: var(--accent); flex: none; margin-top: 5px; }
.badge-card .textlink { margin-top: auto; padding-top: 26px; }

/* ---------- Hero plan card ---------- */
.plan-card { padding: 34px; box-shadow: inset 0 0 0 1px rgba(27,36,56,.055), inset 0 1px 0 rgba(255,255,255,.9), var(--sh-3); }
.plan-card__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-bottom: 20px; margin-bottom: 6px;
  box-shadow: inset 0 -1px 0 var(--paper-3);
}
.plan-card__head h3 { margin: 0; font-size: 1.1875rem; }
.plan-card__tag {
  flex: none; padding: 5px 11px; border-radius: 6px;
  background: var(--paper-2); color: var(--ink-muted);
  font-size: .5625rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
}
.plan-row { display: flex; align-items: flex-start; gap: 15px; padding: 17px 0; box-shadow: inset 0 -1px 0 var(--paper-2); }
.plan-row:last-child { box-shadow: none; }
.plan-row__icon {
  width: 26px; height: 26px; border-radius: 999px; flex: none; margin-top: 2px;
  display: grid; place-items: center; background: var(--accent-wash); color: var(--accent-deep);
  box-shadow: inset 0 0 0 1px var(--accent-line);
}
.plan-row__icon svg { width: 12px; height: 12px; }
.plan-row--todo .plan-row__icon { background: var(--paper-2); color: var(--paper-edge); box-shadow: inset 0 0 0 1px var(--paper-3); }
.plan-row__text strong { display: block; color: var(--ink); font-size: .9375rem; line-height: 1.4; font-weight: 600; }
.plan-row__text span { font-size: .8125rem; color: var(--ink-muted); }

/* ---------- Countdown ---------- */
.countdown { background: var(--paper-2); box-shadow: inset 0 1px 0 var(--paper-edge), inset 0 -1px 0 var(--paper-edge); }
.countdown__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 56px; padding-top: 56px; padding-bottom: 56px; flex-wrap: wrap;
}
.countdown__text { flex: 1 1 380px; }
.countdown__title { font-size: clamp(1.75rem, 2.8vw, 2.375rem); margin-bottom: .25em; }
.countdown__note { font-size: .9375rem; color: var(--ink-muted); margin: 0; max-width: 44ch; }
.countdown__clock { display: flex; gap: 12px; flex: none; }
.cd-unit {
  background: var(--surface); border-radius: 20px; padding: 18px 10px 14px;
  min-width: 86px; text-align: center;
  box-shadow: inset 0 0 0 1px rgba(27,36,56,.05), inset 0 1px 0 rgba(255,255,255,.9), var(--sh-1);
}
.cd-num {
  display: block; font-family: var(--font-display); font-size: 2.125rem; font-weight: 600;
  color: var(--ink); line-height: 1; letter-spacing: -.03em;
}
.cd-lab {
  display: block; margin-top: 9px; font-size: .5625rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted);
}

/* ---------- Stats ---------- */
.stat-strip { background: var(--paper); box-shadow: inset 0 -1px 0 var(--paper-3); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; padding-top: 84px; padding-bottom: 84px; }
.stat { text-align: left; }
.stat__num {
  font-family: var(--font-display); font-size: clamp(3.5rem, 6vw, 4.75rem); font-weight: 600;
  color: var(--ink); line-height: .9; letter-spacing: -.045em;
}
.stat__num em { font-style: normal; color: var(--accent); }
.stat__label {
  display: block; margin-top: 18px; font-size: .9375rem; color: var(--ink-muted);
  max-width: 30ch; padding-top: 18px; box-shadow: inset 0 1px 0 var(--paper-3);
}

/* ---------- Route picker ---------- */
.router { max-width: 1000px; margin-left: auto; margin-right: auto; }
.router__tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 44px; }
.router__tab {
  font-family: var(--font-body); font-size: .9375rem; font-weight: 500; letter-spacing: -.006em;
  padding: 13px 26px; border-radius: 999px; border: 0; cursor: pointer;
  background: transparent; color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--paper-edge);
  transition: background-color .5s var(--ease), color .5s var(--ease),
              box-shadow .5s var(--ease), transform .35s var(--ease);
}
.router__tab:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-muted); }
.router__tab:active { transform: scale(.98); }
.router__tab[aria-selected="true"] {
  background: var(--ink); color: var(--paper); font-weight: 600;
  box-shadow: 0 16px 34px -18px rgba(27,36,56,.7);
}
.router__panel { display: none; }
.router__panel.is-active { display: block; animation: routerIn .8s var(--ease-soft) both; }
@keyframes routerIn {
  from { opacity: 0; transform: translateY(20px); filter: blur(8px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
.router__card {
  padding: 48px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 52px; align-items: start;
}
.router__card h3 { font-size: 1.875rem; }
.router__card .card-list { box-shadow: none; margin-top: 0; padding-top: 0; }
.router__aside { background: var(--paper-2); border-radius: var(--r-sm); padding: 30px; }
.router__aside h4 {
  font-family: var(--font-body); font-size: .625rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 18px;
}

/* ---------- Steps — offset editorial rhythm ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.step { position: relative; }
.step:nth-child(2) { margin-top: 44px; }
.step:nth-child(3) { margin-top: 88px; }
.step__num {
  width: 56px; height: 56px; border-radius: 999px; display: grid; place-items: center;
  background: var(--surface); color: var(--ink);
  font-family: var(--font-display); font-weight: 600; font-size: 1.375rem;
  margin-bottom: 28px;
  box-shadow: inset 0 0 0 1px rgba(27,36,56,.07), var(--sh-1);
}
.step h3 { margin-bottom: .45em; }
.step p { font-size: .9375rem; }

/* ---------- Split rows ---------- */
.split { display: grid; grid-template-columns: 108px 1fr; gap: 44px; padding: 60px 0; box-shadow: inset 0 1px 0 var(--paper-3); }
.split:first-of-type { box-shadow: none; padding-top: 0; }
.split__index {
  font-family: var(--font-display); font-size: 2.75rem; font-weight: 600;
  color: var(--paper-edge); line-height: 1; letter-spacing: -.03em;
}
.split h3 { font-size: 1.75rem; }
.split__body { max-width: 62ch; }

/* ---------- Features ---------- */
.feature { display: flex; gap: 22px; align-items: flex-start; }
.feature__icon {
  width: 46px; height: 46px; border-radius: 14px; flex: none;
  display: grid; place-items: center; background: var(--accent-wash); color: var(--accent-deep);
  box-shadow: inset 0 0 0 1px var(--accent-line);
  transition: transform .7s var(--ease);
}
.feature:hover .feature__icon { transform: rotate(-7deg) scale(1.07); }
.feature__icon svg { width: 19px; height: 19px; }
.feature h3 { font-size: 1.1875rem; margin-bottom: .3em; }
.feature p { font-size: .9375rem; margin: 0; }

.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 36px; }
.check-grid li { display: flex; align-items: flex-start; gap: 13px; color: var(--ink); font-weight: 500; font-size: .9375rem; }
.check-grid svg { width: 16px; height: 16px; color: var(--accent); flex: none; margin-top: 4px; }

/* ---------- Founders ---------- */
.founder { padding: 42px; }
.founder__mono, .founder__photo { width: 76px; height: 76px; border-radius: 22px; margin-bottom: 26px; }
.founder__mono {
  display: grid; place-items: center;
  background: var(--paper-2); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--paper-edge), inset 0 1px 0 rgba(255,255,255,.8);
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em;
}
.founder__photo { object-fit: cover; box-shadow: inset 0 0 0 1px rgba(27,36,56,.08), var(--sh-1); }
.founder h3 { margin-bottom: .1em; font-size: 1.625rem; }
.founder__role {
  display: block; font-size: .625rem; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent-deep); margin-bottom: 24px;
}
.founder p { font-size: .9375rem; }
.founder__meta { margin-top: 26px; padding-top: 22px; box-shadow: inset 0 1px 0 var(--paper-3); }
.founder__meta li { display: flex; gap: 16px; font-size: .875rem; padding: 7px 0; }
.founder__meta strong { color: var(--ink); min-width: 104px; flex: none; font-weight: 600; }

/* ---------- Quotes — paper cards, not a dark interruption ---------- */
.quote { padding: 44px 42px; background: var(--surface-warm); }
.quote__mark {
  font-family: var(--font-display); font-size: 3.5rem; line-height: .55;
  color: var(--accent-line); display: block; margin-bottom: 22px;
}
.quote p { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.6; }
.quote__by { margin-top: 28px; padding-top: 22px; box-shadow: inset 0 1px 0 var(--paper-3); }
.quote__by strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: 1.0625rem; font-weight: 600; }
.quote__by span { font-size: .8125rem; color: var(--ink-muted); }

/* ---------- Closing zone — CTA + footer read as one deliberate block ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(760px 380px at 78% 0%, rgba(20,127,138,.30), transparent 64%),
    var(--ink);
  color: var(--paper);
  padding-top: 136px; padding-bottom: 136px;
}
.cta-band h2 { color: var(--paper); max-width: 16ch; }
.cta-band p { color: rgba(251,248,243,.66); font-size: 1.125rem; max-width: 46ch; }
.cta-band .container { text-align: center; }
.cta-band h2, .cta-band p { margin-left: auto; margin-right: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 42px; }
.cta-foot { margin-top: 38px; font-size: .875rem; color: rgba(251,248,243,.44); }
.cta-foot a { color: var(--accent-line); }
.cta-foot a:hover { color: #fff; }

/* ---------- Forms ---------- */
.form-wrap { padding: 48px; }
.field { margin-bottom: 24px; }
.field label { display: block; font-weight: 600; color: var(--ink); font-size: .875rem; margin-bottom: 9px; letter-spacing: -.006em; }
.field .hint { display: block; font-weight: 400; color: var(--ink-muted); font-size: .8125rem; margin-top: -5px; margin-bottom: 9px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: .9375rem; color: var(--ink);
  padding: 15px 17px; border: 0; border-radius: 14px;
  background: var(--paper-2);
  box-shadow: inset 0 0 0 1px var(--paper-edge);
  transition: box-shadow .4s var(--ease), background-color .4s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236E7488' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 17px center; background-size: 12px;
  padding-right: 44px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 4px rgba(20,127,138,.14);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.req { color: var(--accent-deep); }
.consent { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 28px; }
.consent input { width: 18px; height: 18px; flex: none; margin-top: 3px; accent-color: var(--accent); }
.consent label { font-weight: 400; font-size: .875rem; color: var(--ink-2); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-note { margin-top: 20px; font-size: .8125rem; color: var(--ink-muted); text-align: center; }
.form-status { display: none; margin-bottom: 24px; padding: 18px 20px; border-radius: 14px; font-size: .9375rem; line-height: 1.55; }
.form-status.is-visible { display: block; }
.form-status--ok { background: var(--accent-wash); color: var(--accent-deep); box-shadow: inset 0 0 0 1px var(--accent-line); }
.form-status--error { background: #FBF0EC; color: #8A3A1E; box-shadow: inset 0 0 0 1px #F0D6CB; }

/* ---------- Contact aside ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 68px; align-items: start; }
.info-card { padding: 30px; background: var(--surface-warm); }
.info-card::before { content: none; }
.info-card + .info-card { margin-top: 24px; }
.info-card h3 { font-size: 1.125rem; }
.info-card p { font-size: .875rem; }
.info-card p:last-child { margin-bottom: 0; }
.info-list li { display: flex; gap: 13px; padding: 9px 0; font-size: .875rem; }
.info-list svg { width: 15px; height: 15px; color: var(--accent); flex: none; margin-top: 5px; }

/* ---------- FAQ — open editorial list, not an accordion ---------- */
.faq { max-width: 100%; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 64px; }
.faq__item { padding: 34px 0; box-shadow: inset 0 1px 0 var(--paper-3); }
.faq__q {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 600;
  color: var(--ink); line-height: 1.25; letter-spacing: -.02em; margin: 0 0 .6em;
  max-width: 26ch;
}
.faq__item p { font-size: .9375rem; margin-bottom: .9em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(251,248,243,.6); padding: 96px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 56px; }
.site-footer .brand__name { color: var(--paper); }
.site-footer p { font-size: .875rem; color: rgba(251,248,243,.5); max-width: 34ch; margin-top: 22px; }
.footer-col h4 {
  color: var(--paper); font-family: var(--font-body); font-size: .625rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; margin-bottom: 20px;
}
.footer-col li { padding: 6px 0; }
.footer-col a { color: rgba(251,248,243,.6); text-decoration: none; font-size: .875rem; transition: color .4s var(--ease); }
.footer-col a:hover { color: var(--paper); }
.footer-bottom {
  margin-top: 64px; padding-top: 30px;
  box-shadow: inset 0 1px 0 rgba(251,248,243,.12);
  display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between;
  font-size: .8125rem; color: rgba(251,248,243,.42);
}
.footer-bottom a { color: rgba(251,248,243,.42); text-decoration: none; }
.footer-bottom a:hover { color: var(--paper); text-decoration: underline; }
.footer-legal { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- 404 ---------- */
.notfound { min-height: 100dvh; display: grid; place-items: center; text-align: center; padding: 180px 0 100px; }
.notfound__code {
  font-family: var(--font-display); font-size: clamp(6rem, 18vw, 12rem); font-weight: 600;
  color: var(--paper-edge); line-height: .85; letter-spacing: -.05em; margin-bottom: .1em;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  :root { --sp-section: 116px; }
  .hero-grid { gap: 56px; }
  .router__card { grid-template-columns: 1fr; gap: 34px; padding: 38px; }
}

@media (max-width: 900px) {
  :root { --sp-section: 96px; }
  .hero { padding: 156px 0 92px; }
  .page-hero { padding: 150px 0 76px; }
  .hero-grid { grid-template-columns: 1fr; gap: 52px; }
  .grid-3, .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .bento > :nth-child(1), .bento > :nth-child(2) { grid-column: span 3; }
  .bento > :nth-child(3) { grid-column: span 6; }
  .step:nth-child(2), .step:nth-child(3) { margin-top: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .faq { grid-template-columns: 1fr; gap: 0; }
  .countdown__inner { gap: 36px; }

  .nav-toggle { display: block; }
  /* backdrop-filter creates a containing block for fixed descendants, which would
     trap the full-screen overlay inside the pill. Drop it here — the opaque
     background reads the same at this size and costs less GPU on mobile. */
  .header-inner {
    width: 100%; justify-content: space-between; gap: 16px;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    background: rgba(251,248,243,.97);
  }

  /* Full-screen glass overlay with staggered link reveal */
  .site-nav {
    position: fixed; inset: 0; z-index: var(--z-overlay);
    flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    background: rgba(251,248,243,.86);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    opacity: 0; visibility: hidden;
    transition: opacity .6s var(--ease), visibility .6s var(--ease);
  }
  .site-nav.is-open { opacity: 1; visibility: visible; }
  .site-nav a:not(.btn) {
    font-family: var(--font-display); font-size: clamp(2rem, 8vw, 2.75rem);
    font-weight: 600; letter-spacing: -.035em; color: var(--ink); padding: 12px 0;
  }
  .site-nav a { opacity: 0; transform: translateY(34px); transition: opacity .7s var(--ease-soft), transform .7s var(--ease-soft); }
  .site-nav.is-open a { opacity: 1; transform: none; }
  .site-nav.is-open a:nth-child(1) { transition-delay: .10s; }
  .site-nav.is-open a:nth-child(2) { transition-delay: .16s; }
  .site-nav.is-open a:nth-child(3) { transition-delay: .22s; }
  .site-nav.is-open a:nth-child(4) { transition-delay: .28s; }
  .site-nav.is-open a:nth-child(5) { transition-delay: .34s; }
  .site-nav .btn { margin-top: 26px; }
}

@media (max-width: 640px) {
  :root { --sp-section: 76px; --r-tray: 26px; --r-core: 20px; --tray-lip: 6px; }
  body { font-size: 1rem; }
  .container { padding-left: 20px; padding-right: 20px; }
  .grid-2, .grid-3, .grid-4, .steps,
  .stat-grid, .check-grid, .field-row { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento > :nth-child(1), .bento > :nth-child(2), .bento > :nth-child(3) { grid-column: span 1; }
  .bento > :nth-child(3) { grid-template-columns: 1fr; gap: 0; }
  .bento > :nth-child(3) .num-card__num { grid-row: auto; margin-bottom: 22px; }
  .stat-grid { gap: 40px; padding-top: 60px; padding-bottom: 60px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .card, .founder, .form-wrap, .router__card, .plan-card { padding: 28px; }
  .split { grid-template-columns: 1fr; gap: 14px; padding: 40px 0; }
  .split__index { font-size: 2.25rem; }
  .section-head { margin-bottom: 44px; }
  .btn { width: 100%; justify-content: space-between; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .site-nav .btn { width: auto; }
  .countdown__clock { width: 100%; gap: 8px; }
  .cd-unit { flex: 1; min-width: 0; padding: 15px 4px 12px; }
  .cd-num { font-size: 1.625rem; }
  .router__tabs { flex-direction: column; }
  .router__tab { width: 100%; }
  .cta-band { padding-top: 92px; padding-bottom: 92px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .btn:hover, .card:hover, .founder:hover, .plan-card:hover { transform: none; }
  .router__panel.is-active { animation: none; }
}

@media print {
  .site-header, .nav-toggle, .cta-band, .btn, .countdown, .grain { display: none !important; }
  body { color: #000; background: #fff; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
}
