/* Upskill in AI - "Midnight hero, clean page". One bold moment (the midnight
   hero with the glowing engraving), then calm white and sky sections where
   hierarchy comes from type and space - no boxes, ticks, chips or arrows.
   Tokens mirror docs/BRAND.md - change them there first. */
:root {
  --midnight: #0b0d24;   /* hero, header, footer, text on light */
  --glow: #8ad8ff;       /* the brand sky: art, highlights, buttons on dark */
  --mist: #a9b0cc;       /* secondary text on midnight */
  --sky: #e8f4fd;        /* the registration band */
  --paper: #ffffff;
  --fill: #f1f6fb;       /* input fill on white */
  --ink: #0b0d24;
  --ink-2: #454a66;      /* secondary text on light */
  --ink-3: #6b7190;
  --blue: #0a6cb0;       /* links on light */
  --rule: #dbe3ef;
  --error: #b42318;

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --t-sm: 0.875rem;
  --t-base: 1.125rem;
  --t-lg: 1.375rem;
  --t-xl: 2.25rem;
  --t-2xl: clamp(2.75rem, 5.4vw, 4.25rem);
  --t-hero: clamp(3.5rem, 7.4vw, 6.5rem);

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  --wrap: 1200px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--t-base)/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.005em; line-height: 0.95; text-wrap: balance; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; }
::selection { background: var(--glow); color: var(--midnight); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .wrap { padding-left: 40px; padding-right: 40px; } }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--paper); color: var(--ink); padding: var(--s-3) var(--s-4); }
.skip:focus { left: 8px; }

/* ---------- Wordmark: live text, no symbol ---------- */
.wordmark { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--display); font-weight: 600; font-size: 1.6rem; line-height: 1; letter-spacing: 0.01em; text-transform: uppercase; color: var(--paper); text-decoration: none; white-space: nowrap; }
.wordmark span { color: var(--glow); margin-left: 0.25em; }

/* ---------- Buttons: solid, no border, no icon ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 var(--s-6); border: 0; border-radius: var(--radius);
  background: var(--midnight); color: var(--paper); font: 600 1.0625rem/1 var(--font); text-decoration: none; cursor: pointer; transition: background-color .15s ease; }
.btn:hover { background: #22253f; }
.btn-glow { background: var(--glow); color: var(--midnight); }
.btn-glow:hover { background: #b5e6ff; }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn-sm { min-height: 44px; padding: 0 var(--s-5); font-size: 1rem; }
.btn-block { width: 100%; }
:where(.register, .section) :focus-visible { outline-color: var(--blue); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--midnight); transition: box-shadow .2s ease; }
.site-header.scrolled { box-shadow: 0 1px 0 rgba(138, 216, 255, .14); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); height: 72px; }
.site-header nav { display: flex; align-items: center; gap: var(--s-5); }
.site-header nav a.link { display: none; color: var(--mist); text-decoration: none; font-size: 1rem; font-weight: 500; padding: var(--s-3) 0; }
.site-header nav a.link:hover { color: var(--paper); }
@media (min-width: 720px) { .site-header nav a.link { display: inline-block; } }

/* ---------- Hero: the one bold moment ---------- */
.hero { background: var(--midnight); color: var(--paper); overflow: hidden; }
.hero .wrap { display: grid; padding-top: var(--s-7); }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: 7fr 5fr; align-items: center; padding-top: var(--s-6); padding-bottom: var(--s-6); } }
.hero-copy { position: relative; z-index: 1; min-width: 0; }
.overline { font-family: var(--mono); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--glow); }
.hero h1 { font-size: var(--t-hero); font-weight: 400; margin-top: var(--s-5); }
.hero h1 em { font-style: normal; font-weight: 500; color: var(--glow); }
.lede { margin-top: var(--s-6); font-size: var(--t-lg); line-height: 1.45; color: var(--mist); max-width: 30rem; }
.hero-cta { margin-top: var(--s-7); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-6); }
.hero-cta p { font-size: var(--t-sm); color: var(--mist); line-height: 1.45; }
.hero-cta p strong { display: block; color: var(--paper); font-weight: 600; font-size: 1rem; }
.countdown { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid rgba(138, 216, 255, .16); max-width: 30rem; }
.cd-label { font-size: var(--t-sm); color: var(--mist); }
.cd { display: flex; gap: var(--s-6); margin-top: var(--s-3); }
.cd span { display: grid; gap: var(--s-1); }
.cd b { font-family: var(--display); font-weight: 500; font-size: clamp(2.25rem, 4vw, 3rem); line-height: 1; color: var(--paper); font-variant-numeric: tabular-nums; }
.cd i { font-style: normal; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mist); }
.hero-art { margin: var(--s-5) -16px 0; }
.hero-art img { width: 100%; max-width: 560px; margin: 0 auto;
  /* Feather the plate's square edges into the midnight. */
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); }
@media (min-width: 960px) { .hero-art { margin: 0 -60px 0 -40px; } .hero-art img { max-width: none; width: 120%; } }

/* ---------- Proof ---------- */
.proof { padding: var(--s-9) 0; }
.proof p { font-family: var(--display); font-weight: 500; font-size: var(--t-2xl); line-height: 1; max-width: 22ch; text-wrap: balance; }
.proof p span { color: var(--ink-3); }

/* ---------- Sections ---------- */
.section { padding: var(--s-9) 0; border-top: 1px solid var(--rule); }
@media (min-width: 960px) { .section { padding: var(--s-10) 0; } }
.section-head { display: grid; gap: var(--s-4); align-content: start; margin-bottom: var(--s-8); max-width: 40rem; }
.section-head h2 { font-size: var(--t-2xl); }
.section-head p { color: var(--ink-2); font-size: var(--t-lg); line-height: 1.45; }
.split { display: grid; gap: var(--s-7); }
@media (min-width: 960px) { .split { grid-template-columns: 5fr 7fr; gap: var(--s-9); } .split .section-head { margin-bottom: 0; } }

/* ---------- Agenda ---------- */
.days { display: grid; gap: var(--s-8); }
@media (min-width: 860px) { .days { grid-template-columns: 1fr 1fr; gap: var(--s-9); } }
.day h3 { font-size: var(--t-xl); }
.day .when { margin-top: var(--s-2); color: var(--ink-2); font-size: var(--t-sm); }
.day ol { list-style: none; padding: 0; margin-top: var(--s-6); }
.day li { padding: var(--s-4) 0; border-top: 1px solid var(--rule); }
.day li:last-child { border-bottom: 1px solid var(--rule); }
.tools { margin-top: var(--s-8); color: var(--ink-2); font-size: var(--t-sm); max-width: 44rem; }
.tools strong { color: var(--ink); font-weight: 600; }

/* ---------- Register (sky band) ---------- */
.register { background: var(--sky); border-top: 0; scroll-margin-top: 72px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5) var(--s-6); margin-top: var(--s-6); }
.facts dt { font-size: var(--t-sm); color: var(--ink-2); }
.facts dd { margin-top: var(--s-1); font-weight: 600; }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--s-5); min-width: 0; }
.form .row { display: grid; gap: var(--s-5); }
@media (min-width: 560px) { .form .row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: var(--s-2); min-width: 0; }
.field label { font-size: 1rem; font-weight: 600; }
.req { color: var(--blue); }
.field input, .field select { width: 100%; min-height: 52px; padding: 0 var(--s-4); border: 0; border-radius: var(--radius); background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink); font: 400 1.0625rem var(--font); appearance: none; transition: box-shadow .15s ease; }
.on-white .field input, .on-white .field select { background-color: var(--fill); box-shadow: none; }
.field input::placeholder { color: var(--ink-3); }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%230b0d24' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field input:focus, .field select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--error); }
.field .err { color: var(--error); font-size: var(--t-sm); }
.form-error { color: var(--error); font-size: 1rem; }
.fine { font-size: var(--t-sm); color: var(--ink-2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.success { display: grid; gap: var(--s-3); align-content: start; align-self: center; padding: var(--s-6) 0; }
.success h3 { font-size: var(--t-xl); }
.success p { color: var(--ink-2); }

/* ---------- Programme ---------- */
.programme .body { color: var(--ink-2); font-size: var(--t-lg); line-height: 1.5; max-width: 34rem; }
.programme .body + .body { margin-top: var(--s-4); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-5); padding: var(--s-5) 0; font-size: var(--t-lg); font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-weight: 400; font-size: 1.5rem; line-height: 1; color: var(--ink-2); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: var(--s-5); color: var(--ink-2); max-width: 40rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--midnight); color: var(--mist); padding: var(--s-9) 0 var(--s-6); }
.foot { display: grid; gap: var(--s-8); }
@media (min-width: 860px) { .foot { grid-template-columns: 1fr 1fr; align-items: end; } }
.foot h2 { color: var(--paper); font-size: var(--t-xl); margin-top: var(--s-5); max-width: 16ch; }
.newsletter { display: grid; gap: var(--s-3); }
.newsletter label { color: var(--paper); font-weight: 600; font-size: 1rem; }
.newsletter .inline { display: grid; grid-template-columns: 1fr auto; gap: var(--s-2); }
.newsletter input { width: 100%; min-width: 0; min-height: 52px; padding: 0 var(--s-4); border: 0; border-radius: var(--radius); background: #1a1d38; color: var(--paper); font: 400 1.0625rem var(--font); }
.newsletter input::placeholder { color: #8d93b0; }
.newsletter input:focus { outline: 2px solid var(--glow); outline-offset: 0; }
.newsletter input[aria-invalid="true"] { outline: 2px solid #ffb4ab; }
.newsletter .err, .newsletter .form-error { color: #ffb4ab; font-size: var(--t-sm); }
.newsletter a.community { color: var(--glow); font-size: 1rem; justify-self: start; padding: var(--s-2) 0; }
.newsletter-wrap .success h3 { color: var(--paper); }
.newsletter-wrap .success p { color: var(--mist); }
.legal { margin-top: var(--s-8); padding-top: var(--s-4); border-top: 1px solid #22253f; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-2) var(--s-5); font-size: var(--t-sm); }
.legal a { color: var(--mist); text-decoration: none; display: inline-block; padding: var(--s-3) 0; }
.legal a:hover { color: var(--paper); text-decoration: underline; }
.legal nav { display: flex; gap: var(--s-5); }

/* ---------- Prose pages ---------- */
.prose { max-width: 42rem; padding-top: var(--s-8); padding-bottom: var(--s-9); }
.prose h1 { font-size: var(--t-2xl); margin-bottom: var(--s-5); }
.prose h2 { font-size: var(--t-xl); margin: var(--s-7) 0 var(--s-3); }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: var(--s-3); }
.prose ul { padding-left: 1.2em; display: grid; gap: var(--s-2); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ---------- Accelerator page ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6) var(--s-5); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats dt { font-size: var(--t-sm); color: var(--ink-2); }
.stats dd { margin-top: var(--s-2); font-family: var(--display); font-weight: 500; font-size: var(--t-2xl); line-height: 1; font-variant-numeric: tabular-nums; }
.curriculum { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.curriculum li { display: grid; grid-template-columns: 6.5rem 1fr; gap: var(--s-4); padding: var(--s-5) 0; border-bottom: 1px solid var(--rule); }
.curriculum .d { font-size: var(--t-sm); font-weight: 600; color: var(--ink-2); padding-top: 0.3rem; }
.curriculum h3 { font-size: 1.75rem; }
.curriculum p { margin-top: var(--s-2); color: var(--ink-2); }
.price { font-family: var(--display); font-weight: 500; font-size: clamp(4rem, 9vw, 6.5rem); line-height: 1; margin-bottom: var(--s-5); font-variant-numeric: tabular-nums; }
