@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-cyrillic-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-latin-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-cyrillic-500-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-cyrillic-700-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-latin-500-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-latin-700-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --bg: #f8f4eb;
  --surface: #fffdf8;
  --ink: #17201d;
  --muted: #515f56;
  --text-small: 1rem;
  --text-body: 1.125rem;
  --text-lead: 1.25rem;
  --accent: #17614e;
  --accent-deep: #104c3d;
  --accent-light: #e2ead8;
  --orange: #d98745;
  --line: rgba(29, 33, 29, 0.12);
  --page: 1180px;
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-size: var(--text-body);
  line-height: 1.55;
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
small { font-size: var(--text-small); line-height: 1.5; }
h1, h2 { font-weight: 500; }
h3, strong, b { font-weight: 700; }
h1, h2, h3, p { margin-top: 0; }

.ui-icon,
.mechanic-icon,
.neuron-icon {
  display: block;
  width: 1.35em;
  height: 1.35em;
  flex: 0 0 auto;
}

.ui-icon { fill: none; stroke: currentColor; }
.mechanic-icon { object-fit: contain; }
.neuron-icon { color: #7356a5; overflow: visible; }
.icon-inline { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; }

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: white;
  background: var(--accent);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header,
.hero,
.section,
.proof-strip,
footer {
  width: min(calc(100% - 48px), var(--page));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  color: white;
  background: var(--accent);
  font-size: var(--text-small);
  font-weight: 700;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.3);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-link {
  color: var(--muted);
  font-size: var(--text-small);
  font-weight: 700;
}

.nav-link:hover { color: var(--ink); }

.language-link {
  display: inline-grid;
  min-width: 38px;
  min-height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--paper);
  font-size: var(--text-small);
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: border-color 180ms ease, background 180ms ease;
}

.language-link:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 700;
  white-space: normal;
  text-align: center;
  max-width: 100%;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(23, 69, 56, 0.15);
}

.button:focus-visible,
.answers button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.button-small {
  padding: 11px 20px;
  color: white;
  background: var(--accent);
  font-size: var(--text-small);
}

.button-primary {
  min-height: 58px;
  padding: 0 27px;
  color: white;
  background: var(--accent);
}

.button-primary:hover { background: var(--accent-deep); }

.telegram-cta { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 9px; max-width: 100%; min-width: 0; }
.telegram-access-note { display: block; max-width: 40ch; color: var(--muted); font-size: var(--text-small); font-weight: 400; line-height: 1.5; }
.telegram-cta-header { align-items: center; gap: 3px; }
.telegram-cta-header .telegram-access-note { font-size: 12px; }
.telegram-cta-footer { grid-column: 2; grid-row: 1; }
.start .telegram-access-note, .topic-value-card .telegram-access-note { color: #c6dcd2; }
.catalog-hero > .telegram-cta { align-items: center; }
.hero-actions:has(.telegram-cta) { align-items: flex-start; }
.topic-knowledge h2 { max-width: 24ch; }
.topic-knowledge p { max-width: 70ch; color: var(--muted); line-height: 1.7; }
.topic-catalog p a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 680px) {
  .hero-actions .telegram-cta, .hero-actions .telegram-cta > .button { width: 100%; }
  .telegram-cta-footer { grid-column: 1; grid-row: auto; }
  .catalog-hero > .telegram-cta { align-items: flex-start; }
}

.telegram-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(12, 65, 95, 0.18);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(410px, 0.96fr);
  align-items: center;
  gap: clamp(48px, 7vw, 96px);
  min-height: calc(100vh - 92px);
  padding: 44px 0 92px;
}

.eyebrow,
.overline {
  color: var(--accent);
  font-size: var(--text-small);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
}

.eyebrow > span {
  width: 24px;
  height: 1px;
  flex-shrink: 0;
  background: currentColor;
}

h1 {
  max-width: 770px;
  margin-bottom: 28px;
  font-size: clamp(54px, 6.2vw, 88px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.96;
  text-wrap: balance;
}

.hero-lead,
.section-intro {
  color: var(--muted);
  line-height: 1.62;
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 32px;
  font-size: var(--text-lead);
}

.hero-actions {
  flex-wrap: wrap;
  display: flex;
  align-items: center;
  gap: 28px;
}

.text-link {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--text-small);
  font-weight: 700;
}

.text-link span { margin-left: 10px; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 25px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: var(--text-small);
  list-style: none;
}

.hero-points li::before {
  margin-right: 7px;
  color: var(--accent);
  content: "✓";
  font-weight: 700;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 3.5vw, 52px);
  margin: 44px 0 0;
}

.hero-stats div { display: grid; flex: 1 1 140px; min-width: 0; gap: 3px; align-content: start; }
.hero-stats dt { font-size: 19px; font-weight: 700; letter-spacing: -0.035em; }
.hero-stats dd { margin: 0; color: var(--muted); font-size: var(--text-small); }

.preview-wrap {
  position: relative;
  display: grid;
  min-height: 610px;
  place-items: center;
  isolation: isolate;
}

.preview-wrap::before {
  position: absolute;
  z-index: -3;
  width: min(100%, 510px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent-light);
  content: "";
}

.orbit {
  position: absolute;
  z-index: -2;
  border: 1px solid rgba(35, 95, 77, 0.2);
  border-radius: 50%;
}

.orbit-one { width: 96%; aspect-ratio: 1; transform: rotate(-14deg) scaleY(0.73); }
.orbit-two { width: 74%; aspect-ratio: 1; transform: rotate(28deg) scaleY(1.08); }

.quiz-card {
  width: min(100%, 394px);
  padding: 27px;
  border: 1px solid rgba(29, 33, 29, 0.08);
  border-radius: 30px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 34px 80px rgba(32, 52, 43, 0.16);
  transform: rotate(-2deg);
  backdrop-filter: blur(12px);
}

.quiz-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.quiz-topic { color: var(--accent); font-size: var(--text-small); font-weight: 700; }
.quiz-count { flex: 0 0 auto; color: var(--muted); font-size: var(--text-small); font-variant-numeric: tabular-nums; }
.quiz-progress { height: 3px; margin: 17px 0 30px; overflow: hidden; border-radius: 999px; background: #e4e3dc; }
.quiz-progress span { display: block; width: 43%; height: 100%; border-radius: inherit; background: var(--accent); }
.quiz-label { margin-bottom: 9px; color: var(--muted); font-size: var(--text-small); font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; }
.quiz-card h2 { margin-bottom: 25px; font-size: 23px; line-height: 1.25; letter-spacing: -0.035em; }

.answers { display: grid; gap: 9px; margin: 0; padding: 0; border: 0; }
.answers button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 49px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: border 150ms ease, background 150ms ease, transform 150ms ease;
}

.answers button:hover:not(:disabled) { border-color: rgba(35, 95, 77, 0.45); transform: translateX(3px); }
.answers button span { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border-radius: 9px; background: rgba(29, 33, 29, 0.05); font-size: var(--text-small); font-weight: 700; }
.answers button.correct { border-color: rgba(35, 95, 77, 0.42); color: #164a3a; background: rgba(35, 95, 77, 0.1); }
.answers button.wrong { border-color: rgba(167, 65, 56, 0.35); color: #84372f; background: rgba(167, 65, 56, 0.08); }
.answers button:disabled { cursor: default; }
.answer-note { min-height: 18px; margin: 16px 0 0; color: var(--muted); font-size: var(--text-small); text-align: center; }
.answer-note.success { color: var(--accent); font-weight: 700; }

.floating-note,
.app-stage-note {
  position: absolute;
  padding: 11px 15px;
  border: 1px solid rgba(29, 33, 29, 0.08);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 14px 36px rgba(38, 58, 49, 0.13);
  font-size: var(--text-small);
  font-weight: 700;
}

.floating-note span { color: var(--orange); }
.floating-note-top { top: 16%; right: -2%; transform: rotate(5deg); }
.floating-note-bottom { bottom: 15%; left: -1%; color: var(--accent); transform: rotate(-5deg); }

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}

.proof-strip p { display: grid; gap: 5px; margin: 0; padding: 26px 18px; border-right: 1px solid var(--line); }
.proof-strip p:first-child { padding-left: 0; }
.proof-strip p:last-child { border: 0; }
.proof-strip strong { font-size: var(--text-small); }
.proof-strip span { color: var(--muted); font-size: var(--text-small); }

.section { padding: 120px 0; border-top: 1px solid var(--line); }
.proof-strip + .section { border-top: 0; }
.section-heading { display: grid; grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.35fr); gap: 40px; margin-bottom: 60px; }
.section h2 { margin-bottom: 20px; font-size: clamp(42px, 5vw, 68px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.02; text-wrap: balance; }
.section-intro { max-width: 710px; margin-bottom: 0; font-size: var(--text-body); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature-card {
  position: relative;
  min-height: 330px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 253, 248, 0.55);
}

.feature-card-wide { grid-column: span 2; }
.feature-card > .overline { padding-right: 54px; }
.feature-card h3 { max-width: 620px; margin: 56px 0 14px; font-size: 28px; line-height: 1.08; letter-spacing: -0.04em; }
.feature-card > p:not(.overline) { max-width: 620px; margin-bottom: 0; color: var(--muted); font-size: var(--text-body); line-height: 1.6; }
.feature-icon { position: absolute; top: 25px; right: 26px; display: grid; width: 45px; height: 45px; place-items: center; border-radius: 14px; color: var(--accent); background: var(--accent-light); font-size: 20px; }
.feature-icon .ui-icon, .feature-icon .mechanic-icon { width: 25px; height: 25px; }
.feature-accent { background: var(--accent-light); border-color: transparent; }
.feature-accent .feature-icon { color: white; background: var(--accent); }
.feature-dark { color: white; background: var(--accent-deep); border-color: transparent; }
.feature-dark .overline, .feature-dark > p:not(.overline) { color: #b8d2c6; }
.feature-dark .feature-icon { color: var(--accent-deep); background: #e5efdb; }

.quick-play-demo {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  width: min(100%, 380px);
  margin-top: 28px;
  padding: 15px;
  border: 1px solid rgba(35, 95, 77, 0.15);
  border-radius: 17px;
  background: rgba(255, 253, 248, 0.62);
}

.quick-play-demo > span { grid-row: span 2; display: grid; width: 39px; height: 39px; place-items: center; border-radius: 12px; color: white; background: var(--accent); }
.quick-play-demo .mechanic-icon { width: 27px; height: 27px; }
.quick-play-demo strong { font-size: var(--text-small); }
.quick-play-demo small { color: var(--muted); }

blockquote {
  max-width: 620px;
  margin: 24px 0 0;
  padding: 16px 18px;
  border: 1px solid rgba(35, 95, 77, 0.2);
  border-radius: 12px;
  color: var(--accent);
  background: var(--accent-light);
  font-size: var(--text-small);
  line-height: 1.5;
}

.mini-app {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: clamp(50px, 8vw, 110px);
}

.check-list { margin: 42px 0 38px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.check-list li { display: grid; grid-template-columns: 42px 1fr; gap: 3px 12px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.check-list li > span { grid-row: span 2; color: var(--accent); font-size: var(--text-small); font-weight: 700; }
.check-list strong { font-size: var(--text-small); }
.check-list small { color: var(--muted); font-size: var(--text-small); }

.app-stage {
  position: relative;
  display: grid;
  min-height: 710px;
  margin: 0;
  padding: 50px;
  place-items: center;
  border-radius: 40px;
  background: var(--accent-light);
  isolation: isolate;
}

.app-stage::before, .app-stage::after { position: absolute; z-index: -1; border: 1px solid rgba(35, 95, 77, 0.19); border-radius: 50%; content: ""; }
.app-stage::before { width: 85%; aspect-ratio: 1; }
.app-stage::after { width: 62%; aspect-ratio: 1; }

.app-phone {
  overflow-wrap: anywhere;
  width: min(100%, 360px);
  padding: 20px 18px 16px;
  border: 8px solid #202620;
  border-radius: 39px;
  background: #f7f5ef;
  box-shadow: 0 35px 75px rgba(25, 57, 46, 0.25);
}

.app-phone-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; padding: 0 4px; font-size: var(--text-small); font-weight: 700; }
.app-phone-tools, .app-neuron { display: inline-flex; align-items: center; gap: 7px; }
.app-phone-tools > .ui-icon { width: 16px; height: 16px; color: var(--accent); }
.app-neuron { gap: 3px; font-variant-numeric: tabular-nums; }
.app-neuron .neuron-icon { width: 18px; height: 18px; }
.app-hero-card { display: grid; gap: 12px; padding: 20px; border-radius: 22px; color: white; background: var(--accent); }
.app-hero-card small { color: #c6dcd2; font-size: var(--text-small); font-weight: 700; letter-spacing: normal; }
.app-hero-card strong { font-size: 22px; line-height: 1.05; letter-spacing: -0.045em; }
.app-hero-card span { width: fit-content; max-width: 100%; padding: 9px 12px; border-radius: 999px; color: var(--accent); background: white; font-size: var(--text-small); font-weight: 700; }
.app-streak, .app-async { display: grid; grid-template-columns: 35px minmax(0, 1fr); align-items: center; gap: 8px; margin-top: 9px; padding: 11px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.app-streak > span, .app-async > span { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 11px; background: #f6ead8; }
.app-streak > span .mechanic-icon, .app-async > span .ui-icon { width: 27px; height: 27px; }
.app-async > span { color: var(--accent); background: var(--accent-light); }
.app-streak p, .app-async p { display: grid; gap: 2px; margin: 0; }
.app-streak strong, .app-async strong { font-size: var(--text-small); }
.app-streak small, .app-async small { color: var(--muted); font-size: var(--text-small); }
.app-section-label { margin: 18px 3px 8px; font-size: var(--text-small); font-weight: 700; }
.app-mode-list { display: grid; gap: 7px; }
.app-mode-list > span { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; padding: 11px; border: 1px solid var(--line); border-radius: 13px; background: white; font-size: var(--text-small); }
.app-mode-list > span > .ui-icon, .app-mode-list > span > .mechanic-icon { width: 22px; height: 22px; }
.app-mode-list b .ui-icon, .app-streak b .ui-icon, .app-async b .ui-icon { width: 14px; height: 14px; }
.app-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--line); }
.app-nav span { display: grid; gap: 3px; place-items: center; color: var(--accent); font-size: var(--text-small); }
.app-nav .ui-icon { width: 17px; height: 17px; }
.app-nav small { color: var(--muted); font-size: var(--text-small); }
.app-stage-note { position: relative; max-width: 100%; margin-top: 16px; text-align: center; }
.note-one { color: var(--accent); }

.mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mode-grid article { position: relative; display: flex; min-height: 320px; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255, 253, 248, 0.46); flex-direction: column; }
.mode-grid article:hover { background: rgba(255, 253, 248, 0.85); }
.mode-number { position: absolute; top: 25px; right: 25px; color: var(--muted); font-size: var(--text-small); }
.mode-icon { display: grid; width: 48px; height: 48px; margin-bottom: 32px; place-items: center; border-radius: 15px; color: var(--accent); background: var(--accent-light); font-size: 22px; }
.mode-icon .ui-icon, .mode-icon .mechanic-icon { width: 30px; height: 30px; }
.mode-grid h3 { margin-bottom: 10px; font-size: 24px; letter-spacing: -0.035em; }
.mode-grid p { margin-bottom: 18px; color: var(--muted); font-size: var(--text-body); line-height: 1.58; }
.mode-grid small { margin-top: auto; color: var(--accent); font-size: var(--text-small); font-weight: 700; }

.topics { display: grid; grid-template-columns: 0.75fr 1.25fr; align-items: start; gap: 70px; }
.topics-intro { position: sticky; top: 40px; }
.topic-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 38px; }
.topic-stats p { display: grid; gap: 4px; padding: 15px 10px 15px 0; border-top: 1px solid var(--line); }
.topic-stats strong { font-size: 20px; letter-spacing: -0.03em; }
.topic-stats span { color: var(--muted); font-size: var(--text-small); line-height: 1.35; }
.topic-catalog { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.topic-catalog li { min-height: 165px; padding: 21px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255, 253, 248, 0.48); }
.topic-catalog li:nth-child(4n + 1), .topic-catalog li:nth-child(4n + 4) { background: var(--accent-light); border-color: transparent; }
.topic-catalog li > span { display: inline-flex; min-height: 28px; align-items: center; color: var(--accent); font-size: 22px; }
.topic-catalog li > span .ui-icon { width: 27px; height: 27px; }
.topic-catalog h3 { margin: 24px 0 8px; font-size: 18px; letter-spacing: -0.03em; }
.topic-catalog p { margin-bottom: 0; color: var(--muted); font-size: var(--text-small); line-height: 1.55; }

.progression-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.progression-grid article { min-height: 250px; padding: 28px; border-right: 1px solid var(--line); }
.progression-grid article:last-child { border: 0; }
.progression-grid article > span { display: inline-flex; align-items: center; min-height: 32px; font-size: 25px; }
.progression-grid article > span .ui-icon, .progression-grid article > span .mechanic-icon { width: 30px; height: 30px; }
.progression-grid h3 { margin: 62px 0 10px; font-size: 20px; letter-spacing: -0.03em; }
.progression-grid p { margin: 0; color: var(--muted); font-size: var(--text-body); line-height: 1.58; }

.faq { display: grid; grid-template-columns: 0.65fr 1.35fr; gap: 80px; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 25px 0; cursor: pointer; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--accent); background: var(--accent-light); transition: transform 180ms ease; }
.faq details[open] summary span { transform: rotate(45deg); }
.faq details p { max-width: 720px; margin: -5px 55px 25px 0; color: var(--muted); font-size: var(--text-body); line-height: 1.65; }

.start {
  width: min(calc(100% - 48px), 1280px);
  margin-bottom: 36px;
  padding: clamp(56px, 8vw, 100px);
  border: 0;
  border-radius: 34px;
  color: white;
  background: var(--accent);
}

.eyebrow-light { color: #bbd7c8; }
.start h2 { max-width: 820px; margin-bottom: 25px; }
.start-lead { max-width: 620px; margin-bottom: 58px; color: #c6dcd2; font-size: 16px; line-height: 1.6; }
.start ol { margin: 0 0 48px; padding: 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.start li { display: grid; grid-template-columns: 70px 1fr 1fr; align-items: center; gap: 20px; padding: 24px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
.start li > span { color: #bbd7c8; font-size: var(--text-small); }
.start li strong { font-size: 17px; }
.start li small { color: #bbd7c8; font-size: var(--text-small); }
.button-light { padding: 17px 25px; color: var(--accent); background: white; }

footer { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 34px; padding: 42px 0 52px; }
footer p { margin: 0; color: var(--muted); font-size: var(--text-small); }
.footer-nav { display: flex; gap: 18px; color: var(--muted); font-size: var(--text-small); }
.footer-link { padding-bottom: 4px; border-bottom: 1px solid var(--line); font-size: var(--text-small); font-weight: 700; }

/* Topic landing pages and quiz catalog */
.breadcrumbs {
  display: flex;
  width: min(calc(100% - 48px), var(--page));
  margin: 22px auto 0;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: var(--text-small);
}

.breadcrumbs a:hover { color: var(--accent); }

.topic-hero {
  display: grid;
  width: min(calc(100% - 48px), var(--page));
  min-height: 680px;
  margin: 0 auto;
  padding: 85px 0 110px;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.65fr);
  align-items: center;
  gap: clamp(50px, 8vw, 120px);
}

.topic-hero h1 {
  max-width: 800px;
  font-size: clamp(54px, 6.1vw, 84px);
}

.topic-passport {
  position: relative;
  padding: 36px;
  overflow: hidden;
  border: 1px solid rgba(35, 95, 77, 0.12);
  border-radius: 32px;
  background: var(--accent-light);
  box-shadow: 0 25px 65px rgba(32, 52, 43, 0.12);
}

.topic-passport::after {
  position: absolute;
  right: -80px;
  bottom: -100px;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(35, 95, 77, 0.16);
  border-radius: 50%;
  content: "";
}

.topic-passport-emoji {
  position: absolute;
  top: 30px;
  right: 30px;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.68);
  font-size: 27px;
}

.topic-search-intent {
  max-width: 620px;
  margin: -13px 0 30px;
  color: var(--muted);
  font-size: var(--text-small);
  line-height: 1.6;
}

.topic-passport-title {
  display: block;
  max-width: 12ch;
  margin: 28px 0;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.topic-chip-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.topic-chip-list span {
  padding: 8px 11px;
  border: 1px solid rgba(35, 95, 77, 0.14);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.55);
  font-size: var(--text-small);
  font-weight: 700;
}

.topic-passport dl {
  position: relative;
  z-index: 1;
  display: grid;
  margin: 30px 0 0;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(35, 95, 77, 0.16);
}

.topic-passport dl div { padding: 20px 12px 0 0; }
.topic-passport dt { font-size: 20px; font-weight: 700; }
.topic-passport dd { margin: 4px 0 0; color: var(--muted); font-size: var(--text-small); line-height: 1.35; }

.topic-about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
}

.coverage-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  counter-reset: coverage;
}

.coverage-list li {
  display: grid;
  padding: 23px 0;
  grid-template-columns: 55px 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  counter-increment: coverage;
}

.coverage-list li::before {
  color: var(--accent);
  content: counter(coverage, decimal-leading-zero);
  font-size: var(--text-small);
  font-weight: 700;
}

.topic-format-grid article { min-height: 275px; }

.topic-value { padding-block: 55px 120px; border-top: 0; }

.topic-value-card {
  padding: clamp(45px, 7vw, 82px);
  border-radius: 32px;
  color: white;
  background: var(--accent-deep);
}

.topic-value-card h2 { max-width: 900px; }
.topic-value-card > p:not(.eyebrow) { max-width: 760px; margin-bottom: 34px; color: #c6dcd2; font-size: var(--text-body); line-height: 1.65; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.related-card {
  display: flex;
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: rgba(255, 253, 248, 0.48);
  flex-direction: column;
  transition: transform 170ms ease, background 170ms ease;
}

.related-card:hover { background: var(--surface); transform: translateY(-3px); }
.related-card > span { font-size: 23px; }
.related-card strong { margin-top: auto; font-size: 18px; letter-spacing: -0.03em; }
.related-card small { margin-top: 6px; color: var(--muted); font-size: var(--text-small); }
.catalog-link { display: inline-flex; gap: 14px; margin-top: 25px; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-size: var(--text-small); font-weight: 700; }

.topic-faq { padding-top: 95px; }
.topic-start h2 { max-width: 900px; }

.catalog-hero {
  width: min(calc(100% - 48px), var(--page));
  margin: 0 auto;
  padding: 100px 0 120px;
  text-align: center;
}

.catalog-hero .eyebrow { justify-content: center; }
.catalog-hero h1 { max-width: 980px; margin-inline: auto; }
.catalog-hero .hero-lead { max-width: 760px; margin-inline: auto; }

.quiz-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.quiz-catalog-card {
  display: flex;
  min-height: 260px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 23px;
  background: rgba(255, 253, 248, 0.5);
  flex-direction: column;
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease;
}

.quiz-catalog-card:nth-child(6n + 1),
.quiz-catalog-card:nth-child(6n + 5) {
  background: var(--accent-light);
  border-color: transparent;
}

.quiz-catalog-card:hover { border-color: rgba(35, 95, 77, 0.3); background: var(--surface); transform: translateY(-3px); }
.quiz-catalog-card-head { display: flex; align-items: center; justify-content: space-between; }
.quiz-catalog-card-head > span:first-child { font-size: 26px; }
.quiz-catalog-card-category { padding: 7px 10px; border-radius: 999px; color: var(--accent); background: rgba(255, 253, 248, 0.7); font-size: var(--text-small); font-weight: 700; }
.quiz-catalog-card h2 { margin: 58px 0 9px; font-size: 25px; letter-spacing: -0.04em; }
.quiz-catalog-card p { margin: 0 0 20px; color: var(--muted); font-size: var(--text-body); line-height: 1.55; }
.quiz-catalog-card > span:last-child { margin-top: auto; color: var(--accent); font-size: var(--text-small); font-weight: 700; }

/* Full topic tree */
.tree-root-link[hidden],
.topic-tree-branch[hidden],
.tree-node[hidden],
.tree-empty[hidden],
.tree-search-field button[hidden] { display: none; }

.tree-hero {
  display: grid;
  width: min(calc(100% - 48px), var(--page));
  min-height: 650px;
  margin: 0 auto;
  padding: 78px 0 105px;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.58fr);
  align-items: center;
  gap: clamp(60px, 9vw, 135px);
}

.tree-hero h1 { max-width: 790px; font-size: clamp(54px, 6vw, 82px); }
.tree-hero .hero-lead { max-width: 680px; }

.tree-hero-stats {
  margin: 0;
  border-top: 1px solid var(--line);
}

.tree-hero-stats div {
  display: grid;
  padding: 24px 0;
  grid-template-columns: 118px 1fr;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.tree-hero-stats dt {
  color: var(--accent);
  font-size: clamp(38px, 4vw, 54px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.tree-hero-stats dd { margin: 0; color: var(--muted); font-size: var(--text-small); line-height: 1.5; }
.tree-directory { padding-top: 110px; }
.tree-heading { margin-bottom: 50px; }

.tree-root-index {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.tree-root-link {
  display: flex;
  min-width: 0;
  min-height: 235px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  flex-direction: column;
  transition: color 170ms ease, background 170ms ease;
}

.tree-root-link:hover { color: var(--accent); background: rgba(219, 233, 200, 0.38); }
.tree-root-icon { font-size: 25px; }
.tree-root-link strong { margin-top: 28px; font-size: 19px; letter-spacing: -0.025em; line-height: 1.15; }
.tree-root-link small { margin-top: 9px; overflow-wrap: anywhere; color: var(--muted); font-size: var(--text-small); line-height: 1.5; }
.tree-root-link b { display: flex; margin-top: auto; padding-top: 22px; justify-content: space-between; color: var(--accent); font-size: var(--text-small); font-weight: 700; }

.topic-tree-section { padding-top: 115px; }
.tree-toolbar { display: grid; margin-bottom: 48px; grid-template-columns: 1fr minmax(360px, 0.62fr); align-items: end; gap: 60px; }
.tree-toolbar h2 { margin-bottom: 0; }
.tree-search label { display: block; margin-bottom: 9px; color: var(--muted); font-size: var(--text-small); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

.tree-search-field {
  display: grid;
  min-height: 58px;
  padding: 0 15px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.7);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.tree-search-field:focus-within { border-color: rgba(35, 95, 77, 0.48); box-shadow: 0 0 0 4px rgba(35, 95, 77, 0.08); }
.tree-search-field > span { color: var(--accent); font-size: 22px; }
.tree-search-field > span .ui-icon { width: 22px; height: 22px; }
.tree-search-field input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font: inherit; font-size: var(--text-small); }
.tree-search-field input::-webkit-search-cancel-button { appearance: none; }
.tree-search-field input::placeholder { color: #8b908b; }
.tree-search-field button { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; color: var(--muted); background: rgba(29, 33, 29, 0.06); cursor: pointer; font-size: 20px; line-height: 1; }
.tree-search-field button .ui-icon { width: 17px; height: 17px; margin: auto; }
.tree-search-field button:hover { color: var(--accent); background: rgba(35, 95, 77, 0.1); }
.tree-search-status { min-height: 16px; margin: 8px 0 0; color: var(--muted); font-size: var(--text-small); }

.topic-tree { display: grid; gap: 10px; }
.topic-tree-branch { scroll-margin-top: 20px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255, 253, 248, 0.46); overflow: clip; }
.topic-tree-branch:nth-child(4n + 2) { background: rgba(219, 233, 200, 0.24); }
.topic-tree summary { list-style: none; cursor: pointer; }
.topic-tree summary::-webkit-details-marker { display: none; }

.topic-tree-branch > details > summary {
  display: grid;
  min-height: 144px;
  padding: 24px 27px;
  grid-template-columns: 58px 1fr 46px;
  align-items: center;
  gap: 20px;
}

.topic-tree-branch > details > summary:hover { background: rgba(255, 253, 248, 0.5); }
.tree-branch-icon { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 18px; background: var(--surface); font-size: 26px; }
.tree-branch-copy { min-width: 0; }
.tree-branch-kicker { display: block; margin-bottom: 6px; color: var(--accent); font-size: var(--text-small); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.tree-branch-copy h2 { margin: 0; font-size: clamp(25px, 3vw, 36px); letter-spacing: -0.045em; }
.tree-branch-copy small { display: block; margin-top: 7px; color: var(--muted); font-size: var(--text-small); }
.tree-summary-action { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); font-size: 22px; transition: transform 180ms ease; }
.topic-tree-branch > details[open] > summary .tree-summary-action { transform: rotate(45deg); }

.tree-node-list { margin: 0; padding: 0; list-style: none; }
.tree-node, .tree-topic-name, .tree-topic-link { min-width: 0; overflow-wrap: anywhere; }
.tree-level-1 { display: grid; padding: 0 27px 27px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.topic-tree[data-filtering="true"] .tree-level-1 { grid-template-columns: 1fr; }
.tree-level-1 > .tree-node { border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 253, 248, 0.7); overflow: clip; }
.tree-node-group > details > summary { display: flex; min-height: 62px; padding: 14px 15px; align-items: center; justify-content: space-between; gap: 12px; }
.tree-node-group > details > summary:hover { background: rgba(35, 95, 77, 0.045); }
.tree-node-group > details > summary > span:first-child { display: grid; min-width: 0; gap: 4px; }
.tree-node-group > details > summary small { color: var(--muted); font-size: var(--text-small); font-weight: 500; }
.tree-node-toggle { flex: 0 0 auto; color: var(--accent); font-size: 18px; transition: transform 160ms ease; }
.tree-node-group > details[open] > summary .tree-node-toggle { transform: rotate(45deg); }
.tree-topic-name, .tree-topic-link { font-size: var(--text-small); font-weight: 700; line-height: 1.3; }
.tree-topic-link { display: inline-flex; align-items: baseline; gap: 6px; color: var(--accent); }
.tree-topic-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.tree-topic-link span { font-size: var(--text-small); }
.tree-level-2, .tree-level-3 { display: grid; padding: 0 14px 14px 25px; gap: 0; }
.tree-level-2 .tree-node, .tree-level-3 .tree-node { border-top: 1px solid var(--line); }
.tree-level-2 .tree-node-group > details > summary, .tree-level-3 .tree-node-group > details > summary { min-height: 50px; padding-inline: 5px; }
.tree-leaf-row { display: grid; min-height: 43px; padding: 10px 5px; align-content: center; gap: 3px; }
.tree-level-1 > .tree-node-leaf .tree-leaf-row { min-height: 62px; padding: 14px 15px; }
.tree-leaf-row small { color: var(--muted); font-size: var(--text-small); letter-spacing: 0.02em; }
.tree-empty { padding: 75px 20px; border: 1px dashed rgba(35, 95, 77, 0.3); border-radius: 24px; text-align: center; }
.tree-empty > span { color: var(--accent); font-size: 34px; }
.tree-empty h3 { margin: 17px 0 8px; font-size: 25px; }
.tree-empty p { max-width: 470px; margin: 0 auto; color: var(--muted); font-size: var(--text-small); line-height: 1.6; }

.tree-seo-copy { display: grid; padding-top: 115px; grid-template-columns: 0.8fr 1.2fr; gap: 70px; border-top: 1px solid var(--line); }
.tree-seo-copy h2 { max-width: 760px; }
.tree-seo-copy p:not(.eyebrow) { max-width: 740px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.tree-start { margin-top: 30px; }

/* Public trust and legal pages */
.legal-page { background: #f7f5ef; }
.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  width: min(calc(100% - 48px), 1080px);
  margin: 58px auto 110px;
  gap: 78px;
  align-items: start;
}
.legal-aside { position: sticky; top: 28px; padding-top: 8px; }
.legal-aside nav { display: grid; margin-top: 28px; border-top: 1px solid var(--line); }
.legal-aside nav a { padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: var(--text-small); }
.legal-aside nav a:hover { color: var(--accent); }
.legal-document { min-width: 0; max-width: 100%; overflow-x: clip; }
.legal-hero { padding-bottom: 55px; border-bottom: 1px solid var(--line); }
.legal-kicker { margin: 0 0 23px; color: var(--accent); font-size: var(--text-small); font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; }
.legal-hero h1 { max-width: 750px; margin-bottom: 26px; overflow-wrap: anywhere; font-size: clamp(42px, 6vw, 72px); line-height: 0.98; hyphens: manual; }
.legal-hero > p:last-child { max-width: 660px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.legal-document section { padding: 56px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 28px; }
.legal-document section:last-child { border-bottom: 0; }
.legal-document h2 { margin: 0 0 24px; font-size: clamp(28px, 4vw, 42px); line-height: 1.08; text-wrap: balance; }
.legal-document h3 { margin: 34px 0 12px; font-size: 17px; }
.legal-document p, .legal-document li { color: #53605c; font-size: var(--text-body); line-height: 1.75; text-wrap: pretty; }
.legal-document p { margin: 0 0 18px; }
.legal-document ul { display: grid; gap: 9px; margin: 18px 0 24px; padding-left: 22px; }
.legal-document a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(35, 95, 77, 0.28); text-underline-offset: 3px; }
.legal-document code { padding: 2px 6px; border-radius: 5px; background: rgba(35, 95, 77, 0.08); color: var(--ink); font-size: 1em; }
.legal-cards { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.legal-cards div { display: grid; min-height: 180px; padding: 25px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); align-content: space-between; gap: 30px; }
.legal-cards strong { font-size: 20px; font-weight: 700; line-height: 1.25; }
.legal-cards span { color: var(--muted); font-size: var(--text-small); line-height: 1.6; }
.legal-details { margin: 28px 0 0; border-top: 1px solid var(--line); }
.legal-details div { display: grid; grid-template-columns: 210px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.legal-details dt { color: var(--muted); font-size: var(--text-small); }
.legal-details dd { margin: 0; font-size: var(--text-small); line-height: 1.6; }
.legal-note { padding: 20px 22px; border: 1px solid rgba(35, 95, 77, 0.16); border-radius: 12px; background: rgba(35, 95, 77, 0.06); }
.legal-table-wrap { width: 100%; max-width: 100%; margin: 28px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.legal-document table { width: 100%; min-width: 680px; border-collapse: collapse; }
.legal-document th, .legal-document td { padding: 17px 15px; border: 1px solid var(--line); text-align: left; vertical-align: top; font-size: var(--text-small); line-height: 1.55; }
.legal-document th { background: rgba(35, 95, 77, 0.06); color: var(--ink); font-weight: 700; }
.legal-document td { color: var(--muted); }
.support-actions { display: grid; grid-template-columns: repeat(3, 1fr); margin: 28px 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.legal-document a.support-action { display: flex; min-height: 245px; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); flex-direction: column; text-decoration: none; }
.support-action strong { color: var(--ink); font-size: 20px; font-weight: 700; line-height: 1.25; }
.support-action span { margin-top: 20px; color: var(--muted); font-size: var(--text-small); line-height: 1.6; }
.support-action b { margin-top: auto; padding-top: 30px; color: var(--accent); font-size: var(--text-small); }

@media (max-width: 1040px) {
  .nav-link:nth-child(3), .nav-link:nth-child(4) { display: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card-wide { grid-column: span 1; }
  .feature-card { min-height: 350px; }
  .mode-grid { grid-template-columns: repeat(2, 1fr); }
  .progression-grid { grid-template-columns: repeat(2, 1fr); }
  .progression-grid article:nth-child(2) { border-right: 0; }
  .progression-grid article:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  footer { grid-template-columns: 1fr auto; }
  footer p { order: 3; }
  .footer-nav { order: 4; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .quiz-catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .tree-root-index { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; padding-top: 70px; }
  .hero-copy { max-width: 760px; }
  .preview-wrap { width: min(100%, 590px); margin: 0 auto; }
  .proof-strip { grid-template-columns: repeat(2, 1fr); }
  .proof-strip p:nth-child(2) { border-right: 0; }
  .proof-strip p:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .proof-strip p:nth-child(3) { padding-left: 0; }
  .section-heading, .faq { grid-template-columns: 1fr; gap: 24px; }
  .mini-app { grid-template-columns: 1fr; }
  .mini-app-copy { max-width: 760px; }
  .app-stage { width: min(100%, 680px); margin: 0 auto; }
  .topics { grid-template-columns: 1fr; gap: 45px; }
  .topics-intro { position: static; }
  .topic-hero { grid-template-columns: 1fr; padding-top: 70px; }
  .topic-passport { width: min(100%, 620px); }
  .topic-about { grid-template-columns: 1fr; gap: 45px; }
  .tree-hero { grid-template-columns: 1fr; padding-top: 70px; gap: 55px; }
  .tree-hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); }
  .tree-hero-stats div { padding: 21px 18px; grid-template-columns: 1fr; gap: 10px; border-right: 1px solid var(--line); }
  .tree-hero-stats div:last-child { border-right: 0; }
  .tree-toolbar { grid-template-columns: 1fr; gap: 32px; }
  .tree-search { max-width: 620px; }
  .tree-seo-copy { grid-template-columns: 1fr; gap: 25px; }
  .legal-layout { grid-template-columns: 1fr; gap: 36px; }
  .legal-aside { position: static; }
  .legal-aside nav { grid-template-columns: repeat(2, 1fr); }
  .legal-aside nav a { padding-right: 14px; }
  .support-actions { grid-template-columns: 1fr; }
  .legal-document a.support-action { min-height: 180px; }
}

@media (max-width: 680px) {
  body { min-width: 0; }
  .site-header, .hero, .section, .proof-strip, footer { width: min(calc(100% - 32px), var(--page)); }
  .site-header { height: 76px; }
  .site-header nav { gap: 12px; }
  .site-header .nav-link { display: none; }
  .hero { min-height: auto; padding: 54px 0 74px; gap: 52px; }
  h1 { font-size: clamp(46px, 14vw, 64px); }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 12px; }
  .text-link { align-self: flex-start; }
  .hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 38px; }
  .hero-stats div:last-child { grid-column: span 2; }
  .preview-wrap { min-height: 530px; }
  .quiz-card { width: min(92%, 394px); padding: 22px; }
  .floating-note-top { right: 0; }
  .floating-note-bottom { left: 0; }
  .proof-strip { grid-template-columns: 1fr; }
  .proof-strip p { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .proof-strip p:nth-child(3) { padding-left: 0; }
  .section { padding: 82px 0; }
  .section-heading { margin-bottom: 38px; }
  .section h2 { font-size: clamp(39px, 11vw, 52px); }
  .feature-grid, .mode-grid, .topic-catalog { grid-template-columns: 1fr; }
  .feature-card { min-height: auto; }
  .feature-card h3 { margin-top: 70px; }
  .app-stage { min-height: 610px; padding: 30px 12px; border-radius: 28px; }
  .app-phone { width: min(94%, 360px); }
  .note-one { right: 0; }
  .note-two { left: 0; }
  .mode-grid article { min-height: auto; }
  .mode-icon { margin-bottom: 28px; }
  .topic-stats { grid-template-columns: 1fr; }
  .topic-stats p { grid-template-columns: minmax(110px, 0.6fr) 1fr; align-items: center; }
  .topic-catalog li { min-height: 145px; }
  .progression-grid { grid-template-columns: 1fr; }
  .progression-grid article { min-height: 210px; border-right: 0; border-bottom: 1px solid var(--line); }
  .progression-grid article:nth-child(2) { border-bottom: 1px solid var(--line); }
  .progression-grid h3 { margin-top: 45px; }
  .faq { gap: 35px; }
  .faq summary { font-size: 16px; }
  .start { width: calc(100% - 20px); padding: 54px 22px; border-radius: 26px; }
  .start li { grid-template-columns: 40px 1fr; }
  .start li small { grid-column: 2; }
  footer { grid-template-columns: 1fr; gap: 18px; }
  footer p, .footer-nav { order: initial; }
  .footer-nav { flex-wrap: wrap; }
  .footer-link { justify-self: start; }
  .breadcrumbs, .topic-hero, .catalog-hero, .tree-hero { width: min(calc(100% - 32px), var(--page)); }
  .breadcrumbs { margin-top: 14px; }
  .topic-hero { min-height: auto; padding: 55px 0 80px; gap: 45px; }
  .topic-hero h1 { font-size: clamp(45px, 13vw, 62px); }
  .topic-passport { padding: 27px 23px; border-radius: 25px; }
  .topic-passport-emoji { top: 22px; right: 22px; }
  .topic-passport dl { grid-template-columns: 1fr; }
  .topic-passport dl div { display: grid; grid-template-columns: 65px 1fr; align-items: center; padding: 13px 0; border-bottom: 1px solid rgba(35, 95, 77, 0.12); }
  .topic-passport dd { margin: 0; }
  .coverage-list li { font-size: 16px; }
  .legal-layout { width: min(calc(100% - 32px), 760px); margin-top: 35px; margin-bottom: 75px; }
  .legal-aside nav { grid-template-columns: repeat(2, 1fr); }
  .legal-hero { padding-bottom: 40px; }
  .legal-hero h1 { font-size: clamp(30px, 8.7vw, 44px); letter-spacing: -0.045em; line-height: 1.02; }
  .legal-document section { padding: 42px 0; }
  .legal-document p, .legal-document li { font-size: var(--text-body); line-height: 1.7; }
  .legal-cards { grid-template-columns: 1fr; }
  .legal-details div { grid-template-columns: 1fr; gap: 7px; }
  .topic-value { padding-top: 25px; }
  .topic-value-card { padding: 42px 23px; border-radius: 25px; }
  .related-grid, .quiz-catalog-grid { grid-template-columns: 1fr; }
  .related-card { min-height: 155px; }
  .catalog-hero { padding: 70px 0 85px; text-align: left; }
  .catalog-hero .eyebrow { justify-content: flex-start; }
  .catalog-hero h1, .catalog-hero .hero-lead { margin-inline: 0; }
  .quiz-catalog-card { min-height: 220px; }
  .tree-hero { min-height: auto; padding: 55px 0 80px; gap: 40px; }
  .tree-hero h1 { font-size: clamp(45px, 13vw, 62px); }
  .tree-hero-stats { grid-template-columns: 1fr; }
  .tree-hero-stats div { padding: 18px 0; grid-template-columns: 92px 1fr; border-right: 0; }
  .tree-hero-stats dt { font-size: 38px; }
  .tree-directory, .topic-tree-section, .tree-seo-copy { padding-top: 82px; }
  .tree-root-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tree-root-link { min-height: 205px; padding: 18px; }
  .tree-root-link strong { margin-top: 24px; font-size: 16px; }
  .tree-root-link small { display: none; }
  .tree-level-1 { grid-template-columns: 1fr; padding: 0 12px 12px; }
  .topic-tree-branch { border-radius: 19px; }
  .topic-tree-branch > details > summary { min-height: 112px; padding: 18px 16px; grid-template-columns: 48px 1fr 36px; gap: 13px; }
  .tree-branch-icon { width: 48px; height: 48px; border-radius: 14px; font-size: 22px; }
  .tree-summary-action { width: 34px; height: 34px; }
  .tree-branch-copy h2 { font-size: 24px; }
  .tree-search-field { min-height: 54px; }
  .tree-search-field input { font-size: var(--text-small); }
  .tree-seo-copy { gap: 18px; }
  .tree-start { margin-top: 10px; }
}


/* Readable copy and wrapping across the landing, catalog and project pages. */
.section-heading > div { max-width: 65ch; }
.hero-copy, .mini-app-copy, .legal-document, .tree-branch-copy { min-width: 0; }
.footer-nav { flex-wrap: wrap; gap: 12px 20px; }
footer { grid-template-columns: 1fr auto; }
footer p, .footer-nav { grid-column: 1 / -1; }
.footer-link { grid-column: 2; grid-row: 1; }
.quiz-header { gap: 12px; align-items: start; }
.quiz-count { flex-shrink: 0; }
.quiz-label { text-transform: none; letter-spacing: normal; }
.app-streak > b, .app-async > b { display: none; }
.app-mode-list > span { column-gap: 8px; grid-template-columns: 24px minmax(0, 1fr) auto; }
.legal-document p, .legal-document li, .topic-about p { max-width: 65ch; }
.topic-passport > small, .topic-passport > a { display: block; margin-top: 20px; }
.topic-steps { display: grid; gap: 28px; margin: 0; padding: 0; list-style: none; }
.topic-steps li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; }
.topic-steps li > span { color: var(--accent); }
.topic-steps h3 { margin-bottom: 8px; }
.topic-steps p { max-width: 65ch; margin: 0; color: var(--muted); }
@media (max-width: 680px) {
  .button-primary, .button-light { padding-block: 14px; }
  .footer-link { grid-column: 1; grid-row: auto; }
  .app-stage { padding-inline: 8px; }
  .app-phone { width: 100%; padding-inline: 12px; }
  .app-hero-card { padding: 16px; }
  .tree-level-2, .tree-level-3, .tree-level-4 { padding-left: 12px; }
  .tree-root-index { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms; }
}

.privacy-banner { position: fixed; inset: auto 16px 16px; z-index: 100; max-width: 720px; margin-inline: auto; padding: 20px; background: #f4f1ea; color: #242b27; border: 1px solid #6c746d; border-radius: 12px; max-height: 80vh; overflow: auto; }
.privacy-banner h2 { margin: 0 0 8px; font-size: 20px; }
.privacy-banner p { margin: 8px 0; font-size: 16px; line-height: 1.5; }
.privacy-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.privacy-actions button { flex: 1 1 220px; min-height: 44px; padding: 10px 14px; border: 1px solid currentColor; border-radius: 8px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.privacy-actions button:hover { background: #e4e9df; }
.privacy-actions button:disabled { opacity: .6; cursor: wait; }
.privacy-manage { padding: 8px 0; color: inherit; font: inherit; background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.privacy-banner a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.privacy-status:empty { display: none; }
.privacy-actions button:focus-visible, .privacy-manage:focus-visible { outline: 3px solid #435c37; outline-offset: 3px; }
