/* ==========================================================================
   UCAT Edge: styles
   Plain CSS, no build step. Colours, fonts and spacing are set once as
   tokens in :root; change them there to restyle the whole site.
   ========================================================================== */

:root {
  /* Colour: navy and gold. Navy (--accent) does the work; gold is kept for
     the tutor's route, the key underlines and the founder's achievements. */
  --bg: #F8F6F1;
  --surface: #FFFFFF;
  --ink: #0B1733;
  --text: #3A4256;
  --muted: #5F6678;
  --line: #E7E2D6;
  --line-strong: #D6CFBF;
  --accent: #14295A;
  --accent-600: #0F2049;
  --accent-700: #0F2049;
  --accent-50: #EEF1F7;
  --accent-100: #DCE3F1;
  --accent-on-dark: #9DB4E8;
  --gold: #E2B84A;
  --gold-line: #D4A93A;
  --navy: #0A1633;
  --on-navy: #FFFFFF;
  --on-navy-text: #C9D2E8;
  --on-navy-muted: #A8B3CF;
  --success: #0F7A55;
  --danger: #C0352B;

  /* Type */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Shape and depth */
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(10, 17, 40, .06), 0 1px 1px rgba(10, 17, 40, .03);
  --shadow: 0 1px 2px rgba(10, 17, 40, .04), 0 12px 32px -12px rgba(10, 17, 40, .14);
  --shadow-lg: 0 2px 6px rgba(10, 17, 40, .04), 0 32px 64px -24px rgba(10, 17, 40, .26);

  /* Layout */
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(72px, 9vw, 128px);
  --header-h: 72px;

  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Base ---------- */

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

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.15; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
strong { font-weight: 700; }

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

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.section-navy :focus-visible,
.apply-panel :focus-visible,
.site-footer :focus-visible { outline-color: var(--accent-on-dark); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .8em 1.35em;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .2s var(--ease-out); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(10, 17, 40, .12), 0 10px 24px -10px rgba(20, 41, 90, .45);
}
.btn-primary:hover { background: var(--accent-600); }

.btn-ghost { background: rgba(255, 255, 255, .6); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); background: #fff; }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--accent-50); }

.btn-sm { padding: .6em 1.1em; font-size: .9375rem; }
.btn-lg { padding: 1em 1.6em; font-size: 1.0625rem; }
.btn-block { width: 100%; }

.btn[disabled] { opacity: .7; cursor: progress; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 246, 241, .85);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background-color .2s;
}
.site-header.is-scrolled { background: rgba(255, 255, 255, .88); border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 32px; height: 32px; }
.brand-name { font-size: 1.1875rem; font-weight: 800; letter-spacing: -.025em; color: var(--ink); }
.brand-name span { color: var(--accent); }

.site-nav ul { display: flex; gap: 2px; }
.site-nav ul a {
  display: block;
  padding: .5em .8em;
  border-radius: var(--radius-pill);
  font-size: .9375rem;
  font-weight: 550;
  color: var(--text);
  text-decoration: none;
  transition: color .15s, background-color .15s;
}
.site-nav ul a:hover { color: var(--ink); background: rgba(10, 17, 40, .05); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav-cta-mobile { display: none; }

@media (max-width: 959px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 8px var(--gutter) 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 48px -24px rgba(10, 17, 40, .25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s, transform .2s var(--ease-out), visibility 0s .2s;
  }
  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .2s, transform .2s var(--ease-out), visibility 0s;
  }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a {
    padding: 14px 2px;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.0625rem;
    color: var(--ink);
  }
  .site-nav ul a:hover { background: none; color: var(--accent); }
  .nav-cta-mobile { display: flex; width: 100%; margin-top: 20px; }
}

@media (max-width: 479px) {
  .hide-sm { display: none; }
}

/* ---------- Shared section styles ---------- */

.section { position: relative; padding: var(--section-y) 0; }
.section-white { background: var(--surface); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.eyebrow-light { color: var(--accent-on-dark); }

.section-title {
  margin-bottom: 24px;
  font-size: clamp(2.1rem, 1.25rem + 3.1vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.032em;
  text-transform: uppercase;
  text-wrap: balance;
}

/* Highlighted part of a headline. main.js adds .words to data-words headings to
   reveal them word by word (.is-visible), then sweeps the highlighter in. */
.hl {
  color: var(--accent);
  background-image: linear-gradient(var(--accent-100), var(--accent-100));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 100% 36%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.words .w {
  display: inline-block;
  overflow: hidden;
  padding-bottom: .08em;
  margin-bottom: -.08em;
  vertical-align: top;
}
.words .w > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform .8s var(--ease-out);
  transition-delay: calc(var(--i) * 55ms);
}
.words.is-visible .w > span { transform: none; }
.words .hl { background-size: 0% 36%; }
.words.is-visible .hl { background-size: 100% 36%; transition: background-size .9s var(--ease-out) var(--hl-delay, .4s); }

.lead {
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  line-height: 1.6;
}

.section-head { max-width: 780px; margin-bottom: clamp(40px, 5vw, 64px); }

.subhead {
  margin: clamp(56px, 7vw, 96px) 0 24px;
  font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem);
  font-weight: 750;
  letter-spacing: -.02em;
}

.section-cta { display: flex; justify-content: center; margin-top: clamp(40px, 5vw, 56px); }

.fine-print { margin: 16px 0 0; font-size: .8125rem; color: var(--muted); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(36px, 6vw, 88px) 0 clamp(56px, 7vw, 96px);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(10, 17, 40, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10, 17, 40, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 72% 32%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 65% at 72% 32%, #000 10%, transparent 72%);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -220px;
  right: -180px;
  width: 760px;
  height: 760px;
  background: radial-gradient(closest-side, rgba(20, 41, 90, .07), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}

.claim-pill {
  display: inline-grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2px 12px;
  margin: 0 0 28px;
  padding: 12px 20px 12px 14px;
  border-radius: 16px;
  background: var(--navy);
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.3;
  text-transform: uppercase;
  box-shadow: 0 12px 28px -14px rgba(10, 22, 51, .8);
}
.claim-pill .icon { grid-row: span 2; width: 26px; height: 26px; color: var(--gold); }
.claim-pill strong { font-weight: 800; }
.claim-items { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .3em .8em; color: var(--gold); }
.claim-year { color: var(--on-navy-muted); font-size: .75rem; font-weight: 600; letter-spacing: .12em; }
.claim-sep { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

.hero-title {
  margin-bottom: 26px;
  font-size: clamp(2.4rem, 1rem + 3.9vw, 4.25rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.038em;
  text-transform: uppercase;
  text-wrap: balance;
}

.accent-underline { position: relative; color: var(--accent); white-space: nowrap; }
.accent-underline::after {
  content: "";
  position: absolute;
  left: .03em;
  right: .03em;
  bottom: -.01em;
  height: .07em;
  border-radius: 99px;
  background: var(--gold-line);
  transform-origin: left center;
}

.hero-lead {
  max-width: 34em;
  margin-bottom: 32px;
  font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem);
  line-height: 1.6;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-byline { display: flex; align-items: center; gap: 12px; margin-top: 36px; }
.hero-byline p { display: flex; flex-direction: column; margin: 0; font-size: .9375rem; line-height: 1.35; }
.hero-byline strong { color: var(--ink); }
.hero-byline p span { color: var(--muted); font-size: .875rem; }

.avatar {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--accent) 0%, var(--navy) 100%);
  box-shadow: 0 0 0 3px #fff, var(--shadow-sm);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 42px; height: 42px; font-size: .8125rem; }

/* Score card */

.hero-visual { position: relative; }

.score-card {
  position: relative;
  max-width: 460px;
  margin-inline: auto;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.score-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.score-card-label { padding: .4em .8em; border-radius: var(--radius-pill); background: var(--accent-50); color: var(--accent); }
.score-card-name { color: var(--muted); }

.score-total {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 22px 0 0;
  font-variant-numeric: tabular-nums;
}
.score-total-num {
  font-size: clamp(4.25rem, 2.75rem + 5vw, 6.5rem);
  font-weight: 800;
  line-height: .85;
  letter-spacing: -.055em;
  color: var(--ink);
}
.score-total-max { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; color: var(--muted); }
.score-total-caption { margin: 12px 0 24px; font-size: .875rem; color: var(--muted); }

.score-bars { display: grid; gap: 18px; padding-top: 22px; border-top: 1px solid var(--line); }
.score-bar-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: .9375rem;
}
.score-bar-row strong { font-size: 1.125rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }

.tag {
  margin-left: 6px;
  padding: .25em .6em;
  border-radius: var(--radius-pill);
  background: var(--accent-50);
  color: var(--accent);
  font-size: .6875rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  vertical-align: 2px;
}

.bar { height: 8px; overflow: hidden; border-radius: 99px; background: #EDF0F6; }
.bar span {
  display: block;
  width: var(--v);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6D90F6, var(--accent));
  transform-origin: left center;
}

.score-chip {
  position: absolute;
  left: -20px;
  bottom: -22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 11px 18px 11px 14px;
  border-radius: var(--radius-pill);
  background: var(--navy);
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
}
.score-chip { max-width: calc(100% - 32px); line-height: 1.3; }
.score-chip .icon { color: var(--accent-on-dark); }

.hero-report { max-width: 560px; margin: 0; padding: 18px 18px 36px; }
.hero-report img { width: 100%; height: auto; margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.hero-report figcaption { margin-top: 12px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--accent-50); color: var(--accent-700); font-size: .8125rem; line-height: 1.45; }

/* Optional hero photo (see index.html). The score card overlaps its lower-left corner. */
.hero-photo {
  width: min(100%, 420px);
  margin: 0 0 0 auto;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: var(--accent-50);
  box-shadow: var(--shadow-lg);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.hero-visual:has(.hero-photo) { padding-bottom: 36px; }
.hero-visual:has(.hero-photo) .score-card {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(280px, 64%);
  margin: 0;
  padding: 18px 20px 20px;
}
.hero-visual:has(.hero-photo) .score-total { margin-top: 14px; }
.hero-visual:has(.hero-photo) .score-total-num { font-size: 3.25rem; }
.hero-visual:has(.hero-photo) .score-total-max { font-size: 1.125rem; }
.hero-visual:has(.hero-photo) .score-total-caption { margin: 8px 0 14px; font-size: .8125rem; }
.hero-visual:has(.hero-photo) .score-bars { gap: 10px; padding-top: 14px; }
.hero-visual:has(.hero-photo) .score-bar-row { margin-bottom: 5px; font-size: .8125rem; }
.hero-visual:has(.hero-photo) .score-bar-row strong { font-size: .9375rem; }
.hero-visual:has(.hero-photo) .tag { display: none; }
.hero-visual:has(.hero-photo) .bar { height: 6px; }
.hero-visual:has(.hero-photo) .score-chip { top: -20px; right: -12px; bottom: auto; left: auto; font-size: .8125rem; }

@media (max-width: 359px) {
  .score-card-label { border-radius: 10px; }
}

/* Credibility strip */

.cred-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(64px, 7vw, 96px);
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  background: var(--navy);
  box-shadow: var(--shadow-sm);
}
.cred-strip li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 22px;
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--gold);
}
.cred-strip li + li { border-left: 1px solid rgba(255, 255, 255, .12); }
.cred-strip .icon { width: 22px; height: 22px; color: var(--gold); }

@media (max-width: 959px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-title { font-size: clamp(2.4rem, 1rem + 5.6vw, 4.25rem); }
  .hero-visual { max-width: 520px; width: 100%; margin-inline: auto; }
  .hero-visual:has(.hero-photo) { padding-bottom: 0; }
  .hero-visual:has(.hero-photo) .hero-photo { margin-inline: auto; }
  .hero-visual:has(.hero-photo) .score-card { position: relative; width: auto; max-width: 400px; margin: -96px 16px 0; }
  .hero-visual:has(.hero-photo) .score-chip { right: 16px; }
}

@media (max-width: 559px) {
  .claim-pill {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 10px;
    padding: 12px 16px 12px 12px;
    border-radius: 16px;
    font-size: .8125rem;
    letter-spacing: .06em;
  }
  .claim-pill .icon { grid-row: span 2; align-self: center; width: 26px; height: 26px; }
  .claim-year { font-size: .6875rem; letter-spacing: .12em; }
  .claim-items { gap: .6em; }
  .hero-actions .btn { width: 100%; }
  .score-chip { left: 16px; }
  .cred-strip { grid-template-columns: minmax(0, 1fr); }
  .cred-strip li { justify-content: flex-start; padding: 14px 18px; gap: 12px; font-size: .75rem; letter-spacing: .06em; }
  .cred-strip li + li { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
  .cred-strip .icon { width: 20px; height: 20px; }
}
@media (max-width: 559px) {
  .claim-items { flex-direction: column; align-items: flex-start; gap: 0; }
  .claim-sep { display: none; }
}

/* ---------- Why a tutor ---------- */

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.statement {
  margin: 32px 0 0;
  padding-left: 20px;
  border-left: 3px solid var(--accent);
  font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.015em;
  color: var(--ink);
}

.route-card {
  margin: 0;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
}

.route + .route { margin-top: 22px; padding-top: 22px; border-top: 1px dashed var(--line-strong); }

.route-label {
  width: fit-content;
  margin-bottom: 4px;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.route-direct .route-label { color: var(--accent); }

.route-track { position: relative; height: 92px; margin: 0 16px; }

.route-path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route-line { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.route-path-alone .route-line { stroke: #98A1B3; stroke-width: 2.5; stroke-dasharray: 1 7; }
.route-path-direct .route-line { stroke: var(--accent); stroke-width: 4; }
/* Mask that draws each line: main.js animates its dash offset from 1 (hidden) to 0 (drawn). */
.route-reveal { fill: none; stroke: #fff; stroke-width: 14; stroke-dasharray: 1 1; stroke-dashoffset: 0; }

/* Where each line ends up. --x is set per lane in index.html; main.js moves the tip while animating. */
.route-tip {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: var(--x);
  width: 12px;
  height: 12px;
  border: 3px solid #98A1B3;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
}
.route-direct .route-tip { border-color: var(--accent); }
.route-score {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: var(--x);
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 800;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transform: translate(-50%, calc(-100% - 24px));
}
.route-direct .route-score {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 8px 18px -8px rgba(20, 41, 90, .45);
}
.route-score-unknown { min-width: 32px; text-align: center; }
.route-direct .route-score.is-done { animation: score-pop .5s var(--ease-out); }
.route-score-unknown.is-done { animation: score-shrug .6s var(--ease-out); }
@keyframes score-pop {
  50% { transform: translate(-50%, calc(-100% - 24px)) scale(1.15); }
}
@keyframes score-shrug {
  30% { transform: translate(-50%, calc(-100% - 24px)) rotate(-10deg); }
  70% { transform: translate(-50%, calc(-100% - 24px)) rotate(8deg); }
}

/* "Detour" / "Time wasted" labels above the winding line. */
.route-track-annotated { margin-top: 40px; }
.route-notes li {
  position: absolute;
  top: -36px;
  left: var(--nx);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border: 1px solid #EFC4BF;
  border-radius: var(--radius-pill);
  background: #FDF1F0;
  color: #A12B1F;
  font-size: .6875rem;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  transform: translateX(-50%);
  transition: opacity .3s, transform .3s var(--ease-out);
}
.route-notes .icon { width: 12px; height: 12px; stroke-width: 2.2; }

/* While animating (main.js adds .is-animated), labels appear as the line reaches them,
   and everything fades out briefly before each replay. */
.route-card.is-animated .route-notes li:not(.is-shown) { opacity: 0; transform: translate(-50%, 6px); }
.route-line,
.route-tip,
.route-score { transition: opacity .4s; }
.route-card.is-fading .route-line,
.route-card.is-fading .route-tip,
.route-card.is-fading .route-score,
.route-card.is-fading .route-notes li { opacity: 0; }

.route-node { position: absolute; z-index: 2; top: 50%; left: 0; transform: translate(-50%, -50%); }
.route-start { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px var(--bg); }
.route-end {
  left: 100%;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
}
.route-end .icon { width: 17px; height: 17px; }
.route-direct .route-end { border-color: var(--gold); background: var(--gold); color: var(--navy); box-shadow: 0 0 0 6px rgba(226, 184, 74, .22); }

.route-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.route-tags li {
  padding: .35em .8em;
  border-radius: var(--radius-pill);
  background: var(--accent-50);
  color: var(--accent-700);
  font-size: .8125rem;
  font-weight: 650;
}
.route-tags-muted li { border: 1px solid var(--line); background: #fff; color: var(--muted); }

.route-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
}
.route-note { flex-basis: 100%; margin-top: 8px; font-size: .75rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); }

.effort-quote { margin: clamp(64px, 8vw, 112px) auto 0; max-width: 980px; text-align: center; }
.effort-quote p {
  margin: 0 0 20px;
  font-size: clamp(1.75rem, 1rem + 2.8vw, 3.1rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.035em;
  color: var(--ink);
  text-wrap: balance;
}
.effort-quote p span { text-decoration: underline; text-decoration-color: var(--gold-line); text-decoration-thickness: .08em; text-underline-offset: .14em; }
.effort-quote footer {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 959px) {
  .why-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 559px) {
  .route-track { height: 76px; }
  .route-notes li { padding: 2px 7px; font-size: .625rem; }
  .route-notes .icon { display: none; }
  .route-notes li:nth-child(2) { display: none; }
  .route-notes li:nth-child(3) { left: 55%; }
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.about-copy .lead { color: var(--ink); font-weight: 600; }

.pull-quote {
  margin: 36px 0;
  padding: 26px 30px;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.pull-quote p {
  margin: 0;
  font-size: clamp(1.1875rem, 1.1rem + .4vw, 1.375rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.015em;
  color: var(--ink);
}

.signature { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.signature p { display: flex; flex-direction: column; margin: 0 auto 0 0; line-height: 1.35; }
.signature strong { color: var(--ink); }
.signature p span { font-size: .875rem; color: var(--muted); }

.journey {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.journey-title {
  margin-bottom: 26px;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.journey-step { position: relative; padding: 0 0 30px 42px; }
.journey-step::before {
  content: "";
  position: absolute;
  top: 30px;
  bottom: 4px;
  left: 12px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--line-strong), var(--accent-100));
  transform-origin: top;
}
.journey-step:nth-child(2)::before { background: linear-gradient(to bottom, var(--accent-100), var(--accent)); }
.journey-step.is-final { padding-bottom: 0; }
.journey-step.is-final::before { display: none; }

.journey-dot {
  position: absolute;
  top: -4px;
  left: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 800;
  line-height: 1;
}
.journey-step:nth-child(2) .journey-dot { border-color: var(--accent-100); color: var(--accent); }
.is-final .journey-dot { border-color: var(--accent); background: var(--accent); color: #fff; box-shadow: 0 0 0 5px rgba(20, 41, 90, .15); }

.journey-kicker {
  margin-bottom: 6px;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.is-final .journey-kicker { color: var(--accent); }

.journey-value {
  margin-bottom: 4px;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  text-transform: uppercase;
  color: var(--ink);
}
.journey-text { margin: 0; font-size: .9375rem; line-height: 1.55; color: var(--muted); }

.journey-final {
  position: relative;
  overflow: hidden;
  margin-top: 12px;
  padding: 24px;
  border-radius: var(--radius);
  background: radial-gradient(400px 200px at 100% 0%, rgba(59, 102, 235, .5), transparent 70%), var(--navy);
  color: var(--on-navy-muted);
}
.journey-final-score {
  margin: 0;
  font-size: clamp(3.25rem, 2.5rem + 2.4vw, 4.25rem);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.05em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.journey-max { margin-left: 4px; font-size: .32em; letter-spacing: -.01em; color: var(--on-navy-muted); }
.journey-final::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .16) 50%, transparent 65%);
  transform: translateX(-120%);
  pointer-events: none;
}
.journey-claims {
  margin: 14px 0 18px;
  font-size: .8125rem;
  font-weight: 800;
  letter-spacing: .09em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--gold);
}
.journey-scores {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}
.journey-scores div { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .07); }
.journey-scores dt { font-size: .6875rem; font-weight: 700; letter-spacing: .1em; color: var(--on-navy-muted); }
.journey-scores dd { margin: 0; font-size: 1.25rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.journey-bar {
  position: relative;
  display: block;
  height: 4px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, .12);
}
.journey-bar::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--v);
  border-radius: inherit;
  background: var(--accent-on-dark);
  transform-origin: left;
}

/* Journey animation: main.js adds .anim-ready, then .is-in when the card scrolls into view.
   Steps arrive one at a time, the line draws down, the final panel pops and the
   numbers count up (main.js). */
.journey.anim-ready .journey-step { opacity: 0; transform: translateX(-18px); }
.journey.anim-ready .journey-step::before { transform: scaleY(0); }
.journey.anim-ready .journey-dot { transform: scale(.4); }
.journey.anim-ready .journey-final { transform: scale(.94); }
.journey.anim-ready .journey-claims { opacity: 0; }
.journey.anim-ready .journey-scores > div { opacity: 0; transform: translateY(10px) scale(.94); }
.journey.anim-ready .journey-bar::before { transform: scaleX(0); }

/* Transitions only run on the way in, never while main.js sets up the hidden state. */
.journey.is-in .journey-step {
  opacity: 1;
  transform: none;
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
  transition-delay: calc(var(--step) * 450ms);
}
.journey.is-in .journey-step::before {
  transform: none;
  transition: transform .5s var(--ease-out);
  transition-delay: calc(var(--step) * 450ms + 350ms);
}
.journey.is-in .journey-dot {
  transform: none;
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1);
  transition-delay: calc(var(--step) * 450ms);
}
.journey.is-in .journey-final { transform: none; transition: transform .7s cubic-bezier(.34, 1.56, .64, 1) .9s; }
.journey.is-in .journey-claims { opacity: 1; transition: opacity .6s var(--ease-out) 1.1s; }
.journey.is-in .journey-scores > div {
  opacity: 1;
  transform: none;
  transition: opacity .5s var(--ease-out), transform .5s cubic-bezier(.34, 1.56, .64, 1);
  transition-delay: calc(1250ms + var(--i) * 140ms);
}
.journey.is-in .journey-bar::before {
  transform: none;
  transition: transform 1s var(--ease-out);
  transition-delay: calc(1350ms + var(--i) * 140ms);
}
.journey.is-in .journey-final::after { animation: sheen 1.4s var(--ease-out) 2.3s; }
.journey.is-in .is-final .journey-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: dot-pulse 2.4s ease-out 1.3s infinite;
}
@keyframes sheen {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}
@keyframes dot-pulse {
  0% { transform: scale(.85); opacity: .7; }
  100% { transform: scale(1.8); opacity: 0; }
}

@media (max-width: 959px) {
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .journey { position: static; }
}

/* ---------- Verbal Reasoning ---------- */

.section-navy {
  background:
    radial-gradient(1100px 620px at 88% -8%, rgba(59, 102, 235, .38), transparent 62%),
    radial-gradient(700px 500px at -10% 110%, rgba(59, 102, 235, .18), transparent 60%),
    var(--navy);
  color: var(--on-navy-muted);
}
.section-navy .section-title,
.section-navy h3,
.section-navy h4 { color: #fff; }
.section-navy .lead { color: var(--on-navy-text); }

.vr-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.vr-score { position: relative; width: min(100%, 300px); margin-inline: auto; aspect-ratio: 1; container-type: inline-size; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring-track { stroke: rgba(255, 255, 255, .1); }
.ring-fill { stroke: var(--accent-on-dark); stroke-linecap: round; stroke-dasharray: var(--v) 100; }
/* Gold finish: a thin gold line inside the ring that draws with the fill, and sparkles where it closes. */
.ring .ring-gold { stroke: var(--gold); stroke-width: 1.25; stroke-linecap: round; stroke-dasharray: var(--v) 100; }
.ring-sparkles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  filter: drop-shadow(0 0 3px rgba(226, 184, 74, .8));
}
.sparkle { fill: var(--gold); opacity: 0; transform-box: fill-box; transform-origin: center; }
@keyframes twinkle {
  0% { opacity: 0; transform: scale(0) rotate(0deg); }
  45% { opacity: 1; transform: scale(1.15) rotate(45deg); }
  100% { opacity: 0; transform: scale(0) rotate(90deg); }
}
.vr-score-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.vr-score-num {
  font-size: clamp(3rem, 27cqi, 5.25rem);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.05em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.vr-score-max { margin-top: 4px; font-size: 1.25rem; font-weight: 700; color: var(--on-navy-muted); }
.vr-score-label {
  margin-top: 10px;
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-on-dark);
}

.vr-why {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  margin-top: clamp(48px, 6vw, 72px);
  padding: clamp(24px, 3.5vw, 40px);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .04);
}
.vr-why h3 { margin-bottom: 12px; font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); letter-spacing: -.02em; }
.vr-why p { margin: 0; color: var(--on-navy-text); }
.vr-why p + p { margin-top: 12px; }
.vr-why .vr-pitch {
  margin-top: 20px;
  padding-left: 18px;
  border-left: 3px solid var(--accent-on-dark);
  font-size: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem);
  line-height: 1.5;
  color: #fff;
}

.vr-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.vr-facts li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .06);
}
.vr-facts strong { font-size: 2rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: #fff; }
.vr-facts span { font-size: .8125rem; line-height: 1.35; }

@media (max-width: 959px) {
  .vr-head { gap: 32px; }
  .vr-score { width: min(100%, 220px); }
  .vr-why { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 699px) {
  .vr-head { grid-template-columns: minmax(0, 1fr); }
  .vr-score { width: min(100%, 240px); margin: 0; }
}
@media (max-width: 559px) {
  .vr-facts li { padding: 14px 12px; }
  .vr-facts strong { font-size: 1.625rem; }
  .vr-facts span { font-size: .75rem; }
}

/* ---------- How it works ---------- */

.breakdown {
  padding: clamp(22px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
}
.breakdown-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 24px;
}
.breakdown-head .subhead { margin: 0; }
.breakdown-head p { margin: 0; font-size: .9375rem; color: var(--muted); }

.tab-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.tab {
  padding: .75em .8em;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-size: .9375rem;
  font-weight: 650;
  line-height: 1.25;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.tab:hover { color: var(--ink); background: var(--bg); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; }

.tab-panel { padding: 28px 4px 4px; }
.tab-panel:focus-visible { outline-offset: 6px; border-radius: 8px; }
.panel-meta {
  display: inline-block;
  margin-bottom: 22px;
  padding: .35em .85em;
  border-radius: var(--radius-pill);
  background: var(--accent-50);
  color: var(--accent-700);
  font-size: .8125rem;
  font-weight: 700;
}
.panel-label {
  margin-bottom: 14px;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: .5em .95em;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 600;
}

.panel-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.panel-steps li {
  padding: 22px 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.panel-step-num {
  display: block;
  margin-bottom: 16px;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.05em;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--accent);
}
.panel-steps h4 {
  margin-bottom: 8px;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.panel-steps p { margin: 0; font-size: .9375rem; line-height: 1.55; }

.fit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.fit-card {
  padding: clamp(28px, 3.5vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
}
.fit-card-strong {
  border-color: var(--accent);
  background: radial-gradient(500px 260px at 100% 0%, rgba(255, 255, 255, .1), transparent 70%), var(--accent);
  color: #E6EDFF;
}
.fit-kicker {
  margin-bottom: 12px;
  font-size: .8125rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}
.fit-card h3 {
  margin-bottom: 12px;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.03em;
  text-transform: uppercase;
}
.fit-card p:last-child { margin: 0; }
.fit-card-strong .fit-kicker { color: #E6EDFF; }
.fit-card-strong h3 { color: #fff; }

@media (max-width: 959px) {
  .panel-steps { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .panel-steps li { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; padding: 20px; }
  .panel-step-num { margin: 0; font-size: 2rem; }
  .panel-steps h4 { margin: 0; }
  .panel-steps p { grid-column: 1 / -1; margin-top: 10px; }
  .fit-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 719px) {
  .tab-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tab { font-size: .875rem; }
}

/* ---------- Results (enable in index.html once genuine results exist) ---------- */

.results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.result-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.result-score { margin-bottom: 16px; font-size: 2.5rem; font-weight: 800; line-height: 1; letter-spacing: -.04em; color: var(--ink); }
.result-score span { font-size: .875rem; font-weight: 700; letter-spacing: .1em; color: var(--accent); }
.result-card blockquote { flex: 1; margin: 0 0 24px; }
.result-card blockquote p { margin: 0; color: var(--ink); }
.result-card figcaption { display: flex; flex-direction: column; font-size: .875rem; color: var(--muted); }
.result-card figcaption strong { color: var(--ink); font-size: 1rem; }

/* ---------- Apply ---------- */

.apply { padding-top: clamp(56px, 7vw, 96px); }

.apply-panel {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 64px);
  padding: clamp(24px, 5vw, 64px);
  border-radius: clamp(24px, 3vw, 36px);
  background:
    radial-gradient(900px 520px at 0% 0%, rgba(59, 102, 235, .45), transparent 62%),
    var(--navy);
  color: var(--on-navy-muted);
}

.apply-intro { align-self: center; padding-top: 8px; }
.apply-intro .section-title { color: #fff; }
.apply-intro .lead { color: var(--on-navy-text); margin-bottom: 0; }

.apply-note { margin: 16px 0 0; font-size: .9375rem; }

.form-card {
  align-self: start;
  padding: clamp(20px, 3.5vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}

.apply-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field-full { grid-column: 1 / -1; }
.field label,
.field legend { padding: 0; font-size: .875rem; font-weight: 650; color: var(--ink); }
.field legend { margin-bottom: 7px; }
.optional { font-weight: 500; color: var(--muted); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .75em .9em;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder,
.field textarea::placeholder { color: #6E7689; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #B4BCCB; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(20, 41, 90, .15); }
.field select {
  padding-right: 2.6em;
  -webkit-appearance: none;
  appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235F6678' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right .85em center / 18px no-repeat;
  cursor: pointer;
}
.field select:invalid { color: #6E7689; }
.field select option { color: var(--ink); }
.field textarea { min-height: 88px; resize: vertical; }

.field [aria-invalid="true"] { border-color: var(--danger); }
.field [aria-invalid="true"]:focus { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(192, 53, 43, .15); }
.field-error { margin: 0; font-size: .8125rem; font-weight: 550; color: var(--danger); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-foot { margin-top: 4px; }
.privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 14px 0 0;
  font-size: .8125rem;
  color: var(--muted);
  text-align: center;
}
.privacy .icon { width: 15px; height: 15px; }
.form-status { margin: 10px 0 0; font-size: .9375rem; text-align: center; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--danger); }

.form-success { padding: clamp(32px, 6vw, 72px) 8px; text-align: center; }
.form-success:focus { outline: none; }
.success-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: #E5F4EE;
  color: var(--success);
}
.success-icon .icon { width: 32px; height: 32px; stroke-width: 2.4; }
.form-success h3 { margin-bottom: 10px; font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em; text-transform: uppercase; }
.form-success p { max-width: 30em; margin-inline: auto; }
.success-sign { margin-top: 18px; font-weight: 700; color: var(--ink); }

@media (max-width: 959px) {
  .apply-panel { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 559px) {
  .apply-panel { margin-inline: calc(var(--gutter) * -.5); padding: 28px 16px 16px; }
  .apply-intro { padding: 0 8px; }
  .form-card { padding: 22px 18px; }
  .apply-form { gap: 16px 12px; }
  .field-wide-sm { grid-column: 1 / -1; }
}

/* ---------- FAQ ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.faq-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-intro p { max-width: 30em; margin-bottom: 28px; }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  list-style: none;
  font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.01em;
  color: var(--ink);
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  transition: transform .25s var(--ease-out), background-color .2s, color .2s;
}
.faq-icon .icon { width: 18px; height: 18px; }
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq-answer { padding: 0 56px 26px 0; }
.faq-answer p { margin: 0; }

@media (max-width: 959px) {
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-intro { position: static; }
  .faq-answer { padding-right: 0; }
}

/* ---------- Footer ---------- */

.site-footer { padding: clamp(56px, 7vw, 80px) 0 32px; background: var(--ink); color: #A3ACBF; }

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: 40px;
  align-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.brand-light .brand-name { color: #fff; }
.brand-light .brand-name span { color: var(--accent-on-dark); }
.footer-brand p { max-width: 30ch; margin: 18px 0 0; }

.footer-nav { display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 40px; }
.footer-nav a { color: #C9D0DE; font-size: .9375rem; text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

.footer-bottom { display: grid; gap: 6px; padding-top: 24px; font-size: .8125rem; line-height: 1.6; }
.footer-bottom p { margin: 0; }

@media (max-width: 959px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .site-footer { padding-bottom: 112px; }
}

/* ---------- Mobile sticky CTA ---------- */

.sticky-cta {
  position: fixed;
  z-index: 40;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  transform: translateY(160%);
  transition: transform .35s var(--ease-out);
}
.sticky-cta .btn { box-shadow: 0 12px 32px -8px rgba(10, 17, 40, .45); }
.sticky-cta.is-visible { transform: none; }

@media (min-width: 960px) {
  .sticky-cta { display: none !important; }
}

/* ---------- Motion ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes draw-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: no-preference) {
  .js .hero-copy > *,
  .js .hero-visual { animation: rise .8s var(--ease-out) both; }
  .js .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .js .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .js .hero-copy > :nth-child(4) { animation-delay: .18s; }
  .js .hero-copy > :nth-child(5) { animation-delay: .24s; }
  .js .hero-visual { animation-delay: .2s; }
  .js .accent-underline::after { animation: draw-x .9s .55s var(--ease-out) both; }

  .js .bar span { transform: scaleX(0); transition: transform 1.3s var(--ease-out); }
  .js .score-bars li:nth-child(2) .bar span { transition-delay: .12s; }
  .js .score-bars li:nth-child(3) .bar span { transition-delay: .24s; }
  .js .score-card.is-visible .bar span { transform: none; }

  .js .ring-fill,
  .js .ring-gold { stroke-dasharray: 0 100; transition: stroke-dasharray 4.8s var(--ease-out) .15s; }
  .js .vr-score.is-visible .ring-fill,
  .js .vr-score.is-visible .ring-gold { stroke-dasharray: var(--v) 100; }
  /* The sparkles twinkle as the ring rounds up. */
  .js .vr-score.is-visible .sparkle { animation: twinkle 1.1s var(--ease-out) var(--d) both; }


  .js .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .75s var(--ease-out), transform .75s var(--ease-out);
    transition-delay: var(--reveal-delay, 0s);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
