/* ==========================================================================
   Hyperlink Dynamics — marketing site styles
   No framework, no build step. Shared design tokens first.
   ========================================================================== */

:root {
  /* Shared tokens (keep identical to /demo/) */
  --ink: #14213D;
  --brand: #3D5AFE;
  --brand-600: #2F45D1;
  --accent: #FF8A3D;
  --mint: #22C55E;
  --sky: #E8EEFF;
  --paper: #FFFFFF;
  --muted: #5B6478;
  --line: #E3E7F0;
  --radius: 16px;
  --radius-pill: 999px;
  --shadow: 0 8px 24px rgba(20, 33, 61, .08);

  /* Site-only derived tokens */
  --surface: #FFFFFF;
  --surface-2: #F6F8FD;
  --brand-text: #2F45D1;      /* brand-colored small text, AA on tints */
  --accent-text: #9A3F00;     /* orange-family text, AA on --accent-tint */
  --mint-text: #166534;
  --accent-tint: #FFF1E7;
  --mint-tint: #E7F8EE;
  --btn-bg: #3D5AFE;
  --btn-bg-hover: #2F45D1;
  --on-btn: #FFFFFF;
  --on-accent: #14213D;
  --chip-bg: #14213D;
  --code-bg: #EEF2FF;
  --code-ink: #24317A;
  --focus: #3D5AFE;
  --shadow-lg: 0 24px 60px rgba(20, 33, 61, .14);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Fredoka", "Inter", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #E8ECF8;
    --brand: #8C9EFF;
    --brand-600: #AAB8FF;
    --accent: #FF9A57;
    --mint: #34D27A;
    --sky: #18224A;
    --paper: #0C1222;
    --muted: #A5AEC4;
    --line: #253152;
    --shadow: 0 8px 24px rgba(0, 0, 0, .35);

    --surface: #131B31;
    --surface-2: #10172B;
    --brand-text: #AAB8FF;
    --accent-text: #FFB27A;
    --mint-text: #6EE7A1;
    --accent-tint: #33200F;
    --mint-tint: #0F2E1D;
    --btn-bg: #3D5AFE;
    --btn-bg-hover: #5470FF;
    --chip-bg: #1E2A55;
    --code-bg: #1A2448;
    --code-ink: #D5DCFF;
    --focus: #AAB8FF;
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .45);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; color: var(--ink); }
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.005em; }
h1 { font-size: clamp(2.25rem, 1.4rem + 4vw, 3.75rem); line-height: 1.06; }
h2 { font-size: clamp(1.75rem, 1.15rem + 2.4vw, 2.625rem); }
h3 { font-size: 1.125rem; font-weight: 700; letter-spacing: -.005em; }

p { margin: 0 0 1em; }

a { color: var(--brand-text); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--brand); }

code { font-family: var(--font-mono); font-size: .875em; }

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

[id] { scroll-margin-top: 24px; }
@media (min-width: 1024px) { [id] { scroll-margin-top: 88px; } }

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

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

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--on-btn);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--on-btn); }

.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 16px;
}
@media (min-width: 640px) { .container { padding-inline: 24px; } }

.icon { width: 20px; height: 20px; flex: none; }

/* ---------- Header & navigation ---------- */
.site-header {
  position: relative;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header {
    background: color-mix(in srgb, var(--paper) 86%, transparent);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    backdrop-filter: saturate(1.4) blur(14px);
  }
}
@media (min-width: 1024px) {
  .site-header { position: sticky; top: 0; }
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand img { width: 34px; height: 34px; }

.nav-desktop { display: none; }
.nav-desktop ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-desktop a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-weight: 500;
  font-size: .9375rem;
  text-decoration: none;
}
.nav-desktop a:hover { background: var(--sky); color: var(--ink); }

.site-header .header-cta { display: none; }
@media (min-width: 640px) { .site-header .header-cta { display: inline-flex; } }

@media (min-width: 1024px) {
  .nav-desktop { display: block; }
  .menu { display: none; }
  .header-inner { gap: 20px; }
}

/* Mobile menu: <details>, no JavaScript */
.menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  font-size: .9375rem;
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::marker { content: ""; }
.menu .icon-close { display: none; }
.menu[open] .icon-close { display: block; }
.menu[open] .icon-open { display: none; }

.menu-panel {
  position: absolute;
  left: 0; right: 0; top: 100%;
  padding: 4px 16px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.menu-panel ul { max-width: 1112px; margin: 0 auto; padding: 0; list-style: none; }
.menu-panel li a {
  display: block;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
}
.menu-panel .btn { width: 100%; margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--btn-bg); color: var(--on-btn); box-shadow: 0 6px 16px rgba(61, 90, 254, .28); }
.btn-primary:hover { background: var(--btn-bg-hover); color: var(--on-btn); }
.btn-accent { background: #FF8A3D; color: var(--on-accent); box-shadow: 0 6px 16px rgba(255, 138, 61, .32); }
.btn-accent:hover { background: #FF7A22; color: var(--on-accent); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--ink); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .9375rem; }
.btn-wrap { overflow-wrap: anywhere; }

/* ---------- Section scaffolding ---------- */
.section { padding-block: 72px; }
@media (min-width: 900px) { .section { padding-block: 104px; } }
.section-alt { background: var(--surface-2); border-block: 1px solid var(--line); }

.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p:last-child { margin-bottom: 0; }

.kicker {
  margin: 0 0 10px;
  color: var(--brand-text);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
}

.fineprint { color: var(--muted); font-size: .875rem; }

.card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); }

.grid-cards {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--sky);
  font-size: 1.5rem;
  line-height: 1;
}
.icon-tile.warm { background: var(--accent-tint); }
.icon-tile.mint { background: var(--mint-tint); }

/* ---------- Hero ---------- */
.hero {
  overflow-x: clip;
  padding-block: 40px 56px;
  background:
    radial-gradient(900px 520px at 88% -8%, var(--sky), transparent 62%),
    radial-gradient(640px 420px at -12% 38%, var(--accent-tint), transparent 60%),
    var(--paper);
}
@media (min-width: 960px) { .hero { padding-block: 80px 112px; } }

.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; } }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font-size: .875rem;
  font-weight: 600;
  box-shadow: var(--shadow);
}
.badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px var(--mint-tint);
}

.hero h1 { margin-bottom: 20px; }
.hl {
  color: var(--brand);
  background: linear-gradient(transparent 64%, rgba(255, 138, 61, .32) 64%, rgba(255, 138, 61, .32) 90%, transparent 90%);
  padding-inline: .04em;
  white-space: nowrap;
}

.hero-sub {
  max-width: 36em;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.hero-note { margin: 0; color: var(--muted); font-size: .9375rem; }

/* Hero illustration: courseware screen */
.hero-art {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin-inline: auto;
  padding: 40px 0 46px;
}

.device {
  position: relative;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
}
.device-screen {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--sky), var(--surface) 72%);
}
.device-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 600;
}
.device-bar .lesson { white-space: nowrap; }
.progress {
  flex: 1;
  max-width: 150px;
  height: 8px;
  margin-left: auto;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: var(--line);
}
.progress span { display: block; width: 60%; height: 100%; border-radius: inherit; background: var(--mint); }
.stars { color: #F5A524; letter-spacing: 1px; white-space: nowrap; }
.stars .off { color: var(--line); }

.screen-body { padding: 6px 16px 18px; }
@media (min-width: 480px) { .screen-body { padding: 8px 20px 22px; } }

.teacher { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; }
.teacher-avatar { flex: none; width: 44px; height: 44px; }
.bubble {
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px 16px 16px 6px;
  box-shadow: var(--shadow);
  font-size: .9375rem;
  line-height: 1.4;
}
.bubble .who {
  display: block;
  margin-bottom: 2px;
  color: var(--brand-text);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 4px 10px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 16px;
  font-size: .875rem;
  font-weight: 600;
}
.pcard .emoji { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); line-height: 1; }
.pcard.is-active {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(61, 90, 254, .2), var(--shadow);
  transform: translateY(-4px);
}

.mic-row { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.mic {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--btn-bg);
  color: #FFFFFF;
}
.mic svg { width: 22px; height: 22px; }
.mic::before {
  content: "";
  position: absolute;
  inset: -6px;
  border: 2px solid var(--btn-bg);
  border-radius: 50%;
  opacity: .5;
  animation: pulse 2.2s ease-out infinite;
}
.mic-hint {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--accent-tint);
  color: var(--ink);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.3;
}

.float-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  background: var(--chip-bg);
  color: #E8EEFF;
  font-family: var(--font-mono);
  font-size: .75rem;
  line-height: 1.3;
  box-shadow: 0 12px 28px rgba(20, 33, 61, .25);
  animation: bob 7s ease-in-out infinite;
}
.float-chip code { font-size: 1em; overflow-wrap: break-word; }
.float-chip .dir {
  flex: none;
  padding: 2px 6px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.chip-down { top: 0; right: 0; }
.chip-down .dir { background: rgba(140, 158, 255, .22); color: #B8C4FF; }
.chip-up { bottom: 0; left: 0; animation-delay: -3.5s; }
.chip-up .dir { background: rgba(255, 154, 87, .22); color: #FFC199; }

@media (max-width: 559px) {
  .hero-art { padding: 0; }
  .float-chip {
    position: relative;
    inset: auto;
    display: flex;
    width: fit-content;
    margin: 0 0 12px auto;
    font-size: .6875rem;
  }
  .chip-up { margin: 12px auto 0 0; }
}

@keyframes pulse {
  0% { transform: scale(.92); opacity: .6; }
  100% { transform: scale(1.35); opacity: 0; }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ---------- Problem / solution ---------- */
.solution {
  display: grid;
  gap: 32px;
  margin-top: 56px;
  padding: 28px 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--sky);
}
@media (min-width: 640px) { .solution { padding: 36px; } }
@media (min-width: 960px) { .solution { grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; padding: 48px; } }
.solution h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.125rem);
  letter-spacing: 0;
}
.solution p { color: var(--ink); }
.solution p:last-child { margin-bottom: 0; }

.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: .9375rem;
  line-height: 1.45;
}
.compare th, .compare td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.compare th + th, .compare td + td { border-left: 1px solid var(--line); }
.compare thead th {
  background: var(--surface-2);
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.compare thead th.ours { color: var(--brand-text); }
.compare td { color: var(--muted); }
.compare td.ours { color: var(--ink); font-weight: 600; }
.compare td.ours::before {
  content: "✓";
  content: "✓" / "";
  margin-right: 6px;
  color: var(--mint-text);
  font-weight: 800;
}
.compare tbody tr:last-child td { border-bottom: 0; }

/* ---------- How it works ---------- */
.loop { margin: 0; }
.loop-grid { display: grid; align-items: stretch; }
@media (min-width: 900px) {
  .loop-grid {
    grid-template-columns: 1fr minmax(130px, 176px) 1fr minmax(130px, 176px) 1fr;
    align-items: center;
  }
}

.node {
  padding: 24px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand);
  border-radius: 20px;
  box-shadow: var(--shadow);
  text-align: center;
}
.node-screen { border-top-color: #FF8A3D; }
.node-student { border-top-color: var(--mint); }
.node svg { width: 56px; height: 56px; margin: 0 auto 12px; }
.node h3 { margin-bottom: 6px; }
.node p { margin: 0; color: var(--muted); font-size: .9375rem; }
.node-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--sky);
  color: var(--brand-text);
  font-size: .75rem;
  font-weight: 700;
}
.node-screen .node-tag { background: var(--accent-tint); color: var(--accent-text); }
.node-student .node-tag { background: var(--mint-tint); color: var(--mint-text); }

/* Connectors: vertical on small screens, horizontal on wide screens */
.link { display: flex; justify-content: center; gap: 28px; padding: 16px 0; }
.flow { display: flex; align-items: center; gap: 10px; }
.flow-fwd { color: var(--brand); }
.flow-back { color: #FF8A3D; }
.flow-label { color: var(--ink); font-size: .8125rem; font-weight: 700; line-height: 1.25; }
.arrow {
  position: relative;
  flex: none;
  width: 2px;
  height: 52px;
  border-radius: 2px;
  background: currentColor;
}
.arrow::after { content: ""; position: absolute; width: 0; height: 0; }
.flow-fwd .arrow::after {
  left: 50%; bottom: -6px;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom: 0;
  border-top: 9px solid currentColor;
}
.flow-back .arrow::after {
  left: 50%; top: -6px;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top: 0;
  border-bottom: 9px solid currentColor;
}
@media (min-width: 900px) {
  .link { flex-direction: column; gap: 20px; padding: 0 14px; }
  .flow { flex-direction: column; align-items: stretch; gap: 8px; text-align: center; }
  .arrow { width: 100%; height: 2px; }
  .flow-fwd .arrow::after {
    top: 50%; bottom: auto; left: auto; right: -6px;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right: 0;
    border-left: 9px solid currentColor;
  }
  .flow-back .arrow::after {
    top: 50%; bottom: auto; left: -6px; right: auto;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left: 0;
    border-right: 9px solid currentColor;
  }
}

/* Message trace */
.trace-wrap { display: grid; gap: 32px; margin-top: 64px; }
@media (min-width: 960px) { .trace-wrap { grid-template-columns: 330px 1fr; gap: 56px; align-items: start; } }
.trace-intro h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  letter-spacing: 0;
}
.trace-intro p { color: var(--muted); }

.legend { display: grid; gap: 14px; margin: 20px 0; padding: 0; list-style: none; }
.legend li { color: var(--muted); font-size: .9375rem; }
.legend .dir-badge { margin-bottom: 4px; }
.legend code { color: var(--ink); }

.dir-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.dir-down { background: var(--sky); color: var(--brand-text); }
.dir-up { background: var(--accent-tint); color: var(--accent-text); }

.trace { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.trace li {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 14px;
}
.trace li.up { border-left-color: #FF8A3D; }
@media (min-width: 640px) {
  .trace li { grid-template-columns: 108px 1fr; column-gap: 16px; align-items: start; }
  .trace li.up { margin-left: 28px; }
  .trace .dir-badge { justify-self: start; margin-top: 2px; }
}
.msgs { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-block;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 8px;
  background: var(--code-bg);
  color: var(--code-ink);
  font-family: var(--font-mono);
  font-size: .8125rem;
  line-height: 1.45;
  overflow-wrap: break-word;
}
.say { margin: 6px 0 0; color: var(--muted); font-size: .9375rem; }
.say b { color: var(--ink); font-weight: 600; }

/* ---------- Features ---------- */
.feature { position: relative; }
.feature-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
}
.status-now { background: var(--mint-tint); color: var(--mint-text); }
.status-early { background: var(--accent-tint); color: var(--accent-text); }
.status-roadmap { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }

/* ---------- AI reasoning layer ---------- */
.ai-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .ai-grid { grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; } }

.duties { display: grid; gap: 16px; margin: 28px 0; padding: 0; list-style: none; }
.duties li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.duties .num {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--sky);
  color: var(--brand-text);
  font-weight: 700;
}
.duties strong { display: block; }
.duties .d { color: var(--muted); font-size: .9375rem; }

.turn-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 640px) { .turn-card { padding: 32px; } }
.turn-card h3 {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: .8125rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.turn-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pill-list li {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.35;
}
.turn-arrow { display: flex; justify-content: center; padding: 12px 0; color: var(--muted); }
.turn-arrow svg { width: 24px; height: 24px; }
.ai-core {
  padding: 18px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #4A66FF, #2F45D1);
  color: #FFFFFF;
  text-align: center;
}
.ai-core strong { display: block; font-size: 1.125rem; }
.ai-core span { font-size: .9375rem; }
.turn-out .chip { margin-top: 10px; }

/* ---------- Safety ---------- */
.safety-note { margin: 32px 0 0; color: var(--muted); }

/* ---------- Demo CTA band ---------- */
.cta-band {
  position: relative;
  display: grid;
  gap: 28px;
  overflow: hidden;
  padding: 40px 22px;
  border-radius: 28px;
  background: linear-gradient(135deg, #3D5AFE 0%, #2F45D1 100%);
  color: #FFFFFF;
  box-shadow: 0 20px 48px rgba(47, 69, 209, .28);
}
.cta-band::before, .cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.cta-band::before { width: 320px; height: 320px; right: -110px; top: -140px; background: rgba(255, 255, 255, .08); }
.cta-band::after { width: 200px; height: 200px; right: 120px; bottom: -130px; background: rgba(255, 138, 61, .22); }
.cta-band > * { position: relative; z-index: 1; }
@media (min-width: 640px) { .cta-band { padding: 48px 40px; } }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; align-items: center; padding: 56px; } }
.cta-band h2 { color: #FFFFFF; }
.cta-band p { max-width: 38em; color: #FFFFFF; }
.cta-band :focus-visible { outline-color: #FFFFFF; }
.cta-modes { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.cta-modes li {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .16);
  font-size: .875rem;
  font-weight: 600;
}
.cta-side { display: grid; gap: 10px; justify-items: start; }
@media (min-width: 900px) { .cta-side { justify-items: center; text-align: center; } }
.cta-side small { font-size: .875rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; } }
.contact-grid .lead { margin-bottom: 28px; }

.roadmap { margin: 0; padding: 0; list-style: none; }
.roadmap li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.roadmap li:last-child { border-bottom: 0; padding-bottom: 0; }
.roadmap li:first-child { padding-top: 4px; }
.stage {
  padding-top: 3px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.stage-now { color: var(--mint-text); }
.stage-next { color: var(--brand-text); }
.stage-later { color: var(--muted); }
.roadmap p { margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 40px 32px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  font-size: .9375rem;
}
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1fr auto; align-items: center; } }
.footer-tagline { margin: 10px 0 0; color: var(--muted); max-width: 30em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: var(--ink); font-weight: 500; text-decoration: none; }
.footer-links a:hover { color: var(--brand); text-decoration: underline; }
.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .875rem;
}
.legal p { margin: 0; }

/* ---------- Privacy (prose page) ---------- */
.page-hero {
  padding-block: 56px 32px;
  background: radial-gradient(800px 360px at 90% -20%, var(--sky), transparent 65%), var(--paper);
}
.page-hero h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3rem); }
.updated { margin: 0; color: var(--muted); }

.prose { max-width: 720px; padding-bottom: 88px; }
.prose h2 {
  margin-top: 2.2em;
  font-family: var(--font-sans);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.prose ul { padding-left: 1.25em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--brand); }

.summary-box {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sky);
}
.summary-box h2 { margin-top: 0; font-size: 1.125rem; }
.summary-box ul { margin: 0; }
.summary-box li:last-child { margin-bottom: 0; }

/* ---------- 404 ---------- */
.notfound { padding-block: 64px 96px; text-align: center; }
.notfound .code {
  margin: 0;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: clamp(4rem, 3rem + 6vw, 7rem);
  font-weight: 600;
  line-height: 1;
}
.notfound h1 { margin: 12px 0 16px; font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.5rem); }
.notfound .lead { max-width: 32em; margin-inline: auto; }
.lost {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 36px auto 32px;
}
.lost .pcard { width: 88px; }
.lost .pcard.is-active { border-style: dashed; }
.notfound .hero-actions { justify-content: center; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Utility */
.section-flush-top { padding-top: 0; }
@media (min-width: 900px) { .section-flush-top { padding-top: 0; } }

/* 404 extras */
.page-404 {
  background:
    radial-gradient(900px 480px at 85% -10%, var(--sky), transparent 62%),
    radial-gradient(600px 400px at -10% 60%, var(--accent-tint), transparent 60%),
    var(--paper);
}
.lost-teacher {
  max-width: 420px;
  margin: 36px auto 0;
  text-align: left;
}
.lost { margin-top: 20px; }
