:root {
  --cream: #fff7dc;
  --paper: #fffef8;
  --paper-soft: rgba(255, 255, 255, 0.92);
  --mint: #e9fff2;
  --sky: #dff5ff;
  --blue: #2d6493;
  --blue-deep: #1d4666;
  --forest: #2f8d4c;
  --forest-deep: #1d5d34;
  --gold: #f8cb4e;
  --orange: #f58a3d;
  --ink: #24352d;
  --muted: #5b7064;
  --line: #d7e3e9;
  --shadow: 0 22px 60px rgba(27, 59, 73, 0.13);
  --radius-xl: 2rem;
  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --content-width: min(1180px, calc(100% - 2rem));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next Rounded", "Trebuchet MS", Verdana, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(248, 203, 78, 0.18), transparent 22rem),
    radial-gradient(circle at top right, rgba(81, 193, 247, 0.18), transparent 24rem),
    linear-gradient(180deg, #fff8e0 0%, #f5fdff 38%, #ffffff 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 18rem;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.5;
}

body::before {
  top: 5rem;
  left: -6rem;
  background:
    radial-gradient(circle, rgba(248, 203, 78, 0.9) 0 0.3rem, transparent 0.35rem),
    radial-gradient(circle, rgba(248, 203, 78, 0.75) 0 0.25rem, transparent 0.3rem);
  background-size: 3.25rem 3.25rem, 2.4rem 2.4rem;
  background-position: 0 0, 1.1rem 1.1rem;
}

body::after {
  right: -8rem;
  bottom: 2rem;
  background:
    linear-gradient(135deg, rgba(232, 255, 242, 0.7), rgba(223, 245, 255, 0.8)),
    radial-gradient(circle at 30% 30%, rgba(45, 100, 147, 0.18), transparent 70%);
}

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

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

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(255, 250, 239, 0.82);
  border-bottom: 1px solid rgba(45, 100, 147, 0.08);
}

.nav-inner,
.progress-shell,
.site-shell {
  width: var(--content-width);
  margin: 0 auto;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0 0.8rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-badge {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--blue), var(--forest));
  color: #fff;
  font-family: "Avenir Next Condensed", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(30, 70, 101, 0.22);
}

.brand-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand strong {
  display: block;
  font-family: "Avenir Next Condensed", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  font-size: 1.45rem;
  line-height: 1;
  color: var(--blue-deep);
}

.nav-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.nav-button {
  border: 1px solid rgba(45, 100, 147, 0.12);
  background: rgba(255, 255, 255, 0.75);
  color: var(--blue-deep);
  padding: 0.68rem 1rem;
  border-radius: 999px;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.nav-button:hover,
.nav-button:focus-visible,
.nav-button.is-active {
  border-color: rgba(47, 141, 76, 0.45);
  background: rgba(47, 141, 76, 0.12);
  color: var(--forest-deep);
  transform: translateY(-1px);
  outline: none;
}

.progress-shell {
  display: grid;
  gap: 0.55rem;
  padding: 0 0 0.95rem;
}

.progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.progress-copy strong {
  color: var(--forest-deep);
}

.progress-rail {
  position: relative;
  width: 100%;
  height: 0.8rem;
  border-radius: 999px;
  background: rgba(45, 100, 147, 0.1);
  overflow: hidden;
}

.progress-rail span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--forest), var(--blue));
  transition: width 220ms ease;
}

.site-shell {
  padding-bottom: 5rem;
}

.hero,
.chapter {
  margin-top: 1.4rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.9fr);
  gap: 1.3rem;
  align-items: stretch;
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(45, 100, 147, 0.08);
  background: var(--paper-soft);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: clamp(1.4rem, 2vw, 2rem);
  min-height: 37rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at top right, rgba(248, 203, 78, 0.28), transparent 14rem),
    radial-gradient(circle at 15% 85%, rgba(45, 100, 147, 0.12), transparent 13rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(227, 248, 255, 0.92));
}

.hero-copy::before,
.hero-copy::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero-copy::before {
  width: 12rem;
  height: 12rem;
  right: -4rem;
  top: -4rem;
  background: rgba(248, 203, 78, 0.2);
}

.hero-copy::after {
  width: 16rem;
  height: 16rem;
  left: -7rem;
  bottom: -8rem;
  background: rgba(47, 141, 76, 0.08);
}

.eyebrow,
.section-kicker,
.activity-kicker,
.choice-tag,
.mini-note-label,
.myth-chip {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 900;
}

.eyebrow {
  margin: 0;
  color: var(--forest);
}

h1,
h2,
h3 {
  font-family: "Avenir Next Condensed", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  margin: 0;
}

h1 {
  margin-top: 0.75rem;
  color: var(--blue-deep);
  font-size: clamp(3.45rem, 8vw, 5.9rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.title-accent {
  display: block;
  color: #e29b1f;
  text-shadow: 0 3px 0 rgba(117, 61, 17, 0.2);
}

.hero-lead {
  max-width: 34rem;
  font-size: 1.14rem;
  line-height: 1.65;
  color: var(--ink);
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.primary-button,
.secondary-button {
  border-radius: 999px;
  padding: 0.92rem 1.35rem;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.primary-button {
  border: none;
  background: linear-gradient(135deg, var(--forest), #47a45d);
  color: #fff;
  box-shadow: 0 12px 30px rgba(47, 141, 76, 0.25);
}

.secondary-button {
  border: 1px solid rgba(45, 100, 147, 0.16);
  background: rgba(255, 255, 255, 0.72);
  color: var(--blue-deep);
}

.primary-button:hover,
.primary-button:focus-visible,
.secondary-button:hover,
.secondary-button:focus-visible,
.choice-option:hover,
.choice-option:focus-visible,
.myth-card:hover,
.myth-card:focus-visible,
.trap-card:hover,
.trap-card:focus-visible,
.risk-card:hover,
.risk-card:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.hero-stats,
.hero-note-grid,
.amount-grid,
.chapter-grid,
.select-row,
.compound-grid {
  display: grid;
  gap: 1rem;
}

.hero-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-note-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card,
.mini-note {
  padding: 1rem;
  border-radius: 1.3rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(45, 100, 147, 0.08);
}

.stat-card strong {
  display: block;
  color: var(--blue-deep);
  font-size: 2rem;
  line-height: 1;
}

.stat-card span,
.mini-note p {
  color: var(--muted);
}

.mini-note {
  backdrop-filter: blur(10px);
}

.mini-note-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(248, 203, 78, 0.18);
  color: var(--forest-deep);
  font-size: 0.78rem;
}

.mini-note p {
  margin-bottom: 0;
}

.hero-poster {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background:
    linear-gradient(180deg, rgba(29, 70, 102, 0.08), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 220, 0.95));
}

.poster-frame {
  padding: 0.8rem;
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(45, 100, 147, 0.06));
  border: 1px solid rgba(45, 100, 147, 0.08);
}

.poster-frame img {
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(36, 53, 45, 0.16);
}

.poster-caption {
  padding: 0.5rem 0.25rem 0.25rem;
}

.poster-caption strong {
  color: var(--blue-deep);
}

.poster-caption p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-kicker {
  margin: 0 0 0.4rem;
  color: var(--forest);
}

h2 {
  font-size: clamp(2.1rem, 5vw, 3.15rem);
  color: var(--blue-deep);
}

.section-note,
.activity-copy,
.response-panel p,
.tab-panel p,
.idea-output p,
.light-copy {
  line-height: 1.65;
}

.section-note {
  max-width: 32rem;
  margin: 0;
  color: var(--muted);
}

.chapter-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.chapter-grid > * {
  grid-column: span 6;
}

.chapter-grid.two-up > * {
  grid-column: span 6;
}

.wide-card {
  grid-column: 1 / -1;
}

.activity {
  padding: 1.4rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 239, 0.98));
}

.activity-kicker {
  margin: 0 0 0.4rem;
  color: var(--forest);
  font-size: 0.82rem;
}

h3 {
  color: var(--forest-deep);
  font-size: clamp(1.8rem, 4.4vw, 2.6rem);
}

.activity-copy {
  color: var(--muted);
}

.option-grid,
.sorter-grid,
.trap-grid,
.risk-grid,
.myth-grid,
.budget-list,
.affirmation-list {
  display: grid;
  gap: 0.85rem;
}

.option-grid,
.trap-grid,
.risk-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-option,
.myth-card,
.trap-card,
.risk-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  text-align: left;
  border-radius: 1.35rem;
  border: 1px solid rgba(45, 100, 147, 0.1);
  background: rgba(255, 255, 255, 0.94);
  padding: 1rem 1rem 1.05rem;
  box-shadow: 0 12px 26px rgba(36, 53, 45, 0.06);
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.choice-option::before,
.trap-card::before,
.risk-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.45rem;
  border-radius: inherit 0 0 inherit;
  background: var(--gold);
}

.choice-option[data-choice-card="save"]::before,
.risk-card[data-risk-card="steady"]::before {
  background: var(--forest);
}

.choice-option[data-choice-card="invest"]::before,
.risk-card[data-risk-card="balanced"]::before {
  background: var(--blue);
}

.choice-option[data-choice-card="business"]::before,
.risk-card[data-risk-card="bold"]::before {
  background: var(--orange);
}

.card-copy {
  flex: 1;
  min-width: 0;
}

.choice-option strong,
.myth-card strong,
.trap-card strong,
.risk-card strong {
  display: block;
  margin: 0.35rem 0 0.25rem;
  font-size: 1.12rem;
}

.choice-tag,
.myth-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
}

.choice-tag {
  background: rgba(45, 100, 147, 0.08);
  color: var(--blue-deep);
}

.myth-chip {
  background: rgba(248, 203, 78, 0.2);
  color: var(--forest-deep);
}

.control-hint {
  display: inline-block;
  margin-top: 0.3rem;
  color: var(--muted);
}

.choice-option small,
.trap-card small,
.risk-card span {
  color: var(--muted);
}

.choice-option.is-selected,
.trap-card.is-selected,
.risk-card.is-selected,
.myth-card.is-open {
  border-color: rgba(47, 141, 76, 0.4);
  background: rgba(233, 255, 242, 0.8);
  box-shadow: 0 16px 36px rgba(47, 141, 76, 0.14);
}

.response-panel,
.summary-ribbon,
.idea-output,
.tab-panel,
.chart-frame,
.challenge-total {
  border-radius: 1.2rem;
}

.response-panel {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  background:
    linear-gradient(180deg, rgba(255, 247, 220, 0.88), rgba(255, 255, 255, 0.96));
  border: 1px dashed rgba(47, 141, 76, 0.26);
}

.response-panel strong,
.summary-ribbon,
.chart-stat span,
.challenge-total span,
.inline-note,
.field-label,
.budget-copy span,
.preview-line span {
  color: var(--muted);
}

.field-label {
  display: inline-block;
  margin-top: 1rem;
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
  font-weight: 700;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  width: 100%;
  border: 1px solid rgba(45, 100, 147, 0.12);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  padding: 0.88rem 1rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input[type="checkbox"],
input[type="radio"] {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  padding: 0;
  flex: 0 0 auto;
  accent-color: var(--forest);
}

input:not([type="checkbox"]):not([type="radio"]):focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: rgba(47, 141, 76, 0.45);
  box-shadow: 0 0 0 4px rgba(47, 141, 76, 0.12);
  outline: none;
}

input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
  outline: 3px solid rgba(47, 141, 76, 0.22);
  outline-offset: 2px;
}

textarea {
  resize: vertical;
}

.lined-input,
.plan-form textarea {
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.98) 0,
      rgba(255, 255, 255, 0.98) 1.65rem,
      rgba(45, 100, 147, 0.16) 1.67rem,
      rgba(255, 255, 255, 0.98) 1.72rem
    );
  line-height: 1.7;
}

.truth {
  display: block;
  max-height: 0;
  overflow: hidden;
  color: var(--muted);
  transition: max-height 220ms ease, margin-top 220ms ease;
}

.myth-card.is-open .truth {
  max-height: 6rem;
  margin-top: 0.7rem;
}

.summary-ribbon,
.challenge-total {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  background: rgba(45, 100, 147, 0.06);
  border: 1px solid rgba(45, 100, 147, 0.08);
  font-weight: 700;
}

.sorter-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin-top: 1rem;
}

.sort-card {
  padding: 1rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(45, 100, 147, 0.1);
  background: rgba(255, 255, 255, 0.94);
}

.sort-card strong {
  display: block;
  font-size: 1.04rem;
  margin-bottom: 0.75rem;
}

.sort-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.sort-choice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(45, 100, 147, 0.12);
  border-radius: 999px;
  padding: 0.66rem 0.8rem;
  background: rgba(255, 255, 255, 0.88);
  cursor: pointer;
}

.sort-choice.is-selected {
  background: rgba(47, 141, 76, 0.12);
  border-color: rgba(47, 141, 76, 0.35);
  color: var(--forest-deep);
}

.sort-card.is-correct {
  border-color: rgba(47, 141, 76, 0.4);
  box-shadow: 0 12px 28px rgba(47, 141, 76, 0.12);
}

.sort-card.is-wrong {
  border-color: rgba(245, 138, 61, 0.36);
  box-shadow: 0 12px 28px rgba(245, 138, 61, 0.12);
}

.input-pair,
.chart-overview,
.amount-grid,
.select-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.input-pair {
  display: grid;
  gap: 0.75rem;
}

.amount-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.amount-card {
  padding: 1rem;
  border-radius: 1.2rem;
  color: var(--ink);
  border: 1px solid rgba(45, 100, 147, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(223, 245, 255, 0.62));
}

.amount-card strong {
  display: block;
  margin-top: 0.35rem;
  color: var(--blue-deep);
  font-size: 1.8rem;
  line-height: 1;
}

.save-card {
  background:
    linear-gradient(180deg, rgba(233, 255, 242, 0.95), rgba(255, 255, 255, 0.96));
}

.spend-card {
  background:
    linear-gradient(180deg, rgba(255, 247, 220, 0.95), rgba(255, 255, 255, 0.96));
}

.give-card {
  background:
    linear-gradient(180deg, rgba(223, 245, 255, 0.95), rgba(255, 255, 255, 0.96));
}

.challenge-list {
  margin-top: 1rem;
}

.challenge-week {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px dashed rgba(45, 100, 147, 0.12);
}

.challenge-week:last-child {
  border-bottom: none;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.tab-button {
  border: 1px solid rgba(45, 100, 147, 0.12);
  background: rgba(255, 255, 255, 0.78);
  color: var(--blue-deep);
  padding: 0.72rem 1rem;
  border-radius: 999px;
}

.tab-button.is-active {
  background: rgba(47, 141, 76, 0.12);
  border-color: rgba(47, 141, 76, 0.36);
  color: var(--forest-deep);
}

.tab-panel {
  margin-top: 1rem;
  padding: 1.15rem;
  border: 1px solid rgba(45, 100, 147, 0.08);
  background: rgba(255, 255, 255, 0.95);
}

.tab-panel strong {
  display: block;
  color: var(--blue-deep);
  font-size: 1.16rem;
}

.tab-panel ul {
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.lesson-grid,
.reflection-grid,
.selection-grid,
.metric-strip,
.mindset-grid,
.check-grid {
  display: grid;
  gap: 1rem;
}

.lesson-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1rem;
}

.lesson-card {
  position: relative;
  padding: 1rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(45, 100, 147, 0.1);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 26px rgba(36, 53, 45, 0.05);
}

.lesson-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.38rem;
  border-radius: inherit 0 0 inherit;
  background: rgba(45, 100, 147, 0.25);
}

.lesson-card.accent-blue::before {
  background: var(--blue);
}

.lesson-card.accent-green::before {
  background: var(--forest);
}

.lesson-card.accent-gold::before {
  background: var(--gold);
}

.lesson-card strong {
  display: block;
  color: var(--blue-deep);
  font-size: 1.08rem;
}

.lesson-card p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.lesson-card small {
  display: block;
  margin-top: 0.75rem;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}

.reflection-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.selection-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 1rem;
}

.selection-grid.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.selection-grid.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.selection-grid.five-up {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.selection-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(45, 100, 147, 0.1);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 26px rgba(36, 53, 45, 0.05);
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.selection-card:hover,
.selection-card:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.selection-card.is-selected {
  border-color: rgba(47, 141, 76, 0.4);
  background: rgba(233, 255, 242, 0.8);
  box-shadow: 0 16px 36px rgba(47, 141, 76, 0.14);
}

.selection-card strong {
  display: block;
  margin: 0.2rem 0 0.2rem;
  color: var(--forest-deep);
  font-size: 1.04rem;
}

.selection-card small {
  color: var(--muted);
  line-height: 1.55;
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  margin-top: 1rem;
}

.quote-card {
  padding: 1rem;
  border-radius: 1.3rem;
  border: 1px solid rgba(45, 100, 147, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 247, 220, 0.88), rgba(255, 255, 255, 0.96));
}

.quote-card p {
  margin: 0.6rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.story-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(45, 100, 147, 0.08);
  color: var(--blue-deep);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quote-note {
  margin: 1rem 0 0;
  padding-left: 1rem;
  border-left: 3px solid rgba(248, 203, 78, 0.8);
  color: var(--blue-deep);
  font-size: 1.04rem;
  line-height: 1.6;
}

.bullet-list {
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
}

.lesson-stack {
  display: grid;
  gap: 0.4rem;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.pill-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(45, 100, 147, 0.08);
  color: var(--blue-deep);
  font-weight: 700;
}

.large-pills {
  margin-top: 1rem;
}

.table-shell {
  margin-top: 1rem;
  overflow: auto;
  border-radius: 1.2rem;
  border: 1px solid rgba(45, 100, 147, 0.08);
  background: rgba(255, 255, 255, 0.95);
}

.comparison-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(45, 100, 147, 0.08);
}

.comparison-table th {
  background: rgba(45, 100, 147, 0.06);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.comparison-table td {
  color: var(--ink);
  line-height: 1.55;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.narrow-shell .comparison-table {
  min-width: 520px;
}

.metric-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.metric-card {
  padding: 1rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(45, 100, 147, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(223, 245, 255, 0.62));
}

.metric-card span {
  color: var(--muted);
}

.metric-card strong {
  display: block;
  margin-top: 0.3rem;
  color: var(--blue-deep);
  font-size: 1.55rem;
}

.metric-card small {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  line-height: 1.5;
}

.warning-panel {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 1.2rem;
  border: 1px dashed rgba(245, 138, 61, 0.3);
  background: rgba(255, 247, 220, 0.72);
}

.check-grid {
  margin-top: 1rem;
}

.checkline.is-selected {
  background: rgba(233, 255, 242, 0.8);
  border-color: rgba(47, 141, 76, 0.28);
}

.subhead {
  display: block;
  color: var(--forest-deep);
  font-size: 1.12rem;
}

.sendoff-card {
  background:
    radial-gradient(circle at top right, rgba(248, 203, 78, 0.22), transparent 16rem),
    linear-gradient(160deg, rgba(29, 70, 102, 0.96), rgba(47, 141, 76, 0.94));
  color: #fff;
}

.sendoff-card .activity-kicker,
.sendoff-card h3,
.sendoff-card .activity-copy,
.sendoff-line {
  color: rgba(255, 255, 255, 0.9);
}

.sendoff-card .pill-list span {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.sendoff-line {
  margin: 1rem 0 0;
  max-width: 42rem;
  line-height: 1.65;
  font-size: 1.05rem;
}

.mindset-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.top-gap {
  margin-top: 1rem;
}

.no-margin {
  margin-top: 0;
}

.mini-ribbon {
  margin-top: 1rem;
}

.page-map-shell {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.roadmap-card {
  padding: 1rem;
  border-radius: 1.3rem;
  border: 1px solid rgba(45, 100, 147, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(233, 255, 242, 0.72));
}

.roadmap-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.36rem 0.7rem;
  border-radius: 999px;
  background: rgba(45, 100, 147, 0.08);
  color: var(--blue-deep);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.roadmap-card strong {
  display: block;
  margin-top: 0.75rem;
  color: var(--forest-deep);
  font-size: 1.08rem;
}

.roadmap-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.chapter-continue {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 1.2rem;
  background: rgba(45, 100, 147, 0.06);
  border: 1px solid rgba(45, 100, 147, 0.08);
}

.chapter-continue span {
  color: var(--muted);
  font-weight: 700;
}

.page-group {
  border-radius: 1.35rem;
  border: 1px solid rgba(45, 100, 147, 0.1);
  background: rgba(255, 255, 255, 0.84);
  overflow: hidden;
}

.page-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(180deg, rgba(223, 245, 255, 0.7), rgba(255, 255, 255, 0.96));
  border-bottom: 1px solid rgba(45, 100, 147, 0.08);
}

.page-group-header h4 {
  margin: 0;
  color: var(--blue-deep);
  font-family: "Avenir Next Condensed", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  font-size: 1.45rem;
}

.page-group-header span {
  color: var(--muted);
  font-size: 0.92rem;
}

.page-list {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
}

.page-entry {
  border-radius: 1.15rem;
  border: 1px solid rgba(45, 100, 147, 0.08);
  background: rgba(255, 255, 255, 0.96);
}

.page-entry summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  cursor: pointer;
  list-style: none;
}

.page-entry summary::-webkit-details-marker {
  display: none;
}

.page-entry[open] summary {
  border-bottom: 1px solid rgba(45, 100, 147, 0.08);
}

.page-summary-main {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.page-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.8rem;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  background: rgba(47, 141, 76, 0.12);
  color: var(--forest-deep);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.page-title-stack strong {
  display: block;
  color: var(--ink);
  font-size: 1.02rem;
}

.page-title-stack span {
  color: var(--muted);
  font-size: 0.92rem;
}

.page-toggle {
  color: var(--blue-deep);
  font-size: 0.9rem;
  font-weight: 700;
}

.page-entry-body {
  padding: 0.95rem 1rem 1rem;
}

.page-entry-body p {
  margin-top: 0;
  color: var(--muted);
  line-height: 1.65;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(45, 100, 147, 0.12);
  background: rgba(45, 100, 147, 0.06);
  color: var(--blue-deep);
  text-decoration: none;
  font-weight: 700;
}

.page-link:hover,
.page-link:focus-visible {
  border-color: rgba(47, 141, 76, 0.35);
  background: rgba(47, 141, 76, 0.1);
  color: var(--forest-deep);
  outline: none;
}

.activity-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.disclaimer {
  margin: 0;
  align-self: start;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(45, 100, 147, 0.08);
  color: var(--muted);
  font-size: 0.84rem;
}

.compound-grid {
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  margin-top: 1rem;
}

.compound-controls {
  padding: 1rem;
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(45, 100, 147, 0.08);
}

.inline-note {
  margin-top: 0.45rem;
  font-size: 0.92rem;
}

.chart-shell {
  padding: 1rem;
  border: 1px solid rgba(45, 100, 147, 0.08);
  background:
    linear-gradient(180deg, rgba(223, 245, 255, 0.62), rgba(255, 255, 255, 0.98));
}

.chart-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.chart-stat {
  padding: 0.9rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.88);
}

.chart-stat strong {
  display: block;
  margin-top: 0.35rem;
  color: var(--blue-deep);
  font-size: 1.55rem;
}

.chart-frame {
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(45, 100, 147, 0.08);
}

.chart-svg {
  display: block;
  width: 100%;
  height: auto;
}

.chart-axis-labels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(4.5rem, 1fr));
  gap: 0.5rem;
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.idea-output {
  margin-top: 1rem;
  padding: 1rem 1.05rem;
  background:
    linear-gradient(180deg, rgba(255, 247, 220, 0.88), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(245, 138, 61, 0.18);
}

.idea-output strong {
  display: block;
  color: var(--forest-deep);
  font-size: 1.12rem;
}

.idea-output ul {
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.profit-grid {
  margin-top: 1rem;
}

.profit-card-tall small {
  display: inline-block;
  margin-top: 0.35rem;
  color: var(--muted);
}

.budget-row {
  display: grid;
  gap: 0.55rem;
}

.budget-copy {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.budget-track {
  position: relative;
  height: 0.95rem;
  border-radius: 999px;
  background: rgba(45, 100, 147, 0.08);
  overflow: hidden;
}

.budget-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  transition: width 200ms ease;
}

.save-fill {
  background: linear-gradient(90deg, #59c473, var(--forest));
}

.spend-fill {
  background: linear-gradient(90deg, #f7b454, var(--orange));
}

.give-fill {
  background: linear-gradient(90deg, #6dc8f0, var(--blue));
}

.plan-card {
  min-height: 100%;
}

.plan-form {
  display: grid;
  gap: 0.15rem;
}

.preview-card {
  background:
    radial-gradient(circle at top right, rgba(248, 203, 78, 0.18), transparent 16rem),
    linear-gradient(160deg, rgba(29, 70, 102, 0.96), rgba(47, 141, 76, 0.94));
  color: #fff;
}

.preview-card .activity-kicker,
.preview-card h3,
.preview-card .preview-line span {
  color: rgba(255, 255, 255, 0.82);
}

.preview-board {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.preview-line {
  padding: 1rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.preview-line strong {
  display: block;
  margin-top: 0.3rem;
  color: #fff;
  font-size: 1.1rem;
}

.affirmation-list {
  margin-top: 1rem;
}

.checkline {
  display: flex;
  align-items: start;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(45, 100, 147, 0.08);
}

.pledge-card {
  background:
    radial-gradient(circle at top left, rgba(248, 203, 78, 0.24), transparent 12rem),
    linear-gradient(160deg, #173f30, #23563f);
  color: #fff;
}

.pledge-card h3,
.pledge-card .activity-kicker {
  color: #fff;
}

.pledge-card blockquote {
  margin: 1rem 0;
  padding-left: 1rem;
  border-left: 3px solid rgba(248, 203, 78, 0.7);
  font-size: 1.28rem;
  line-height: 1.5;
}

.light-copy {
  color: rgba(255, 255, 255, 0.86);
}

.field-label-light {
  color: rgba(255, 255, 255, 0.9);
}

.pledge-form {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.pledge-checkline {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.pledge-checkline span {
  color: #fff;
}

.pledge-grid {
  gap: 0.75rem;
}

.pledge-form input:not([type="checkbox"]):not([type="radio"]) {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
}

.light-button {
  background: linear-gradient(135deg, var(--gold), #f5a63f);
  color: var(--forest-deep);
}

.light-outline {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.dark-panel {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
}

.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.has-js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero,
  .compound-grid,
  .story-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: unset;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .nav-inner,
  .section-heading,
  .activity-row {
    flex-direction: column;
    align-items: stretch;
  }

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

  .chapter-grid > *,
  .chapter-grid.two-up > * {
    grid-column: 1 / -1;
  }

  .wide-card {
    grid-column: 1 / -1;
  }

  .option-grid,
  .trap-grid,
  .risk-grid,
  .amount-grid,
  .chart-overview,
  .hero-stats,
  .roadmap-grid,
  .reflection-grid,
  .metric-strip,
  .mindset-grid,
  .selection-grid.two-up,
  .selection-grid.three-up {
    grid-template-columns: 1fr;
  }

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

  .chapter-continue {
    flex-direction: column;
    align-items: stretch;
  }

  .input-pair,
  .select-row {
    grid-template-columns: 1fr;
  }

  .page-group-header,
  .page-entry summary {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  :root {
    --content-width: min(100% - 1rem, 100%);
  }

  .topbar {
    position: static;
  }

  .nav-inner,
  .progress-shell {
    width: calc(100% - 1rem);
  }

  .site-shell {
    width: calc(100% - 1rem);
  }

  .card,
  .activity,
  .hero-copy,
  .hero-poster {
    border-radius: 1.5rem;
  }

  h1 {
    font-size: clamp(2.85rem, 16vw, 4.2rem);
  }

  h2 {
    font-size: clamp(1.85rem, 9vw, 2.7rem);
  }

  h3 {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }
}

@media print {
  body {
    background: #fff;
  }

  .topbar,
  .hero-actions,
  .nav-actions,
  .action-row,
  .poster-caption {
    display: none !important;
  }

  .site-shell {
    width: 100%;
    padding: 0;
  }

  .hero,
  .chapter-grid,
  .compound-grid {
    display: block;
  }

  .card,
  .activity {
    box-shadow: none;
    border: 1px solid #d5d5d5;
    page-break-inside: avoid;
    margin-bottom: 1rem;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
