/*
  Elyndo website — one stylesheet for every page.
  Brand roles follow the app's Theme tokens: Midnight (identity, dark surfaces), Jade (actions,
  selection), Mint (hero moments), Canvas (light workspace), Amber (attention). Text colors are
  the app's AA-tuned text roles, so body copy keeps at least 4.5:1 in light and dark.
  Motion is progressive: content is fully visible without JavaScript, and every animation has a
  reduced-motion fallback.
*/

/* ---------- Tokens ---------- */

:root {
  color-scheme: light dark;

  --midnight: #172b36;
  --midnight-deep: #0f1d25;
  --jade: #377e80;
  --jade-text: #2f6f71;
  --mint: #80e1ce;
  --amber: #e9b779;
  --amber-text: #8a5a14;
  --canvas: #f5f4ef;

  --bg: var(--canvas);
  --bg-alt: #edece5;
  --surface: #ffffff;
  --surface-sunken: #ecebe4;
  --text: #172b36;
  --text-2: #4f5f66;
  --text-3: #5d6a70;
  --accent: var(--jade);
  --accent-text: var(--jade-text);
  --accent-soft: rgb(55 126 128 / 0.11);
  --on-accent: #ffffff;
  --border: rgb(23 43 54 / 0.14);
  --separator: rgb(23 43 54 / 0.09);
  --shadow: 0 1px 2px rgb(23 43 54 / 0.06), 0 8px 24px rgb(23 43 54 / 0.08);
  --shadow-lifted: 0 2px 6px rgb(23 43 54 / 0.08), 0 24px 60px rgb(23 43 54 / 0.14);
  --success: #2f7d61;
  --warning-text: #8a5205;
  --found: color-mix(in srgb, var(--mint) 45%, transparent);

  /* Course tag colors for the demos (dot + readable text on a soft wash). */
  --c-bio: #2f8a5f;  --c-bio-wash: rgb(47 138 95 / 0.13);
  --c-eng: #3f6fb8;  --c-eng-wash: rgb(63 111 184 / 0.13);
  --c-nurs: #c2504a; --c-nurs-wash: rgb(194 80 74 / 0.12);
  --c-psy: #9a6418;  --c-psy-wash: rgb(233 183 121 / 0.28);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 18px;
  --radius-xl: 28px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;
  --space-9: 112px;

  --content: 1120px;
  --prose: 680px;
  --gutter: clamp(16px, 4vw, 32px);

  /* Motion: calm, quick, never bouncy enough to distract. */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --spring: cubic-bezier(0.34, 1.32, 0.64, 1);
  --t-fast: 160ms;
  --t-base: 320ms;
  --t-slow: 640ms;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1d25;
    --bg-alt: #13252f;
    --surface: #172b36;
    --surface-sunken: #122530;
    --text: #edf2f1;
    --text-2: #b3c1c3;
    --text-3: #9fb0b3;
    --accent: #5db8ae;
    --accent-text: #6cc6bc;
    --accent-soft: rgb(93 184 174 / 0.16);
    --on-accent: #0f1d25;
    --border: rgb(255 255 255 / 0.14);
    --separator: rgb(255 255 255 / 0.08);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.3);
    --shadow-lifted: 0 2px 6px rgb(0 0 0 / 0.35), 0 24px 60px rgb(0 0 0 / 0.45);
    --success: #5fc59a;
    --found: color-mix(in srgb, var(--mint) 26%, transparent);
    --warning-text: #e9b779;
    --amber-text: #e9b779;

    --c-bio: #6fd0a0;  --c-bio-wash: rgb(111 208 160 / 0.14);
    --c-eng: #8fb3ef;  --c-eng-wash: rgb(143 179 239 / 0.14);
    --c-nurs: #f09189; --c-nurs-wash: rgb(240 145 137 / 0.14);
    --c-psy: #e9b779;  --c-psy-wash: rgb(233 183 121 / 0.16);
  }
}

/* Cross-document view transitions between the site's pages (progressive enhancement). */
@view-transition { navigation: auto; }

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 260ms;
  animation-timing-function: var(--ease-out);
}

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

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a {
  color: var(--accent-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.12;
  letter-spacing: -0.022em;
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 650; letter-spacing: -0.012em; }
p { margin: 0 0 var(--space-4); text-wrap: pretty; }

.lede { font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--text-2); line-height: 1.45; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: var(--space-3);
}
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.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: var(--space-4); top: -100px;
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-s);
  box-shadow: var(--shadow);
}
.skip-link:focus { top: var(--space-4); }

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

section { position: relative; }
.section { padding-block: clamp(64px, 10vw, var(--space-9)); }
.section--alt { background: var(--bg-alt); }
.section--dark {
  background: radial-gradient(120% 120% at 15% 0%, #23434f 0%, var(--midnight) 45%, var(--midnight-deep) 100%);
  color: #edf2f1;
  --text: #edf2f1;
  --text-2: #b3c1c3;
  --text-3: #9fb0b3;
  --accent: #5db8ae;
  --accent-text: #80e1ce;
  --accent-soft: rgb(128 225 206 / 0.14);
  --on-accent: #0f1d25;
  --surface: #1b3340;
  --surface-sunken: #142a35;
  --border: rgb(255 255 255 / 0.14);
  --separator: rgb(255 255 255 / 0.08);
}

.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base) var(--ease-out), background var(--t-base) var(--ease-out);
}
.site-header.is-scrolled { border-bottom-color: var(--separator); }

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 1px 2px rgb(0 0 0 / 0.15); }
@media (prefers-color-scheme: dark) { .brand img, .closing-icon { box-shadow: 0 0 0 1px rgb(255 255 255 / 0.14), 0 1px 2px rgb(0 0 0 / 0.4); } }
.nav-links {
  display: flex;
  gap: var(--space-5);
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}
.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 2px;
  transition: color var(--t-fast) var(--ease-out);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-cta { margin-left: var(--space-2); }

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.menu-toggle svg { margin: auto; overflow: visible; }
.menu-toggle path { transform-box: fill-box; transform-origin: center; transition: transform var(--t-base) var(--ease-out); }
.menu-open .menu-toggle .bar-1 { transform: translateY(3px) rotate(45deg); }
.menu-open .menu-toggle .bar-2 { transform: translateY(-3px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-toggle { display: grid; }
  .nav .nav-cta { display: none; }
  .nav-links {
    position: absolute;
    inset: 64px 0 auto 0;
    flex-direction: column;
    gap: 0;
    padding: var(--space-2) var(--gutter) var(--space-5);
    background: var(--bg);
    border-bottom: 1px solid var(--separator);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    visibility: hidden;
    transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out), visibility 0s linear var(--t-base);
  }
  .nav-links a { display: block; padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--separator); }
  .site-header.menu-open .nav-links {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    visibility: visible;
    transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out), visibility 0s;
  }
}

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

.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--on-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 1rem/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-base) var(--ease-out), background var(--t-fast) var(--ease-out);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.12), 0 6px 18px color-mix(in srgb, var(--btn-bg) 32%, transparent);
}
.btn:hover { transform: translateY(-1px); text-decoration: none; box-shadow: 0 2px 4px rgb(0 0 0 / 0.14), 0 10px 26px color-mix(in srgb, var(--btn-bg) 40%, transparent); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--secondary { --btn-bg: var(--accent-soft); --btn-fg: var(--accent-text); box-shadow: none; }
.btn--secondary:hover { box-shadow: none; background: color-mix(in srgb, var(--accent) 20%, transparent); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--text-3); }
.btn--small { min-height: 36px; padding: 6px 14px; font-size: 0.92rem; }
/* Pre-launch status; replaced by Apple's official badge at launch. */
.launch-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 600;
}

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }

/* ---------- Cards ---------- */

.card {
  background: var(--surface);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
  padding: var(--space-5);
}
.card--flat { box-shadow: none; border: 1px solid var(--border); }

.grid { display: grid; gap: var(--space-5); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); align-items: center; gap: clamp(32px, 6vw, 72px); }

.icon-badge {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-text);
  margin-bottom: var(--space-4);
}

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

.hero {
  padding-block: clamp(40px, 7vw, 88px) clamp(56px, 8vw, 104px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 70vw; height: 70vw;
  max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--mint) 34%, transparent), transparent 70%);
  filter: blur(10px);
  opacity: 0.7;
  pointer-events: none;
  z-index: -1;
}
.hero-copy { max-width: 960px; margin-bottom: clamp(32px, 5vw, 56px); }
.hero h1 .second { display: block; color: var(--text-2); }
.hero .lede { max-width: 640px; }
.hero-meta { margin-top: var(--space-4); color: var(--text-3); font-size: 0.92rem; }

/* The interactive "syllabus becomes a plan" stage. */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.38fr);
  gap: clamp(16px, 3vw, 32px);
  align-items: start;
  position: relative;
}
@media (max-width: 900px) { .stage { grid-template-columns: minmax(0, 1fr); } }
.stage > * { min-width: 0; }

.doc {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-lifted);
  padding: var(--space-5) var(--space-5) var(--space-6);
  overflow: hidden;
  transform-origin: 50% 0;
}
.doc-head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); }
.doc-file {
  display: grid; place-items: center;
  width: 36px; height: 44px;
  border-radius: 6px;
  background: var(--surface-sunken);
  color: var(--text-3);
  font: 700 0.6rem/1 var(--mono);
  letter-spacing: 0.04em;
}
.doc-title { font-weight: 650; font-size: 1rem; line-height: 1.25; }
.doc-sub { font-size: 0.82rem; color: var(--text-3); }
.doc-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.doc-line {
  position: relative;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--text-2);
  transition: background var(--t-base) var(--ease-out), color var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}
.doc-line.is-filler { color: var(--text-3); }
.doc-line mark {
  background: none;
  color: inherit;
  border-radius: 4px;
  transition: background var(--t-base) var(--ease-out), color var(--t-base) var(--ease-out);
}
.doc-line.is-found { color: var(--text); }
.doc-line.is-found mark { background: var(--found); color: var(--text); }
.doc-line.is-linked { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); color: var(--text); }

.scanline {
  position: absolute;
  left: 0; right: 0;
  top: 0;
  height: 56px;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--mint) 35%, transparent) 70%, color-mix(in srgb, var(--accent) 55%, transparent));
  border-bottom: 2px solid var(--accent);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-60px);
}

.plan {
  background: var(--surface);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-lifted);
  padding: var(--space-4);
}
.plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-1) var(--space-2) var(--space-3);
}
.plan-title { font-weight: 650; }
.plan-status {
  line-height: 1.45;
  min-height: 2.9em;
  margin: 0 var(--space-2) var(--space-3);
  font-size: 0.92rem;
  color: var(--text-2);
}
.week {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.day {
  background: var(--surface-sunken);
  border-radius: var(--radius-m);
  padding: 8px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.day.is-today { background: color-mix(in srgb, var(--accent) 12%, var(--surface-sunken)); }
.day-name { font-size: 0.72rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.day-date { font-size: 1.05rem; font-weight: 650; margin-bottom: 2px; }
.day.is-today .day-name { color: var(--accent-text); }
.day-tasks { display: flex; flex-direction: column; gap: 6px; }

/* Phones: days stack as rows so every task lands on screen. */
@media (max-width: 560px) {
  .week { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .day { min-height: 0; flex-direction: row; align-items: flex-start; gap: 10px; }
  .day-label { flex: 0 0 34px; }
  .day-tasks { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc { padding: var(--space-4); }
  .doc-line.is-filler { display: none; }
  .plan-status { min-height: 5.8em; }
}

.chip {
  --c: var(--accent);
  --wash: var(--accent-soft);
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 10px;
  padding: 7px 8px 8px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.06), inset 3px 0 0 var(--c);
  color: var(--text);
  font: 500 0.8rem/1.25 var(--font);
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-base) var(--ease-out), opacity var(--t-base) var(--ease-out);
}
.chip:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgb(0 0 0 / 0.1), inset 3px 0 0 var(--c); }
.chip[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--c), 0 3px 10px rgb(0 0 0 / 0.1), inset 3px 0 0 var(--c); }
.chip-meta { display: flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 0.7rem; color: var(--text-2); }
.chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; }
.chip.is-pending { opacity: 0; }
.chip--bio { --c: var(--c-bio); --wash: var(--c-bio-wash); }
.chip--eng { --c: var(--c-eng); --wash: var(--c-eng-wash); }
.chip--nurs { --c: var(--c-nurs); --wash: var(--c-nurs-wash); }
.chip--psy { --c: var(--c-psy); --wash: var(--c-psy-wash); }
.chip-kind { font-weight: 650; }

.flying {
  position: absolute;
  z-index: 60;
  margin: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.stage-controls { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-top: var(--space-4); }
.stage-hint { font-size: 0.88rem; color: var(--text-3); }

/* ---------- Story steps ---------- */

.steps { counter-reset: step; }
.step { position: relative; }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font: 700 0.95rem/1 var(--mono);
  margin-bottom: var(--space-3);
}
.step p { color: var(--text-2); }

/* Mini illustrations inside the step cards. */
.mini { margin-top: var(--space-4); border-radius: var(--radius-m); background: var(--surface-sunken); padding: var(--space-3); min-height: 132px; }
.mini-row { height: 9px; border-radius: 5px; background: color-mix(in srgb, var(--text-3) 30%, transparent); margin: 9px 0; }
.mini-row.hl { background: color-mix(in srgb, var(--mint) 70%, transparent); }
.mini-row.w60 { width: 60%; } .mini-row.w80 { width: 80%; } .mini-row.w45 { width: 45%; } .mini-row.w70 { width: 70%; }
.mini-course { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 10px; background: var(--surface); margin-bottom: 6px; font-size: 0.8rem; font-weight: 600; }
.mini-course .bar { flex: 1; height: 6px; border-radius: 3px; background: var(--surface-sunken); overflow: hidden; }
.mini-course .bar i { display: block; height: 100%; width: var(--w, 40%); background: var(--c, var(--accent)); border-radius: inherit; transform-origin: left; }
.mini-check { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: var(--surface); margin-bottom: 6px; font-size: 0.8rem; }
.mini-check .box { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--border); display: grid; place-items: center; flex: none; }
.mini-check.done .box { background: var(--success); border-color: var(--success); }
.mini-check.done .box::after { content: ""; width: 8px; height: 4px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.mini-check.done span { color: var(--text-3); text-decoration: line-through; }

/* ---------- Feature rows ---------- */

.feature-copy h2 { margin-bottom: var(--space-4); }
.feature-copy .lede { margin-bottom: var(--space-5); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.checks li { position: relative; padding-left: 30px; color: var(--text-2); }
.checks li::before {
  content: "";
  position: absolute; left: 0; top: 0.3em;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.5' fill='none' stroke='%23377e80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat;
}
.section--dark .checks li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.5' fill='none' stroke='%2380e1ce' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.checks strong { color: var(--text); font-weight: 600; }

/* Today demo */
.today-demo { padding: var(--space-4); }
.today-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-3); }
.today-head h3 { margin: 0; font-size: 1.15rem; }
.today-left { font-size: 0.85rem; color: var(--text-2); }
.capacity { height: 8px; border-radius: 4px; background: var(--surface-sunken); overflow: hidden; margin-bottom: var(--space-3); }
.capacity i {
  display: block; height: 100%;
  width: var(--fill, 50%);
  background: var(--accent);
  border-radius: inherit;
  transition: width var(--t-slow) var(--ease-out), background var(--t-base) var(--ease-out);
}
.capacity.is-over i { background: var(--amber); }
.notice {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-3);
  border-radius: var(--radius-m);
  border: 1px solid color-mix(in srgb, var(--amber) 55%, transparent);
  background: color-mix(in srgb, var(--amber) 10%, var(--surface));
  margin-bottom: var(--space-3);
  font-size: 0.92rem;
  transition: border-color var(--t-base) var(--ease-out), background var(--t-base) var(--ease-out);
}
.notice.is-calm { border-color: color-mix(in srgb, var(--accent) 35%, transparent); background: var(--accent-soft); }
.notice p { margin: 0 0 var(--space-2); color: var(--text); }
.notice .icon { flex: none; width: 22px; height: 22px; color: var(--amber-text); margin-top: 1px; }
.notice.is-calm .icon { color: var(--accent-text); }
.task-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.task {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--separator);
  font-size: 0.92rem;
  transition: transform var(--t-slow) var(--ease-out), opacity var(--t-base) var(--ease-out);
}
.task .box { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--border); flex: none; }
.task .est { margin-left: auto; font: 500 0.8rem/1 var(--mono); color: var(--text-2); background: var(--surface-sunken); padding: 4px 7px; border-radius: 999px; }
.task .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--accent)); flex: none; }
.task.is-leaving { opacity: 0; transform: translateX(40px); }
.later { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px dashed var(--border); }
.later h4 { font-size: 0.78rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); margin-bottom: var(--space-2); }
.later .task { opacity: 0.85; }

/* Focus demo */
.focus-demo { display: grid; place-items: center; gap: var(--space-4); padding: var(--space-6) var(--space-5); text-align: center; }
.ring { position: relative; width: min(260px, 70vw); aspect-ratio: 1; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring .track { stroke: var(--surface-sunken); }
.ring .progress { stroke: var(--mint); stroke-linecap: round; }
.ring-inner { position: absolute; inset: 0; display: grid; place-content: center; gap: 4px; }
.ring-label { font-size: 0.72rem; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.ring-time { font: 600 clamp(2.4rem, 7vw, 3.4rem)/1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.ring-task { font-size: 0.9rem; color: var(--text-2); }

/* Semester map */
.semester { padding: var(--space-5); }
.weeks {
  display: grid;
  grid-template-columns: repeat(15, minmax(0, 1fr));
  align-items: end;
  gap: 6px;
  height: 220px;
  margin-top: var(--space-4);
}
.wk { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.wk-bar {
  display: block;
  border: 0;
  padding: 0;
  cursor: pointer;
  width: 100%;
  height: var(--h, 30%);
  border-radius: 6px 6px 3px 3px;
  background: color-mix(in srgb, var(--accent) 70%, transparent);
  transform-origin: bottom;
  transition: transform var(--t-slow) var(--ease-out), background var(--t-fast) var(--ease-out);
  position: relative;
}
.wk-bar.is-heavy { background: var(--amber); }
.wk-bar:hover, .wk-bar:focus-visible { background: var(--accent); }
.wk-bar.is-heavy:hover, .wk-bar.is-heavy:focus-visible { background: #d9a061; }
.wk-num { font: 500 0.68rem/1 var(--mono); color: var(--text-3); }
.semester-note { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-4); font-size: 0.85rem; color: var(--text-2); }
.legend { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: color-mix(in srgb, var(--accent) 70%, transparent); }
.legend i.heavy { background: var(--amber); }
.semester-detail { min-height: 1.6em; margin-top: var(--space-3); font-size: 0.95rem; color: var(--text); }
@media (max-width: 560px) { .weeks { gap: 3px; height: 180px; } .wk-num { font-size: 0.58rem; } }

/* Devices: real screens in light or dark, following the visitor's appearance. */
.devices {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(20px, 3.5vw, 44px);
  margin: 0;
}
.device { text-align: center; margin: 0; }
.device-frame {
  margin: 0 auto var(--space-4);
  background: linear-gradient(160deg, #2b4855, #13252f);
  box-shadow: var(--shadow-lifted);
  padding: 8px;
  position: relative;
  transition: transform var(--t-slow) var(--ease-out);
}
.device-frame .screen { display: block; width: 100%; height: auto; background: var(--canvas); }
.device:hover .device-frame { transform: translateY(-4px); }
.device--phone .device-frame { width: clamp(170px, 17vw, 220px); border-radius: 34px; }
.device--phone .screen { border-radius: 27px; }
.device--pad .device-frame { width: clamp(250px, 27vw, 340px); border-radius: 24px; padding: 10px; }
.device--pad .screen { border-radius: 14px; }
.device--mac .device-frame { width: clamp(300px, 36vw, 460px); border-radius: 14px 14px 4px 4px; padding: 9px 9px 12px; }
.device--mac .device-frame::after {
  content: "";
  position: absolute;
  left: -9%; right: -9%; bottom: -12px;
  height: 12px;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(#cfd5d6, #9aa4a7);
}
.device--mac .screen { border-radius: 5px; }
@media (max-width: 860px) {
  .devices { flex-direction: column; align-items: center; gap: var(--space-7); }
  .device--phone .device-frame { width: 220px; }
  .device--pad .device-frame { width: min(340px, 86vw); }
  .device--mac .device-frame { width: min(460px, 84vw); }
}
@media (prefers-reduced-motion: reduce) { .device:hover .device-frame { transform: none; } }
.device h3 { font-size: 1.05rem; margin-bottom: var(--space-1); }
.device p { font-size: 0.92rem; color: var(--text-2); max-width: 300px; margin-inline: auto; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: var(--space-4); }
.price-card { display: flex; flex-direction: column; gap: var(--space-2); }
.price-card .big { font: 700 2.2rem/1.1 var(--font-display); letter-spacing: -0.03em; }
.price-card .big small { font-size: 1rem; font-weight: 600; color: var(--text-2); letter-spacing: 0; }
.price-card p { color: var(--text-2); margin: 0; }
.price-note { margin-top: var(--space-4); font-size: 0.9rem; color: var(--text-3); }

/* Trust / privacy */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--space-4); }
.trust .card { background: var(--surface); }
.trust h3 { font-size: 1.08rem; }
.trust p { font-size: 0.95rem; color: var(--text-2); margin: 0; }

/* Accessibility strip */
.a11y { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--separator);
  font-size: 0.92rem;
}

/* FAQ / disclosure */
.faq { display: grid; gap: var(--space-2); }
.faq details {
  background: var(--surface);
  border-radius: var(--radius-m);
  box-shadow: 0 0 0 1px var(--separator);
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: var(--space-4) var(--space-5);
  font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 10px; height: 10px; flex: none;
  border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--t-base) var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq .answer { padding: 0 var(--space-5) var(--space-4); color: var(--text-2); }
/* Smooth disclosure where the browser can animate to auto height. */
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size var(--t-base) var(--ease-out), content-visibility var(--t-base) allow-discrete;
  }
  .faq details[open]::details-content { block-size: auto; }
}
.faq .answer p:last-child { margin-bottom: 0; }

/* Closing band */
.closing { text-align: center; }
.closing h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.closing .lede { margin-inline: auto; max-width: 560px; margin-bottom: var(--space-6); }
.closing .cta-row { justify-content: center; }
.closing-icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto var(--space-5); box-shadow: 0 18px 50px rgb(0 0 0 / 0.4); }

/* ---------- Content pages ---------- */

.page-hero { padding-block: clamp(48px, 8vw, 96px) clamp(24px, 4vw, 40px); }
.page-hero .lede { max-width: 640px; }
.page-body { padding-bottom: clamp(64px, 10vw, 112px); }
.page-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .page-layout { grid-template-columns: 1fr; } }
.toc {
  position: sticky; top: 88px;
  font-size: 0.92rem;
}
.toc h2 { font-size: 0.78rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-bottom: var(--space-3); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--text-2); text-decoration: none; transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out); }
.toc a:hover { background: var(--accent-soft); color: var(--text); }
.toc a.is-current { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
@media (max-width: 860px) {
  .toc { position: static; }
  .toc ol {
    display: flex; gap: 6px;
    overflow-x: auto; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px;
    scroll-padding-inline: var(--gutter);
  }
  .toc ol::-webkit-scrollbar { display: none; }
  .toc a { white-space: nowrap; background: var(--surface); box-shadow: 0 0 0 1px var(--separator); }
}

.article h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: var(--space-7); padding-top: var(--space-2); }
.article h2:first-child { margin-top: 0; }
.article h3 { margin-top: var(--space-5); }
.article p, .article li { color: var(--text-2); }
.article strong { color: var(--text); }
.article ul, .article ol { padding-left: 1.25em; margin: 0 0 var(--space-4); }
.article li { margin-bottom: var(--space-2); }
.article kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--surface);
  box-shadow: inset 0 -1px 0 var(--border), 0 0 0 1px var(--border);
  font: 500 0.85em/1.5 var(--mono);
  color: var(--text);
  text-align: center;
}
.article table { width: 100%; border-collapse: collapse; margin: 0 0 var(--space-5); font-size: 0.95rem; }
.article th, .article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--separator); vertical-align: top; }
.article th { color: var(--text); font-weight: 600; }
.article td { color: var(--text-2); }

.callout {
  display: flex; gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-m);
  background: var(--accent-soft);
  margin: 0 0 var(--space-5);
}
.callout p { margin: 0; color: var(--text); }
.callout--draft { background: color-mix(in srgb, var(--amber) 16%, var(--surface)); border: 1px solid color-mix(in srgb, var(--amber) 60%, transparent); }
.todo {
  background: color-mix(in srgb, var(--amber) 22%, transparent);
  color: var(--text);
  border-radius: 4px;
  padding: 0 4px;
  font-weight: 600;
}

.help-search {
  position: relative;
  max-width: 520px;
  margin-top: var(--space-5);
}
.help-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.help-search input {
  width: 100%;
  min-height: 48px;
  padding: 10px 16px 10px 44px;
  border: 0;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--border), var(--shadow);
  color: var(--text);
  font: 400 1rem/1.3 var(--font);
  transition: box-shadow var(--t-fast) var(--ease-out);
}
.help-search input::placeholder { color: var(--text-3); }
.help-search input:focus { outline: none; box-shadow: 0 0 0 3px var(--accent), var(--shadow); }
.help-filter-status { min-height: 1.5em; margin: var(--space-2) 0 0; font-size: 0.9rem; color: var(--text-3); }
.topic { scroll-margin-top: 88px; }
.topic[hidden] { display: none; }
.article .topic:first-child h2, .article .callout + h2 { margin-top: 0; }
.js .topic.is-entering { animation: topic-in var(--t-base) var(--ease-out); }
@keyframes topic-in { from { opacity: 0; transform: translateY(6px); } }
.toc li[hidden] { display: none; }
.help-empty { padding: var(--space-5); border-radius: var(--radius-m); background: var(--surface); box-shadow: 0 0 0 1px var(--separator); }
mark.hit { background: color-mix(in srgb, var(--mint) 55%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }

.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: var(--space-3); margin: 0 0 var(--space-5); }
.swatch { display: grid; gap: 2px; font-size: 0.88rem; }
.swatch span { height: 64px; border-radius: var(--radius-m); box-shadow: inset 0 0 0 1px var(--border); margin-bottom: var(--space-2); }
.swatch strong { color: var(--text); }
.swatch code { font-family: var(--mono); color: var(--text-2); font-size: 0.82rem; }

.contact-card { display: grid; gap: var(--space-2); }
.contact-card .btn { justify-self: start; margin-top: var(--space-2); }

.team-values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--space-4); margin: var(--space-5) 0; }

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

.site-footer { padding-block: var(--space-7) var(--space-6); border-top: 1px solid var(--separator); font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--space-5); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer-brand p { color: var(--text-2); max-width: 320px; margin-top: var(--space-3); }
.site-footer h2 { font-size: 0.78rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-bottom: var(--space-3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.site-footer .brand { color: var(--text); }
.site-footer .brand:hover { text-decoration: none; }
.footer-legal { margin-top: var(--space-6); color: var(--text-3); font-size: 0.82rem; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }

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

/* Reveal on scroll: only when JavaScript has marked the page ready, so content never stays hidden. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-scale { opacity: 0; transform: scale(0.96) translateY(14px); transition: opacity var(--t-slow) var(--ease-out), transform 800ms var(--ease-out); }
.js .reveal-scale.is-visible { opacity: 1; transform: none; }

.js .grow .wk-bar { transform: scaleY(0.04); }
.js .grow.is-visible .wk-bar { transform: scaleY(1); transition-delay: calc(var(--i, 0) * 45ms); }
.js .grow .mini-course .bar i { transform: scaleX(0); transition: transform 900ms var(--ease-out); }
.js .grow.is-visible .mini-course .bar i { transform: scaleX(1); }

/* Hero entrance: the headline settles in line by line. */
.js .hero h1 > span { display: block; opacity: 0; transform: translateY(0.35em); animation: rise 900ms var(--ease-out) forwards; }
.js .hero h1 > span.second { animation-delay: 140ms; }
.js .hero .lede, .js .hero .cta-row, .js .hero-meta { opacity: 0; animation: rise 900ms var(--ease-out) 260ms forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Scroll-driven depth on the hero stage where the browser supports it. */
@supports (animation-timeline: view()) {
  .stage .plan { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; }
  @keyframes drift { from { transform: translateY(28px); } to { transform: translateY(-6px); } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal, .js .reveal-scale, .js .hero h1 > span, .js .hero .lede, .js .hero .cta-row, .js .hero-meta { opacity: 1; transform: none; }
  .js .grow .wk-bar, .js .grow .mini-course .bar i { transform: none; }
  .stage .plan { animation: none !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}

/* Increase Contrast: stronger text, borders and separators. */
@media (prefers-contrast: more) {
  :root {
    --text-2: #2c3c43;
    --text-3: #3a4a50;
    --accent-text: #1f5759;
    --border: rgb(23 43 54 / 0.45);
    --separator: rgb(23 43 54 / 0.3);
  }
  .card, .faq details, .task, .pill { box-shadow: 0 0 0 1px var(--border); }
}
@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root {
    --text-2: #d5dfe0;
    --text-3: #c3d0d2;
    --accent-text: #8fe8d6;
    --border: rgb(255 255 255 / 0.45);
    --separator: rgb(255 255 255 / 0.3);
  }
}

/* Print: the help and legal pages should print cleanly. */
@media print {
  .site-header, .site-footer, .toc, .skip-link, .btn { display: none !important; }
  body { background: #fff; color: #000; }
  .page-layout { display: block; }
}
