:root {
  color-scheme: dark;
  --landing-ink: #f2eee8;
  --landing-muted: #aba39d;
  --landing-paper: #090706;
  --landing-white: #100d0b;
  --landing-navy: #0c0908;
  --landing-blue: #c48b5b;
  --landing-blue-soft: #211711;
  --landing-green: #f0aa66;
  --landing-green-soft: #261a12;
  --landing-coral: #d7814d;
  --landing-coral-soft: #24150f;
  --landing-purple: #f0aa66;
  --landing-purple-soft: #261a12;
  --landing-yellow: #d6a36f;
  --landing-accent-strong: #f0aa66;
  --landing-accent-hover: #ffc07d;
  --landing-on-accent: #1a120b;
  --landing-surface: #100d0b;
  --landing-surface-raised: #15110e;
  --landing-surface-soft: #1b1511;
  --landing-surface-glass: rgba(19, 15, 12, 0.78);
  --landing-field: #1d1713;
  --landing-faint: #837a73;
  --landing-border: rgba(244, 220, 198, 0.12);
  --landing-border-strong: rgba(244, 220, 198, 0.2);
  --landing-shadow: 0 22px 58px rgba(4, 2, 1, 0.29);
  --landing-panel-shadow: 0 18px 44px rgba(4, 2, 1, 0.22);
  --landing-page-glow-a: rgba(239, 126, 42, 0.08);
  --landing-page-glow-b: rgba(139, 57, 20, 0.05);
  --landing-card-glow: rgba(240, 141, 66, 0.06);
  --landing-cool-glow: rgba(176, 97, 47, 0.045);
  --landing-nav-bg: rgba(13, 10, 8, 0.78);
  --landing-nav-text: #f2eee8;
  --landing-nav-muted: rgba(242, 238, 232, 0.68);
  --landing-nav-hover: rgba(240, 170, 102, 0.1);
  --landing-hero-ink: #f5f1ea;
  --landing-hero-muted: rgba(245, 241, 234, 0.7);
  --landing-hero-scrim: rgba(9, 7, 6, 0.9);
  --landing-hero-scrim-soft: rgba(9, 7, 6, 0.46);
  --landing-hero-quiet-bg: rgba(255, 255, 255, 0.07);
  --landing-hero-quiet-hover: rgba(255, 255, 255, 0.12);
  --landing-hero-quiet-border: rgba(255, 255, 255, 0.18);
  --landing-grid-line: rgba(240, 170, 102, 0.072);
  --landing-grid-glow: rgba(239, 126, 42, 0.055);
  --landing-radius-lg: 24px;
  --landing-radius-md: 16px;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --landing-ink: #241f1b;
    --landing-muted: #68605a;
    --landing-paper: #f2eee9;
    --landing-white: #f8f5f1;
    --landing-navy: #2c221c;
    --landing-blue: #ad6737;
    --landing-blue-soft: #eaded4;
    --landing-green: #cf7432;
    --landing-green-soft: #efe0d3;
    --landing-coral: #b75e35;
    --landing-coral-soft: #eee0d8;
    --landing-purple: #cf7432;
    --landing-purple-soft: #efe0d3;
    --landing-yellow: #c99a70;
    --landing-accent-strong: #9d4b1e;
    --landing-accent-hover: #df8a48;
    --landing-on-accent: #1a120b;
    --landing-surface: #eee8e2;
    --landing-surface-raised: #f8f5f1;
    --landing-surface-soft: #e6ded6;
    --landing-surface-glass: rgba(248, 245, 241, 0.78);
    --landing-field: #e4dcd4;
    --landing-faint: #827970;
    --landing-border: rgba(57, 42, 31, 0.13);
    --landing-border-strong: rgba(57, 42, 31, 0.21);
    --landing-shadow: 0 18px 48px rgba(68, 44, 29, 0.09);
    --landing-panel-shadow: 0 16px 38px rgba(68, 44, 29, 0.09);
    --landing-page-glow-a: rgba(207, 116, 50, 0.08);
    --landing-page-glow-b: rgba(157, 75, 30, 0.05);
    --landing-card-glow: rgba(207, 116, 50, 0.065);
    --landing-cool-glow: rgba(173, 103, 55, 0.045);
    --landing-nav-bg: rgba(248, 245, 241, 0.8);
    --landing-nav-text: #241f1b;
    --landing-nav-muted: rgba(36, 31, 27, 0.68);
    --landing-nav-hover: rgba(215, 135, 69, 0.1);
    --landing-hero-ink: #241f1b;
    --landing-hero-muted: rgba(36, 31, 27, 0.7);
    --landing-hero-scrim: rgba(242, 238, 233, 0.93);
    --landing-hero-scrim-soft: rgba(242, 238, 233, 0.55);
    --landing-hero-quiet-bg: rgba(36, 31, 27, 0.045);
    --landing-hero-quiet-hover: rgba(36, 31, 27, 0.09);
    --landing-hero-quiet-border: rgba(36, 31, 27, 0.18);
    --landing-grid-line: rgba(82, 57, 41, 0.065);
    --landing-grid-glow: rgba(207, 116, 50, 0.039);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --landing-ink: #241f1b;
  --landing-muted: #68605a;
  --landing-paper: #f2eee9;
  --landing-white: #f8f5f1;
  --landing-navy: #2c221c;
  --landing-blue: #ad6737;
  --landing-blue-soft: #eaded4;
  --landing-green: #cf7432;
  --landing-green-soft: #efe0d3;
  --landing-coral: #b75e35;
  --landing-coral-soft: #eee0d8;
  --landing-purple: #cf7432;
  --landing-purple-soft: #efe0d3;
  --landing-yellow: #c99a70;
  --landing-accent-strong: #9d4b1e;
  --landing-accent-hover: #df8a48;
  --landing-on-accent: #1a120b;
  --landing-surface: #eee8e2;
  --landing-surface-raised: #f8f5f1;
  --landing-surface-soft: #e6ded6;
  --landing-surface-glass: rgba(248, 245, 241, 0.78);
  --landing-field: #e4dcd4;
  --landing-faint: #827970;
  --landing-border: rgba(57, 42, 31, 0.13);
  --landing-border-strong: rgba(57, 42, 31, 0.21);
  --landing-shadow: 0 18px 48px rgba(68, 44, 29, 0.09);
  --landing-panel-shadow: 0 16px 38px rgba(68, 44, 29, 0.09);
  --landing-page-glow-a: rgba(207, 116, 50, 0.08);
  --landing-page-glow-b: rgba(157, 75, 30, 0.05);
  --landing-card-glow: rgba(207, 116, 50, 0.065);
  --landing-cool-glow: rgba(173, 103, 55, 0.045);
  --landing-nav-bg: rgba(248, 245, 241, 0.8);
  --landing-nav-text: #241f1b;
  --landing-nav-muted: rgba(36, 31, 27, 0.68);
  --landing-nav-hover: rgba(215, 135, 69, 0.1);
  --landing-hero-ink: #241f1b;
  --landing-hero-muted: rgba(36, 31, 27, 0.7);
  --landing-hero-scrim: rgba(242, 238, 233, 0.93);
  --landing-hero-scrim-soft: rgba(242, 238, 233, 0.55);
  --landing-hero-quiet-bg: rgba(36, 31, 27, 0.045);
  --landing-hero-quiet-hover: rgba(36, 31, 27, 0.09);
  --landing-hero-quiet-border: rgba(36, 31, 27, 0.18);
  --landing-grid-line: rgba(82, 57, 41, 0.065);
  --landing-grid-glow: rgba(207, 116, 50, 0.039);
}

html {
  height: auto;
  min-height: 100%;
  background: var(--landing-paper);
  background-attachment: scroll;
}

body.landing-body {
  display: block;
  height: auto;
  min-height: 100%;
  color: var(--landing-ink);
  background: var(--landing-paper);
  background-attachment: scroll;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  text-shadow: none;
  overflow-x: hidden;
}

body.landing-body.landing-home {
  background-color: var(--landing-paper);
  background-image:
    radial-gradient(ellipse 68% 620px at 50% 360px, var(--landing-grid-glow), transparent 72%),
    linear-gradient(var(--landing-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--landing-grid-line) 1px, transparent 1px);
  background-position: center top, center top, center top;
  background-size: auto, clamp(84px, 8vw, 114px) clamp(84px, 8vw, 114px), clamp(84px, 8vw, 114px) clamp(84px, 8vw, 114px);
}

.landing-body .text-center {
  width: 100%;
}

.landing-body .cover-container {
  width: min(1180px, calc(100% - 28px));
  max-width: 1180px;
  box-sizing: border-box;
  padding: 14px 0 !important;
}

.landing-body a,
.landing-body a:focus,
.landing-body a:hover {
  color: inherit;
}

.landing-body .masthead {
  position: relative;
  z-index: 50;
  margin-bottom: 0;
}

.landing-body .navbar {
  min-height: 72px;
  padding: 8px 10px;
  border: 1px solid var(--landing-border);
  border-radius: 16px;
  background:
    radial-gradient(circle at 8% -50%, var(--landing-card-glow), transparent 18rem),
    var(--landing-nav-bg) !important;
  box-shadow: var(--landing-panel-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(18px);
}

.landing-body .navbar .container {
  max-width: none;
  padding: 4px 10px;
}

.landing-body .navbar-brand {
  gap: 2px;
  color: var(--landing-nav-text);
  letter-spacing: -0.04em;
}

.landing-body .navbar-brand img {
  display: block;
  object-fit: contain;
  transform: scaleX(-1);
}

.landing-body .brand-name {
  font-size: 1.35rem;
  font-weight: 750;
}

.landing-body .brand-dot {
  color: var(--landing-green);
}

.landing-body .navbar-nav {
  align-items: center;
  gap: 6px;
}

.landing-body .navbar-dark .navbar-nav .nav-link {
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--landing-nav-muted);
  font-size: 0.9rem;
  font-weight: 650;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.landing-body .navbar-dark .navbar-nav .nav-link:hover,
.landing-body .navbar-dark .navbar-nav .nav-link:focus-visible {
  color: var(--landing-nav-text);
  background: var(--landing-nav-hover);
}

.landing-theme-item {
  display: flex;
  align-items: center;
}

.landing-mobile-theme-slot {
  display: none;
}

.landing-nav-controls {
  display: none;
}

.landing-theme-toggle {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  color: var(--landing-nav-muted);
  border: 1px solid var(--landing-border);
  border-radius: 999px;
  background: var(--landing-nav-hover);
  font: inherit;
  line-height: 1;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.landing-theme-icon {
  display: block;
  font-family: "Apple Symbols", "Segoe UI Symbol", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1;
}

.landing-theme-toggle:hover,
.landing-theme-toggle:focus-visible {
  color: var(--landing-nav-text);
  border-color: var(--landing-border-strong);
  background: var(--landing-nav-hover);
  transform: translateY(-1px);
}

.landing-theme-toggle:active {
  transform: translateY(0) scale(0.96);
}

.landing-theme-toggle:focus-visible {
  outline: 3px solid rgba(240, 170, 102, 0.3);
  outline-offset: 3px;
}

.landing-body .navbar-dark .navbar-nav .nav-link-cta {
  margin-left: 0;
  padding-inline: 17px;
  color: var(--landing-on-accent);
  background: var(--landing-green);
}

.landing-body .navbar-dark .navbar-nav .nav-link-cta:hover,
.landing-body .navbar-dark .navbar-nav .nav-link-cta:focus-visible {
  color: var(--landing-on-accent);
  background: var(--landing-accent-hover);
  transform: translateY(-1px);
}

:root[data-theme="light"] .landing-body .navbar-toggler {
  border-color: var(--landing-border-strong);
}

:root[data-theme="light"] .landing-body .navbar-toggler-icon {
  filter: invert(1) brightness(0.38);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .landing-body .navbar-toggler {
    border-color: var(--landing-border-strong);
  }

  :root:not([data-theme="dark"]) .landing-body .navbar-toggler-icon {
    filter: invert(1) brightness(0.38);
  }
}

.landing-main {
  position: relative;
  width: 100%;
  margin: 18px auto 0;
  box-sizing: border-box;
  isolation: isolate;
  text-align: left;
}

.adaptive-life-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.landing-main > :not(.adaptive-life-grid) {
  position: relative;
  z-index: 1;
}

.landing-main *,
.landing-main *::before,
.landing-main *::after {
  box-sizing: border-box;
}

.landing-main h1,
.landing-main h2,
.landing-main h3,
.landing-main p {
  margin-top: 0;
}

.landing-main h1,
.landing-main h2,
.landing-main h3 {
  color: var(--landing-ink);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.landing-main p {
  color: var(--landing-muted);
  line-height: 1.7;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--landing-accent-strong) !important;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.2 !important;
  text-transform: uppercase;
}

.landing-hero {
  position: relative;
  width: 100vw;
  height: clamp(600px, calc(100dvh - 112px), 820px);
  margin-inline: calc(50% - 50vw);
  color: var(--landing-hero-ink);
  background: var(--landing-paper);
  isolation: isolate;
  overflow: hidden;
}

.black-hole-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.landing-hero.black-hole-ready .black-hole-canvas {
  opacity: 1;
}

.landing-hero.black-hole-unavailable .black-hole-canvas {
  display: none;
}

.landing-hero.black-hole-unavailable::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 46%,
    transparent 0 7%,
    rgba(255, 111, 18, 0.72) 11%,
    rgba(164, 43, 6, 0.26) 18%,
    transparent 30%
  );
  filter: blur(18px);
  content: "";
}

.black-hole-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--landing-hero-scrim-soft) 0%, transparent 22%, transparent 72%, var(--landing-hero-scrim) 100%),
    radial-gradient(circle at 50% 48%, transparent 0 28%, var(--landing-hero-scrim-soft) 72%, var(--landing-hero-scrim) 110%);
  pointer-events: none;
}

.hero-copy {
  position: absolute;
  right: max(28px, calc((100vw - 1180px) / 2 + 18px));
  top: clamp(22px, 3vh, 34px);
  bottom: clamp(22px, 3vh, 34px);
  left: max(28px, calc((100vw - 1180px) / 2 + 18px));
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-copy h1 {
  display: grid;
  grid-template-rows: auto clamp(310px, 42dvh, 400px) auto;
  align-items: center;
  width: 100%;
  max-width: 1360px;
  margin: 0;
  color: var(--landing-hero-ink);
  line-height: 0.9;
}

.learn-hero h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(3.25rem, 5.4vw, 5rem);
  line-height: 0.98;
}

.hero-copy h1 span {
  display: block;
}

.hero-copy h1 .hero-title-primary {
  grid-row: 1;
  color: var(--landing-hero-ink);
  font-size: clamp(5.4rem, 10.2vw, 9.6rem);
  letter-spacing: -0.065em;
  white-space: nowrap;
}

.hero-copy h1 .hero-title-secondary {
  grid-row: 3;
  align-self: start;
  margin-top: 58px;
  color: var(--landing-hero-ink);
  font-size: clamp(2rem, 4vw, 3.75rem);
  letter-spacing: -0.04em;
  line-height: 1;
  text-shadow:
    0 0 10px var(--landing-hero-scrim),
    0 0 24px var(--landing-hero-scrim),
    0 0 44px var(--landing-hero-scrim);
}

.learn-hero h1 span {
  color: var(--landing-purple);
}

.hero-lede {
  max-width: 470px;
  margin: 18px auto 0;
  color: var(--landing-hero-muted) !important;
  font-size: clamp(0.92rem, 1.35vw, 1.04rem);
}

.learn-hero-copy > p:not(.eyebrow) {
  max-width: 610px;
  margin-bottom: 30px;
  font-size: clamp(1.04rem, 1.8vw, 1.23rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

.landing-hero .eyebrow {
  justify-content: center;
  margin-bottom: 10px;
  color: var(--landing-green) !important;
}

.landing-hero .landing-button-primary {
  color: var(--landing-on-accent) !important;
  background: var(--landing-green);
  box-shadow: none;
}

.landing-hero .landing-button-primary:hover,
.landing-hero .landing-button-primary:focus {
  color: var(--landing-on-accent) !important;
  background: var(--landing-accent-hover);
  box-shadow: none;
}

.landing-hero .landing-button-quiet {
  color: var(--landing-hero-ink) !important;
  border-color: var(--landing-hero-quiet-border);
  background: var(--landing-hero-quiet-bg);
  backdrop-filter: blur(10px);
}

.landing-hero .landing-button-quiet:hover,
.landing-hero .landing-button-quiet:focus {
  background: var(--landing-hero-quiet-hover);
}

.landing-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 53px;
  padding: 13px 21px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.landing-button span {
  font-size: 1.25em;
  transition: transform 180ms ease;
}

.landing-button:hover {
  transform: translateY(-2px);
}

.landing-button:hover span {
  transform: translateX(3px);
}

.landing-button:active {
  transform: translateY(1px) scale(0.985);
}

.landing-button:focus-visible,
.text-link:focus-visible,
.faq-list summary:focus-visible {
  outline: 3px solid rgba(94, 123, 247, 0.34);
  outline-offset: 4px;
}

.landing-button-primary {
  color: var(--landing-on-accent) !important;
  background: var(--landing-green);
  box-shadow: var(--landing-panel-shadow);
}

.landing-button-primary:hover,
.landing-button-primary:focus {
  color: var(--landing-on-accent);
  background: var(--landing-accent-hover);
  box-shadow: var(--landing-shadow);
}

.landing-button-quiet {
  color: var(--landing-ink) !important;
  border-color: var(--landing-border);
  background: var(--landing-surface-glass);
}

.landing-button-quiet:hover,
.landing-button-quiet:focus {
  background: var(--landing-surface-raised);
}

.hero-demo {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  width: min(880px, 100%);
  min-width: 0;
  margin: 0 auto;
  padding: 112px 0 20px;
  background: transparent;
}

.practice-card {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(24px, 3vw, 31px);
  border: 1px solid var(--landing-border);
  border-radius: 20px;
  background:
    radial-gradient(circle at 92% 4%, var(--landing-card-glow), transparent 15rem),
    var(--landing-surface-glass);
  box-shadow: var(--landing-shadow);
}

.practice-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.practice-card-header p {
  margin-bottom: 3px;
  color: var(--landing-faint);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.practice-card-header strong {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.practice-card-header strong span {
  color: var(--landing-faint);
  font-weight: 550;
}

.subject-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.subject-pill {
  padding: 8px 11px;
  color: var(--landing-accent-strong);
  background: var(--landing-green-soft);
}

.practice-progress {
  height: 6px;
  margin: 18px 0 31px;
  border-radius: 99px;
  background: var(--landing-field);
  overflow: hidden;
}

.practice-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--landing-green), var(--landing-accent-hover));
  animation: progress-breathe 4s ease-in-out infinite;
}

.question-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--landing-accent-strong);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.practice-question h2 {
  margin-bottom: 13px;
  font-size: clamp(1.26rem, 2vw, 1.62rem);
  line-height: 1.22;
}

.practice-question {
  display: grid;
}

.practice-question-state {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(8px);
  visibility: hidden;
  transition:
    opacity 420ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s linear 420ms;
}

.practice-question-state.is-active {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition-delay: 0s;
}

.practice-equation {
  min-height: 51px;
  margin: 0 0 18px;
  color: var(--landing-ink);
  font-size: 0.92rem;
  line-height: 1.2;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.practice-equation mjx-container[display="true"] {
  margin: 0 !important;
  text-align: left !important;
}

.practice-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.practice-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 7px;
  color: var(--landing-faint);
  border: 0;
  border-radius: 11px;
  background: var(--landing-field);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 750;
  transition: color 300ms ease, background 300ms ease, transform 300ms ease;
}

.practice-action:focus-visible {
  outline: 2px solid var(--landing-accent-strong);
  outline-offset: 3px;
}

.practice-action i {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--landing-border-strong);
  border-radius: 50%;
  font-size: 0.64rem;
  font-style: normal;
}

.practice-action.active {
  color: var(--landing-ink);
  background: var(--landing-green-soft);
  transform: translateY(-2px);
}

.practice-action.active i {
  color: var(--landing-on-accent);
  border-color: var(--landing-green);
  background: var(--landing-green);
}

.ai-nudge {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 15px;
  border-radius: 14px;
  border: 1px solid var(--landing-border);
  background: var(--landing-surface-raised);
  box-shadow: var(--landing-panel-shadow);
  transition:
    opacity 420ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 420ms ease;
}

.ai-nudge.is-muted {
  opacity: 0.46;
  transform: scale(0.985);
}

.ai-nudge.is-active {
  border-color: var(--landing-border-strong);
  opacity: 1;
  transform: translateY(-3px);
}

.hero-support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 12px;
}

.ai-nudge strong {
  display: block;
  margin-bottom: 3px;
  color: var(--landing-ink);
  font-size: 0.78rem;
}

.ai-nudge p {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.45;
}

.ai-nudge-tutor {
  width: auto;
}

.ai-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--landing-on-accent);
  border-radius: 11px;
  background: var(--landing-green);
  font-size: 0.7rem;
  font-weight: 850;
}

.ai-nudge-grader {
  align-items: center;
  width: auto;
  background: var(--landing-surface-raised);
}

.ai-nudge-grader strong,
.ai-nudge-grader p {
  color: var(--landing-ink);
}

.ai-nudge-grader p {
  color: var(--landing-muted);
}

.grader-spark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--landing-on-accent);
  border-radius: 11px;
  background: var(--landing-green);
}

.landing-section {
  position: relative;
  padding: 122px 0 20px;
  isolation: isolate;
}

.section-heading {
  max-width: 730px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading .eyebrow {
  justify-content: center;
}

.section-heading h2,
.landing-cta h2,
.definition-panel h2,
.principle-section h2,
.why-copy h2 {
  margin-bottom: 17px;
  font-size: clamp(2.2rem, 4.2vw, 3.75rem);
  line-height: 1.06;
}

.section-heading > p:not(.eyebrow),
.why-copy > p:not(.eyebrow) {
  max-width: 630px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.section-heading-left {
  max-width: 760px;
  margin-left: 0;
  text-align: left;
}

.section-heading-left .eyebrow {
  justify-content: flex-start;
}

.section-heading-left > p:not(.eyebrow) {
  margin-left: 0;
}

.practice-loop-section {
  padding-top: 146px;
}

.practice-loop-intro {
  max-width: 890px;
  margin-bottom: 68px;
}

.practice-loop-intro h2 {
  max-width: 14ch;
  margin-bottom: 20px;
  font-size: clamp(2.7rem, 5.2vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.practice-loop-intro > p {
  max-width: 580px;
  margin: 0;
  font-size: 1.05rem;
}

.loop-sequence {
  position: relative;
  display: grid;
  grid-template-columns: 1.12fr 0.92fr 1.24fr 0.92fr;
  min-height: 450px;
  margin: 0;
  padding: 0;
  list-style: none;
  background:
    linear-gradient(90deg, transparent, var(--landing-card-glow) 30%, transparent 72%);
}

.loop-sequence::before,
.loop-sequence::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  height: 1px;
  pointer-events: none;
}

.loop-sequence::before {
  right: 0;
  background: var(--landing-border-strong);
}

.loop-sequence::after {
  width: 25%;
  background: linear-gradient(90deg, transparent, var(--landing-accent-hover), transparent);
  opacity: 0.85;
}

.loop-step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 1fr 34px 1fr;
  min-width: 0;
  padding: 0 clamp(18px, 2.1vw, 34px);
}

.loop-step:first-child {
  padding-left: 0;
}

.loop-step:last-child {
  padding-right: 0;
}

.loop-node {
  grid-row: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--landing-on-accent);
  border: 1px solid color-mix(in srgb, var(--landing-green) 72%, var(--landing-border));
  border-radius: 50%;
  background: var(--landing-green);
  box-shadow: 0 0 0 7px var(--landing-paper);
  font-size: 0.76rem;
  font-weight: 800;
}

.loop-step-copy {
  max-width: 250px;
}

.loop-step:nth-child(odd) .loop-step-copy {
  grid-row: 1;
  align-self: end;
  padding-bottom: 34px;
}

.loop-step:nth-child(even) .loop-step-copy {
  grid-row: 3;
  padding-top: 34px;
}

.loop-step-label {
  margin-bottom: 12px !important;
  color: var(--landing-accent-strong) !important;
  font-size: 0.73rem !important;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.loop-step h3 {
  margin-bottom: 12px;
  font-size: clamp(1.28rem, 2vw, 1.72rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.loop-step-copy > p:last-child {
  margin-bottom: 0;
  font-size: 0.88rem;
  line-height: 1.55;
}

@media (prefers-reduced-motion: no-preference) {
  .loop-sequence::after {
    animation: loop-trace 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  }
}

@keyframes loop-trace {
  0%, 12% { transform: translateX(0); opacity: 0; }
  22% { opacity: 0.85; }
  78% { opacity: 0.85; }
  88%, 100% { transform: translateX(300%); opacity: 0; }
}

.concept-section {
  padding-top: 142px;
}

.concept-section .section-heading {
  margin-bottom: 50px;
}

.concept-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.concept-card {
  position: relative;
  min-height: 525px;
  padding: clamp(25px, 3.5vw, 38px);
  border: 1px solid var(--landing-border);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, var(--landing-card-glow), transparent 17rem),
    var(--landing-surface-glass);
  overflow: hidden;
}

.concept-card-manifold,
.concept-card-relativity {
  grid-column: span 7;
}

.concept-card-distribution,
.concept-card-structure {
  grid-column: span 5;
}

.concept-card-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.concept-label {
  margin-bottom: 10px;
  color: var(--landing-accent-strong) !important;
  font-size: 0.72rem !important;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2 !important;
  text-transform: uppercase;
}

.concept-card h3 {
  max-width: 570px;
  margin: 0;
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
  line-height: 1.08;
}

.concept-card > p {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin: 16px 0 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.concept-notation,
.queue-readout,
.relativity-equation {
  position: absolute;
  right: clamp(25px, 3.5vw, 38px);
  bottom: 26px;
  left: clamp(25px, 3.5vw, 38px);
  z-index: 3;
  height: 44px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--landing-border);
  border-radius: 12px;
  color: var(--landing-ink);
  background: var(--landing-surface-glass);
  font-size: 0.95rem;
  text-align: center;
  backdrop-filter: blur(10px);
}

.concept-notation mjx-container,
.relativity-equation mjx-container {
  margin: 0 !important;
}

.concept-notation-small {
  font-size: 0.76rem;
}

.concept-model {
  position: absolute;
  right: clamp(25px, 3.5vw, 38px);
  bottom: 82px;
  left: clamp(25px, 3.5vw, 38px);
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
}

.concept-model::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 1px solid var(--landing-border);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.concept-model canvas,
.concept-model svg {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.concept-model-manifold {
  height: 246px;
  background: linear-gradient(145deg, var(--landing-green-soft), var(--landing-surface));
}

.concept-model-distribution {
  height: 205px;
  background: linear-gradient(180deg, var(--landing-purple-soft), var(--landing-surface));
}

.concept-model-heap {
  height: 205px;
  background: var(--landing-surface);
}

.heap-model-edge {
  stroke-linecap: round;
  transition: stroke 180ms ease, stroke-width 180ms ease;
}

.heap-model-node circle {
  filter: drop-shadow(0 6px 8px rgba(35, 45, 79, 0.08));
  transition: fill 180ms ease, stroke 180ms ease;
}

.model-unavailable {
  background:
    repeating-linear-gradient(0deg, rgba(84, 104, 78, 0.12) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(84, 104, 78, 0.12) 0 1px, transparent 1px 24px),
    var(--landing-surface);
}

.model-readout {
  position: absolute;
  top: 13px;
  left: 15px;
  z-index: 3;
  color: var(--landing-muted);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  pointer-events: none;
}

.distribution-state {
  color: var(--landing-muted);
}

.queue-readout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  text-align: left;
}

.queue-readout span {
  color: var(--landing-faint);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.queue-readout code {
  min-width: 135px;
  color: var(--landing-ink);
  font-size: 0.8rem;
  font-style: normal;
  text-align: right;
  white-space: nowrap;
}

.concept-card-relativity {
  color: var(--landing-ink);
}

.concept-card-relativity .concept-label {
  color: var(--landing-accent-strong) !important;
}

.concept-card-relativity h3,
.concept-card-relativity > p {
  color: var(--landing-ink);
}

.concept-card-relativity > p {
  color: var(--landing-muted);
}

.concept-model-relativity {
  height: 246px;
  background:
    radial-gradient(circle at 62% 55%, rgba(111, 133, 196, 0.17), transparent 48%),
    #111827;
}

.concept-model-relativity::after {
  border: 1px solid var(--landing-border);
}

.concept-model-relativity .model-readout {
  color: rgba(245, 242, 235, 0.62);
}

.relativity-equation {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: auto;
}

.ai-section {
  padding-top: 135px;
}

.ai-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ai-feature-card {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 540px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--landing-border);
  border-radius: 22px;
  background:
    radial-gradient(circle at 8% 100%, var(--landing-card-glow), transparent 20rem),
    radial-gradient(circle at 100% 0%, var(--landing-cool-glow), transparent 18rem),
    var(--landing-surface-raised);
  overflow: hidden;
}

.ai-feature-header {
  min-height: 145px;
}

.feature-label {
  margin-bottom: 9px;
  color: var(--landing-accent-strong) !important;
  font-size: 0.77rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  line-height: 1.2 !important;
  text-transform: uppercase;
}

.ai-feature-card h3 {
  max-width: 520px;
  margin-bottom: 14px;
  color: var(--landing-ink);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  line-height: 1.04;
}

.ai-feature-header > p:not(.feature-label) {
  max-width: 520px;
  margin: 0;
  color: var(--landing-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.ai-interaction-stage {
  display: grid;
  align-self: end;
  min-height: 260px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--landing-border);
}

.voice-turn-list,
.grader-step-list {
  display: grid;
  align-content: start;
  gap: 4px;
}

.voice-turn,
.grader-step {
  width: 100%;
  min-height: 66px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  color: var(--landing-muted);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 220ms ease, background 220ms ease, transform 220ms ease;
}

.voice-turn:hover,
.grader-step:hover,
.voice-turn:focus-visible,
.grader-step:focus-visible {
  color: var(--landing-ink);
  background: var(--landing-surface-glass);
}

.voice-turn:focus-visible,
.grader-step:focus-visible {
  outline: 2px solid var(--landing-accent-strong);
  outline-offset: 2px;
}

.voice-turn:active,
.grader-step:active {
  transform: translateY(1px);
}

.voice-turn {
  display: grid;
  grid-template-columns: minmax(94px, 0.7fr) minmax(140px, 1.3fr) auto;
  gap: 16px;
  align-items: center;
}

.voice-turn.is-active,
.grader-step.is-active {
  color: var(--landing-ink);
  background: var(--landing-surface-glass);
  box-shadow: inset 2px 0 0 var(--landing-accent-strong);
}

.voice-turn-meta {
  display: grid;
  gap: 2px;
}

.voice-turn-meta strong {
  color: inherit;
  font-size: 0.88rem;
  font-weight: 800;
}

.voice-turn-meta small,
.voice-duration {
  color: var(--landing-muted);
  font-size: 0.68rem;
  font-weight: 650;
}

.voice-duration {
  font-variant-numeric: tabular-nums;
}

.voice-signature {
  display: grid;
  grid-template-columns: repeat(16, minmax(2px, 1fr));
  align-items: center;
  gap: 4px;
  height: 36px;
}

.voice-signature i {
  --voice-level: 0.5;
  display: block;
  justify-self: center;
  width: min(5px, 100%);
  height: 100%;
  border-radius: 99px;
  background: currentColor;
  opacity: 0.32;
  transform: scaleY(var(--voice-level));
  transform-origin: center;
}

.voice-signature-learner {
  color: var(--landing-accent-strong);
}

.voice-signature-tutor {
  color: var(--landing-ink);
}

.voice-signature-learner i:nth-child(1) { --voice-level: 0.2; }
.voice-signature-learner i:nth-child(2) { --voice-level: 0.42; }
.voice-signature-learner i:nth-child(3) { --voice-level: 0.84; }
.voice-signature-learner i:nth-child(4) { --voice-level: 0.32; }
.voice-signature-learner i:nth-child(5) { --voice-level: 0.68; }
.voice-signature-learner i:nth-child(6) { --voice-level: 0.95; }
.voice-signature-learner i:nth-child(7) { --voice-level: 0.5; }
.voice-signature-learner i:nth-child(8) { --voice-level: 0.78; }
.voice-signature-learner i:nth-child(9) { --voice-level: 0.38; }
.voice-signature-learner i:nth-child(10) { --voice-level: 0.9; }
.voice-signature-learner i:nth-child(11) { --voice-level: 0.56; }
.voice-signature-learner i:nth-child(12) { --voice-level: 0.28; }
.voice-signature-learner i:nth-child(13) { --voice-level: 0.72; }
.voice-signature-learner i:nth-child(14) { --voice-level: 0.46; }
.voice-signature-learner i:nth-child(15) { --voice-level: 0.24; }
.voice-signature-learner i:nth-child(16) { --voice-level: 0.14; }

.voice-signature-tutor i:nth-child(1) { --voice-level: 0.16; }
.voice-signature-tutor i:nth-child(2) { --voice-level: 0.25; }
.voice-signature-tutor i:nth-child(3) { --voice-level: 0.4; }
.voice-signature-tutor i:nth-child(4) { --voice-level: 0.58; }
.voice-signature-tutor i:nth-child(5) { --voice-level: 0.74; }
.voice-signature-tutor i:nth-child(6) { --voice-level: 0.86; }
.voice-signature-tutor i:nth-child(7) { --voice-level: 0.94; }
.voice-signature-tutor i:nth-child(8) { --voice-level: 1; }
.voice-signature-tutor i:nth-child(9) { --voice-level: 0.92; }
.voice-signature-tutor i:nth-child(10) { --voice-level: 0.8; }
.voice-signature-tutor i:nth-child(11) { --voice-level: 0.66; }
.voice-signature-tutor i:nth-child(12) { --voice-level: 0.52; }
.voice-signature-tutor i:nth-child(13) { --voice-level: 0.38; }
.voice-signature-tutor i:nth-child(14) { --voice-level: 0.3; }
.voice-signature-tutor i:nth-child(15) { --voice-level: 0.22; }
.voice-signature-tutor i:nth-child(16) { --voice-level: 0.15; }

.voice-turn.is-active .voice-signature i {
  opacity: 0.88;
}

.voice-turn.is-active .voice-signature-learner i {
  animation: voice-burst 1.7s cubic-bezier(0.22, 1, 0.36, 1) infinite alternate;
}

.voice-turn.is-active .voice-signature-tutor i {
  animation: voice-calm 2.6s ease-in-out infinite alternate;
}

.voice-turn.is-active .voice-signature i:nth-child(2n) { animation-delay: -0.55s; }
.voice-turn.is-active .voice-signature i:nth-child(3n) { animation-delay: -1.1s; }
.voice-turn.is-active .voice-signature i:nth-child(5n) { animation-delay: -1.65s; }

.voice-transcript {
  align-self: end;
  min-height: 66px;
  margin: 18px 12px 0;
  color: var(--landing-muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.grader-preview {
  grid-template-rows: auto 1fr auto;
}

.grader-submission-label {
  margin: 0 12px 7px;
  color: var(--landing-muted);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.grader-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 49px;
}

.grader-step span {
  min-width: 0;
  color: inherit;
  font-size: 0.8rem;
  line-height: 1.35;
}

.grader-step strong {
  color: var(--landing-accent-strong);
  font-size: 0.67rem;
  font-weight: 800;
}

.grader-feedback {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  min-height: 66px;
  margin: 18px 12px 0;
  color: var(--landing-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.grader-feedback span {
  color: var(--landing-accent-strong);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.grader-feedback strong {
  color: var(--landing-muted);
  font-weight: 600;
}

.landing-cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 45px;
  align-items: center;
  margin: 120px 0 36px;
  padding: 58px clamp(28px, 6vw, 72px);
  border: 1px solid var(--landing-border);
  border-radius: var(--landing-radius-lg);
  background:
    radial-gradient(circle at 5% 100%, var(--landing-card-glow), transparent 23rem),
    var(--landing-surface-glass);
  box-shadow: var(--landing-panel-shadow);
  overflow: hidden;
}

.cta-life-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.9;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.46), #000 48%, #000);
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.46), #000 48%, #000);
}

.landing-cta > img {
  position: absolute;
  right: 21%;
  bottom: -74px;
  z-index: 1;
  width: 195px;
  opacity: 0.09;
  transform: rotate(-3deg);
}

.landing-cta > div,
.landing-cta > a {
  position: relative;
  z-index: 2;
}

.landing-cta .eyebrow {
  color: var(--landing-green) !important;
}

.landing-cta h2 {
  max-width: 740px;
  color: var(--landing-ink);
  font-size: clamp(2.1rem, 4vw, 3.5rem);
}

.landing-cta p:not(.eyebrow) {
  max-width: 690px;
  margin-bottom: 0;
  color: var(--landing-muted);
}

.landing-button-light {
  color: var(--landing-on-accent) !important;
  background: var(--landing-green);
  white-space: nowrap;
}

.landing-button-light:hover,
.landing-button-light:focus {
  background: var(--landing-accent-hover);
}

.landing-body > .text-center > .mastfoot,
.landing-body .mastfoot {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 20px 18px 32px;
  color: var(--landing-muted);
  font-size: 0.82rem;
}

.landing-body .mastfoot a {
  color: var(--landing-ink);
  font-weight: 700;
  text-underline-offset: 3px;
}

/* Learn More */

.learn-more-main {
  --walkthrough-line: var(--landing-border);
}

body.landing-body.landing-learn-more {
  background-image:
    radial-gradient(ellipse 72% 760px at 82% 520px, var(--landing-page-glow-a), transparent 70%),
    radial-gradient(ellipse 54% 620px at 5% 54%, var(--landing-page-glow-b), transparent 74%),
    linear-gradient(var(--landing-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--landing-grid-line) 1px, transparent 1px);
  background-position: center top, center top, center top, center top;
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  background-size:
    auto,
    auto,
    clamp(84px, 8vw, 114px) clamp(84px, 8vw, 114px),
    clamp(84px, 8vw, 114px) clamp(84px, 8vw, 114px);
}

.learn-page-motifs {
  position: absolute !important;
  inset: 0 calc(50% - 50vw);
  z-index: 0 !important;
  overflow: hidden;
  color: var(--landing-faint);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.learn-page-motifs span {
  position: absolute;
  opacity: 0.13;
}

.learn-page-motifs span:nth-child(1) {
  top: 9%;
  left: 1.5%;
  font-size: clamp(4rem, 8vw, 8rem);
  transform: rotate(-12deg);
}

.learn-page-motifs span:nth-child(2) {
  top: 27%;
  right: 1%;
  font-size: clamp(3rem, 6vw, 6rem);
  transform: rotate(9deg);
}

.learn-page-motifs span:nth-child(3) {
  top: 48%;
  left: 2.5%;
  font-size: clamp(4rem, 7vw, 7rem);
  transform: rotate(7deg);
}

.learn-page-motifs span:nth-child(4) {
  top: 68%;
  right: 2%;
  font-size: clamp(3.6rem, 7vw, 7rem);
  transform: rotate(-8deg);
}

.learn-page-motifs span:nth-child(5) {
  top: 86%;
  left: 1%;
  font-size: clamp(3.4rem, 6vw, 6rem);
  transform: rotate(11deg);
}

.learn-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(440px, 0.86fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: 660px;
  padding: 68px clamp(24px, 5vw, 72px);
  border: 1px solid var(--landing-border);
  border-radius: 28px;
  background:
    radial-gradient(circle at 82% 45%, var(--landing-card-glow), transparent 22rem),
    radial-gradient(circle at 8% -10%, var(--landing-cool-glow), transparent 28rem),
    linear-gradient(145deg, var(--landing-surface-soft), var(--landing-surface) 66%);
  box-shadow: var(--landing-panel-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.learn-hero::before {
  position: absolute;
  top: -25%;
  right: -9%;
  width: 58%;
  aspect-ratio: 1;
  border: 1px solid var(--landing-border);
  border-radius: 50%;
  box-shadow:
    0 0 0 54px rgba(240, 170, 102, 0.018),
    0 0 0 112px rgba(240, 170, 102, 0.012);
  content: "";
  pointer-events: none;
}

.learn-hero-copy {
  position: relative;
  z-index: 2;
}

.learn-hero-copy h1 {
  max-width: 660px;
  text-wrap: balance;
}

.learn-hero-copy h1 span {
  color: var(--landing-green);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 5px;
  color: var(--landing-ink) !important;
  font-size: 0.9rem;
  font-weight: 760;
  text-underline-offset: 4px;
}

.learn-hero-visual {
  position: relative;
  z-index: 2;
  min-width: 0;
  min-height: 540px;
}

.learning-orbit-stage {
  position: absolute;
  inset: 0 0 26px;
  color: var(--landing-green);
  transform: translate3d(calc(var(--orbit-x, 0) * 1px), calc(var(--orbit-y, 0) * 1px), 0);
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.learning-orbit-stage::before {
  position: absolute;
  inset: 16% 13% 12%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--landing-card-glow), transparent 69%);
  filter: blur(16px);
  content: "";
  pointer-events: none;
}

.learning-orbit-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 28px 38px rgba(4, 2, 1, 0.14));
}

.learning-orbit-halo {
  fill: url(#learnOrbitGlow);
  opacity: 0.13;
  transform-origin: center;
  animation: learning-orbit-breathe 8s ease-in-out infinite;
}

.learning-orbit-contour,
.learning-orbit-path {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.learning-orbit-contour {
  stroke: var(--landing-border-strong);
  stroke-width: 1;
  stroke-dasharray: 2 10;
}

.learning-orbit-contour-inner {
  stroke: var(--landing-border);
  stroke-dasharray: 1 8;
}

.learning-orbit-path {
  stroke: var(--landing-accent-strong);
  stroke-width: 1.6;
  stroke-dasharray: 1 7;
  opacity: 0.7;
}

:root[data-theme="dark"] .learning-orbit-contour {
  stroke: rgba(240, 170, 102, 0.2);
}

:root[data-theme="dark"] .learning-orbit-contour-inner {
  stroke: rgba(240, 170, 102, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .learning-orbit-contour {
    stroke: rgba(240, 170, 102, 0.2);
  }

  :root:not([data-theme="light"]) .learning-orbit-contour-inner {
    stroke: rgba(240, 170, 102, 0.12);
  }
}

.learning-orbit-particle-glow {
  fill: var(--landing-green);
  opacity: 0.18;
  filter: url(#learnOrbitBlur);
}

.learning-orbit-particle {
  fill: var(--landing-accent-hover);
  stroke: var(--landing-surface-raised);
  stroke-width: 3;
  filter: drop-shadow(0 0 10px var(--landing-green));
}

.learning-orbit-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 184px;
  height: 184px;
  padding: 24px;
  border: 1px solid var(--landing-border-strong);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 10%, var(--landing-card-glow), transparent 65%),
    var(--landing-surface-glass);
  box-shadow: var(--landing-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  text-align: center;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(16px);
}

.learning-orbit-core::before {
  position: absolute;
  inset: -10px;
  border: 1px solid var(--landing-border);
  border-radius: 50%;
  content: "";
}

.learning-orbit-core > span {
  margin-bottom: 7px;
  color: var(--landing-accent-strong);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.learning-orbit-core strong {
  color: var(--landing-ink);
  font-size: 1.45rem;
  letter-spacing: -0.035em;
}

.learning-orbit-core p {
  margin: 8px 0 0;
  color: var(--landing-muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.learning-orbit-step {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 112px;
  padding: 11px 13px;
  color: var(--landing-muted);
  border: 1px solid var(--landing-border);
  border-radius: 13px;
  background: var(--landing-surface-glass);
  box-shadow: 0 12px 30px rgba(4, 2, 1, 0.1);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 760;
  cursor: pointer;
  backdrop-filter: blur(14px);
  transition: color 260ms ease, border-color 260ms ease, background 260ms ease, transform 260ms ease;
}

.learning-orbit-step span {
  color: var(--landing-faint);
  font-size: 0.61rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.learning-orbit-step:hover,
.learning-orbit-step:focus-visible,
.learning-orbit-step.is-active {
  color: var(--landing-ink);
  border-color: var(--landing-border-strong);
  background: var(--landing-surface-raised);
  transform: translateY(-2px);
}

.learning-orbit-step:focus-visible {
  outline: 3px solid rgba(240, 170, 102, 0.25);
  outline-offset: 4px;
}

.learning-orbit-step.is-active span {
  color: var(--landing-accent-strong);
}

.learning-orbit-step-attempt {
  top: 8%;
  left: 7%;
}

.learning-orbit-step-ask {
  top: 19%;
  right: 0;
}

.learning-orbit-step-check {
  right: 3%;
  bottom: 13%;
}

.learning-orbit-step-return {
  bottom: 6%;
  left: 4%;
}

.learning-orbit-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  margin: 0;
  color: var(--landing-faint) !important;
  font-size: 0.7rem;
  letter-spacing: 0.01em;
  text-align: center;
}

.learning-orbit-caption span {
  color: var(--landing-ink);
  font-weight: 760;
}

.learn-hero .hero-actions {
  justify-content: flex-start;
}

.definition-panel {
  position: relative;
  display: grid;
  grid-template-columns: 0.7fr 1.2fr 0.8fr;
  gap: 28px;
  align-items: start;
  margin-top: 22px;
  padding: 36px clamp(26px, 5vw, 52px);
  border: 1px solid var(--landing-border);
  border-radius: var(--landing-radius-md);
  background:
    radial-gradient(circle at 0 100%, var(--landing-card-glow), transparent 20rem),
    var(--landing-surface-glass);
  overflow: hidden;
}

.definition-panel::after {
  position: absolute;
  right: clamp(20px, 4vw, 50px);
  bottom: -0.26em;
  color: var(--landing-border);
  font-family: Georgia, serif;
  font-size: clamp(5rem, 9vw, 8rem);
  line-height: 1;
  content: "∂";
  pointer-events: none;
}

.definition-panel .math-motif {
  position: absolute;
  z-index: 0;
  color: var(--landing-faint);
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.math-motif-nabla {
  top: 18px;
  right: 25%;
  font-size: clamp(2.4rem, 4vw, 4.4rem);
  opacity: 0.3;
  transform: rotate(-9deg);
}

.math-motif-wedge {
  top: 31%;
  left: 31%;
  font-size: clamp(1.4rem, 2.4vw, 2.6rem);
  opacity: 0.22;
  transform: rotate(12deg);
}

.math-motif-pi {
  right: 15%;
  bottom: 13px;
  font-size: clamp(1.8rem, 3vw, 3.3rem);
  opacity: 0.26;
  transform: rotate(7deg);
}

.definition-panel > * {
  position: relative;
  z-index: 1;
}

.definition-word {
  color: var(--landing-purple) !important;
  font-size: 1.06rem;
  font-weight: 800;
}

.definition-word span {
  display: block;
  margin-top: 5px;
  color: var(--landing-faint);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.definition-panel h2 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  line-height: 1.16;
}

.definition-panel > p:last-child {
  margin-bottom: 0;
  padding-right: 30px;
  font-size: 0.88rem;
}

@keyframes learning-orbit-breathe {
  0%, 100% { opacity: 0.1; transform: scale(0.96); }
  50% { opacity: 0.19; transform: scale(1.04); }
}

.walkthrough-section {
  padding-top: 135px;
}

.walkthrough-list {
  position: relative;
  --walkthrough-axis: 46px;
  --walkthrough-rail-start: 87px;
  --walkthrough-rail-end: 87px;
  --walkthrough-progress-ratio: 0;
  margin: 0;
  padding: 0;
  isolation: isolate;
  list-style: none;
}

.walkthrough-list::before {
  content: "";
  position: absolute;
  top: var(--walkthrough-rail-start);
  bottom: var(--walkthrough-rail-end);
  left: calc(var(--walkthrough-axis) - 1px);
  z-index: 0;
  width: 2px;
  border-radius: 99px;
  background: var(--walkthrough-line);
  pointer-events: none;
}

.walkthrough-list::after {
  position: absolute;
  top: var(--walkthrough-rail-start);
  left: calc(var(--walkthrough-axis) - 1px);
  z-index: 0;
  width: 2px;
  bottom: var(--walkthrough-rail-end);
  border-radius: 99px;
  background: linear-gradient(180deg, var(--landing-green), var(--landing-coral));
  box-shadow: 0 0 18px var(--landing-card-glow);
  content: "";
  pointer-events: none;
  transform: scaleY(var(--walkthrough-progress-ratio));
  transform-origin: center top;
  transition: transform 900ms cubic-bezier(0.65, 0, 0.35, 1);
}

.walkthrough-item {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 92px minmax(0, 0.95fr) minmax(330px, 0.8fr);
  gap: clamp(25px, 4vw, 55px);
  align-items: center;
  min-height: 310px;
  padding: 46px 30px 46px 0;
  border-bottom: 1px solid var(--walkthrough-line);
  opacity: 0.58;
  transition: opacity 420ms ease;
}

.walkthrough-item.is-active,
.walkthrough-item.has-passed {
  opacity: 1;
}

.walkthrough-marker {
  position: relative;
  align-self: stretch;
  display: flex;
  justify-content: center;
  padding-top: 15px;
}

.walkthrough-marker::before {
  position: absolute;
  top: 5px;
  left: 50%;
  z-index: 1;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--landing-paper);
  content: "";
  transform: translateX(-50%);
}

.walkthrough-marker span {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--landing-border);
  border-radius: 50%;
  color: var(--landing-ink);
  background: var(--landing-paper);
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  transition: color 320ms ease, border-color 320ms ease, background 320ms ease, box-shadow 320ms ease, transform 320ms ease;
}

.walkthrough-item:nth-child(2) .walkthrough-marker span { background: var(--landing-coral-soft); }
.walkthrough-item:nth-child(3) .walkthrough-marker span { background: var(--landing-blue-soft); }
.walkthrough-item:nth-child(4) .walkthrough-marker span { background: var(--landing-purple-soft); }
.walkthrough-item:nth-child(5) .walkthrough-marker span { background: var(--landing-green-soft); }

.walkthrough-item.is-active .walkthrough-marker span {
  color: var(--landing-on-accent);
  border-color: var(--landing-green);
  background: var(--landing-green);
  box-shadow: 0 0 0 8px var(--landing-green-soft), 0 8px 28px var(--landing-card-glow);
  transform: scale(1.06);
}

.walkthrough-label {
  margin-bottom: 10px;
  color: var(--landing-purple) !important;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  line-height: 1.2 !important;
  text-transform: uppercase;
}

.walkthrough-copy h3 {
  max-width: 520px;
  margin-bottom: 15px;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1.1;
}

.walkthrough-copy > p:last-child {
  max-width: 590px;
  margin-bottom: 0;
  font-size: 0.93rem;
}

.walkthrough-art {
  width: 100%;
  min-height: 185px;
  padding: 24px;
  border: 1px solid var(--landing-border);
  border-radius: var(--landing-radius-md);
  background: var(--landing-surface-raised);
  box-shadow: var(--landing-panel-shadow);
  transform: translateY(7px) scale(0.985);
  transition: border-color 420ms ease, box-shadow 420ms ease, transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.walkthrough-item.is-active .walkthrough-art {
  border-color: var(--landing-border-strong);
  box-shadow: var(--landing-shadow);
  transform: translateY(-4px) scale(1);
}

.course-stack-art {
  position: relative;
  display: grid;
  place-items: center;
  background: var(--landing-purple-soft);
}

.course-stack-art span {
  position: absolute;
  width: 76%;
  padding: 13px 15px;
  border: 1px solid rgba(105, 114, 174, 0.14);
  border-radius: 12px;
  color: var(--landing-ink);
  background: var(--landing-surface-raised);
  font-size: 0.75rem;
  font-weight: 730;
  box-shadow: 0 8px 20px rgba(50, 61, 102, 0.08);
  transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.course-stack-art span:nth-child(1) { transform: translateY(-38px) rotate(-1deg); }
.course-stack-art span:nth-child(2) { z-index: 2; transform: translateY(1px); }
.course-stack-art span:nth-child(3) { transform: translateY(40px) rotate(1deg); }

.walkthrough-item.is-active .course-stack-art span:nth-child(1) { transform: translateY(-43px) rotate(-2.5deg); }
.walkthrough-item.is-active .course-stack-art span:nth-child(3) { transform: translateY(45px) rotate(2.5deg); }

.message-art {
  display: grid;
  place-items: center;
  background: var(--landing-coral-soft);
}

.message-art > div {
  width: min(100%, 275px);
  padding: 17px;
  border-radius: 16px;
  background: var(--landing-surface-raised);
  box-shadow: var(--landing-panel-shadow);
  transform-origin: 90% 10%;
}

.walkthrough-item.is-active .message-art > div {
  animation: message-arrive 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.message-art small {
  color: var(--landing-faint);
  font-size: 0.65rem;
  font-weight: 700;
}

.message-art p {
  margin: 9px 0 12px;
  color: var(--landing-ink);
  font-size: 0.84rem;
  font-weight: 720;
  line-height: 1.4;
}

.message-art span {
  color: var(--landing-coral);
  font-size: 0.7rem;
  font-weight: 800;
}

.attempt-art {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--landing-blue-soft);
}

.attempt-art div {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.attempt-art div span {
  color: var(--landing-faint);
  font-size: 0.7rem;
  font-weight: 700;
}

.attempt-art strong {
  color: var(--landing-ink);
  font-size: 1.3rem;
}

.attempt-art button {
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: var(--landing-navy);
  font-size: 0.72rem;
  font-weight: 750;
  transition: color 320ms ease, background 320ms ease;
}

.walkthrough-item.is-active .attempt-art button {
  color: var(--landing-on-accent);
  background: var(--landing-green);
}

.tutor-art {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--landing-purple-soft);
}

.tutor-art p {
  width: fit-content;
  max-width: 90%;
  margin: 0;
  padding: 11px 13px;
  font-size: 0.72rem;
  line-height: 1.45;
  transition: opacity 420ms ease, transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.walkthrough-item:not(.is-active) .tutor-art p {
  opacity: 0.56;
  transform: translateY(4px);
}

.tutor-question {
  align-self: flex-end;
  color: #fff !important;
  border-radius: 14px 14px 3px 14px;
  background: var(--landing-purple);
}

.tutor-answer {
  color: var(--landing-ink) !important;
  border-radius: 14px 14px 14px 3px;
  background: var(--landing-surface-raised);
}

.tutor-answer span {
  margin-right: 4px;
  color: var(--landing-purple);
  font-weight: 850;
}

.score-art {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 21px;
  background: var(--landing-green-soft);
}

.score-art > div {
  display: grid;
  grid-template-columns: 58px 1fr 48px;
  gap: 9px;
  align-items: center;
  color: var(--landing-muted);
  font-size: 0.68rem;
}

.score-art i {
  height: 7px;
  border-radius: 99px;
  background: var(--landing-border);
  overflow: hidden;
}

.score-art i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--landing-green);
  transform: scaleX(0.15);
  transform-origin: left;
  transition: transform 850ms cubic-bezier(0.22, 1, 0.36, 1);
}

.walkthrough-item.is-active .score-art i b {
  transform: scaleX(1);
}

@keyframes message-arrive {
  0% { opacity: 0.28; transform: translateY(10px) scale(0.96); }
  100% { opacity: 1; transform: none; }
}

.score-art strong {
  color: var(--landing-accent-strong);
  font-size: 0.67rem;
  text-align: right;
}

.why-section {
  display: grid;
  grid-template-columns: 0.85fr 1.35fr;
  gap: clamp(45px, 8vw, 105px);
  align-items: start;
  padding-top: 135px;
}

.why-copy {
  position: sticky;
  top: 30px;
}

.why-copy h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.why-copy > p:not(.eyebrow) {
  margin-left: 0;
}

.why-grid {
  display: grid;
  gap: 14px;
}

.why-card {
  position: relative;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  column-gap: 20px;
  align-content: center;
  min-height: 148px;
  padding: 24px 72px 24px 26px;
  border: 1px solid var(--landing-border);
  border-radius: var(--landing-radius-md);
  background: var(--landing-surface-glass);
  overflow: hidden;
}

.why-symbol {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  grid-row: 1 / 3;
  align-self: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: var(--landing-accent-strong);
  background: var(--landing-green-soft);
  font-family: Georgia, serif;
  font-size: 1.3rem;
}

.why-card:nth-child(2) .why-symbol,
.why-card:nth-child(3) .why-symbol {
  color: var(--landing-accent-strong);
  background: var(--landing-green-soft);
}

.why-card h3 {
  position: relative;
  z-index: 1;
  grid-column: 2;
  margin-bottom: 7px;
  font-size: 1.25rem;
}

.why-card p {
  position: relative;
  z-index: 1;
  grid-column: 2;
  margin-bottom: 0;
  font-size: 0.84rem;
}

.why-motif {
  position: absolute;
  right: 18px;
  bottom: -0.2em;
  color: var(--landing-border-strong);
  font-family: Georgia, serif;
  font-size: 4.6rem;
  line-height: 1;
  opacity: 0.22;
  pointer-events: none;
  transform: rotate(-7deg);
  user-select: none;
}

.why-card:nth-child(2) .why-motif {
  top: -0.08em;
  bottom: auto;
  transform: rotate(8deg);
}

.why-card:nth-child(3) .why-motif {
  right: 23px;
  transform: rotate(5deg);
}

.principle-section {
  position: relative;
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) minmax(178px, 210px);
  gap: 28px;
  align-items: center;
  margin-top: 125px;
  padding: 48px 48px 0;
  border-radius: var(--landing-radius-lg);
  border: 1px solid var(--landing-border);
  background: var(--landing-surface-soft);
  overflow: hidden;
}

.principle-quote {
  align-self: start;
  color: var(--landing-border-strong);
  font-family: Georgia, serif;
  font-size: 7rem;
  line-height: 0.85;
}

.principle-section h2 {
  max-width: 810px;
  margin-bottom: 48px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.principle-life {
  position: relative;
  align-self: end;
  width: 100%;
  aspect-ratio: 300 / 372;
  isolation: isolate;
}

.principle-life::before {
  position: absolute;
  inset: 16% -8% 3%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--landing-card-glow), transparent 72%);
  filter: blur(15px);
  content: "";
}

.principle-life canvas {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 14px 22px rgba(91, 71, 21, 0.12));
}

.faq-section {
  display: grid;
  grid-template-columns: 0.65fr 1fr;
  gap: clamp(45px, 8vw, 100px);
  align-items: start;
  padding-top: 135px;
}

.faq-section .section-heading {
  margin-bottom: 0;
}

.faq-list {
  border-top: 1px solid var(--landing-border);
}

.faq-list details {
  border-bottom: 1px solid var(--landing-border);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  color: var(--landing-ink);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 740;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--landing-muted);
  background: var(--landing-field);
  font-size: 1.05rem;
  transition: transform 180ms ease;
}

.faq-list details[open] summary span {
  transform: rotate(45deg);
}

.faq-list details p {
  max-width: 680px;
  padding: 0 50px 23px 0;
  font-size: 0.9rem;
}

html.landing-js .landing-body .reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

html.landing-js .landing-body .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.loop-sequence .reveal-on-scroll:nth-child(2),
.why-grid .reveal-on-scroll:nth-child(2) { transition-delay: 70ms; }
.loop-sequence .reveal-on-scroll:nth-child(3),
.why-grid .reveal-on-scroll:nth-child(3) { transition-delay: 140ms; }
.loop-sequence .reveal-on-scroll:nth-child(4) { transition-delay: 210ms; }

@keyframes card-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes progress-breathe {
  0%, 100% { filter: saturate(0.95); }
  50% { filter: saturate(1.35); }
}

@keyframes voice-burst {
  0%, 100% { transform: scaleY(calc(var(--voice-level) * 0.48)); }
  38% { transform: scaleY(var(--voice-level)); }
  68% { transform: scaleY(calc(var(--voice-level) * 0.68)); }
}

@keyframes voice-calm {
  0%, 100% { transform: scaleY(calc(var(--voice-level) * 0.72)); }
  50% { transform: scaleY(var(--voice-level)); }
}

@media (max-width: 1040px) {
  .learn-hero {
    grid-template-columns: 1fr;
  }

  .hero-demo {
    width: min(860px, 100%);
    min-height: auto;
    margin: 0 auto;
    padding: 96px 28px 20px;
  }

  .concept-card-manifold,
  .concept-card-relativity,
  .concept-card-distribution,
  .concept-card-structure {
    grid-column: span 6;
  }

  .learn-hero-visual {
    width: min(100%, 590px);
    margin: 0 auto;
  }

  .definition-panel {
    grid-template-columns: 0.7fr 1.3fr;
  }

  .definition-panel > p:last-child {
    grid-column: 2;
  }

  .walkthrough-item {
    grid-template-columns: 80px 1fr;
    padding-right: 0;
  }

  .walkthrough-art {
    grid-column: 2;
    max-width: 520px;
  }
}

@media (max-width: 820px) {
  .landing-body .navbar-nav {
    align-items: stretch;
    padding: 12px 0 5px;
  }

  .landing-theme-item {
    display: flex;
    padding: 4px 8px;
  }

  .landing-theme-toggle {
    width: 44px;
    height: 44px;
    border-color: var(--landing-border);
    background: var(--landing-nav-hover);
  }

  .landing-body .navbar-dark .navbar-nav .nav-link {
    padding: 11px 13px;
  }

  .landing-body .navbar-dark .navbar-nav .nav-link-cta {
    margin: 5px 0 0;
    text-align: center;
  }

  .ai-feature-grid,
  .why-section,
  .faq-section {
    grid-template-columns: 1fr;
  }

  .ai-feature-card {
    min-height: 0;
  }

  .ai-feature-header {
    min-height: 0;
  }

  .ai-interaction-stage {
    min-height: 0;
  }

  .concept-card-manifold,
  .concept-card-relativity,
  .concept-card-distribution,
  .concept-card-structure {
    grid-column: 1 / -1;
  }

  .why-copy {
    position: static;
  }

  .principle-section {
    grid-template-columns: 60px 1fr;
  }

  .principle-life {
    grid-column: 2;
    justify-self: end;
    width: 170px;
    margin-top: -88px;
  }

  .landing-cta {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .landing-cta > img {
    right: 3%;
  }
}

@media (max-width: 767.98px) {
  .black-hole-canvas {
    transform: translateY(-56px);
  }

  .hero-copy h1 .hero-title-secondary {
    color: var(--landing-hero-ink);
  }

  .landing-body .navbar .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 10px;
  }

  .landing-body .navbar-brand {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    min-width: 0;
    margin-right: 0;
  }

  .landing-nav-controls {
    display: flex;
    grid-column: 2;
    grid-row: 1;
    align-items: center;
    align-self: center;
    justify-self: end;
    flex-wrap: nowrap;
    gap: 7px;
    width: max-content;
    margin-left: auto;
  }

  .landing-mobile-theme-slot {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
  }

  .landing-mobile-theme-slot .landing-theme-toggle,
  .landing-body .navbar-toggler {
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--landing-border);
    border-radius: 999px;
    background: var(--landing-nav-hover);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  }

  .landing-body .navbar-toggler {
    display: grid;
    flex: 0 0 38px;
    margin: 0;
    place-items: center;
    transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
  }

  .landing-body .navbar-toggler-icon {
    width: 18px;
    height: 18px;
    background-size: 18px 18px;
  }

  .landing-body .navbar-toggler:hover,
  .landing-body .navbar-toggler:focus-visible {
    border-color: var(--landing-border-strong);
    background-color: var(--landing-nav-hover);
    transform: translateY(-1px);
  }

  .landing-body .navbar-toggler:active {
    transform: translateY(0) scale(0.96);
  }

  .landing-body .navbar-toggler:focus,
  .landing-body .navbar-toggler:focus-visible {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  }

  .landing-body .navbar-toggler:focus-visible {
    outline: 3px solid rgba(240, 170, 102, 0.3);
    outline-offset: 3px;
  }

  .landing-body .navbar-collapse {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .landing-theme-item {
    display: none;
    padding: 0;
  }
}

@media (max-width: 620px) {
  .landing-body .cover-container,
  .landing-body > .text-center > .mastfoot,
  .landing-body .mastfoot {
    width: min(calc(100% - 18px), 1180px);
  }

  .landing-main {
    width: 100%;
  }

  .landing-body .navbar {
    min-height: 64px;
    border-radius: 16px;
  }

  .landing-body .brand-name {
    font-size: 1.14rem;
  }

  .landing-hero {
    height: clamp(600px, calc(100dvh - 88px), 760px);
  }

  .learn-hero {
    padding: 55px 20px 44px;
    border-radius: 26px;
  }

  .hero-copy h1 {
    grid-template-rows: auto clamp(235px, 35dvh, 275px) auto;
  }

  .hero-copy h1 .hero-title-primary {
    font-size: clamp(2.85rem, 14.8vw, 5rem);
  }

  .hero-copy h1 .hero-title-secondary {
    margin-top: 42px;
    font-size: clamp(1.5rem, 7vw, 2.35rem);
  }

  .learn-hero h1 {
    font-size: clamp(2.75rem, 14vw, 4rem);
  }

  .hero-actions,
  .hero-actions .landing-button {
    width: 100%;
  }

  .landing-hero .hero-actions {
    width: auto;
    flex-wrap: nowrap;
    gap: 9px;
  }

  .landing-hero .hero-actions .landing-button {
    width: auto;
    min-height: 46px;
    padding: 11px 14px;
    font-size: 0.82rem;
  }

  .hero-copy {
    right: 22px;
    bottom: 32px;
    left: 22px;
  }

  .hero-lede {
    max-width: 31ch;
    margin-top: 15px;
    font-size: 0.9rem;
    line-height: 1.55 !important;
  }

  .text-link {
    justify-content: center;
  }

  .hero-demo {
    min-height: auto;
    padding: 78px 5px 10px;
  }

  .practice-card {
    width: 100%;
    padding: 20px;
  }

  .practice-card-header {
    align-items: flex-start;
  }

  .practice-question h2 {
    font-size: 1.15rem;
  }

  .practice-equation {
    min-height: 48px;
    font-size: 0.82rem;
  }

  .hero-support-grid {
    grid-template-columns: 1fr;
  }

  .ai-nudge-tutor,
  .ai-nudge-grader {
    width: 100%;
  }

  .landing-section {
    padding: 92px 5px 10px;
  }

  .section-heading {
    margin-bottom: 34px;
    text-align: left;
  }

  .section-heading .eyebrow {
    justify-content: flex-start;
  }

  .section-heading > p:not(.eyebrow) {
    margin-left: 0;
  }

  .practice-loop-section {
    padding-top: 110px;
  }

  .practice-loop-intro {
    margin-bottom: 52px;
  }

  .practice-loop-intro h2 {
    max-width: 12ch;
    font-size: clamp(2.55rem, 12vw, 4.25rem);
  }

  .loop-sequence {
    display: block;
    min-height: 0;
    padding-left: 48px;
    background: none;
  }

  .loop-sequence::before {
    top: 0;
    right: auto;
    bottom: 0;
    left: 16px;
    width: 1px;
    height: auto;
  }

  .loop-sequence::after {
    display: none;
  }

  .loop-step,
  .loop-step:first-child,
  .loop-step:last-child {
    display: block;
    min-height: 0;
    padding: 0 0 48px;
  }

  .loop-step:last-child {
    padding-bottom: 0;
  }

  .loop-node {
    position: absolute;
    top: 0;
    left: -48px;
  }

  .loop-step-copy,
  .loop-step:nth-child(odd) .loop-step-copy,
  .loop-step:nth-child(even) .loop-step-copy {
    max-width: 520px;
    padding: 2px 0 0;
  }

  .ai-section,
  .concept-section,
  .walkthrough-section,
  .why-section,
  .faq-section {
    padding-top: 100px;
  }

  .ai-feature-card {
    border-radius: 25px;
  }

  .voice-turn {
    grid-template-columns: 78px minmax(110px, 1fr) auto;
    gap: 10px;
  }

  .concept-card {
    min-height: 525px;
    border-radius: 20px;
  }

  .concept-card h3 {
    font-size: 1.7rem;
  }

  .concept-model {
    right: 22px;
    left: 22px;
  }

  .concept-notation-small {
    font-size: 0.65rem;
  }

  .relativity-equation {
    font-size: 0.83rem;
  }

  .landing-cta,
  .principle-section {
    margin-top: 92px;
    border-radius: 25px;
  }

  .landing-cta {
    padding: 42px 24px;
  }

  .landing-cta .landing-button {
    width: 100%;
  }

  .learn-hero-visual {
    width: 100%;
    min-height: 430px;
  }

  .learning-orbit-stage {
    inset: 0 0 24px;
  }

  .learning-orbit-core {
    width: 148px;
    height: 148px;
    padding: 18px;
  }

  .learning-orbit-core strong {
    font-size: 1.18rem;
  }

  .learning-orbit-core p {
    font-size: 0.63rem;
  }

  .learning-orbit-step {
    min-width: 94px;
    gap: 6px;
    padding: 9px 10px;
    font-size: 0.68rem;
  }

  .learning-orbit-step-attempt {
    top: 6%;
    left: 0;
  }

  .learning-orbit-step-ask {
    top: 20%;
    right: -4px;
  }

  .learning-orbit-step-check {
    right: 0;
    bottom: 14%;
  }

  .learning-orbit-step-return {
    bottom: 5%;
    left: -2px;
  }

  .definition-panel {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 31px 24px;
  }

  .definition-panel > p:last-child {
    grid-column: auto;
  }

  .walkthrough-list::before {
    left: calc(var(--walkthrough-axis) - 1px);
  }

  .walkthrough-list {
    --walkthrough-axis: 26px;
  }

  .walkthrough-item {
    grid-template-columns: 52px 1fr;
    gap: 15px;
    min-height: auto;
    padding: 38px 0;
  }

  .walkthrough-marker span {
    width: 42px;
    height: 42px;
    font-size: 0.65rem;
  }

  .walkthrough-marker::before {
    top: 6px;
    width: 58px;
    height: 58px;
  }

  .walkthrough-art {
    grid-column: 1 / -1;
    margin-left: 52px;
    width: calc(100% - 52px);
  }

  .why-card {
    min-height: 140px;
    padding: 23px 58px 23px 22px;
  }

  .why-symbol {
    width: 43px;
    height: 43px;
  }

  .principle-section {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 34px 24px 0;
  }

  .principle-quote {
    font-size: 5rem;
  }

  .principle-section h2 {
    margin-bottom: 25px;
  }

  .principle-life {
    grid-column: 1;
    justify-self: end;
    width: 145px;
    margin-top: 0;
  }
}

@media (max-width: 380px) {
  .landing-body .navbar-brand img {
    width: 36px;
    height: auto;
  }

  .landing-body .navbar-brand .bs-icon {
    margin-right: 0.3rem !important;
  }

  .landing-body .brand-name {
    font-size: 1rem;
  }

  .landing-nav-controls {
    gap: 6px;
  }

  .landing-mobile-theme-slot .landing-theme-toggle,
  .landing-body .navbar-toggler {
    width: 36px;
    height: 36px;
  }

  .landing-body .navbar-toggler {
    flex-basis: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-body *,
  .landing-body *::before,
  .landing-body *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html.landing-js .landing-body .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}
