:root {
  --navy: #1d3357;
  --deep: #142744;
  --ink: #1b2431;
  --mist: #f2f3f6;
  --paper: #fbfaf7;
  --line: #d9dce2;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
button { font: inherit; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }

.site-header {
  height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 76px);
  border-bottom: 1px solid rgba(29, 51, 87, 0.13);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  color: var(--navy);
  text-decoration: none;
  width: max-content;
}

.brand-script {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 25px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.brand-sub {
  margin-top: 7px;
  text-align: center;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
}

.header-link {
  color: var(--navy);
  text-decoration: none;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-bottom: 1px solid;
  padding-bottom: 5px;
}

.hero {
  max-width: 1380px;
  margin: auto;
  padding: 70px clamp(24px, 5vw, 76px) 48px;
  display: grid;
  grid-template-columns: 1.45fr 0.8fr;
  gap: 70px;
  align-items: end;
}

.kicker,
.eyebrow {
  margin: 0 0 14px;
  color: #687181;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

h1 {
  max-width: 780px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(48px, 6vw, 82px);
  line-height: 0.99;
  letter-spacing: -0.04em;
}

.hero-copy {
  margin: 0;
  max-width: 470px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.65;
  color: #4f5865;
}

.calculator-shell {
  max-width: 1380px;
  margin: 0 auto 110px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(390px, 0.75fr);
  background: #fff;
  box-shadow: 0 22px 60px rgba(20, 39, 68, 0.1);
}

.question-panel {
  min-height: 720px;
  padding: 42px clamp(28px, 5vw, 72px);
}

.progress-row {
  display: flex;
  justify-content: space-between;
  color: #7d8490;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.17em;
}

.progress-track {
  height: 2px;
  margin-top: 13px;
  background: #eceef1;
}

.progress-track span {
  display: block;
  height: 100%;
  background: var(--navy);
  transition: width 0.35s;
}

.step-nav {
  display: flex;
  gap: 8px;
  margin: 25px 0 54px;
}

.step-nav button {
  width: 35px;
  height: 35px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: #8b919b;
  font-size: 9px;
  cursor: pointer;
}

.step-nav button.active {
  color: #fff;
  border-color: var(--navy);
  background: var(--navy);
}

.question-copy.reveal-play { animation: reveal 0.3s ease; }

@keyframes reveal {
  from { opacity: 0.3; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

.question-copy h2 {
  max-width: 650px;
  margin: 0 0 35px;
  color: var(--navy);
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.choices { display: grid; gap: 11px; }

.choice {
  width: 100%;
  min-height: 82px;
  padding: 15px 20px;
  display: grid;
  grid-template-columns: 29px 1fr;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  background: #fff;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  transition: 0.2s;
}

.choice:hover {
  border-color: #9aa6b6;
  transform: translateX(3px);
}

.choice.selected {
  border-color: var(--navy);
  background: #f3f5f8;
}

.choice-mark {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid #b9bec7;
  border-radius: 50%;
  color: #fff;
  font-size: 11px;
}

.choice.selected .choice-mark {
  border-color: var(--navy);
  background: var(--navy);
}

.choice strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 400;
}

.choice small {
  display: block;
  margin-top: 5px;
  color: #717986;
  font-size: 12px;
  line-height: 1.4;
}

.question-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 34px;
}

.question-actions button,
.reset {
  padding: 0;
  border: 0;
  border-bottom: 1px solid;
  background: transparent;
  color: #687181;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  cursor: pointer;
}

.question-actions button:disabled { opacity: 0.25; }

.result-panel {
  min-height: 720px;
  padding: 46px 42px 38px;
  background: var(--navy);
  color: #fff;
}

.result-label {
  margin: 0 0 24px;
  color: #c8d0dc;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.estimate {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 3.1vw, 50px);
  line-height: 1;
  letter-spacing: -0.035em;
}

.estimate i {
  color: #aab4c3;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-style: normal;
  text-transform: uppercase;
}

.tier {
  margin: 17px 0 32px;
  color: #d6dce5;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 15px;
}

.budget-card {
  padding: 19px 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.055);
}

.budget-card span {
  display: block;
  color: #bfc8d5;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.budget-card strong {
  display: block;
  margin: 8px 0;
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 400;
}

.budget-card small {
  color: #bfc8d5;
  font-size: 10px;
  line-height: 1.45;
}

.drivers { margin: 31px 0 28px; }

.drivers > p {
  margin: 0 0 15px;
  color: #c8d0dc;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.driver {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 10px;
  align-items: center;
  margin: 11px 0;
  color: #d6dce5;
  font-size: 10px;
}

.driver > div {
  height: 2px;
  background: rgba(255, 255, 255, 0.14);
}

.driver > div i {
  display: block;
  height: 100%;
  background: #c9d1dc;
}

.driver b {
  min-width: 54px;
  text-align: right;
  color: #fff;
  font-weight: 400;
}

.primary-cta {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  background: #fff;
  color: var(--navy);
  text-decoration: none;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.reset {
  display: block;
  margin: 19px auto 0;
  color: #bfc8d5;
}

.explanation {
  padding: 100px clamp(24px, 6vw, 90px);
  background: var(--mist);
}

.explanation-title {
  max-width: 1380px;
  margin: 0 auto 55px;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
}

.explanation h2 {
  max-width: 650px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.explanation-grid {
  max-width: 1380px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #cfd3da;
}

.explanation article { padding: 30px 35px 15px 0; }

.explanation article + article {
  padding-left: 35px;
  border-left: 1px solid #cfd3da;
}

.explanation article span {
  color: #8a929e;
  font-size: 9px;
}

.explanation h3 {
  margin: 22px 0 12px;
  color: var(--navy);
  font-size: 27px;
}

.explanation article p {
  margin: 0;
  color: #626b77;
  font-size: 13px;
  line-height: 1.75;
}

.disclaimer {
  max-width: 1100px;
  margin: auto;
  padding: 95px 30px;
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 80px;
}

.disclaimer h2 {
  margin: 0;
  color: var(--navy);
  font-size: 31px;
}

.disclaimer p {
  margin: 0 0 16px;
  color: #606875;
  font-size: 12px;
  line-height: 1.75;
}

footer {
  min-height: 190px;
  padding: 45px clamp(24px, 5vw, 76px);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  background: var(--deep);
  color: #fff;
}

.footer-brand { color: #fff; }

footer > p {
  text-align: center;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 15px;
}

footer > div:last-child {
  display: flex;
  justify-content: flex-end;
  gap: 22px;
}

footer a {
  color: #d6dce5;
  font-size: 10px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 52px;
  }

  .calculator-shell {
    margin-left: 18px;
    margin-right: 18px;
    grid-template-columns: 1fr;
  }

  .question-panel,
  .result-panel { min-height: auto; }

  .explanation-title {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .disclaimer {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 640px) {
  .site-header { height: 78px; }

  .header-link { font-size: 0; }
  .header-link span { font-size: 17px; }

  .hero { padding-bottom: 38px; }
  h1 { font-size: 47px; }
  .hero-copy { font-size: 16px; }

  .calculator-shell { margin-bottom: 60px; }
  .question-panel { padding: 28px 20px 32px; }

  .step-nav {
    gap: 5px;
    margin: 20px 0 42px;
  }

  .step-nav button {
    width: 30px;
    height: 30px;
  }

  .question-copy h2 { font-size: 34px; }
  .choice {
    min-height: 76px;
    padding: 13px;
  }

  .result-panel { padding: 38px 22px; }
  .explanation { padding: 72px 24px; }

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

  .explanation article {
    padding: 27px 0 !important;
    border-left: 0 !important;
    border-bottom: 1px solid #cfd3da;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  footer .brand { margin: auto; }
  footer > div:last-child { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
