:root {
  --ink: #132c2c;
  --ink-soft: #4e6260;
  --paper: #f7f5ed;
  --card: #fffdf7;
  --line: #d8ddd2;
  --lime: #d7ff72;
  --lime-dark: #bfe84f;
  --mint: #dff6e5;
  --orange: #f0a455;
  --shadow: 0 18px 50px rgba(19, 44, 44, 0.09);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 5%, rgba(215, 255, 114, 0.25), transparent 26rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button, input, select { font: inherit; }
button, select, input[type="range"] { cursor: pointer; }

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: inherit;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: var(--ink);
  color: var(--lime);
}

.privacy-pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 253, 247, 0.72);
  font-size: 0.8rem;
  font-weight: 700;
}

.privacy-pill span { color: #34a853; font-size: 0.65rem; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 56px;
  align-items: end;
  padding: 80px 0 72px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #577168;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.13em;
}

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

h1 {
  max-width: 840px;
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.25rem, 7.4vw, 6.6rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.94;
}

.hero-subtitle {
  max-width: 680px;
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.trust-row span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #e6e9df;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 750;
}

.hero-note {
  padding: 24px;
  border: 1px solid rgba(19, 44, 44, 0.12);
  border-radius: var(--radius-md);
  background: var(--ink);
  color: white;
  transform: rotate(1.2deg);
  box-shadow: var(--shadow);
}

.hero-note p { margin: 26px 0 0; font-family: Georgia, serif; font-size: 1.2rem; line-height: 1.35; }
.note-number { color: var(--lime); font-size: 0.8rem; font-weight: 850; letter-spacing: 0.15em; }

.planner-shell,
.results {
  margin-bottom: 46px;
  padding: clamp(24px, 5vw, 56px);
  border: 1px solid rgba(19, 44, 44, 0.1);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
}

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

.section-heading h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.section-heading > p { max-width: 370px; margin: 0; color: var(--ink-soft); font-size: 0.9rem; }

.planner-form { display: grid; gap: 16px; }

.question-card {
  min-width: 0;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #faf9f3;
}

.question-card legend {
  padding: 0 8px 0 0;
  font-weight: 820;
  letter-spacing: -0.01em;
}

.question-card legend span {
  display: inline-grid;
  width: 28px;
  height: 28px;
  margin-right: 7px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: var(--lime);
  font-size: 0.78rem;
}

.helper { margin: 9px 0 15px; color: var(--ink-soft); font-size: 0.84rem; }

.range-value { display: flex; align-items: baseline; gap: 10px; margin: 8px 0; }
.range-value strong { font-family: Georgia, serif; font-size: 3.8rem; font-weight: 500; line-height: 1; }
.range-value span { color: var(--ink-soft); font-weight: 700; }

input[type="range"] {
  width: 100%;
  height: 7px;
  appearance: none;
  border-radius: 999px;
  outline: none;
  background: linear-gradient(90deg, var(--ink) 30.8%, #dce1d7 30.8%);
}

input[type="range"]::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  appearance: none;
  border: 5px solid var(--lime);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 2px 7px rgba(19, 44, 44, 0.25);
}

input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 5px solid var(--lime);
  border-radius: 50%;
  background: var(--ink);
}

.range-labels { display: flex; justify-content: space-between; margin-top: 8px; color: #73817e; font-size: 0.74rem; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; }

.chip {
  padding: 11px 14px;
  border: 1px solid #cfd6cb;
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font-size: 0.87rem;
  font-weight: 750;
  transition: 160ms ease;
}

.chip:hover { border-color: var(--ink); transform: translateY(-1px); }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--lime); }
.chip:focus-visible, .primary-button:focus-visible, .text-button:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid rgba(240, 164, 85, 0.55); outline-offset: 3px; }

.field-error { min-height: 1.2em; margin: 10px 0 0; color: #9b3c2a; font-size: 0.82rem; font-weight: 700; }

.select-wrap { position: relative; display: block; margin-top: 16px; }
.select-wrap::after { position: absolute; top: 50%; right: 18px; content: "↓"; transform: translateY(-50%); pointer-events: none; font-weight: 800; }

select {
  width: 100%;
  padding: 15px 44px 15px 15px;
  appearance: none;
  border: 1px solid #cfd6cb;
  border-radius: var(--radius-sm);
  background: white;
  color: var(--ink);
  font-weight: 700;
}

.form-action {
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
}

.form-action p { max-width: 390px; margin: 0; color: #75817f; font-size: 0.73rem; }

.primary-button {
  display: inline-flex;
  gap: 32px;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 6px 0 var(--ink);
  transition: 160ms ease;
}

.primary-button:hover { background: var(--lime-dark); transform: translateY(-2px); box-shadow: 0 8px 0 var(--ink); }
.primary-button:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }

.results[hidden] { display: none; }
.results { scroll-margin-top: 24px; }
.results-heading { margin-bottom: 24px; }

.text-button {
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 750;
}

.recommendation-summary {
  margin-bottom: 20px;
  padding: 20px 22px;
  border-left: 5px solid var(--orange);
  border-radius: 0 14px 14px 0;
  background: #fff2e3;
  color: #503b28;
}

.recommendation-summary strong { color: var(--ink); }

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

.path-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #faf9f3;
}

.path-card.best { border-color: var(--ink); background: var(--mint); }
.best-label { align-self: flex-start; margin-bottom: 18px; padding: 5px 8px; border-radius: 5px; background: var(--ink); color: var(--lime); font-size: 0.67rem; font-weight: 900; letter-spacing: 0.1em; }
.path-rank { color: #71817c; font-size: 0.72rem; font-weight: 850; letter-spacing: 0.09em; }
.path-card h3 { margin: 9px 0 8px; font-family: Georgia, serif; font-size: 1.55rem; font-weight: 500; line-height: 1.1; }
.path-card > p { color: var(--ink-soft); font-size: 0.84rem; }
.fit-row { display: flex; align-items: baseline; justify-content: space-between; margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(19, 44, 44, 0.12); }
.fit-row strong { font-family: Georgia, serif; font-size: 2rem; font-weight: 500; }
.fit-row span { color: #65736f; font-size: 0.74rem; font-weight: 750; }
.card-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.card-meta div { padding: 9px; border-radius: 9px; background: rgba(255, 255, 255, 0.65); }
.card-meta small { display: block; color: #74817d; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; }
.card-meta b { font-size: 0.78rem; }

.action-plan {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 40px;
  margin-top: 18px;
  padding: 34px;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: white;
}

.plan-intro h3, .cta-panel h3 { margin-bottom: 12px; font-family: Georgia, serif; font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 500; line-height: 1.07; }
.plan-intro > p:last-child { color: #b7c6c2; font-size: 0.9rem; }
.action-plan .eyebrow { color: var(--lime); }
.plan-steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: weeks; }
.plan-steps li { position: relative; padding: 15px 16px 15px 56px; border: 1px solid rgba(255,255,255,0.14); border-radius: 12px; background: rgba(255,255,255,0.06); counter-increment: weeks; }
.plan-steps li::before { position: absolute; top: 14px; left: 15px; content: "W" counter(weeks); color: var(--lime); font-size: 0.74rem; font-weight: 900; }
.plan-steps strong { display: block; margin-bottom: 3px; font-size: 0.9rem; }
.plan-steps span { color: #b7c6c2; font-size: 0.8rem; }

.cta-panel {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #faf9f3, #eff8d5);
}

.cta-panel > div { max-width: 720px; }
.cta-panel p:not(.eyebrow) { margin-bottom: 0; color: var(--ink-soft); }
.cta-button { flex: 0 0 auto; }

footer {
  display: flex;
  justify-content: space-between;
  padding: 28px 0 44px;
  color: #64736f;
  font-size: 0.78rem;
}

@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; gap: 26px; padding-top: 48px; }
  .hero-note { max-width: 360px; }
  .comparison-grid { grid-template-columns: 1fr; }
  .path-card { min-height: auto; }
  .action-plan { grid-template-columns: 1fr; gap: 20px; }
  .cta-panel { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
  .site-header, main, footer { width: min(100% - 24px, 1180px); }
  .site-header { padding: 16px 0; }
  .privacy-pill { font-size: 0; }
  .privacy-pill::after { content: "Private"; font-size: 0.75rem; }
  .hero { padding: 44px 4px 50px; }
  h1 { font-size: clamp(2.85rem, 15vw, 4.3rem); }
  .planner-shell, .results { padding: 21px; border-radius: 22px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .question-card { padding: 19px; }
  .form-action { align-items: flex-start; flex-direction: column; }
  .form-action .primary-button { width: 100%; }
  .action-plan, .cta-panel { padding: 24px 20px; }
  .cta-button { width: 100%; }
  footer { gap: 8px; flex-direction: column; }
}

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