/*
 * VEDU marketing site — vedu's palette in cuberto.com's design language.
 *
 * What is borrowed from Cuberto is *form*, never colour: oversized display type, generous section
 * rhythm, big-radius media, pill CTAs that fill on hover. Not their line-height ~1 or -.035em
 * tracking, which Latvian diacritics collide in — see the display-type block below. Not their
 * blend-mode cursor, and not their marquee: a strip of scrolling nav labels said nothing.
 *
 * What stays vedu is everything you can see: Poppins, the palette below (measured off
 * getvedu.app), and every word of copy.
 *
 * Motion is progressive enhancement. Every `[data-reveal]` is visible by default and only hidden
 * once site.js confirms it can animate — so with JS off, or under prefers-reduced-motion, the page
 * is simply a static page. Never invert that.
 */

/* The palette. Do not introduce a colour that isn't in this block. */
:root {
  --brand:   #994fe7;   /* primary: CTAs, accents, hover fills */
  --brand-d: #7f3fca;   /* the only derived value — a darker brand for :hover */
  --blue:    #788dec;   /* body links */
  --green:   #8ac926;   /* eyebrow dot, ticks, success */
  --yellow:  #ffd600;   /* accent */

  --ink:     #424242;   /* body copy and headings */
  --dark:    #0a0a0a;   /* the palette's darkest: buttons, footer, the dark CTA band */
  --muted:   #6f6f6f;
  --ink-70:  rgba(66, 66, 66, .82);

  --canvas:  #f8f8f8;   /* page background */
  --surface: #ffffff;   /* cards and alternating sections sit above the canvas */
  --line:    rgba(66, 66, 66, .14);
  --danger:  #cf2e2e;

  --radius:  28px;
  --radius-s: 14px;

  --container: 1440px;
  --gutter: clamp(20px, 4.4vw, 72px);
  --section: clamp(80px, 11vw, 168px);

  --ease: cubic-bezier(.22, 1, .36, 1);   /* the long, heavy out-expo everything uses */
  --ease-io: cubic-bezier(.76, 0, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }

/*
 * The browser's own `[hidden] { display: none }` is a UA rule, so ANY author `display` beats it —
 * `.btn { display: inline-flex }` silently un-hid the wizard's Back and "Create account" buttons on
 * step one. Anything toggled with the `hidden` property needs this to actually disappear.
 */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

/*
 * The JS scroller drives `scrollTo()` on every frame; native smooth scrolling would try to animate
 * each of those hops and the page would crawl. `html.has-smooth-scroll` is set only once the JS
 * scroller is actually running, so the native behaviour above stays the no-JS fallback.
 */
html.has-smooth-scroll { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 17px/1.6 Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
/* Links inherit their surroundings by default; long-form and contact links take the brand blue. */
a { color: inherit; }
.contact-emails a { color: var(--blue); }
p { margin: 0; }

/* ── display type ────────────────────────────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5 { margin: 0; color: var(--ink); font-weight: 600; }

/*
 * Cuberto's signature is enormous type at line-height ~1 — but that assumes plain Latin. Latvian
 * stacks a diacritic on top and a descender below, and in Poppins the tallest of them is the caron
 * (Č Š Ž) at 0.928em above the baseline — taller than the macron (Ā Ē Ī Ū), which is the trap: a
 * value tuned on "Ā" alone still collides on "Š". With descenders (g ļ ķ ņ ģ) reaching 0.289em
 * below, one line's ink spans 1.217em, so that is the hard floor for the distance between baselines.
 *
 * 1.24 clears it by ~2px at the hero's 84px. Never take these below 1.22 — re-measure with
 * canvas `actualBoundingBoxAscent` on "ĀĒĪŪČŠŽ" and "gļķņģpj" if you change the font.
 *
 * The tracking has the same problem sideways. Cuberto sets -.035em; at that value the macrons in
 * "izglītības" and "pašvaldībām" run into the ascenders beside them and the word grows a solid bar
 * across its top. -.015em is the tightest that still reads as separate marks at 84px.
 */
h1 { font-size: clamp(38px, 6.6vw, 92px); line-height: 1.24; letter-spacing: -.015em; }
h2 { font-size: clamp(32px, 5.2vw, 74px); line-height: 1.24; letter-spacing: -.015em; }
h3 { font-size: clamp(24px, 2.6vw, 38px); line-height: 1.26; letter-spacing: -.012em; }
h4 { font-size: clamp(19px, 1.5vw, 23px); line-height: 1.3;  letter-spacing: -.01em; font-weight: 600; }
h5 { font-size: 19px; line-height: 1.35; letter-spacing: -.01em; font-weight: 600; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--tight { padding: clamp(56px, 6vw, 96px) 0; }
.section--alt { background: var(--surface); }
.section--dark { background: var(--dark); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }

/* The small label above a headline: a purple dot and tracked-out caps. */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 24px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; }
.section--dark .eyebrow { color: rgba(255, 255, 255, .6); }

.lede { color: var(--muted); font-size: clamp(17px, 1.35vw, 21px); line-height: 1.65; }

.section__head { max-width: 900px; margin-bottom: clamp(48px, 5vw, 88px); }
.section__head p { margin-top: 24px; color: var(--muted); line-height: 1.7; max-width: 62ch; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--center p { margin-left: auto; margin-right: auto; }

/* ── buttons ─────────────────────────────────────────────────────────────────────────────────── */

/* Pill with a fill that sweeps up from the bottom on hover. `span` sits above the sweep. */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; cursor: pointer; isolation: isolate; overflow: hidden;
  padding: 20px 40px; border-radius: 200px;
  font: 500 16px/1 Poppins, sans-serif; letter-spacing: -.01em; text-decoration: none;
  background: var(--dark); color: #fff;
  transition: color .35s var(--ease);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--brand); transform: translateY(101%);
  transition: transform .5s var(--ease);
}
.btn:hover::after, .btn:focus-visible::after { transform: translateY(0); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; cursor: progress; }
.btn--block { display: flex; width: 100%; }

.btn--light { background: #fff; color: var(--dark); }
.btn--light::after { background: var(--brand); }
.btn--light:hover { color: #fff; }

.btn--outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--outline:hover { color: #fff; }

/* An arrow that nudges on hover. */
.btn svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

/* Text link with an underline that draws in. */
.link {
  position: relative; text-decoration: none; padding-bottom: 2px;
}
.link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: currentColor; transition: right .4s var(--ease);
}
.link:hover::after { right: 0; }

/*
 * There is no custom cursor. The native one is never hidden — `cursor: none` anywhere on this site
 * is a bug. The blend-mode follower we used to ship inverted the brand purple to a muddy #66b018
 * over a hovered pill, and its enlarged state stuck open whenever a native <select> popup ate the
 * pointerleave. It cost more than it bought.
 */

/* ── header ──────────────────────────────────────────────────────────────────────────────────── */

/*
 * The header must never become a containing block for `position: fixed` descendants, or the
 * full-screen mobile nav inside it gets trapped in this 88px bar. `transform`, `filter`,
 * `backdrop-filter` and `will-change` all do that — so the frosted background lives on a
 * pseudo-element instead, and the hide-on-scroll transform is pinned off while the menu is open.
 */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  transition: transform .5s var(--ease);
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(248, 248, 248, .86);
  backdrop-filter: saturate(160%) blur(14px);
  opacity: 0; transition: opacity .4s ease;
}
.site-header.is-stuck::before { opacity: 1; }
.site-header.is-up { transform: translateY(-100%); }   /* hides on scroll down, returns on scroll up */
.site-header__inner { display: flex; align-items: center; gap: 28px; min-height: 88px; }
.site-header__logo img { width: 108px; }

.nav { display: flex; align-items: center; gap: 36px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; letter-spacing: -.01em; }
.nav .lang {
  font-weight: 600; letter-spacing: .08em; padding: 10px 18px; border-radius: 200px;
  box-shadow: inset 0 0 0 1.5px var(--line); transition: background .3s var(--ease), color .3s var(--ease);
}
.nav .lang::after { content: none; }
.nav .lang:hover { background: var(--dark); color: #fff; }

.nav-toggle { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 12px; line-height: 0; }
.nav-toggle span { display: block; width: 26px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease), opacity .3s; }
.nav-toggle span + span { margin-top: 7px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav-toggle { display: block; }

  /* A transform/opacity overlay, not a clip-path circle: a percentage clip radius re-resolves (and
     restarts its transition) whenever the box resizes, which it does the moment we lock body scroll. */
  .nav {
    position: fixed; inset: 0; margin: 0; padding: 120px var(--gutter) 40px;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px;
    background: var(--canvas);
    transform: translateY(-100%); opacity: 0; visibility: hidden;   /* hidden ⇒ not tabbable */
    transition: transform .6s var(--ease-io), opacity .35s ease, visibility 0s linear .6s;
  }
  .nav.is-open {
    transform: none; opacity: 1; visibility: visible;
    transition: transform .6s var(--ease-io), opacity .3s ease, visibility 0s;
  }
  .nav a { font-size: clamp(30px, 8vw, 48px); font-weight: 600; letter-spacing: -.03em; padding: 10px 0; }
  .nav .lang { font-size: 15px; margin-top: 28px; padding: 12px 22px; }
}

/* While the menu is open the header must not be mid-transform: a transformed ancestor becomes the
   containing block for the fixed overlay and would clip it back into the header bar. */
.site-header.is-menu-open { transform: none; transition: none; }

/* ── hero ────────────────────────────────────────────────────────────────────────────────────── */

.hero { padding: clamp(140px, 16vw, 220px) 0 clamp(60px, 7vw, 110px); }
.hero p { margin: 32px 0 44px; max-width: 30em; }
.hero__media { margin-top: clamp(48px, 6vw, 96px); border-radius: var(--radius); overflow: hidden; }
.hero__media img { width: 100%; object-fit: cover; aspect-ratio: 16 / 8; }
.hero__band { margin-top: clamp(24px, 2.4vw, 40px); border-radius: var(--radius-s); overflow: hidden; }

/* ── grids & cards ───────────────────────────────────────────────────────────────────────────── */

.grid { display: grid; gap: clamp(20px, 2.2vw, 32px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
/* Grid tracks size to their content minimum; without this a wide child overflows the page. */
.grid > *, .split > * { min-width: 0; }
@media (max-width: 1000px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 660px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* Cards always sit one step lighter than their section, so they read as surfaces on both. */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-s); padding: clamp(28px, 2.6vw, 40px);
  transition: transform .6s var(--ease), border-color .4s ease, background .4s ease;
}
.section--alt .card { background: var(--canvas); border-color: transparent; }
.card:hover { transform: translateY(-6px); border-color: var(--brand); box-shadow: var(--shadow); }
.card p { margin-top: 14px; color: var(--muted); line-height: 1.65; font-size: 16px; }

/* Oversized step numeral, the way Cuberto indexes its services list. */
.step__num {
  font-size: clamp(40px, 4vw, 58px); font-weight: 600; letter-spacing: -.04em; line-height: 1;
  color: var(--brand); margin-bottom: 28px;
}

.tick { display: flex; gap: 12px; margin-top: 14px; color: var(--muted); line-height: 1.6; font-size: 16px; }
.tick::before { content: "→"; color: var(--brand); flex: none; }

/* ── split sections ──────────────────────────────────────────────────────────────────────────── */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.split--reverse .split__media { order: -1; }
.split p { margin: 24px 0 40px; color: var(--muted); line-height: 1.75; }
.split__media { border-radius: var(--radius); overflow: hidden; }
.split__media img { width: 100%; transition: transform 1.2s var(--ease); }
.split__media:hover img { transform: scale(1.04); }
@media (max-width: 940px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

.phone-shot { border-radius: 0; overflow: visible; }
/* `min(380px, 100%)`, not `380px`: a hard cap would set the grid track's minimum and overflow. */
.phone-shot img { max-width: min(380px, 100%); margin: 0 auto; filter: drop-shadow(0 30px 60px rgba(66, 66, 66, .28)); }
.phone-shot:hover img { transform: none; }

.photo-cover img { width: 100%; height: 100%; max-height: 620px; object-fit: cover; }

.badge-strip { margin-top: clamp(48px, 5vw, 80px); border-radius: var(--radius); overflow: hidden; background: #fff; }

/* ── testimonials ────────────────────────────────────────────────────────────────────────────── */

.quote {
  display: flex; flex-direction: column; justify-content: space-between;
  border-radius: var(--radius-s); padding: clamp(28px, 2.6vw, 40px);
  background: var(--surface); transition: background .5s var(--ease), color .5s var(--ease);
}
.section--alt .quote { background: var(--canvas); }
.quote:hover { background: var(--dark); color: #fff; }
.quote p { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.55; letter-spacing: -.015em; margin-bottom: 40px; }
.quote footer { display: flex; align-items: baseline; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.quote:hover footer { border-color: rgba(255, 255, 255, .2); }
.quote strong { font-size: 15px; font-weight: 600; }
.quote span { color: var(--muted); font-size: 14px; }
.quote:hover span { color: rgba(255, 255, 255, .6); }

/* ── photo band ──────────────────────────────────────────────────────────────────────────────── */

.band {
  position: relative; border-radius: var(--radius); overflow: hidden; color: #fff;
  padding: clamp(56px, 8vw, 130px) clamp(28px, 4vw, 72px);
}
.band__bg { position: absolute; inset: -12% 0; width: 100%; height: 124%; object-fit: cover; will-change: transform; }
.band::after { content: ""; position: absolute; inset: 0; background: rgba(10, 10, 10, .7); }
.band > .grid { position: relative; z-index: 1; }
.band h3 { color: #fff; }
.band p { color: rgba(255, 255, 255, .78); margin-top: 18px; line-height: 1.75; }

/* ── stats ───────────────────────────────────────────────────────────────────────────────────── */

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); }
.stats div { padding-top: 28px; border-top: 1px solid var(--line); }
.section--dark .stats div { border-color: rgba(255, 255, 255, .18); }
.stats strong {
  display: block; font-size: clamp(44px, 5.6vw, 82px); font-weight: 600; line-height: 1;
  letter-spacing: -.04em; margin-bottom: 12px;
}
.stats span { color: var(--muted); font-size: 16px; }
.section--dark .stats span { color: rgba(255, 255, 255, .6); }
@media (max-width: 660px) { .stats { grid-template-columns: 1fr; } }

/* ── closing CTA ─────────────────────────────────────────────────────────────────────────────── */

.cta { text-align: center; }
.cta h2 { max-width: 16ch; margin: 0 auto; }
.cta p { margin: 28px auto 0; max-width: 46ch; color: rgba(255, 255, 255, .7); line-height: 1.7; }

/* Floating circular CTA, bottom-right — Cuberto's `.cb-intouch`. */
.floating-cta {
  position: fixed; right: clamp(16px, 2.5vw, 40px); bottom: clamp(16px, 2.5vw, 36px); z-index: 80;
  width: 118px; height: 118px; border-radius: 50%;
  display: grid; place-items: center; text-align: center; text-decoration: none;
  background: var(--brand); color: #fff; font-size: 13px; font-weight: 500; line-height: 1.3;
  padding: 12px; box-shadow: 0 16px 40px rgba(153, 79, 231, .38);
  opacity: 0; transform: scale(.4); pointer-events: none;
  transition: opacity .5s var(--ease), transform .6s var(--ease), background .3s ease;
}
.floating-cta.is-visible { opacity: 1; transform: scale(1); pointer-events: auto; }
.floating-cta:hover { background: var(--dark); }
@media (max-width: 660px) { .floating-cta { width: 88px; height: 88px; font-size: 11px; } }

/* ── forms ───────────────────────────────────────────────────────────────────────────────────── */

.form-card {
  background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(28px, 3.2vw, 52px); text-align: left;
}
.section--alt .form-card, .section--dark .form-card { background: var(--canvas); border-color: transparent; color: var(--ink); }
.section--dark .form-card h3 { color: var(--ink); }
.form-card > .form-card__body > p { color: var(--muted); line-height: 1.7; margin-top: 14px; }
.form-card form { margin-top: 34px; }

label { display: block; font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 26px 0 10px; }
label:first-of-type { margin-top: 0; }

input[type=text], input[type=email], input[type=tel], input[type=number], textarea, select {
  width: 100%; padding: 16px 0; color: var(--ink);
  font: 400 17px/1.5 Poppins, sans-serif;
  background: transparent; border: 0; border-bottom: 1.5px solid var(--line); border-radius: 0;
  transition: border-color .4s var(--ease);
}
input:focus, textarea:focus, select:focus { outline: none; border-bottom-color: var(--brand); }
textarea { min-height: 120px; resize: vertical; }
select { appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 14px) 25px, calc(100% - 8px) 25px;
  background-size: 6px 6px; background-repeat: no-repeat; padding-right: 34px; }

.consent { display: flex; gap: 14px; align-items: flex-start; margin-top: 32px;
  font-size: 13px; line-height: 1.6; color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
.consent input { margin-top: 3px; flex: none; width: 18px; height: 18px; accent-color: var(--brand); }

.err { display: none; color: var(--danger); font-size: 13px; line-height: 1.5; margin-top: 8px; }
.form-error { display: none; color: var(--danger); font-size: 14px; margin-top: 16px; text-align: center; }
.form-card .btn { margin-top: 36px; }

/* Honeypot: off-screen and untabbable. A human never sees it; a bot fills it and is dropped. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── driver onboarding wizard ────────────────────────────────────────────────────────────────── */

.container--narrow { max-width: 860px; }

/* `flex` + `fit-content`, not `inline-flex`: an inline box lets the eyebrow that follows sit on the
   same line, and "Atpakaļ uz sākumlapu • AUTOVADĪTĀJIEM" runs together. */
.back-link {
  display: flex; width: fit-content; align-items: center; gap: 10px; margin-bottom: 28px;
  color: var(--muted); font-size: 15px; font-weight: 500; text-decoration: none;
  transition: color .25s var(--ease);
}
.back-link svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.back-link:hover { color: var(--ink); }
.back-link:hover svg { transform: translateX(-4px); }

.btn--ghost { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost::after { background: var(--ink); }
.btn--ghost:hover { color: #fff; }

/* The three-phase spine: profile → safety test → review. */
.spine { display: flex; gap: clamp(16px, 3vw, 44px); list-style: none; margin: 0 0 clamp(32px, 4vw, 56px); padding: 0; }
.spine__item { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 15px; font-weight: 500; }
.spine__dot {
  display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: transparent; color: var(--muted); font-size: 14px;
  box-shadow: inset 0 0 0 1.5px var(--line); transition: background .4s var(--ease), color .4s var(--ease);
}
.spine__item.is-active { color: var(--ink); }
.spine__item.is-active .spine__dot { background: var(--brand); color: #fff; box-shadow: none; }
@media (max-width: 640px) { .spine__label { display: none; } }

/* Only the active step is in the document; `hidden` steps keep their values for the single POST. */
.apply-step { display: none; border: 0; margin: 0; padding: 0; min-width: 0; }
.apply-step.is-active { display: block; }
.apply-step > p { color: var(--muted); line-height: 1.7; margin-top: 14px; }
.apply-step > h3 + p { margin-bottom: 34px; }

/* A heading for a group of radios/checkboxes — `label` is taken, and would bind to one input. */
.field-label {
  display: block; font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); margin: 34px 0 14px;
}

.choices { display: grid; gap: 10px; }
.choice {
  display: flex; align-items: flex-start; gap: 14px; margin: 0; padding: 16px 18px;
  border: 1.5px solid var(--line); border-radius: var(--radius-s); cursor: pointer;
  color: var(--ink); font-size: 16px; font-weight: 400; line-height: 1.5;
  text-transform: none; letter-spacing: 0;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.choice:hover { border-color: var(--brand); }
.choice input { flex: none; margin-top: 2px; width: 18px; height: 18px; accent-color: var(--brand); }
.choice:has(input:checked) { border-color: var(--brand); background: rgba(153, 79, 231, .05); }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { margin: 0; padding: 8px 14px 8px 8px; display: inline-flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer;
  font-size: 14px; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink);
  transition: border-color .3s var(--ease); }
.swatch:hover { border-color: var(--brand); }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch__chip { width: 22px; height: 22px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px var(--line); }
.swatch:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 1.5px var(--brand); }

.photo-drop {
  display: flex; align-items: center; gap: 20px; margin: 0; padding: 20px;
  border: 1.5px dashed var(--line); border-radius: var(--radius-s); cursor: pointer;
  text-transform: none; letter-spacing: 0; transition: border-color .3s var(--ease);
}
.photo-drop:hover { border-color: var(--brand); }
.photo-drop input[type=file] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.photo-drop__preview { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex: none; }
.photo-drop__text strong { display: block; color: var(--ink); font-size: 16px; font-weight: 600; }
.photo-drop__text small { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }

.link-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 14px; }
.link-list a { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-size: 16px; }
.link-list svg { width: 14px; height: 14px; flex: none; }

.rules { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 8px; }
.rules li { display: flex; gap: 10px; color: var(--muted); font-size: 14px; }
.rules li::before { content: "○"; color: var(--line); }
.rules li.is-met { color: var(--ink); }
.rules li.is-met::before { content: "✓"; color: var(--green); }

.note { color: var(--muted); font-size: 14px; line-height: 1.6; margin-top: 18px; }
.err--block { display: block; margin-top: 14px; }
.question + .question { margin-top: 40px; }
.question__prompt { color: var(--ink); font-size: 18px; line-height: 1.5; margin-bottom: 16px; }

.apply-nav { display: flex; align-items: center; gap: 14px; margin-top: 40px; }
.apply-nav__count { margin-left: auto; color: var(--muted); font-size: 14px; }
/* `.form-card .btn` adds a 36px top margin meant for a single stacked submit button. */
.apply-nav .btn { margin-top: 0; }
.apply-nav .btn[disabled] { cursor: not-allowed; }

/* Below ~360px "Back · step 3 of 7 · Next" cannot sit on one line; stack the counter above it. */
@media (max-width: 380px) {
  .apply-nav { flex-wrap: wrap; }
  .apply-nav__count { order: -1; width: 100%; margin: 0; text-align: center; }
  .apply-nav .btn { flex: 1 1 0; justify-content: center; }
}

.apply__result { text-align: center; }
.apply__score { color: var(--muted); margin-top: 12px; }
.apply__code {
  display: inline-flex; align-items: center; gap: 12px; margin: 28px 0 36px; padding: 14px 22px;
  border-radius: 999px; background: rgba(153, 79, 231, .08); color: var(--muted); font-size: 14px;
}
.apply__code strong { color: var(--brand); font-size: 20px; letter-spacing: .02em; }

.form-done { display: none; }
.form-done .tickmark {
  width: 72px; height: 72px; margin-bottom: 28px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: 34px; display: grid; place-items: center;
}
.form-done p { color: var(--muted); margin-top: 12px; line-height: 1.7; }

/* ── prose / legal ───────────────────────────────────────────────────────────────────────────── */

.page-head { padding: clamp(140px, 15vw, 200px) 0 clamp(40px, 4vw, 64px); }
.page-head p { margin-top: 24px; max-width: 62ch; color: var(--muted); line-height: 1.7; }

.prose { max-width: 780px; font-size: 16px; }
.prose h2 { font-size: clamp(24px, 2.4vw, 32px); margin: 56px 0 20px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 21px; margin: 40px 0 14px; letter-spacing: -.01em; }
.prose h4 { margin: 32px 0 12px; }
.prose p { margin: 0 0 18px; line-height: 1.8; color: var(--ink-70); }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 22px; line-height: 1.8; color: var(--ink-70); }
.prose li { margin-bottom: 10px; }
.prose a { color: var(--blue); }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 22px; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 12px 14px; text-align: left; }

/* ── footer ──────────────────────────────────────────────────────────────────────────────────── */

.site-footer { background: var(--dark); color: #fff; padding: clamp(72px, 8vw, 128px) 0 40px; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; }
.site-footer img { width: 108px; margin-bottom: 28px; filter: brightness(0) invert(1); }
.site-footer p { color: rgba(255, 255, 255, .55); line-height: 1.7; max-width: 34em; font-size: 16px; }
.site-footer h5 { color: rgba(255, 255, 255, .45); font-size: 13px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 24px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 14px; }
.site-footer li a { color: rgba(255, 255, 255, .8); text-decoration: none; font-size: 16px; }
.site-footer li a:hover { color: #fff; }
.site-footer__legal {
  margin-top: clamp(56px, 6vw, 96px); padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .45); font-size: 14px;
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
}
@media (max-width: 820px) { .site-footer__grid { grid-template-columns: 1fr; gap: 40px; } }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff; padding: 14px 22px; z-index: 600; }
.skip-link:focus { left: 0; }

/* ── reveal machinery ────────────────────────────────────────────────────────────────────────── */

/*
 * Only armed once site.js sets `html.can-animate` — so a no-JS or reduced-motion visitor never sees
 * an element stuck at opacity 0. This is the whole reason the selectors are prefixed.
 */
html.can-animate [data-reveal] { opacity: 0; transform: translateY(34px); }
html.can-animate [data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity .9s var(--ease), transform 1s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

/* Headline lines rise out of a mask. */
html.can-animate [data-reveal="mask"] { opacity: 1; transform: none; overflow: hidden; padding-bottom: .12em; }
html.can-animate [data-reveal="mask"] > span { display: block; transform: translateY(105%); }
html.can-animate [data-reveal="mask"].is-in > span {
  transform: none; transition: transform 1.1s var(--ease); transition-delay: var(--reveal-delay, 0ms);
}

/* Media wipes open, and the image inside settles back from a slight zoom. */
html.can-animate [data-reveal="media"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); }
html.can-animate [data-reveal="media"] img { transform: scale(1.16); }
html.can-animate [data-reveal="media"].is-in { clip-path: inset(0 0 0 0); transition: clip-path 1.1s var(--ease); }
html.can-animate [data-reveal="media"].is-in img { transform: none; transition: transform 1.5s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
