:root {
  --bg: #071b1f;
  --bg-2: #0d2b30;
  --card: #ffffff;
  --card-soft: #f2f8f5;
  --text: #102428;
  --muted: #63757a;
  --line: #d9e7e2;
  --brand: #12a875;
  --brand-dark: #087457;
  --gold: #d7a63d;
  --danger: #b45b36;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(18, 168, 117, 0.26), transparent 34rem),
    linear-gradient(135deg, var(--bg), var(--bg-2));
  color: var(--text);
  min-height: 100vh;
}

body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }

button,
input,
select { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgba(7, 27, 31, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), #8ae4c1);
  color: #05251c;
  font-weight: 900;
  box-shadow: 0 10px 30px rgba(18, 168, 117, 0.35);
}

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

.brand small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  transition: background 180ms ease, color 180ms ease;
}

.nav a:hover,
.nav a.active {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.nav-toggle {
  display: none;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.important-banner {
  max-width: 1180px;
  margin: 1rem auto 0;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(215, 166, 61, 0.38);
  border-radius: 999px;
  background: rgba(255, 249, 230, 0.95);
  color: #4b3711;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.12);
}

.shell {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.view { display: none; padding: 2rem 0 4rem; }
.view.active { display: block; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 1.5rem;
  align-items: center;
  color: white;
  padding-top: 2.4rem;
}

.hero-copy,
.hero-card,
.card { border-radius: var(--radius); }

.hero-copy { padding: clamp(1rem, 3vw, 2rem) 0; }

.eyebrow {
  margin: 0 0 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
}

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

h1 {
  font-size: clamp(2.3rem, 6vw, 5.1rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.35rem, 2vw, 2rem);
  letter-spacing: -0.035em;
}

h3 { margin-bottom: 0.45rem; }

.lead {
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
  max-width: 63ch;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.button {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1.05rem;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button.primary {
  background: var(--brand);
  color: #03261c;
  box-shadow: 0 14px 30px rgba(18, 168, 117, 0.32);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.button.soft {
  background: var(--card-soft);
  color: var(--brand-dark);
  border: 1px solid var(--line);
}

.button.full { width: 100%; }

.card .button.ghost,
.result-card .button.ghost,
.summary-card .button.ghost,
.start-grid .button.ghost {
  color: var(--text);
  border-color: var(--line);
  background: #fff;
}

.hero-card {
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  padding: clamp(1rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}

.flow-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 900;
  color: var(--brand-dark);
  margin-bottom: 1.25rem;
}

.flow-line i {
  height: 2px;
  flex: 1;
  background: var(--line);
}

.mini-dashboard {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.mini-dashboard div,
.metric,
.snapshot {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.mini-dashboard small,
.metric span,
.snapshot span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
}

.mini-dashboard strong,
.metric strong,
.snapshot strong { font-size: 1.16rem; }

.split-grid,
.planner-grid,
.start-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.card {
  background: rgba(255, 255, 255, 0.96);
  padding: clamp(1.1rem, 2.4vw, 1.7rem);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.card p,
.card li {
  color: #34494e;
  line-height: 1.62;
}

.accent-card {
  background: linear-gradient(135deg, #f5fff9, #e7f7f0);
  border-color: rgba(18, 168, 117, 0.28);
}

.check-list,
.number-list { padding-left: 1.1rem; }

.check-list li { margin-bottom: 0.55rem; }

.page-heading {
  color: white;
  padding-top: 1rem;
}

.page-heading h1 { margin-bottom: 0.75rem; }

.page-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
  max-width: 78ch;
  line-height: 1.6;
}

.planner-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: start;
}

.form-card {
  display: grid;
  gap: 1rem;
}

.form-section {
  display: grid;
  gap: 0.85rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.form-section:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

label {
  display: grid;
  gap: 0.42rem;
  font-weight: 800;
}

label small,
.static-field small {
  font-weight: 500;
  color: var(--muted);
  line-height: 1.4;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(18, 168, 117, 0.14);
}

.static-field {
  display: grid;
  gap: 0.3rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.static-field span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.static-field strong {
  color: var(--text);
  font-size: 1.05rem;
}


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

.assumption-grid div {
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.assumption-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.assumption-grid strong {
  display: block;
}

.form-note {
  margin: 0;
  padding: 0.85rem;
  border-radius: 16px;
  background: var(--card-soft);
  border: 1px solid var(--line);
}

.disclaimer-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  padding: 0.9rem;
  border-radius: 16px;
  background: #fff8e5;
  border: 1px solid rgba(215, 166, 61, 0.4);
}

.disclaimer-check input {
  width: auto;
  margin-top: 0.25rem;
}

.disclaimer-check label {
  display: block;
  font-weight: 700;
  line-height: 1.45;
}

.result-card {
  position: sticky;
  top: 6.5rem;
}

.metric-stack {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
}

.progress-wrap { margin: 1rem 0; }

.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.9rem;
}

.progress {
  height: 12px;
  border-radius: 999px;
  background: #e5eee9;
  overflow: hidden;
  margin-top: 0.45rem;
}

.progress span {
  display: block;
  height: 100%;
  width: 0%;
  max-width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #8ae4c1);
  transition: width 220ms ease;
}

.plain-summary {
  border-radius: 18px;
  padding: 1rem;
  background: var(--card-soft);
  border: 1px solid var(--line);
}

.hidden { display: none !important; }

.empty-state { text-align: center; }

.roadmap-content {
  display: grid;
  gap: 1rem;
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.summary-card {
  display: grid;
  gap: 0.8rem;
}

.warning-list {
  display: grid;
  gap: 0.5rem;
}

.warning-list p {
  margin: 0;
  padding: 0.75rem;
  border-radius: 14px;
  background: #fff8e5;
  border: 1px solid rgba(215, 166, 61, 0.42);
  color: #593f12;
}

.warning-list p.danger {
  background: #fff1ec;
  border-color: rgba(180, 91, 54, 0.3);
  color: #73351d;
}

.timeline {
  display: grid;
  gap: 0.85rem;
}

.timeline-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.step-number,
.learn-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--brand);
  color: #06261d;
  font-weight: 950;
}

.timeline-card p {
  color: #34494e;
  line-height: 1.58;
  margin-bottom: 0;
}

.detail-card { margin-bottom: 1rem; }

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

.tier-math div {
  padding: 0.9rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
}

.tier-math span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
}

.tier-math strong { display: block; }

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

.learn-card {
  display: grid;
  align-content: start;
  gap: 0.65rem;
}

.learn-card h2 { margin-bottom: 0; }

.mini-legal {
  padding: 1rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
}

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

.site-footer {
  padding: 2rem 1rem 3rem;
  color: rgba(255, 255, 255, 0.68);
  text-align: center;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav {
    position: fixed;
    inset: 76px 1rem auto 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: rgba(7, 27, 31, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  body.menu-open .nav { display: flex; }

  .nav a { border-radius: 14px; }

  .hero,
  .split-grid,
  .planner-grid,
  .start-grid {
    grid-template-columns: 1fr;
  }

  .result-card { position: static; }

  .snapshot-grid,
  .learn-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .important-banner {
    border-radius: 18px;
    width: min(1180px, calc(100% - 2rem));
  }
}

@media (max-width: 620px) {
  .brand small { display: none; }

  .hero { padding-top: 1rem; }

  .mini-dashboard,
  .snapshot-grid,
  .learn-grid,
  .assumption-grid,
  .tier-math {
    grid-template-columns: 1fr;
  }

  .button-row.stacked-mobile .button {
    width: 100%;
  }
}

@media print {
  body {
    background: white;
    color: black;
  }

  .site-header,
  .important-banner,
  .page-heading,
  #home,
  #planner,
  #learn,
  #start,
  .site-footer,
  .button-row {
    display: none !important;
  }

  #roadmap.view {
    display: block !important;
    padding: 0;
  }

  .shell { width: 100%; }

  .card,
  .timeline-card,
  .snapshot {
    box-shadow: none;
    border: 1px solid #bbb;
  }
}
