:root {
  --ink: #153331;
  --ink-soft: #526562;
  --forest: #174c46;
  --forest-dark: #0d3632;
  --sage: #dfe9e4;
  --lime: #d6ef8d;
  --paper: #f7f5ef;
  --white: #fffefd;
  --line: #d9e0dc;
  --shadow: 0 24px 70px rgba(24, 55, 51, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 8%, rgba(214, 239, 141, 0.28), transparent 24rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }

button { cursor: pointer; }

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: white;
  background: var(--forest);
  font-size: 15px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.brand-text { display: grid; gap: 1px; }
.brand-text strong { font-size: 15px; }
.brand-text small { color: var(--ink-soft); font-size: 11px; }
.header-note { color: var(--ink-soft); font-size: 13px; }

.hero {
  min-height: 480px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  align-items: center;
  gap: 70px;
  padding: 70px 0 90px;
}

.eyebrow,
.result-kicker {
  display: inline-block;
  margin-bottom: 15px;
  color: var(--forest);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(40px, 6vw, 70px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-copy > p {
  max-width: 670px;
  margin: 28px 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.65;
}

.trust-row { display: flex; flex-wrap: wrap; gap: 9px; }
.trust-row span {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 650;
}

.hero-card {
  position: relative;
  padding: 30px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: white;
  background: var(--forest-dark);
  box-shadow: var(--shadow);
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -52px;
  bottom: -68px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--lime);
  opacity: 0.18;
}

.hero-card-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 35px;
  place-items: center;
  border-radius: 50%;
  color: var(--forest-dark);
  background: var(--lime);
  font-size: 26px;
  font-weight: 800;
}

.hero-card strong { display: block; font-size: 21px; line-height: 1.25; }
.hero-card p { margin: 12px 0 0; color: #c9dad4; font-size: 14px; line-height: 1.55; }

.calculator-shell {
  scroll-margin-top: 24px;
  padding: clamp(24px, 5vw, 58px);
  border: 1px solid rgba(23, 76, 70, 0.08);
  border-radius: 34px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.calculator-head { display: flex; justify-content: space-between; gap: 25px; align-items: end; }
.calculator-head .eyebrow { margin-bottom: 9px; }
h2 { margin: 0; font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.04em; }
.progress-label { color: var(--forest); font-size: 14px; font-weight: 800; }
.progress-track { height: 5px; margin: 28px 0 36px; overflow: hidden; border-radius: 999px; background: #e9eeeb; }
.progress-fill { width: 25%; height: 100%; border-radius: inherit; background: var(--forest); transition: width 240ms ease; }
.step { min-height: 300px; animation: reveal 220ms ease both; }
.step-hint { margin: 0 0 22px; color: var(--ink-soft); font-size: 15px; }

@keyframes reveal {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

.option-grid,
.activity-grid { display: grid; gap: 14px; }
.option-grid--two { grid-template-columns: repeat(2, 1fr); }
.option-card,
.check-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 17px;
  min-height: 112px;
  padding: 22px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  background: white;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
  cursor: pointer;
}

.option-card:hover,
.check-card:hover { border-color: #a8bbb4; }
.option-card:has(input:focus-visible),
.check-card:has(input:focus-visible),
.pill-option:has(input:focus-visible) { outline: 3px solid rgba(23, 76, 70, 0.22); outline-offset: 3px; }
.option-card:has(input:checked),
.check-card:has(input:checked) { border-color: var(--forest); background: #f4f8f5; box-shadow: 0 0 0 1px var(--forest); }
.option-card input,
.check-card input,
.pill-option input,
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.option-icon {
  flex: 0 0 auto;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  color: var(--forest);
  background: var(--sage);
  font-weight: 850;
}
.option-content { display: grid; gap: 6px; }
.option-content strong,
.check-card strong { font-size: 16px; }
.option-content small,
.check-card small { display: block; margin-top: 4px; color: var(--ink-soft); line-height: 1.4; }
.radio-dot { width: 20px; height: 20px; margin-left: auto; border: 2px solid #b7c3bf; border-radius: 50%; box-shadow: inset 0 0 0 4px white; }
.option-card:has(input:checked) .radio-dot { border-color: var(--forest); background: var(--forest); }

.pill-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.pill-option { position: relative; cursor: pointer; }
.pill-option span {
  display: grid;
  min-height: 84px;
  padding: 14px;
  place-items: center;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}
.pill-option:has(input:checked) span { color: white; border-color: var(--forest); background: var(--forest); }

.activity-grid { grid-template-columns: repeat(2, 1fr); }
.check-card { min-height: 96px; padding: 18px; }
.check-box { flex: 0 0 auto; display: grid; width: 25px; height: 25px; place-items: center; border: 1.5px solid #b7c3bf; border-radius: 8px; color: transparent; font-size: 14px; }
.check-card:has(input:checked) .check-box { color: white; border-color: var(--forest); background: var(--forest); }
.validation-message { margin: 14px 0 0; color: #a63a2a; font-size: 13px; font-weight: 700; }

.switch-list { display: grid; gap: 12px; }
.switch-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 25px; min-height: 86px; padding: 18px 20px; border: 1.5px solid var(--line); border-radius: 17px; cursor: pointer; }
.switch-row:has(input:checked) { border-color: #9ab2aa; background: #f6f9f7; }
.switch-row strong { display: block; margin-bottom: 5px; }
.switch-row small { color: var(--ink-soft); line-height: 1.4; }
.switch { position: relative; flex: 0 0 auto; width: 50px; height: 28px; border-radius: 99px; background: #cad3d0; transition: 160ms ease; }
.switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: white; box-shadow: 0 2px 5px rgba(0,0,0,.18); transition: 160ms ease; }
.switch-row:has(input:checked) .switch { background: var(--forest); }
.switch-row:has(input:checked) .switch::after { transform: translateX(22px); }

.form-actions,
.result-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.button { min-height: 52px; padding: 0 21px; border-radius: 14px; font-weight: 750; transition: transform 140ms ease, background 140ms ease; }
.button:hover { transform: translateY(-1px); }
.button--primary { border: 1px solid var(--forest); color: white; background: var(--forest); }
.button--primary:hover { background: var(--forest-dark); }
.button--ghost { border: 1px solid var(--line); color: var(--ink); background: white; }
.form-actions .button--primary { margin-left: auto; }

.result { animation: reveal 260ms ease both; }
.result-top { padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.result-kicker { margin-bottom: 10px; }
.price { margin-bottom: 14px; font-size: clamp(38px, 7vw, 76px); font-weight: 850; letter-spacing: -0.06em; line-height: 1; }
.price small { font-size: 17px; letter-spacing: -0.02em; color: var(--ink-soft); }
.result-top p { max-width: 700px; margin: 0; color: var(--ink-soft); line-height: 1.55; }
.result-layout { display: grid; grid-template-columns: 1fr .75fr; gap: 42px; padding: 36px 0 8px; }
.result-layout h3 { margin: 0 0 12px; font-size: 19px; }
.result-summary ul { padding: 0; margin: 0; list-style: none; }
.result-summary li { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid #edf0ee; }
.result-summary li span { color: var(--ink-soft); }
.result-summary li strong { max-width: 62%; text-align: right; font-size: 14px; }
.result-note { align-self: start; padding: 22px; border-radius: var(--radius-md); background: var(--sage); }
.result-note strong { font-size: 16px; }
.result-note p { margin: 10px 0 0; color: #435956; font-size: 14px; line-height: 1.55; }
.result-actions { justify-content: flex-start; }
.copy-status { min-height: 20px; margin: 12px 0 0; color: var(--forest); font-size: 13px; font-weight: 650; }

.confidence { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 78px 0; }
.confidence > div { padding: 24px 0; border-top: 1px solid #bfcac5; }
.confidence-number { display: block; margin-bottom: 34px; color: #8a9b96; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.confidence strong { display: block; font-size: 17px; }
.confidence p { max-width: 300px; margin: 9px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 25px 0 35px; border-top: 1px solid #cad3d0; color: var(--ink-soft); font-size: 12px; }
footer a { color: var(--forest); font-weight: 700; text-underline-offset: 3px; }

[hidden] { display: none !important; }

@media (max-width: 760px) {
  .site-header, main, footer { width: min(100% - 28px, 1120px); }
  .header-note { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 35px; padding: 45px 0 60px; }
  h1 { font-size: clamp(40px, 13vw, 58px); }
  .hero-card { padding: 25px; }
  .hero-card-icon { margin-bottom: 22px; }
  .calculator-shell { padding: 24px 18px; border-radius: 24px; }
  .option-grid--two,
  .activity-grid,
  .result-layout,
  .confidence { grid-template-columns: 1fr; }
  .option-card { min-height: 98px; padding: 17px; }
  .pill-grid { grid-template-columns: repeat(2, 1fr); }
  .switch-row { min-height: 94px; padding: 16px; }
  .switch-row small { display: block; max-width: 230px; }
  .form-actions { position: sticky; bottom: 10px; padding: 10px; margin-inline: -10px; border-radius: 16px; background: rgba(255,254,253,.9); backdrop-filter: blur(8px); }
  .form-actions .button { flex: 1; }
  .result-layout { gap: 20px; }
  .result-summary li { display: grid; gap: 4px; }
  .result-summary li strong { max-width: none; text-align: left; }
  .result-actions { flex-direction: column; }
  .confidence { gap: 4px; padding: 50px 0; }
  .confidence-number { margin-bottom: 20px; }
  footer { flex-direction: column; }
}

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