:root {
  color-scheme: light;
  --ink: #17211d;
  --muted: #5d6863;
  --line: #d8ded9;
  --paper: #fbfcf8;
  --white: #ffffff;
  --mint: #d8ecdf;
  --leaf: #2d6a4f;
  --gold: #f2d27b;
  --coral: #e9937a;
  --blue: #97c3d8;
  --soft-blue: #eaf3f7;
  --shadow: 0 18px 45px rgba(23, 33, 29, 0.1);
  --deep-shadow: 0 28px 70px rgba(23, 33, 29, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 252, 248, 0.96);
  backdrop-filter: blur(14px);
}

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 850;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: var(--gold);
  font-weight: 900;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.nav a {
  border-radius: 999px;
  padding: 8px 12px;
  color: #2b3630;
  text-decoration: none;
  font-size: 0.92rem;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--ink);
  color: var(--white);
}

.academy-mega-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.mega-mobile-toggle,
.mega-mobile-close,
.mega-trigger {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.mega-mobile-toggle,
.mega-mobile-close {
  display: none;
}

.mega-menu-groups {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.mega-menu-group {
  position: relative;
}

.mega-trigger {
  min-height: 40px;
  border-radius: 999px;
  padding: 8px 12px;
  background: transparent;
  color: #2b3630;
}

.mega-menu-group.is-open .mega-trigger,
.mega-trigger:hover,
.mega-trigger:focus-visible {
  background: var(--ink);
  color: var(--white);
  outline: 0;
}

.mega-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 50;
  display: none;
  width: min(540px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--deep-shadow);
}

.mega-menu-group.is-open .mega-panel,
.mega-menu-group:focus-within .mega-panel,
.mega-menu-group:hover .mega-panel {
  display: block;
}

.mega-panel-kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mega-panel a {
  --mega-tone: var(--leaf);
  --mega-tone-soft: rgba(45, 106, 79, 0.1);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  text-decoration: none;
  box-shadow: inset 3px 0 0 rgba(45, 106, 79, 0);
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.mega-panel a + a {
  margin-top: 6px;
}

.mega-panel a:hover,
.mega-panel a:focus-visible {
  border-color: color-mix(in srgb, var(--mega-tone) 28%, transparent);
  background: var(--mega-tone-soft);
  box-shadow: inset 3px 0 0 var(--mega-tone);
  outline: 0;
  transform: translateX(2px);
}

.mega-panel strong,
.mega-panel span {
  display: block;
}

.mega-panel strong {
  grid-column: 1;
  color: var(--mega-tone);
  font-size: 0.98rem;
  line-height: 1.2;
}

.mega-panel span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.42;
}

.mega-panel em {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  border: 1px solid color-mix(in srgb, var(--mega-tone) 34%, transparent);
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
}

.mega-panel a[data-tone="1"] {
  --mega-tone: #d93672;
  --mega-tone-soft: rgba(217, 54, 114, 0.09);
}

.mega-panel a[data-tone="2"] {
  --mega-tone: #9b6d00;
  --mega-tone-soft: rgba(242, 210, 123, 0.22);
}

.mega-panel a[data-tone="3"] {
  --mega-tone: #1f6f91;
  --mega-tone-soft: rgba(151, 195, 216, 0.2);
}

.mega-panel a[data-tone="4"] {
  --mega-tone: #2d6a4f;
  --mega-tone-soft: rgba(45, 106, 79, 0.12);
}

.mega-panel a[data-tone="5"] {
  --mega-tone: #b9552e;
  --mega-tone-soft: rgba(233, 147, 122, 0.16);
}

.mega-panel a[data-tone="6"] {
  --mega-tone: #5b20d6;
  --mega-tone-soft: rgba(91, 32, 214, 0.1);
}

.mega-menu-lock {
  overflow: hidden;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  padding: 10px 15px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

.button.secondary {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}

.button.ghost {
  border-color: transparent;
  background: transparent;
  color: var(--ink);
}

.hero {
  padding: 56px 0 34px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(216, 236, 223, 0.92), rgba(242, 210, 123, 0.55) 55%, rgba(151, 195, 216, 0.4));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.98fr);
  gap: 38px;
  align-items: center;
}

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

h1 {
  margin-bottom: 16px;
  max-width: 800px;
  font-size: clamp(2.35rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.lead {
  max-width: 700px;
  color: #24322b;
  font-size: clamp(1.06rem, 1.7vw, 1.26rem);
}

.method-lockup {
  display: grid;
  gap: 6px;
  max-width: 620px;
  margin: 20px 0 0;
  border-left: 6px solid var(--ink);
  padding: 4px 0 4px 16px;
}

.method-lockup strong {
  display: block;
  font-size: clamp(1.25rem, 2vw, 1.85rem);
  line-height: 1.05;
}

.method-lockup span {
  color: #334139;
  font-weight: 750;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.proof-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid rgba(23, 33, 29, 0.18);
  border-radius: 8px;
  background: rgba(23, 33, 29, 0.18);
}

.proof-row div {
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.proof-row strong {
  display: block;
  font-size: clamp(1.04rem, 1.8vw, 1.35rem);
  overflow-wrap: normal;
  word-break: keep-all;
}

.proof-row span {
  color: var(--muted);
  font-size: 0.86rem;
}

.product-visual {
  border: 1px solid rgba(23, 33, 29, 0.2);
  border-radius: 8px;
  background: #fffdf7;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.learning-scene {
  position: relative;
  min-height: 470px;
  border: 1px solid rgba(23, 33, 29, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 18%, rgba(242, 210, 123, 0.72), transparent 30%),
    radial-gradient(circle at 14% 80%, rgba(151, 195, 216, 0.6), transparent 34%),
    linear-gradient(140deg, #ffffff, #eef7f0);
  box-shadow: var(--deep-shadow);
  overflow: hidden;
}

.scene-path {
  position: absolute;
  inset: 36px 32px;
  border: 2px dashed rgba(45, 106, 79, 0.32);
  border-radius: 999px 999px 120px 120px;
  transform: rotate(-7deg);
}

.scene-node {
  position: absolute;
  display: grid;
  width: 116px;
  min-height: 98px;
  place-items: center;
  border: 1px solid rgba(23, 33, 29, 0.16);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 28px rgba(23, 33, 29, 0.08);
  text-align: center;
  font-size: 0.84rem;
  font-weight: 850;
}

.scene-node span {
  display: grid;
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: var(--gold);
  font-size: 1rem;
}

.scene-node.one {
  left: 30px;
  top: 64px;
}

.scene-node.two {
  right: 46px;
  top: 42px;
}

.scene-node.three {
  right: 62px;
  bottom: 66px;
}

.scene-node.four {
  left: 58px;
  bottom: 44px;
}

.scene-app-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(330px, calc(100% - 54px));
  transform: translate(-50%, -50%);
  border: 1px solid rgba(23, 33, 29, 0.18);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 20px 55px rgba(23, 33, 29, 0.18);
  overflow: hidden;
}

.scene-app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  font-size: 0.82rem;
  font-weight: 850;
}

.scene-app-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.scene-progress {
  height: 10px;
  border-radius: 999px;
  background: #e6ece8;
  overflow: hidden;
}

.scene-progress span {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--leaf), var(--blue));
}

.scene-mini-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  background: #f8fbf8;
}

.scene-mini-row b {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: var(--mint);
}

.scene-mini-row small {
  color: var(--muted);
}

.visual-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.dots {
  display: inline-flex;
  gap: 6px;
}

.dots span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--coral);
}

.dots span:nth-child(2) {
  background: var(--gold);
}

.dots span:nth-child(3) {
  background: var(--leaf);
}

.visual-body {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  min-height: 420px;
}

.lesson-rail {
  border-right: 1px solid var(--line);
  padding: 18px;
  background: #f6faf7;
}

.lesson-rail a,
.lesson-rail div {
  display: block;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--white);
  color: #304039;
  text-decoration: none;
  font-size: 0.9rem;
}

.lesson-rail .active {
  border-color: var(--leaf);
  background: var(--mint);
  font-weight: 800;
}

.visual-main {
  padding: 20px;
}

.artifact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--white);
}

.field-stack {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.fake-field,
.form-field {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcf8;
}

.fake-field label,
.form-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.fake-field p {
  margin-bottom: 0;
}

.section {
  padding: 48px 0;
}

.section.alt {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f4f8f5;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-head h2 {
  margin-bottom: 4px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-head p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
}

.doorway-kicker {
  display: inline-flex;
  margin: 0 0 10px;
  border-left: 5px solid var(--leaf);
  padding-left: 10px;
  color: #2d5a45;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

.companion-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.companion-card {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--white);
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(23, 33, 29, 0.07);
}

.companion-card:nth-child(1) {
  background: linear-gradient(180deg, #ffffff, #fff7db);
}

.companion-card:nth-child(2) {
  background: linear-gradient(180deg, #ffffff, #eaf3f7);
}

.companion-card:nth-child(3) {
  background: linear-gradient(180deg, #ffffff, #e9f6ee);
}

.companion-card:nth-child(4) {
  background: linear-gradient(180deg, #ffffff, #f9ece6);
}

.companion-card:hover {
  border-color: var(--leaf);
  transform: translateY(-2px);
}

.companion-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: 900;
}

.companion-card h3 {
  margin: 18px 0 8px;
  font-size: 1.5rem;
}

.companion-card p {
  color: #334139;
}

.companion-card strong {
  display: block;
  margin-top: 14px;
}

.flow-band {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.flow-step {
  min-height: 180px;
  padding: 18px;
  background: var(--white);
}

.flow-step strong {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: var(--gold);
}

.flow-step h3 {
  margin-bottom: 8px;
}

.flow-step p {
  margin-bottom: 0;
  color: var(--muted);
}

.proof-equation {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.proof-equation div {
  padding: 16px;
  background: var(--white);
}

.proof-equation strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.1rem;
}

.proof-equation span {
  color: var(--muted);
}

.experience-hero {
  background:
    linear-gradient(135deg, rgba(216, 236, 223, 0.95), rgba(255, 255, 255, 0.82) 48%, rgba(233, 147, 122, 0.3)),
    linear-gradient(90deg, rgba(151, 195, 216, 0.35), rgba(242, 210, 123, 0.32));
}

.experience-map {
  position: relative;
  min-height: 500px;
  border: 1px solid rgba(23, 33, 29, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(140deg, #ffffff, #f1f8f3),
    var(--white);
  box-shadow: var(--deep-shadow);
  overflow: hidden;
}

.experience-map::before,
.experience-map::after {
  content: "";
  position: absolute;
  inset: 52px;
  border: 1px dashed rgba(45, 106, 79, 0.28);
  border-radius: 999px;
}

.experience-map::after {
  inset: 104px 86px;
  transform: rotate(-18deg);
}

.map-center,
.map-orbit {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgba(23, 33, 29, 0.18);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 36px rgba(23, 33, 29, 0.12);
  text-align: center;
}

.map-center {
  left: 50%;
  top: 50%;
  width: 160px;
  min-height: 128px;
  transform: translate(-50%, -50%);
  background: var(--ink);
  color: var(--white);
}

.map-center strong {
  color: var(--gold);
  font-size: 1.55rem;
}

.map-center span,
.map-orbit span {
  color: inherit;
  font-size: 0.86rem;
}

.map-orbit {
  width: 132px;
  min-height: 106px;
}

.map-orbit strong {
  font-size: 1.05rem;
}

.map-orbit.guide {
  left: 44px;
  top: 54px;
  background: #fff7db;
}

.map-orbit.studio {
  right: 46px;
  top: 48px;
  background: #eaf3f7;
}

.map-orbit.companion {
  right: 62px;
  bottom: 56px;
  background: #e9f6ee;
}

.map-orbit.community {
  left: 56px;
  bottom: 58px;
  background: #f9ece6;
}

.experience-builder {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.experience-picker {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f4f8f5;
}

.experience-picker button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: var(--white);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.experience-picker button.active,
.experience-picker button:hover {
  border-color: var(--leaf);
  background: var(--ink);
  color: var(--white);
}

.experience-detail h3 {
  margin-bottom: 8px;
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 1.04;
}

.experience-companions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.experience-companions div {
  min-height: 168px;
  padding: 16px;
  background: var(--white);
}

.experience-companions strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.experience-companions span {
  color: #334139;
}

.proof-card {
  margin-top: 18px;
  border: 1px solid rgba(45, 106, 79, 0.25);
  border-radius: 8px;
  padding: 18px;
  background: linear-gradient(135deg, var(--mint), #fff7db);
}

.proof-card span {
  display: block;
  margin-bottom: 6px;
  color: #385144;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.proof-card strong {
  display: block;
  font-size: 1.35rem;
}

.proof-card p {
  margin: 8px 0 0;
  color: #334139;
}

.standard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.standard-card {
  min-height: 240px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--white);
  box-shadow: 0 12px 26px rgba(23, 33, 29, 0.06);
}

.standard-card > strong {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: var(--gold);
}

.standard-card h3 {
  margin-bottom: 8px;
}

.standard-card p {
  color: var(--muted);
}

.journey-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.journey-strip a {
  min-height: 132px;
  padding: 18px;
  background: var(--white);
  text-decoration: none;
}

.journey-strip strong,
.journey-strip span {
  display: block;
}

.journey-strip strong {
  margin-bottom: 8px;
  color: var(--leaf);
}

.journey-ladder {
  display: grid;
  gap: 12px;
}

.school-map {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.school-map a {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(23, 33, 29, 0.06);
}

.school-map a:hover {
  border-color: var(--leaf);
  transform: translateY(-2px);
}

.school-map strong {
  display: block;
  font-size: 1.2rem;
}

.school-map span {
  color: var(--muted);
}

.journey-ladder div,
.journey-course,
.value-stack div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 26px rgba(23, 33, 29, 0.06);
}

.journey-ladder span,
.journey-number {
  display: inline-grid;
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: var(--gold);
  font-weight: 900;
}

.journey-number {
  width: auto;
  height: auto;
  padding: 8px 10px;
}

.journey-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(480px, 1.15fr);
  gap: 28px;
  align-items: start;
}

.school-shelf {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(480px, 1.15fr);
  gap: 28px;
  align-items: start;
}

.journey-section h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.school-shelf h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.journey-course-grid,
.value-stack {
  display: grid;
  gap: 12px;
}

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

.path-group {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--white);
  box-shadow: 0 12px 26px rgba(23, 33, 29, 0.06);
}

.path-group h3 {
  margin-bottom: 8px;
}

.path-group a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: #f8fbf9;
  color: var(--ink);
  text-decoration: none;
}

.path-group a:hover {
  border-color: var(--leaf);
  background: var(--mint);
}

.journey-course p,
.value-stack span {
  color: #334139;
}

.journey-course strong,
.value-stack strong {
  display: block;
  margin-top: 10px;
}

.assistant-panel label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.assistant-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.assistant-input-row input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fbfcf8;
}

.assistant-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.assistant-suggestions button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.assistant-answer {
  min-height: 120px;
  margin-top: 14px;
  border: 1px solid rgba(45, 106, 79, 0.25);
  border-radius: 8px;
  padding: 16px;
  background: linear-gradient(135deg, #e9f6ee, #fff7db);
}

.rich-footer {
  background: #111d18;
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.footer-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
}

.footer-grid p {
  margin-bottom: 0;
  color: #d9e4dd;
}

.footer-grid a {
  display: block;
  margin-top: 7px;
  color: #f5fbf8;
  text-decoration: none;
}

.course-card {
  display: flex;
  min-height: 340px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--white);
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(23, 33, 29, 0.06);
}

.course-card:hover {
  border-color: var(--leaf);
  transform: translateY(-2px);
}

.course-card h3 {
  margin-bottom: 8px;
  font-size: 1.35rem;
  letter-spacing: 0;
}

.course-card p {
  color: #334139;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
  background: #fbfcf8;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.included-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.included-row span {
  border: 1px solid rgba(45, 106, 79, 0.24);
  border-radius: 999px;
  padding: 5px 8px;
  background: #f4fbf6;
  color: #2d5a45;
  font-size: 0.74rem;
  font-weight: 850;
}

.mini-artifact {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f7fbf8;
}

.mini-artifact strong {
  display: block;
  margin-bottom: 6px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 28px;
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(23, 33, 29, 0.07);
}

.panel-pad {
  padding: 22px;
}

.lesson-list {
  counter-reset: lessons;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lesson-list li {
  counter-increment: lessons;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcf8;
}

.lesson-list li::before {
  content: counter(lessons);
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: var(--gold);
  font-weight: 900;
}

.worksheet-page {
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--white);
}

.worksheet-lines {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.worksheet-lines div {
  min-height: 46px;
  border: 1px dashed #bac6bf;
  border-radius: 8px;
  padding: 10px;
  color: var(--muted);
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: calc(100vh - 69px);
}

.dashboard-side {
  border-right: 1px solid var(--line);
  padding: 20px;
  background: #f4f8f5;
}

.dashboard-side .side-card {
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--white);
}

.dashboard-side .side-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.dashboard-side a,
.dashboard-side button {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  background: transparent;
  color: #27332d;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}

.dashboard-side a.active,
.dashboard-side button.active {
  background: var(--ink);
  color: var(--white);
}

.dashboard-side button:hover {
  background: var(--mint);
}

.dashboard-side button.active:hover {
  background: var(--ink);
}

.dashboard-main {
  padding: 28px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.app-dashboard-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.course-player {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  overflow: hidden;
}

.lesson-tabs {
  border-right: 1px solid var(--line);
  padding: 14px;
  background: #f7fbf8;
}

.lesson-tab {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--white);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.lesson-tab.active {
  border-color: var(--leaf);
  background: var(--mint);
  font-weight: 850;
}

.lesson-screen {
  min-height: 300px;
  padding: 22px;
  background: #fffdf8;
}

.lesson-screen h2 {
  margin-bottom: 8px;
}

.lesson-screen p {
  color: #334139;
}

.lesson-screen .try-box {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--blue);
  border-radius: 8px;
  padding: 14px;
  background: var(--white);
}

.app-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.app-stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.app-stat strong {
  display: block;
  font-size: 1.55rem;
}

.app-stat span {
  color: var(--muted);
  font-size: 0.86rem;
}

.progress-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: linear-gradient(145deg, var(--mint), #fff7d8);
  box-shadow: var(--shadow);
}

.progress-ring {
  display: grid;
  width: 132px;
  height: 132px;
  margin: 4px auto 16px;
  place-items: center;
  border-radius: 999px;
  background:
    conic-gradient(var(--leaf) var(--progress, 0%), rgba(255, 255, 255, 0.78) 0),
    var(--white);
}

.progress-ring span {
  display: grid;
  width: 94px;
  height: 94px;
  place-items: center;
  border-radius: inherit;
  background: var(--white);
  font-size: 1.5rem;
  font-weight: 900;
}

.checklist {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.check-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  align-items: start;
  color: #334139;
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--leaf);
}

.practice-form {
  display: grid;
  gap: 12px;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  resize: vertical;
}

.form-field textarea {
  min-height: 72px;
}

.status-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #f9fbf7;
}

.summary-box {
  min-height: 220px;
  white-space: pre-wrap;
}

.registry-shelf {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.registry-shelf h3 {
  margin: 0;
  font-size: 1.4rem;
}

.registry-shelf p {
  margin: 8px 0 0;
  color: var(--muted);
}

.status-box strong {
  display: block;
  margin-bottom: 8px;
}

.saved-proof {
  margin-top: 14px;
  border: 1px solid rgba(45, 106, 79, 0.28);
  border-radius: 8px;
  padding: 14px;
  background: var(--mint);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  max-width: min(360px, calc(100% - 36px));
  border: 1px solid rgba(23, 33, 29, 0.2);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--deep-shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .site-header {
    position: static;
  }

  .site-header .shell,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .academy-mega-nav {
    justify-content: flex-start;
    width: 100%;
  }

  .mega-mobile-toggle {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 0 14px;
    background: var(--ink);
    color: var(--white);
  }

  .mega-menu-groups {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    display: none;
    width: 100vw;
    height: 100dvh;
    overflow: auto;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 16px;
    padding: 20px;
    background: var(--paper);
  }

  .academy-mega-nav.mobile-open .mega-menu-groups {
    display: grid;
  }

  .mega-mobile-close {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    justify-self: end;
    border-radius: 8px;
    padding: 0 14px;
    background: var(--ink);
    color: var(--white);
  }

  .mega-menu-group {
    position: static;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: var(--white);
  }

  .mega-trigger {
    width: 100%;
    border-radius: 8px;
    background: var(--ink);
    color: var(--white);
    text-align: left;
  }

  .mega-panel {
    position: static;
    display: block;
    width: 100%;
    border: 0;
    padding: 10px 0 0;
    background: transparent;
    box-shadow: none;
  }

  .mega-panel a {
    grid-template-columns: 1fr;
    transform: none;
  }

  .mega-panel a:hover,
  .mega-panel a:focus-visible {
    transform: none;
  }

  .mega-panel em {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }

  .hero-grid,
  .visual-body,
  .course-grid,
  .companion-grid,
  .journey-strip,
  .journey-section,
  .school-shelf,
  .registry-shelf,
  .school-map,
  .path-grid,
  .experience-builder,
  .experience-companions,
  .standard-grid,
  .footer-grid,
  .split,
  .dashboard-layout,
  .dashboard-grid,
  .proof-row,
  .flow-band,
  .proof-equation,
  .app-dashboard-head,
  .course-player,
  .app-stat-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-side,
  .lesson-rail,
  .lesson-tabs {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .dashboard-main {
    padding: 18px;
  }

  .assistant-input-row {
    grid-template-columns: 1fr;
  }

  .course-card {
    min-height: auto;
  }

  .learning-scene {
    min-height: 560px;
  }

  .experience-map {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    min-height: auto;
    padding: 16px;
  }

  .experience-map::before,
  .experience-map::after {
    display: none;
  }

  .map-center,
  .map-orbit {
    position: static;
    width: auto;
    min-height: 112px;
    transform: none;
  }

  .map-center {
    grid-column: 1 / -1;
    min-height: 120px;
  }

  .scene-node {
    width: 98px;
    min-height: 86px;
    font-size: 0.76rem;
  }

  .scene-app-card {
    top: 53%;
  }
}

@media print {
  .site-header,
  .site-footer,
  .actions,
  .nav {
    display: none;
  }

  body {
    background: #fff;
  }

  .section,
  .hero {
    padding: 20px 0;
  }

  .worksheet-page {
    page-break-after: always;
    border-color: #111;
  }
}
