/* ==========================================================================
   SAEDI — site stylesheet
   Built from the "SAEDI website" design canvas (design/project/*.dc.html).
   Sections: tokens, base, layout, header, buttons, type, footer,
             home, how it works, for students, about, waitlist form, motion
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  color-scheme: light;

  --ink: #0E1424;
  --text: #2B3345;
  --muted: #4A5468;
  --muted-2: #5B6578;
  --faint: #A3ABBB;

  --line: #E3E6EC;
  --line-2: #E6E8EE;
  --line-3: #EEF0F4;

  --bg: #FFFFFF;
  --bg-soft: #F6F7F9;
  --bg-hover: #F3F5F8;
  --bg-tint: #F4F6FB;
  --bg-chip: #F1F3F6;
  --bg-photo: #E9ECF2;

  --blue: #1F4FE0;
  --blue-dark: #163BAD;
  --blue-tint: #EAF0FE;
  --blue-mid: #6A8CF0;
  --blue-pale: #DCE5FF;
  --blue-soft: #8FA8FF;

  --error: #B42318;

  --border-input: #C3C9D5;
  --border-ghost: #CDD2DC;
  --border-ghost-hover: #B7BECB;
  --border-ctl: #DDE1E8;

  --ftr-bg: #0B1120;
  --ftr-text: #E8ECF4;
  --ftr-muted: #A9B2C3;
  --ftr-line: #222C44;
  --ftr-soc: #2A3550;
  --ftr-soc-hover: #18213A;

  --font-body: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Martian Mono', ui-monospace, Menlo, monospace;
  --font-serif: 'Fraunces', Georgia, serif;

  --shadow-card: 0 1px 2px rgba(14, 20, 36, .04), 0 16px 40px -16px rgba(14, 20, 36, .18);
  --shadow-form: 0 1px 2px rgba(14, 20, 36, .04), 0 16px 40px -20px rgba(14, 20, 36, .16);
  --shadow-float: 0 1px 2px rgba(14, 20, 36, .04), 0 10px 28px -14px rgba(14, 20, 36, .16);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
svg { display: block; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }

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

/* --- Layout ------------------------------------------------------------- */
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

.sec { padding: 72px 0; }
.sec--soft { background: var(--bg-soft); }

@media (min-width: 768px) {
  .wrap { padding-left: 40px; padding-right: 40px; }
  .sec { padding: 112px 0; }
}

.sec.sec--flush-top { padding-top: 0; }

/* generic vertical stack; override gap with --gap */
.col { display: flex; flex-direction: column; gap: var(--gap, 16px); }
.col--start { align-items: flex-start; }

/* section heading block; override width with --w */
.sec__head { display: flex; flex-direction: column; gap: 16px; max-width: var(--w, 640px); }
.sec__bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }

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

/* --- Header ------------------------------------------------------------- */
.hdr {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.hdr__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-height: 64px; }

.wordmark {
  display: inline-flex; flex-direction: column; align-items: stretch; align-self: flex-start; gap: 2px;
  font-family: var(--font-serif); font-weight: 700;
  font-optical-sizing: none; font-variation-settings: 'opsz' 72;
  font-size: 24px; line-height: 1; letter-spacing: -.015em;
  color: var(--ink); text-decoration: none; padding: 8px 0;
}
.wordmark svg { width: 0; min-width: 100%; aspect-ratio: 500 / 90; height: auto; color: var(--blue); }
.wordmark .e { color: var(--blue); }
.wordmark__text { white-space: nowrap; }
.wordmark:hover { color: var(--ink); }
.hdr .wordmark { align-self: center; margin-right: auto; }

.nav { display: none; order: 5; flex-basis: 100%; flex-direction: column; padding: 4px 0 16px; }
.nav.is-open { display: flex; }
.nav a { color: var(--text); text-decoration: none; font-size: 16px; font-weight: 500; padding: 12px 8px; border-radius: 8px; }
.nav a:hover { color: var(--ink); background: var(--bg-hover); }
.nav a[aria-current="page"] { color: var(--blue); }

.menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--border-ctl); border-radius: 10px;
  background: #fff; color: var(--ink); cursor: pointer;
}
.menu-btn .ico-close { display: none; }
.menu-btn[aria-expanded="true"] .ico-open { display: none; }
.menu-btn[aria-expanded="true"] .ico-close { display: block; }

.hdr .btn { padding: 0 14px; font-size: 14px; }

@media (min-width: 920px) {
  .nav, .nav.is-open { display: flex; order: 0; flex-basis: auto; flex-direction: row; gap: 2px; padding: 0; margin-right: 12px; }
  .nav a { font-size: 15px; padding: 10px 12px; }
  .menu-btn { display: none; }
}

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 10px;
  border: 1px solid var(--blue); background: var(--blue); color: #fff;
  font: inherit; font-size: 15px; font-weight: 600; text-decoration: none;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn:disabled { opacity: .7; cursor: default; }

.btn--ghost { background: #fff; color: var(--ink); border-color: var(--border-ghost); }
.btn--ghost:hover { background: var(--bg-hover); border-color: var(--border-ghost-hover); color: var(--ink); }

.btn--white { background: #fff; color: var(--blue); border-color: #fff; }
.btn--white:hover { background: var(--blue-tint); border-color: var(--blue-tint); color: var(--blue-dark); }

.btn--lg { min-height: 52px; padding: 0 24px; font-size: 16px; }
.btn--block { width: 100%; }

.link-more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; font-size: 16px; text-decoration: none; }

/* --- Type --------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; color: var(--blue);
}
.eyebrow--light { color: var(--blue-pale); }

.mono-lbl {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}

.h2 { font-size: clamp(30px, 5vw, 46px); line-height: 1.08; letter-spacing: -.025em; font-weight: 700; text-wrap: balance; }
.lead { font-size: 18px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.lead--lg { font-size: 20px; }
.note { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* inner-page hero */
.page-hero { padding: 56px 0 72px; }
.page-hero--tight { padding-bottom: 24px; }
.page-hero__title { font-size: clamp(36px, 7vw, 64px); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; text-wrap: balance; max-width: 16ch; }
.page-hero__title--students { font-size: clamp(38px, 7.4vw, 72px); line-height: 1.02; max-width: 14ch; }
.page-hero__title--about { font-size: clamp(36px, 7vw, 68px); max-width: 18ch; }

/* --- Footer ------------------------------------------------------------- */
.ftr { background: var(--ftr-bg); color: var(--ftr-text); }
.ftr a { color: var(--ftr-text); text-decoration: none; }
.ftr a:hover { color: #fff; text-decoration: underline; }
.ftr__inner { padding-top: 64px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 48px; }
.ftr__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px 64px; }
.ftr__brand { display: flex; flex-direction: column; gap: 14px; max-width: 320px; }
.ftr .wordmark { color: #fff; padding: 0; }
.ftr .wordmark svg, .ftr .wordmark .e { color: var(--blue-soft); }
.ftr__tag { font-size: 18px; font-weight: 500; color: var(--ftr-text); }
.ftr a.ftr__mail { font-size: 15px; color: var(--ftr-muted); }
.ftr__nav { display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.ftr__nav a { padding: 8px 0; }
.ftr__soc { display: flex; gap: 10px; align-items: flex-start; }
.soc { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--ftr-soc); border-radius: 10px; }
.soc:hover { background: var(--ftr-soc-hover); }
.ftr__legal { border-top: 1px solid var(--ftr-line); padding-top: 24px; font-size: 14px; color: var(--ftr-muted); }

/* ==========================================================================
   HOME
   ========================================================================== */

/* --- Hero --------------------------------------------------------------- */
.hero { padding: 40px 0 72px; }
.hero__grid { display: grid; gap: 56px; align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; min-width: 0; }
.hero__title-block { display: flex; flex-direction: column; gap: 6px; }
.hero__tagline { font-size: clamp(30px, 5.4vw, 48px); line-height: 1.05; font-weight: 700; letter-spacing: -.03em; }
.hero__tagline em { font-style: normal; color: var(--blue); }
.hero__lead { max-width: 30ch; font-size: 20px; color: var(--text); }
.hero__fig { min-width: 0; }

@media (min-width: 960px) {
  .hero { padding: 96px 0 128px; }
  .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 72px; }
}

/* IDEAS → SAEDI letter flip */
.flip {
  display: flex;
  font-family: var(--font-mono); font-weight: 800;
  font-size: clamp(60px, 17vw, 148px); line-height: 1; letter-spacing: 0;
  color: var(--ink); perspective: 800px;
}
.flip .l { display: inline-block; width: 1ch; text-align: center; animation: turnA 1.3s cubic-bezier(.65, 0, .3, 1) .9s both; }
.flip.re .l { animation-name: turnB; animation-delay: .15s; }
.l1 { --dx: 4ch;  --dy: -.3em; }
.l2 { --dx: 2ch;  --dy: .22em; }
.l3 { --dx: 0ch;  --dy: 0em; }
.l4 { --dx: -2ch; --dy: -.22em; }
.l5 { --dx: -4ch; --dy: .3em; }

@keyframes turnA {
  0%   { transform: translate(0, 0) rotateY(0deg); color: var(--faint); }
  50%  { transform: translate(calc(var(--dx) / 2), var(--dy)) rotateY(180deg); color: var(--muted-2); }
  100% { transform: translate(var(--dx), 0) rotateY(360deg); color: var(--ink); }
}
@keyframes turnB {
  0%   { transform: translate(0, 0) rotateY(0deg); color: var(--faint); }
  50%  { transform: translate(calc(var(--dx) / 2), var(--dy)) rotateY(180deg); color: var(--muted-2); }
  100% { transform: translate(var(--dx), 0) rotateY(360deg); color: var(--ink); }
}

.flip-note { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.flip-note__text { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.replay {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px;
  border: 0; border-radius: 8px; background: transparent; color: var(--muted);
  font: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
}
.replay:hover { background: var(--bg-hover); color: var(--ink); }

/* --- Contribution record card (hero figure) ------------------------------ */
.panel { background: var(--bg-tint); border-radius: 24px; padding: clamp(16px, 4vw, 36px); }

.record {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-card); padding: 22px;
  display: flex; flex-direction: column; gap: 18px;
}
.record__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tag { font-size: 12px; font-weight: 600; color: var(--muted); border: 1px solid var(--border-ctl); border-radius: 999px; padding: 3px 10px; }
.record__room { display: flex; flex-direction: column; gap: 4px; }
.record__room-lbl { font-size: 13px; color: var(--muted); }
.record__room-name { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.record__list { display: flex; flex-direction: column; }
.record__item { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line-3); }
.record__task { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.record__task-name { font-size: 15px; font-weight: 500; }
.record__task-role { font-size: 13px; color: var(--muted); }
.record__foot { display: flex; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line-3); font-size: 13px; color: var(--muted); }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--blue); background: var(--blue-tint);
  border-radius: 999px; padding: 5px 10px;
}
.pill--muted { color: var(--muted); background: var(--bg-chip); }

/* --- The problem -------------------------------------------------------- */
.problems { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 40px; }
.problem { display: flex; flex-direction: column; gap: 12px; }
.problem__num { font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--blue); }
.problem h3 { font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.problem p { font-size: 16px; line-height: 1.6; color: var(--muted); }

/* --- The turnaround (animated flow) ------------------------------------- */
.flow {
  display: grid; gap: 28px;
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(20px, 4vw, 40px);
}
@media (min-width: 900px) {
  .flow { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
}
.flow__intro { display: flex; flex-direction: column; gap: 20px; }
.flow__head { display: flex; flex-direction: column; gap: 10px; }
.flow__title { font-size: clamp(24px, 3.4vw, 32px); line-height: 1.12; font-weight: 700; letter-spacing: -.02em; }

.stl { display: flex; flex-direction: column; gap: 4px; }
.st {
  display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 10px 14px;
  border-radius: 12px; font-size: 16px; font-weight: 500; color: var(--muted);
  animation: stHi 20s infinite;
}
.st .n {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 999px; border: 1.5px solid var(--border-input);
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--muted);
  animation: stN 20s infinite;
}
@keyframes stHi {
  0%, 19%    { background: var(--blue-tint); color: var(--ink); }
  20.5%, 100% { background: transparent; color: var(--muted); }
}
@keyframes stN {
  0%, 19%    { background: var(--blue); border-color: var(--blue); color: #fff; }
  20.5%, 100% { background: transparent; border-color: var(--border-input); color: var(--muted); }
}

.stagebox { position: relative; height: 430px; background: var(--bg-tint); border-radius: 18px; overflow: hidden; }
@media (min-width: 900px) { .stagebox { height: 400px; } }

.sc {
  position: absolute; top: 20px; right: 20px; bottom: 20px; left: 20px;
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
  opacity: 0; animation: scn 20s infinite;
}
@keyframes scn {
  0%    { opacity: 0; transform: translateY(10px); }
  2.5%  { opacity: 1; transform: none; }
  18.5% { opacity: 1; transform: none; }
  20.5% { opacity: 0; transform: translateY(-6px); }
  100%  { opacity: 0; }
}
.pop { opacity: 0; animation: pop 20s infinite; }
@keyframes pop {
  0%   { opacity: 0; transform: translateY(8px); }
  2%   { opacity: 1; transform: none; }
  17%  { opacity: 1; }
  18%  { opacity: 0; }
  100% { opacity: 0; }
}
.flow:hover .st, .flow:hover .st .n, .flow:hover .sc, .flow:hover .pop { animation-play-state: paused; }

.fcard { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: var(--shadow-float); }
.fcard--col { display: flex; flex-direction: column; gap: 12px; }
.fcard--col-lg { display: flex; flex-direction: column; gap: 14px; }
.fcard--bar { padding: 12px 16px; }
.fcard__row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.fcard__row--divided { padding-bottom: 10px; border-bottom: 1px solid var(--line-3); }
.fcard__title { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.fcard__title--sm { font-size: 15px; }
.fcard__title--md { font-size: 16px; }
.fcard__title--lg { font-size: 17px; }
.fcard__text { font-size: 14px; line-height: 1.55; color: var(--muted); }
.fcard__meta { font-size: 13px; color: var(--muted); padding-top: 10px; border-top: 1px solid var(--line-3); }
.fcard__line { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; padding-top: 10px; border-top: 1px solid var(--line-3); }
.fcard__line b { color: var(--blue); font-weight: 600; }

.badge { font-size: 12px; font-weight: 600; color: var(--blue); background: var(--blue-tint); border-radius: 999px; padding: 3px 10px; }
.badge--live { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #fff; background: var(--blue); padding: 4px 10px; }
.badge--live i { width: 6px; height: 6px; border-radius: 999px; background: #fff; }
.lock { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }

.room-head { display: flex; align-items: center; gap: 10px; }
.room-head__ico { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 10px; background: var(--blue); color: #fff; }
.room-head__text { display: flex; flex-direction: column; }
.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.role { border: 1px solid var(--blue); background: var(--blue-tint); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.role__name { font-size: 14px; font-weight: 600; }
.role__state { font-size: 12px; font-weight: 600; color: var(--blue); }
.role--open { border: 1px dashed var(--border-input); background: transparent; }
.role--open .role__state { font-weight: 400; color: var(--muted); }

.bub { display: flex; gap: 10px; align-items: flex-start; }
.av { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 999px; background: var(--blue-tint); color: var(--blue); font-size: 12px; font-weight: 700; }
.msg { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; font-size: 14px; line-height: 1.45; display: flex; flex-direction: column; gap: 2px; }
.msg small { font-size: 12px; color: var(--muted); font-weight: 500; }
.msg--me { align-self: flex-end; background: var(--blue); color: #fff; border-radius: 12px; padding: 8px 12px; font-size: 14px; line-height: 1.45; max-width: 80%; }

/* --- How it works (home summary) ---------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 40px 28px; }
.step { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 2px solid var(--line); }
.step--accent { border-top-color: var(--blue); }
.step__num { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--blue); }
.step h3 { font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.step p { font-size: 16px; line-height: 1.6; color: var(--muted); }

/* --- Who it's for ------------------------------------------------------- */
.who { display: grid; gap: 20px; }
@media (min-width: 860px) { .who { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.who__card { border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 20px; }
.who__card h3 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.who__card p { font-size: 17px; line-height: 1.6; color: var(--muted); }
.who__card--blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.who__card--blue p { color: var(--blue-pale); }

.checks { display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.5; }
.checks li { display: flex; gap: 10px; }
.checks svg { flex: none; margin-top: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 14px; font-weight: 500; color: var(--blue); background: var(--blue-tint); border-radius: 999px; padding: 6px 12px; }
.chip--outline { color: inherit; background: transparent; border: 1px solid rgba(255, 255, 255, .4); }

/* --- Waitlist section --------------------------------------------------- */
.wl { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .wl { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; } }

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */
.journey { padding: 40px 0 72px; }
.jstep { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 18px; padding: 32px 0; border-top: 1px solid var(--line); }
.jstep:last-child { border-bottom: 1px solid var(--line); }
.jstep__num {
  grid-row: span 3; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid var(--blue); color: var(--blue);
  font-family: var(--font-mono); font-size: 14px; font-weight: 700;
}
.jstep__num--fill { background: var(--blue); color: #fff; }
.jstep__body { display: flex; flex-direction: column; gap: 10px; }
.jstep h2 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.jstep__text { font-size: 17px; line-height: 1.6; color: var(--text); }
.jstep__sub { font-size: 15px; line-height: 1.55; color: var(--muted); }
.jstep__list { display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.jstep__list strong { color: var(--ink); font-weight: 600; }
.phase { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

@media (min-width: 860px) {
  .jstep { grid-template-columns: 64px minmax(0, .9fr) minmax(0, 1.1fr); gap: 0 40px; padding: 40px 0; }
  .jstep__num { grid-row: auto; width: 52px; height: 52px; }
}

.faqgrid { display: grid; gap: 32px; }
@media (min-width: 960px) { .faqgrid { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 72px; } }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 16px 0; font-size: 18px; font-weight: 600; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq .pm { flex: none; transition: transform .2s ease; }
.faq details[open] .pm { transform: rotate(45deg); }
.faq .ans { padding: 0 0 24px; font-size: 16px; line-height: 1.65; color: var(--muted); max-width: 68ch; }

.cta { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }

/* ==========================================================================
   FOR STUDENTS
   ========================================================================== */
.gcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 16px; }
.gcard { display: flex; flex-direction: column; gap: 14px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.gcard h3 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.gcard p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: var(--blue-tint); color: var(--blue); }

.campus { display: grid; gap: 20px; }
@media (min-width: 960px) { .campus { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
.campus__side { display: flex; flex-direction: column; gap: 20px; }
.campus__side .card { flex: 1; }

.card { border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { font-size: 21px; font-weight: 700; letter-spacing: -.015em; }
.card p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.card--lg { padding: clamp(24px, 4vw, 40px); gap: 20px; }
.card--lg h3 { font-size: 26px; letter-spacing: -.02em; }
.card--lg p { font-size: 17px; }

.sprint__top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.sprint__len { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--blue); }
.sprint__plan { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.weeks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.weeks__bar span { height: 8px; border-radius: 4px; background: var(--blue-mid); }
.weeks__bar span:first-child { background: var(--blue); }
.weeks__bar span:last-child { background: var(--ink); }
.weeks__labels { font-size: 14px; line-height: 1.4; color: var(--muted); }
.weeks__labels li { display: flex; flex-direction: column; gap: 2px; }
.weeks__labels strong { color: var(--ink); font-weight: 600; }

.sec--banner { padding: 0 0 72px; }
.banner {
  background: var(--blue); color: #fff; border-radius: 24px; padding: clamp(28px, 6vw, 64px);
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px;
}
.banner__copy { display: flex; flex-direction: column; gap: 16px; max-width: 600px; }
.banner h2 { font-size: clamp(30px, 5vw, 44px); line-height: 1.08; letter-spacing: -.025em; font-weight: 700; }
.banner p { font-size: 18px; line-height: 1.55; color: var(--blue-pale); }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.founder { display: grid; gap: 36px; align-items: center; }
@media (min-width: 860px) { .founder { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; } }
.founder__fig { display: flex; flex-direction: column; gap: 12px; }
.founder__photo {
  aspect-ratio: 4 / 5; width: 100%; max-width: 420px; border-radius: 20px;
  background: var(--bg-photo); border: 1.5px dashed var(--border-ghost-hover);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--muted);
  overflow: hidden;
}
.founder__photo span { font-size: 14px; font-weight: 600; }
.founder__photo img { width: 100%; height: 100%; object-fit: cover; }
.founder__copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.founder__name { display: flex; flex-direction: column; gap: 6px; }
.founder__role { font-size: 17px; color: var(--muted); }
.founder__bio { font-size: 18px; line-height: 1.65; color: var(--text); max-width: 56ch; }

.stage { display: grid; gap: 40px; }
@media (min-width: 960px) { .stage { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; } }
.stage__lead { font-size: 20px; line-height: 1.55; color: var(--ink); font-weight: 500; }
.stage__text { font-size: 17px; line-height: 1.65; color: var(--muted); }
.stage__actions { padding-top: 8px; }

.sec--contact { padding: 0 0 96px; }
.contact { border-top: 1px solid var(--line); padding-top: 48px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.contact__copy { display: flex; flex-direction: column; gap: 12px; }
.contact h2 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.contact p { font-size: 17px; line-height: 1.6; color: var(--muted); }
.contact__mail {
  font-size: clamp(22px, 4vw, 34px); font-weight: 600; letter-spacing: -.02em;
  text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px;
  overflow-wrap: anywhere;
}

/* ==========================================================================
   WAITLIST FORM (shared component)
   ========================================================================== */
.wl-form {
  color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(20px, 4vw, 36px); width: 100%; box-shadow: var(--shadow-form);
}
.wl-form form { display: flex; flex-direction: column; gap: 22px; }
.wl-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 18px; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--muted-2); }
.input {
  font: inherit; font-size: 16px; color: var(--ink); height: 48px; padding: 0 14px;
  border: 1px solid var(--border-input); border-radius: 10px; background: #fff; width: 100%;
}
.input::placeholder { color: var(--muted-2); opacity: 1; }

.wl-form fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.wl-form legend { font-size: 14px; font-weight: 600; padding: 0; margin-bottom: 10px; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 10px; }
.choice {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 14px;
  border-radius: 12px; border: 1.5px solid var(--border-input); background: #fff;
  font-size: 15px; font-weight: 500; cursor: pointer;
}
.choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); flex: none; }
.choice.is-selected, .choice:has(input:checked) { border-color: var(--blue); background: var(--blue-tint); }

/* honeypot: off-screen, never shown to people */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.wl-form__submit { display: flex; flex-direction: column; gap: 12px; }
.wl-form__fine { font-size: 13px; line-height: 1.5; color: var(--muted-2); text-align: center; }
.wl-form__error { font-size: 14px; line-height: 1.5; color: var(--error); }
.wl-form__error a { color: inherit; }

.wl-form__done { display: none; flex-direction: column; align-items: flex-start; gap: 16px; padding: 12px 0; }
.wl-form.is-done form { display: none; }
.wl-form.is-done .wl-form__done { display: flex; }
.wl-form__check { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 999px; background: var(--blue-tint); color: var(--blue); }
.wl-form__done h3 { font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
.wl-form__done p { font-size: 17px; line-height: 1.6; color: var(--muted); }
.wl-form__done strong { color: var(--ink); font-weight: 600; }

/* ==========================================================================
   MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flip .l { animation: none !important; transform: translateX(var(--dx)); color: var(--ink); }
  .replay { display: none; }
  .st, .st .n { animation: none; }
  .stagebox { height: auto; display: flex; flex-direction: column; gap: 20px; padding: 20px; }
  .sc { position: static; opacity: 1; animation: none; }
  .pop { opacity: 1; animation: none; }
  .faq .pm { transition: none; }
}
