/* Landing page styles. Dark, lime-accent look. Change the brand colour with --accent only. */
:root {
  --accent: #e4fd97;          /* brand accent (Citrus). Swap this one value to re-colour the page */
  --on-accent: #141414;       /* text colour on top of the accent */
  --bg: #141414;
  --surface: #1c1c1c;
  --surface-2: #242424;
  --line: #2e2e2e;
  --text: #f4f5ee;
  --muted: #a8a9a0;
  --font-display: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 20px;
  --wrap: 1240px;
  --header-h: 76px;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='.5'/></svg>");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body.landing {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1rem/1.65 var(--font-body); overflow-x: hidden;
}
body.landing::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: var(--grain); opacity: .05;
}
/* :where() keeps this at zero specificity so .site-header (sticky, z-index 50) and .skip-link still win. */
:where(body.landing > *) { position: relative; z-index: 1; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
main { overflow-x: clip; }
h1, h2, h3, .brand, .pill, .menu-btn, .nav a { font-family: var(--font-display); }
.sprite { position: absolute; width: 0; height: 0; }
.muted { color: var(--muted); }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent);
  color: var(--on-accent); padding: 10px 16px; border-radius: 999px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* Display type */
h1, h2 { text-transform: uppercase; font-weight: 800; letter-spacing: -.02em; line-height: .98; }
h1 { font-size: clamp(2.5rem, 7.2vw, 5.4rem); }
h2 { font-size: clamp(2rem, 5vw, 3.6rem); }
h3 { font-weight: 700; font-size: 1.35rem; line-height: 1.2; letter-spacing: -.01em; }
.outline { color: transparent; -webkit-text-stroke: 1.5px var(--accent); display: block; }
h2 .outline { display: inline; }
h1 .outline { font-size: .62em; margin-top: .22em; letter-spacing: 0; }
.eyebrow {
  display: inline-block; background: var(--surface-2); color: var(--accent); font: 600 .95rem/1 var(--font-display);
  padding: 9px 14px; border-radius: 10px; margin-bottom: 20px;
}

/* Pill buttons with the circular arrow */
.pill { display: inline-flex; align-items: stretch; font-weight: 700; text-transform: uppercase; font-size: .95rem; letter-spacing: .01em; }
.pill-ico, .pill-txt {
  display: inline-flex; align-items: center; background: var(--accent); color: var(--on-accent);
  border: 1px solid var(--accent); transition: background .25s, color .25s, transform .25s;
}
.pill-ico { width: 56px; justify-content: center; border-radius: 999px; }
.pill-ico svg { width: 20px; height: 20px; transition: transform .25s; }
.pill-txt { padding: 0 28px 0 24px; min-height: 56px; border-radius: 999px; margin-left: -1px; }
.pill-sm .pill-ico { width: 48px; } .pill-sm .pill-txt { min-height: 48px; padding: 0 22px 0 18px; }
.pill-outline .pill-ico, .pill-outline .pill-txt { background: transparent; color: var(--accent); }
.pill:hover .pill-ico svg { transform: rotate(45deg); }
.pill:hover .pill-txt { background: var(--text); border-color: var(--text); color: var(--on-accent); }
.pill-outline:hover .pill-ico, .pill-outline:hover .pill-txt { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; transition: background .3s, backdrop-filter .3s; }
.site-header.is-stuck { background: rgba(20, 20, 20, .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; letter-spacing: -.01em; }
.brand-mark { width: 30px; height: 30px; color: var(--accent); flex: none; }
.header-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.menu-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; background: transparent;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px; font: 600 .95rem var(--font-display);
  text-transform: uppercase; cursor: pointer;
}
.menu-btn svg { width: 16px; height: 16px; color: var(--accent); transition: transform .25s; }
.menu-btn[aria-expanded="true"] svg { transform: rotate(45deg); }
.nav {
  position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line);
  display: none; padding: 8px 16px 20px;
}
.nav.is-open { display: block; }
.nav ul { display: grid; gap: 2px; }
.nav a { display: block; padding: 14px 8px; font-weight: 600; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.nav a:hover { color: var(--accent); }
.header-cta .pill-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); padding: 0; border: 0; white-space: nowrap; }
.header-cta .pill-ico { width: 48px; }

@media (min-width: 640px) { .header-cta .pill-txt { position: static; width: auto; height: auto; overflow: visible; clip-path: none; padding: 0 22px 0 18px; border: 1px solid var(--accent); } }
@media (min-width: 1100px) {
  .menu-btn { display: none; }
  .nav { position: static; display: block; background: var(--surface); border: 0; border-radius: 999px; padding: 0 12px; margin-left: 28px; }
  .nav ul { display: flex; gap: 4px; }
  .nav a { border: 0; padding: 16px 14px; font-size: .9rem; }
}

/* Hero */
.hero { padding: clamp(32px, 6vw, 80px) 0 clamp(40px, 6vw, 80px); }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero-copy h1 { font-size: clamp(2rem, 4.8vw, 3.8rem); }
.lede { color: var(--muted); font-size: 1.1rem; max-width: 46ch; margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.facts { display: flex; flex-wrap: wrap; gap: 20px 36px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.facts li { display: grid; }
.facts strong { font: 800 clamp(2.4rem, 5vw, 3.6rem)/1 var(--font-display); }
.facts .fact-text { font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.6; color: var(--accent); }
.facts span { color: var(--muted); font-size: .95rem; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }

.hero-visual { position: relative; padding-top: 40px; }
.frame {
  position: relative; margin: 0; border: 1px solid var(--accent); border-radius: 18px;
  background: radial-gradient(circle at 30% 20%, #252b12, var(--surface) 70%); overflow: hidden; aspect-ratio: 600 / 520;
}
.graph, .hero-photo { width: 100%; height: 100%; object-fit: cover; }
.grid-line { stroke: rgba(255, 255, 255, .07); stroke-width: 1; }
.axis { stroke: rgba(255, 255, 255, .4); stroke-width: 1.5; fill: none; }
.ticks path { stroke: rgba(255, 255, 255, .45); stroke-width: 1.5; fill: none; }
.curve { fill: none; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.curve-a { stroke: var(--accent); animation: draw 3s ease-out both; }
.curve-b { stroke: #fff; stroke-opacity: .85; stroke-width: 3; animation: draw 3.6s .4s ease-out both; }
.dot { fill: var(--accent); } .dot-hollow { fill: var(--bg); stroke: var(--accent); stroke-width: 2.5; }
.arc, .guide { fill: none; stroke: rgba(255, 255, 255, .3); stroke-width: 1.5; stroke-dasharray: 6 8; }
.rod { stroke: #fff; stroke-opacity: .85; stroke-width: 3; stroke-linecap: round; }
.bob { fill: var(--accent); }
.pendulum { transform-origin: 140px 60px; animation: swing 4s ease-in-out infinite alternate; }
.swing-dot { animation: bob-y 4s ease-in-out infinite alternate; }
@keyframes swing { from { transform: rotate(-24deg); } to { transform: rotate(24deg); } }
@keyframes bob-y { from { transform: translateY(-110px); } to { transform: translateY(110px); } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.chip {
  position: absolute; background: rgba(20, 20, 20, .85); border: 1px solid var(--line); color: var(--accent);
  font: 600 .95rem var(--font-display); padding: 8px 14px; border-radius: 999px; animation: float 6s ease-in-out infinite;
}
.chip-1 { right: 6%; top: 30%; } .chip-2 { right: 8%; bottom: 8%; animation-delay: -2s; }
.chip-3 { left: 27%; top: 16%; font-size: 1.3rem; animation-delay: -4s; } .chip-4 { left: 8%; bottom: 10%; font-size: 1.3rem; animation-delay: -1s; }
@keyframes float { 50% { transform: translateY(-10px); } }
.badge { position: absolute; right: -4px; top: -4px; width: 110px; height: 110px; z-index: 2; }
.badge-ring { width: 100%; height: 100%; animation: spin 24s linear infinite; }
.badge-bg { fill: var(--bg); stroke: var(--line); }
.badge text { fill: #fff; font: 600 15px var(--font-display); letter-spacing: 1px; }
.badge-mark { position: absolute; inset: 0; margin: auto; width: 36px; height: 36px; color: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 960px) { .badge { width: 150px; height: 150px; right: -20px; top: -20px; } }

/* Marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--accent); color: var(--on-accent); padding: 18px 0; transform: rotate(-1.2deg); margin: 20px -2% 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee ul { display: flex; flex: none; }
.marquee li { font: 800 clamp(1.1rem, 2.4vw, 1.7rem) var(--font-display); text-transform: uppercase; white-space: nowrap; padding-right: 48px; display: flex; align-items: center; gap: 48px; }
.marquee li::after { content: ""; width: 14px; height: 14px; background: currentColor; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: clamp(64px, 9vw, 128px) 0 0; }
.sec-head { margin-bottom: clamp(32px, 5vw, 56px); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.tag { color: var(--accent); font: 600 .9rem var(--font-display); text-transform: uppercase; letter-spacing: .06em; }

.track-grid { display: grid; gap: 20px; }
.track-card { display: grid; gap: 16px; align-content: start; padding: clamp(24px, 4vw, 44px); transition: border-color .3s, transform .3s; }
.track-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.track-card h3 { font-size: clamp(1.8rem, 4vw, 2.6rem); text-transform: uppercase; font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.chips li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font: 600 .9rem var(--font-display); }
.track-card .pill { justify-self: start; }
@media (min-width: 860px) { .track-grid { grid-template-columns: 1fr 1fr; } }

.feature-list { border-top: 1px solid var(--line); counter-reset: none; }
.feature { position: relative; display: grid; gap: 6px 24px; padding: 28px 56px 28px 0; border-bottom: 1px solid var(--line); transition: background .3s, padding .3s; }
.feature-no { font: 800 1rem var(--font-display); color: var(--accent); }
.feature:hover h3 { color: var(--accent); }
@media (min-width: 860px) {
  .feature { grid-template-columns: 70px 1fr 1fr; align-items: center; padding-block: 34px; }
  .feature h3 { font-size: 1.7rem; }
}

.steps { display: grid; gap: 16px; }
.step { position: relative; display: grid; gap: 10px; align-content: start; }
.step-no { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 800 1.3rem var(--font-display); margin-bottom: 14px; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.dates-grid { display: grid; gap: 32px; align-items: start; }
.dates-grid header { display: grid; gap: 18px; justify-items: start; }
.dates-grid header .eyebrow { margin-bottom: 0; }
.date-list { display: grid; gap: 12px; }
.date-list li { display: flex; align-items: center; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 24px; }
.date-list time { display: grid; min-width: 84px; color: var(--accent); font: 600 .9rem var(--font-display); text-transform: uppercase; }
.date-list time strong { font-size: 2.4rem; line-height: 1; font-weight: 800; color: var(--text); }
.date-list span { display: grid; font-weight: 600; font-family: var(--font-display); font-size: 1.1rem; }
.date-list small { font: 400 .9rem var(--font-body); color: var(--muted); }
@media (min-width: 900px) { .dates-grid { grid-template-columns: 1fr 1.1fr; } }

.faq-wrap { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .faq-wrap { grid-template-columns: .8fr 1.2fr; } }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; transition: border-color .25s; }
.faq details[open] { border-color: var(--accent); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; cursor: pointer; list-style: none; font: 700 1.1rem var(--font-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 22px; height: 22px; color: var(--accent); transition: transform .25s; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; max-width: 60ch; }

.cta-band { margin-top: clamp(64px, 9vw, 128px); border: 1px solid var(--line); border-radius: 28px; padding: clamp(32px, 7vw, 80px) clamp(20px, 5vw, 64px); text-align: center; background: radial-gradient(circle at 50% 120%, #282f14, var(--surface) 65%); }
.cta-band .hero-actions { justify-content: center; }

/* Footer */
.site-footer { margin-top: clamp(64px, 9vw, 120px); border-top: 1px solid var(--line); padding-top: 56px; overflow: hidden; }
.footer-grid { display: grid; gap: 32px; }
.footer-grid .muted { margin-top: 12px; max-width: 36ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 28px; align-content: start; }
.footer-links a, .contact-list a { font-weight: 600; text-transform: uppercase; font-family: var(--font-display); font-size: .95rem; }
.contact-list a { text-transform: none; }
.contact-list { margin-top: 16px; display: grid; gap: 6px; color: var(--muted); }
.footer-links a:hover, .contact-list a:hover { color: var(--accent); }
.footer-bottom { padding: 32px 0; color: var(--muted); font-size: .9rem; }
.footer-word { display: none; font: 800 clamp(2rem, 8.2vw, 8.5rem)/.8 var(--font-display); text-transform: uppercase; text-align: center; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px var(--line); margin-bottom: -.06em; }
@media (min-width: 640px) { .footer-word { display: block; } }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.2fr 1fr; } .footer-links { justify-content: flex-end; } }

/* Reveal on scroll (only when JS marked the page) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee { transform: none; }
  .marquee-track { width: auto; flex-wrap: wrap; }
  .marquee ul[aria-hidden] { display: none; }
}

/* Flash messages (sign-in/out notices) shown under the header */
.landing-flashes { display: grid; gap: .6rem; padding-top: 16px; position: relative; z-index: 5; }
.landing-flash {
  margin: 0; padding: .85rem 1.1rem; border: 1px solid var(--line); border-radius: 14px;
  background: #1c1c1c; color: var(--text); font: 600 .95rem var(--font-body, inherit);
}
.landing-flash-success, .landing-flash-info { border-color: var(--accent); }
.landing-flash-warning { border-color: #ffb020; }
.landing-flash-error { border-color: #ff5c5c; }

/* Results wall (shown only when consented entries exist) */
.results-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.result { padding: 24px; }
.result-headline { font: 800 1.6rem/1.2 var(--font-display); color: var(--accent); margin: 0 0 8px; }
.result-name { font: 600 1.05rem var(--font-display); margin: 0; }
.result-track { font-size: .85rem; margin: 8px 0 0; }

/* ---------- Inner pages (tracks, contact, calendar, errors) share the landing look ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.page-hero { padding-bottom: 0; }
.page-hero .lede strong { color: var(--text); }
.page-hero h1 { max-width: 16ch; }
.cta-text { margin: 20px auto 0; max-width: 46ch; }

.programme-grid { display: grid; gap: 16px; }
.programme { display: grid; gap: 10px; align-content: start; transition: border-color .3s, transform .3s; }
.programme:hover { border-color: var(--accent); transform: translateY(-4px); }
.programme-code { justify-self: start; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
@media (min-width: 700px) { .programme-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .programme-grid { grid-template-columns: repeat(4, 1fr); } }

.contact-section, .calendar-section { padding-top: clamp(32px, 5vw, 56px); }
.contact-grid { display: grid; gap: 16px; margin: 0; }
.contact-item { display: grid; gap: 10px; margin: 0; transition: border-color .3s; }
.contact-item:hover, .contact-item:focus-within { border-color: var(--accent); }
.contact-item dt, .contact-item dd { margin: 0; }
.contact-value { font: 700 clamp(1.2rem, 3vw, 1.6rem)/1.3 var(--font-display); overflow-wrap: anywhere; }
.contact-value a:hover { color: var(--accent); }
.contact-hours { margin-top: 20px; }
@media (min-width: 700px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
.empty-state h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-bottom: 12px; }
.empty-state a, .table a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter-pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 1px solid var(--line); border-radius: 999px; font: 600 .9rem var(--font-display); text-transform: uppercase; transition: background .25s, color .25s, border-color .25s; }
.filter-pill:hover { border-color: var(--accent); color: var(--accent); }
.filter-pill.is-active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.calendar-card { margin-bottom: 20px; padding: clamp(18px, 3vw, 32px); }
.calendar-month { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--accent); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; min-width: 600px; }
.table th, .table td { text-align: left; vertical-align: top; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.table th { color: var(--accent); font: 600 .85rem var(--font-display); text-transform: uppercase; letter-spacing: .06em; }
.table tbody tr:last-child td { border-bottom: 0; }
.table time { font-family: var(--font-display); font-weight: 600; white-space: nowrap; }
.calendar-deadline { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-block: 3px; font-size: .95rem; }
.badge { display: inline-flex; align-items: center; padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; font: 600 .78rem/1.5 var(--font-display); white-space: nowrap; color: var(--muted); }
.badge-success { border-color: var(--accent); color: var(--accent); }
.badge-warning { border-color: #ffb020; color: #ffb020; }
.badge-danger { border-color: #ff5c5c; color: #ff5c5c; }

.error-page { padding-bottom: 0; }
.error-code { display: block; font: 800 clamp(5rem, 22vw, 12rem)/.9 var(--font-display); color: transparent; -webkit-text-stroke: 2px var(--accent); margin-bottom: 8px; }
.error-hint { margin-top: 12px; }

/* ---------- Auth, placement and verification pages ---------- */
.auth-card { width: min(100% - 32px, 30rem); margin: clamp(32px, 6vw, 72px) auto 0; padding: clamp(24px, 5vw, 44px); background: var(--surface); border: 1px solid var(--line); border-radius: 28px; display: grid; gap: 16px; }
.auth-card h1 { font-size: clamp(2rem, 6vw, 2.8rem); }
.auth-card form, .placement-form { display: grid; gap: 16px; }
.auth-card .muted a, .auth-card p a:not(.btn), .placement-result a:not(.btn) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.page-top { padding-top: clamp(32px, 6vw, 72px); }
.form-field { display: grid; gap: 6px; }
.form-label, .placement-form label { font: 600 .95rem var(--font-display); }
.input, .placement-form input:not([type=checkbox]) {
  width: 100%; min-height: 52px; padding: 12px 16px; background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 14px; font: 400 1rem var(--font-body); margin-top: 6px;
}
.form-field .input { margin-top: 0; }
.input:hover, .placement-form input:hover { border-color: var(--muted); }
.input:focus-visible, .placement-form input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.input[aria-invalid="true"] { border-color: #ff5c5c; }
.form-check { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.form-check input, .placement-form input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--accent); margin: 0 8px 0 0; flex: none; }
.form-check .form-hint, .form-check .field-error { flex-basis: 100%; }
.form-hint { color: var(--muted); font-size: .9rem; }
.field-error, .form-error { color: #ff8a8a; font-weight: 600; font-size: .95rem; }
.form-error { border: 1px solid #ff5c5c; border-radius: 14px; padding: 12px 16px; background: rgba(255, 92, 92, .08); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; border-radius: 999px; border: 1px solid var(--accent); background: transparent; color: var(--accent); font: 700 .95rem var(--font-display); text-transform: uppercase; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.btn:hover { background: var(--accent); color: var(--on-accent); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--text); border-color: var(--text); }
.btn-block { width: 100%; }
.placement-form { max-width: 34rem; margin-top: 24px; }
.placement-result .card { margin: 20px 0; }
.placement-result ul { margin: 12px 0 24px; display: grid; gap: 6px; color: var(--muted); }
.placement-score { font: 800 clamp(2.4rem, 8vw, 3.6rem)/1 var(--font-display); color: var(--accent); margin-bottom: 8px; }
.placement-result h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); margin: 28px 0 12px; }
.page-top h1 { max-width: 20ch; margin-bottom: 16px; }
.page-top p { max-width: 60ch; margin-bottom: 12px; }
.rep-verify { width: min(100% - 32px, 34rem); margin: clamp(32px, 6vw, 72px) auto 0; padding: 0; display: grid; gap: 20px; }
.rep-verify h1 { font-size: clamp(2rem, 6vw, 3rem); }
.rep-verify-valid, .rep-verify-revoked { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 8px; }
.rep-verify-valid { border-color: var(--accent); }
.rep-verify-revoked { border-color: #ff5c5c; }

/* Teacher / About */
.about-grid { display: grid; gap: clamp(32px, 6vw, 72px); align-items: center; }
.teacher-frame { position: relative; margin: 0; justify-self: center; width: min(100%, 420px); padding: 0 14px 14px 0; }
.teacher-frame::before { content: ""; position: absolute; inset: 14px 0 0 14px; border-radius: 999px 999px var(--radius) var(--radius); background: var(--accent); }
.teacher-arch { position: relative; overflow: hidden; border-radius: 999px 999px var(--radius) var(--radius); background: #fff; border: 1px solid var(--line); aspect-ratio: 720 / 855; }
.teacher-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.about-copy { display: grid; gap: 18px; justify-items: start; }
.about-bio { max-width: 62ch; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); line-height: 1.7; color: var(--muted); }
@media (min-width: 900px) { .about-grid { grid-template-columns: .8fr 1.2fr; } }
.teacher-card { display: grid; gap: 20px; align-items: center; }
.teacher-card > div:last-child { display: grid; gap: 10px; justify-items: start; }
.teacher-arch-sm { width: 112px; border-radius: 999px 999px 16px 16px; }
@media (min-width: 640px) { .teacher-card { grid-template-columns: auto 1fr; gap: 32px; } .teacher-arch-sm { width: 140px; } }
