:root {
  --night: #07131f;
  --night-raised: #0c2131;
  --night-soft: #163044;
  --paper: #f5efe3;
  --paper-raised: #fcf8ef;
  --ivory: #fffaf0;
  --ink: #152331;
  --ink-soft: #657079;
  --gold: #d4a74e;
  --gold-bright: #f0cf84;
  --gold-pale: #f4e5be;
  --sage: #527467;
  --sage-pale: #deebe4;
  --blue-pale: #dce8ed;
  --rose-pale: #ecddd7;
  --line: rgba(21, 35, 49, 0.13);
  --line-light: rgba(255, 250, 240, 0.2);
  --shadow: 0 28px 80px rgba(2, 12, 20, 0.18);
  --shadow-soft: 0 16px 44px rgba(11, 28, 41, 0.1);
  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --content: 1200px;
  --wide: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--night);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--night);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

img {
  max-width: 100%;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  color: var(--night);
  background: var(--gold-bright);
  border-radius: 10px;
  font-weight: 800;
  transform: translateY(-160%);
}

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

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 50%;
  width: min(calc(100% - 72px), var(--wide));
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ivory);
  text-decoration: none;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.brand::before {
  width: 2px;
  height: 34px;
  content: "";
  background: var(--gold-bright);
  border-radius: 2px;
  box-shadow: 0 0 20px rgba(240, 207, 132, 0.42);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: 1.2;
}

.brand small {
  margin-top: 3px;
  color: rgba(255, 250, 240, 0.72);
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.25;
}

.mode-switch {
  display: flex;
  padding: 4px;
  background: rgba(7, 19, 31, 0.42);
  border: 1px solid rgba(255, 250, 240, 0.24);
  border-radius: 999px;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.16);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.mode-button {
  min-height: 44px;
  padding: 8px 17px;
  color: rgba(255, 250, 240, 0.76);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.mode-button.is-active {
  color: var(--night);
  background: var(--ivory);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
}

main {
  width: 100%;
}

.landing {
  position: relative;
  isolation: isolate;
  min-height: max(760px, 100svh);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 146px 0 92px;
  color: var(--ivory);
  background: var(--night);
}

.landing::before,
.landing::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  content: "";
}

.landing::before {
  background:
    linear-gradient(90deg, rgba(5, 15, 25, 0.94) 0%, rgba(6, 18, 29, 0.75) 34%, rgba(6, 18, 29, 0.18) 66%, rgba(6, 18, 29, 0.08) 100%),
    linear-gradient(180deg, rgba(5, 14, 23, 0.55) 0%, transparent 28%, transparent 66%, rgba(4, 13, 22, 0.68) 100%);
}

.landing::after {
  top: auto;
  height: 180px;
  background: linear-gradient(180deg, transparent, rgba(7, 19, 31, 0.88));
}

.hero-media {
  position: absolute;
  z-index: -2;
  inset: 0;
  display: block;
}

.hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 52% center;
}

.hero-copy {
  width: min(calc(100% - 96px), var(--wide));
  margin-inline: auto;
}

.hero-copy > * {
  max-width: 670px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #98752f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.19em;
  line-height: 1.35;
  text-transform: uppercase;
}

.landing .eyebrow,
.lesson-header .eyebrow,
.family-invitation .eyebrow {
  color: var(--gold-bright);
}

h1,
h2,
h3,
h4,
p {
  text-wrap: pretty;
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  line-height: 1.08;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

h1 {
  margin-bottom: 26px;
  color: var(--ivory);
  font-size: clamp(62px, 6.4vw, 98px);
  letter-spacing: -0.05em;
  text-shadow: 0 5px 36px rgba(0, 0, 0, 0.26);
}

h1 em {
  color: var(--gold-bright);
  font-weight: 500;
}

h2 {
  font-size: clamp(34px, 4.3vw, 54px);
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.025em;
}

h4 {
  margin-bottom: 9px;
  font-size: 19px;
}

.hero-lead {
  margin: 0;
  color: rgba(255, 250, 240, 0.88);
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.58;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.34);
}

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

.hero-actions {
  margin-top: 34px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.35;
  text-align: center;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button:disabled {
  cursor: not-allowed;
  opacity: 0.44;
}

.button-primary {
  color: var(--night);
  background: var(--gold-bright);
  box-shadow: 0 12px 34px rgba(212, 167, 78, 0.25);
}

.button-primary:not(:disabled):hover {
  background: #f6d993;
  box-shadow: 0 16px 40px rgba(212, 167, 78, 0.34);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.54);
  border-color: var(--line);
}

.duration {
  color: rgba(255, 250, 240, 0.72);
  font-size: 13px;
  font-weight: 650;
}

.today-card {
  position: relative;
  z-index: 5;
  width: min(calc(100% - 72px), var(--content));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 34px;
  margin: -58px auto 0;
  padding: 32px 36px;
  color: var(--ivory);
  background: rgba(9, 28, 42, 0.94);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.today-card h2 {
  margin-bottom: 8px;
  color: var(--ivory);
  font-size: clamp(29px, 3.5vw, 42px);
}

.today-card p:last-child {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 250, 240, 0.68);
}

.status-chip {
  padding: 9px 15px;
  color: var(--night);
  background: var(--gold-bright);
  border: 1px solid rgba(240, 207, 132, 0.6);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.roadmap-section {
  width: min(calc(100% - 48px), var(--wide));
  margin: 72px auto 0;
  padding: clamp(42px, 5.6vw, 84px);
  background: var(--paper);
  border: 1px solid rgba(255, 250, 240, 0.22);
  border-radius: 44px;
  box-shadow: var(--shadow);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: end;
  gap: 54px;
  margin-bottom: 34px;
}

.section-heading h2 {
  max-width: 730px;
  margin-bottom: 0;
  color: var(--ink);
}

.section-heading > p {
  margin: 0;
  color: var(--ink-soft);
}

.age-bands {
  margin: -12px 0 28px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

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

.roadmap-card {
  position: relative;
  min-height: 235px;
  padding: 22px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(15, 34, 47, 0.05);
}

.roadmap-card.is-available {
  color: var(--ivory);
  background: linear-gradient(145deg, var(--night-soft), var(--night));
  border-color: rgba(255, 250, 240, 0.14);
  box-shadow: 0 18px 42px rgba(7, 19, 31, 0.2);
}

.roadmap-index {
  display: block;
  margin-bottom: 56px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 33px;
  line-height: 1;
}

.roadmap-card h3 {
  margin-bottom: 8px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0;
}

.roadmap-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.roadmap-card.is-available p {
  color: rgba(255, 250, 240, 0.67);
}

.roadmap-state {
  position: absolute;
  top: 20px;
  right: 18px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.roadmap-card.is-available .roadmap-state {
  color: var(--gold-bright);
}

.adult-note {
  width: min(calc(100% - 72px), var(--content));
  margin: 34px auto 72px;
  padding: 34px 38px;
  color: var(--ivory);
  background: linear-gradient(135deg, #173a36, #0c292a);
  border: 1px solid rgba(222, 235, 228, 0.16);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.adult-note h2,
.adult-note h3 {
  margin-bottom: 12px;
  color: var(--ivory);
  font-size: 31px;
}

.adult-note p,
.adult-note ul {
  max-width: 880px;
  color: rgba(255, 250, 240, 0.76);
}

.family-studio,
.family-invitation {
  width: min(calc(100% - 72px), var(--content));
  margin: 34px auto 72px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.family-studio {
  padding: clamp(28px, 4.5vw, 54px);
  background: var(--paper);
  border: 1px solid rgba(255, 250, 240, 0.26);
}

.family-studio-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  align-items: end;
  gap: 44px;
  margin-bottom: 34px;
}

.family-studio-heading h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 4.2vw, 50px);
}

.family-studio-heading > p {
  margin: 0;
  color: var(--ink-soft);
}

.family-adult-status,
.family-assignment-policy {
  margin-bottom: 16px;
  padding: 19px 21px;
  border-radius: var(--radius-md);
}

.family-adult-status {
  color: #244d42;
  background: var(--sage-pale);
  border: 1px solid rgba(82, 116, 103, 0.22);
  font-weight: 900;
}

.family-assignment-policy {
  color: var(--ivory);
  background: var(--night-raised);
  border: 1px solid rgba(255, 250, 240, 0.12);
}

.family-assignment-policy h3 {
  margin-bottom: 10px;
  color: var(--gold-bright);
  font-family: inherit;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
}

.family-assignment-policy p {
  margin: 6px 0;
  color: rgba(255, 250, 240, 0.68);
  font-size: 13px;
}

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

.family-panel {
  min-width: 0;
  padding: 23px;
  background: rgba(252, 248, 239, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.family-panel legend,
.family-panel h3 {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 17px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.3;
}

.family-panel legend > span,
.family-panel h3 > span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--night);
  background: var(--gold-pale);
  border-radius: 50%;
  font-size: 12px;
}

.family-choice-list,
.family-reward-list {
  display: grid;
  gap: 10px;
}

.family-radio-card {
  min-height: 76px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.family-radio-card:hover {
  border-color: rgba(212, 167, 78, 0.72);
}

.family-radio-card:has(input:checked) {
  background: #fff8e6;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(212, 167, 78, 0.1);
}

.family-radio-card.is-planned {
  cursor: not-allowed;
  opacity: 0.53;
}

.family-radio-card input,
.revisit-option input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  accent-color: var(--gold);
}

.family-radio-copy,
.family-radio-copy strong,
.family-radio-copy span,
.family-radio-copy small {
  display: block;
}

.family-radio-copy strong {
  margin-bottom: 4px;
  line-height: 1.35;
}

.family-radio-copy span {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}

.family-radio-copy small {
  margin-top: 7px;
  color: #8a6825;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mastery-panel ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mastery-panel li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--ink-soft);
  font-size: 13px;
}

.mastery-panel li > span:first-child {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #2e584c;
  background: var(--sage-pale);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
}

.family-hint {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 750;
}

.family-reward-panel,
.revisit-panel {
  grid-column: 1 / -1;
}

.family-reward-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reward-card {
  min-height: 94px;
}

.custom-reward {
  margin-top: 14px;
  padding: 16px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.custom-reward label,
.custom-reward small {
  display: block;
}

.custom-reward label {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 900;
}

.custom-reward input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.custom-reward small {
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 11px;
}

.family-revisit-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.revisit-option {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.revisit-option:has(input:checked) {
  background: #fff8e6;
  border-color: var(--gold);
}

.family-contract-preview {
  margin-top: 16px;
  padding: 21px 23px;
  color: rgba(255, 250, 240, 0.79);
  background: var(--night-raised);
  border: 1px solid rgba(255, 250, 240, 0.1);
  border-radius: var(--radius-md);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.55;
}

.family-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 20px;
}

.family-actions p {
  max-width: 690px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.family-actions .button {
  flex: 0 0 auto;
}

.family-invitation {
  padding: 34px 38px;
  color: var(--ivory);
  background: linear-gradient(135deg, var(--night-raised), var(--night));
  border: 1px solid rgba(255, 250, 240, 0.14);
}

.family-invitation h2 {
  margin-bottom: 10px;
  color: var(--ivory);
  font-size: clamp(30px, 4vw, 42px);
}

.family-invitation p {
  max-width: 850px;
  color: rgba(255, 250, 240, 0.72);
}

.family-invitation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.family-invitation .button-secondary {
  color: var(--ivory);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-light);
}

.family-invitation-status {
  margin-top: 18px;
  padding: 14px 16px;
  color: var(--gold-bright);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 250, 240, 0.12);
  border-radius: var(--radius-md);
  font-weight: 850;
}

.lesson-shell {
  width: min(calc(100% - 72px), var(--content));
  margin: 128px auto 72px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(255, 250, 240, 0.22);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.lesson-header {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 180px;
  align-items: center;
  gap: 20px;
  padding: 25px 32px;
  color: var(--ivory);
  background: var(--night-raised);
  border-bottom: 1px solid rgba(255, 250, 240, 0.12);
}

.lesson-heading {
  text-align: center;
}

.lesson-actions {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
}

.lesson-actions .text-button {
  min-height: 34px;
}

.lesson-heading .eyebrow {
  margin-bottom: 5px;
}

.lesson-heading h2 {
  margin: 0;
  color: var(--ivory);
  font-size: 27px;
}

.text-button {
  min-height: 44px;
  padding: 7px 0;
  color: var(--gold-bright);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 850;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: rgba(240, 207, 132, 0.42);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.step-count {
  color: rgba(255, 250, 240, 0.62);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(7, minmax(118px, 1fr));
  margin: 0;
  padding: 19px 28px;
  overflow-x: auto;
  list-style: none;
  background: #efe8dc;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}

.stepper li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #7b8389;
  font-size: 11px;
  font-weight: 850;
}

.stepper li:not(:last-child)::after {
  position: absolute;
  top: 15px;
  right: 12px;
  left: 49px;
  height: 1px;
  content: "";
  background: rgba(21, 35, 49, 0.15);
}

.stepper span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  color: #6c757d;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 50%;
}

.stepper li.is-current,
.stepper li.is-complete {
  color: #7a5b1e;
}

.stepper li.is-current span {
  color: var(--night);
  background: var(--gold-bright);
  border-color: var(--gold);
}

.stepper li.is-complete span {
  color: #234e43;
  background: var(--sage-pale);
  border-color: rgba(82, 116, 103, 0.25);
}

.lesson-stage {
  min-height: 620px;
  padding: 58px clamp(28px, 6vw, 86px) 68px;
  background: var(--paper-raised);
}

.lesson-screen {
  max-width: 940px;
  margin: 0 auto;
}

.scenario-panel {
  margin-top: 52px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: 52px;
}

.story-world {
  height: 470px;
  display: block;
  overflow: hidden;
  background: var(--night-raised);
  border: 1px solid rgba(21, 35, 49, 0.16);
  border-radius: 28px;
  box-shadow: 0 24px 56px rgba(7, 19, 31, 0.18);
}

.story-world img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 57% center;
}

blockquote {
  margin: 26px 0;
  padding: 20px 22px;
  background: #f3ead6;
  border: 1px solid rgba(212, 167, 78, 0.28);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

blockquote p {
  margin: 0 0 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.45;
}

blockquote cite {
  color: var(--ink-soft);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.scenario-text {
  max-width: 790px;
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: 18px;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 13px;
  font-weight: 850;
}

.choice-list,
.mission-list,
.reflection-list,
.transfer-list {
  display: grid;
  gap: 12px;
}

.choice-button,
.phrase-choice,
.mission-option,
.reflection-option,
.transfer-choice {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  cursor: pointer;
  line-height: 1.5;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.choice-button:hover,
.phrase-choice:hover,
.mission-option:hover,
.reflection-option:hover,
.transfer-choice:hover {
  border-color: rgba(212, 167, 78, 0.72);
}

.choice-button.is-selected,
.phrase-choice.is-selected,
.mission-option:has(input:checked),
.reflection-option.is-selected,
.transfer-choice.is-selected {
  background: #fff7e3;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(212, 167, 78, 0.1);
}

.choice-letter {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  color: #74551d;
  background: var(--gold-pale);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 950;
}

.feedback-card {
  margin-top: 20px;
  padding: 24px;
  background: var(--sage-pale);
  border: 1px solid rgba(82, 116, 103, 0.22);
  border-radius: var(--radius-md);
}

.feedback-title {
  margin: 0 0 14px;
  color: #2c584b;
  font-weight: 900;
}

.feedback-card dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0;
}

.feedback-card dl div {
  padding-left: 16px;
  border-left: 1px solid rgba(82, 116, 103, 0.24);
}

.feedback-card dt {
  margin-bottom: 6px;
  color: #2c584b;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.feedback-card dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.screen-actions {
  justify-content: flex-end;
  margin-top: 28px;
}

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

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

.lens-settings fieldset,
.revision-factor-fieldset,
.repair-grid fieldset {
  padding: 18px;
  background: #f0e9de;
  border: 1px solid rgba(21, 35, 49, 0.08);
  border-radius: var(--radius-md);
}

.lens-setting-list,
.repair-choice-list {
  display: grid;
  gap: 9px;
}

.lens-setting,
.lens-category,
.repair-choice {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
}

.lens-setting:hover,
.lens-category:hover,
.repair-choice:hover {
  border-color: rgba(212, 167, 78, 0.72);
}

.lens-setting.is-selected,
.lens-category.is-selected,
.repair-choice.is-selected {
  background: #fff7e3;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(212, 167, 78, 0.1);
}

.lens-workspace {
  margin-top: 24px;
  padding: 22px;
  background: var(--blue-pale);
  border: 1px solid rgba(51, 91, 111, 0.18);
  border-radius: var(--radius-md);
}

.lens-workspace > p,
.lens-card small,
.perspective-summary summary {
  color: var(--ink-soft);
}

.lens-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.lens-card {
  padding: 17px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(51, 91, 111, 0.16);
  border-radius: 14px;
}

.lens-card p {
  min-height: 48px;
  margin-bottom: 8px;
}

.lens-card small {
  display: block;
  min-height: 36px;
  font-size: 11px;
  line-height: 1.4;
}

.lens-card-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}

.lens-category {
  min-height: 40px;
  padding: 8px;
  font-size: 11px;
  text-align: center;
}

.lens-feedback,
.revision-compare,
.repair-feedback,
.first-choice-summary,
.repair-control-map {
  margin-top: 18px;
  padding: 18px 20px;
  color: #2c584b;
  background: var(--sage-pale);
  border: 1px solid rgba(82, 116, 103, 0.22);
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.55;
}

.perspective-summary {
  margin-top: 18px;
}

.perspective-summary summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 800;
}

.perspective-summary[open] .perspective-grid {
  margin-top: 12px;
}

.revision-factor-fieldset {
  margin: 18px 0;
}

.revision-factor-fieldset .lens-setting-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.repair-grid {
  align-items: start;
}

.repair-choice {
  min-height: 76px;
}

.repair-control-map {
  color: var(--ink-soft);
  background: #f0e9de;
  border-color: var(--line);
}

.repair-control-map p:last-child {
  margin-bottom: 0;
}

.perspective-card {
  min-height: 250px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.perspective-person {
  width: 38px;
  height: 3px;
  display: block;
  margin: 4px 0 26px;
  background: var(--gold);
  border-radius: 2px;
}

.perspective-card h4 {
  margin-bottom: 10px;
}

.perspective-thought {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.42;
}

.perspective-note {
  color: var(--ink-soft);
  font-size: 13px;
}

.model-card {
  margin-top: 20px;
  padding: 24px;
  background: var(--blue-pale);
  border: 1px solid rgba(51, 91, 111, 0.18);
  border-radius: var(--radius-md);
}

.model-card > p:not(.eyebrow) {
  color: var(--ink-soft);
}

.model-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.model-steps li {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(51, 91, 111, 0.13);
  border-radius: 12px;
}

.model-steps strong,
.model-steps span {
  display: block;
}

.model-steps strong {
  margin-bottom: 4px;
  color: #315f74;
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.model-steps span {
  font-size: 13px;
  line-height: 1.48;
}

.boundary-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  margin-top: 18px;
  padding: 20px;
  background: var(--gold-pale);
  border: 1px solid rgba(134, 99, 30, 0.2);
  border-radius: var(--radius-md);
}

.boundary-card > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--night);
  background: rgba(255, 255, 255, 0.52);
  border-radius: 50%;
  font-weight: 950;
}

.boundary-card h4,
.boundary-card p {
  margin-bottom: 0;
}

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

.phrase-group {
  padding: 18px;
  background: #f0e9de;
  border: 1px solid rgba(21, 35, 49, 0.08);
  border-radius: var(--radius-md);
}

.phrase-group h4 {
  min-height: 42px;
  margin-bottom: 12px;
  color: #72551c;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.phrase-choice {
  min-height: 108px;
  margin-top: 10px;
  padding: 14px;
  font-size: 13px;
}

.phrase-preview {
  min-height: 96px;
  display: flex;
  align-items: center;
  margin-top: 20px;
  padding: 22px 24px;
  color: var(--ivory);
  background: var(--night-raised);
  border: 1px solid rgba(255, 250, 240, 0.12);
  border-radius: var(--radius-md);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
}

.phrase-preview span {
  color: rgba(255, 250, 240, 0.56);
}

.phrase-insight {
  margin-top: 12px;
  padding: 17px 19px;
  color: #2c584b;
  background: var(--sage-pale);
  border-radius: var(--radius-md);
  font-size: 13px;
}

.return-context,
.reflection-feedback,
.transfer-feedback {
  margin: 18px 0;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
}

.return-context {
  color: var(--ink-soft);
  background: #f0e9de;
  border: 1px solid var(--line);
}

.probe-timing {
  margin: 18px 0;
  padding: 18px 20px;
  color: #315f74;
  background: var(--blue-pale);
  border: 1px solid rgba(51, 91, 111, 0.18);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 750;
}

.reflection-feedback,
.transfer-feedback {
  color: #2c584b;
  background: var(--sage-pale);
  border: 1px solid rgba(82, 116, 103, 0.22);
  font-weight: 750;
}

.reflection-option,
.transfer-choice {
  width: 100%;
  min-height: 58px;
}

#transferList {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.transfer-group {
  background: #f0e9de;
}

.transfer-group .transfer-choice {
  margin-top: 10px;
  font-size: 13px;
}

.mission-heading {
  max-width: 780px;
}

.mission-heading p:last-child {
  color: var(--ink-soft);
}

.mission-fieldset {
  margin-top: 18px;
}

.mission-option {
  align-items: center;
}

.mission-option input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  accent-color: var(--gold);
}

.mission-copy strong,
.mission-copy span {
  display: block;
}

.mission-copy span {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 13px;
}

.completion-screen {
  max-width: 700px;
  padding-top: 18px;
  text-align: center;
}

.completion-screen > p {
  color: var(--ink-soft);
}

.completion-truth,
.practice-summary {
  margin: 18px 0;
  padding: 19px 21px;
  border-radius: var(--radius-md);
  text-align: left;
}

.completion-truth {
  background: var(--gold-pale);
}

.practice-summary {
  color: #2c584b;
  background: var(--sage-pale);
}

.lesson-adult-note {
  width: auto;
  margin: 0;
  border-width: 1px 0 0;
  border-radius: 0;
  box-shadow: none;
}

.privacy-strip {
  width: min(calc(100% - 72px), var(--content));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin: 68px auto 44px;
  padding: 21px 24px;
  color: rgba(255, 250, 240, 0.7);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 250, 240, 0.12);
  border-radius: var(--radius-md);
}

.privacy-strip p {
  margin: 0;
  font-size: 12px;
}

.privacy-strip .text-button {
  color: var(--gold-bright);
}

footer {
  width: min(calc(100% - 72px), var(--content));
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-inline: auto;
  padding: 27px 0 38px;
  color: rgba(255, 250, 240, 0.5);
  border-top: 1px solid rgba(255, 250, 240, 0.11);
  font-size: 11px;
}

footer p {
  margin: 0;
}

.toast {
  position: fixed;
  z-index: 30;
  right: 22px;
  bottom: 22px;
  max-width: min(420px, calc(100% - 44px));
  padding: 15px 18px;
  color: var(--night);
  background: var(--gold-bright);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 850;
}

body[data-mode="adult"] .eyebrow {
  color: #446c5e;
}

body[data-mode="adult"] .landing .eyebrow,
body[data-mode="adult"] .lesson-header .eyebrow,
body[data-mode="adult"] .family-invitation .eyebrow {
  color: var(--gold-bright);
}

@media (max-width: 1120px) {
  .roadmap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .roadmap-card:last-child {
    grid-column: 1 / -1;
  }

  .roadmap-card {
    min-height: 205px;
  }

  .roadmap-index {
    margin-bottom: 34px;
  }

  .story-layout {
    gap: 34px;
  }

  .story-world {
    height: 410px;
  }

  .feedback-card dl,
  .perspective-grid,
  .phrase-groups,
  #transferList {
    grid-template-columns: 1fr;
  }

  .phrase-choice {
    min-height: 58px;
  }

  .phrase-group h4 {
    min-height: 0;
  }
}

@media (max-width: 860px) {
  .model-steps {
    grid-template-columns: 1fr;
  }

  .lesson-actions {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 16px;
  }

  .lens-settings,
  .repair-grid,
  .revision-factor-fieldset .lens-setting-list {
    grid-template-columns: 1fr;
  }

  .site-header {
    width: min(calc(100% - 40px), var(--wide));
  }

  .hero-copy {
    width: min(calc(100% - 48px), var(--wide));
  }

  .landing::before {
    background:
      linear-gradient(90deg, rgba(5, 15, 25, 0.93) 0%, rgba(5, 15, 25, 0.72) 48%, rgba(5, 15, 25, 0.2) 100%),
      linear-gradient(180deg, rgba(5, 14, 23, 0.56), transparent 34%, rgba(4, 13, 22, 0.65));
  }

  .today-card,
  .section-heading,
  .family-studio-heading,
  .family-plan-grid,
  .lesson-header,
  .story-layout {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .family-studio-heading {
    gap: 16px;
  }

  .story-world {
    height: 320px;
  }

  .family-reward-panel,
  .revisit-panel {
    grid-column: auto;
  }

  .family-reward-list,
  .family-revisit-list {
    grid-template-columns: 1fr;
  }

  .lesson-header {
    gap: 8px;
  }

  .lesson-heading {
    text-align: left;
  }

  .step-count {
    text-align: left;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .site-header {
    width: calc(100% - 28px);
    min-height: 80px;
    gap: 12px;
  }

  .brand {
    gap: 9px;
  }

  .brand::before {
    height: 28px;
  }

  .brand strong {
    font-size: 15px;
    letter-spacing: 0.19em;
  }

  .brand small {
    display: none;
  }

  .mode-switch {
    padding: 3px;
  }

  .mode-button {
    min-height: 44px;
    padding-inline: 11px;
    font-size: 11px;
  }

  .landing {
    min-height: 820px;
    align-items: flex-end;
    padding: 118px 0 58px;
  }

  .hero-media img {
    object-position: 43% center;
  }

  .landing::before {
    background:
      linear-gradient(180deg, rgba(5, 14, 23, 0.72) 0%, rgba(5, 14, 23, 0.18) 28%, rgba(5, 14, 23, 0.44) 52%, rgba(5, 14, 23, 0.96) 84%, rgba(5, 14, 23, 0.99) 100%),
      linear-gradient(90deg, rgba(5, 15, 25, 0.36), rgba(5, 15, 25, 0.06));
  }

  .hero-copy {
    width: calc(100% - 32px);
  }

  h1 {
    margin-bottom: 20px;
    font-size: clamp(46px, 13.2vw, 62px);
  }

  h2 {
    font-size: clamp(32px, 10vw, 43px);
  }

  h3 {
    font-size: clamp(29px, 9vw, 40px);
  }

  .hero-lead {
    font-size: 16px;
    line-height: 1.55;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    margin-top: 27px;
  }

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

  .duration {
    text-align: center;
  }

  .today-card {
    width: calc(100% - 24px);
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: -26px;
    padding: 25px 22px;
    border-radius: 22px;
  }

  .status-chip {
    width: fit-content;
  }

  .roadmap-section {
    width: calc(100% - 24px);
    margin-top: 40px;
    padding: 31px 19px;
    border-radius: 28px;
  }

  .roadmap {
    grid-template-columns: 1fr;
  }

  .roadmap-card,
  .roadmap-card:last-child {
    min-height: 190px;
    grid-column: auto;
  }

  .adult-note,
  .family-studio,
  .family-invitation,
  .lesson-shell,
  .privacy-strip,
  footer {
    width: calc(100% - 24px);
  }

  .adult-note {
    padding: 26px 22px;
  }

  .family-studio,
  .family-invitation {
    margin-bottom: 54px;
    border-radius: 25px;
  }

  .family-studio {
    padding: 26px 18px;
  }

  .family-panel {
    padding: 19px 16px;
  }

  .family-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .family-actions .button {
    width: 100%;
  }

  .family-invitation {
    padding: 27px 22px;
  }

  .family-invitation-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .family-invitation-actions .button {
    width: 100%;
  }

  .lesson-shell {
    margin-top: 104px;
    border-radius: 26px;
  }

  .lesson-header {
    padding: 20px;
  }

  .lesson-heading h2 {
    font-size: 24px;
  }

  .stepper {
    display: flex;
    gap: 0;
    padding: 15px 18px;
    scroll-snap-type: x proximity;
  }

  .stepper li {
    min-width: 118px;
    flex: 0 0 118px;
    scroll-snap-align: start;
  }

  .stepper li:not(:last-child)::after {
    right: 8px;
    left: 48px;
  }

  .lesson-stage {
    min-height: 0;
    padding: 36px 18px 46px;
  }

  .lens-cards {
    grid-template-columns: 1fr;
  }

  .lens-card p,
  .lens-card small {
    min-height: 0;
  }

  .scenario-panel {
    margin-top: 34px;
    padding-top: 30px;
  }

  .story-layout {
    gap: 28px;
  }

  .story-world {
    height: 248px;
    border-radius: 20px;
  }

  .story-world img {
    object-position: 53% center;
  }

  .feedback-card dl {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .screen-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .screen-actions .button {
    width: 100%;
  }

  .boundary-card {
    grid-template-columns: 1fr;
  }

  .privacy-strip {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 52px;
  }

  .privacy-strip .text-button {
    justify-self: start;
  }

  footer {
    flex-direction: column;
    gap: 8px;
  }
}

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