:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #071126;
  --muted: #5b667a;
  --line: #d8dee8;
  --line-strong: #bec7d4;
  --green: #23863c;
  --green-soft: #e8f5ec;
  --coral: #f25445;
  --coral-dark: #c73831;
  --teal: #128d91;
  --panel: #fbfcfe;
  --shadow: 0 18px 50px rgba(18, 38, 63, 0.11);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 5vw;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
}

nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
  font-weight: 650;
}

nav a {
  padding: 25px 0 21px;
  border-bottom: 4px solid transparent;
}

nav a:first-child {
  border-color: var(--green);
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(420px, 1.08fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 36px 5vw 24px;
}

.hero-copy {
  max-width: 720px;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: clamp(42px, 5.2vw, 66px);
  line-height: 1.07;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  margin-bottom: 22px;
  color: var(--ink);
  font-size: 21px;
}

.planner-panel {
  display: grid;
  gap: 0;
  max-width: 680px;
  border-top: 1px solid var(--line);
}

.control-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 68px;
  border-bottom: 1px solid var(--line);
}

.control-row > div:first-child {
  display: grid;
  gap: 2px;
}

label {
  font-size: 20px;
  font-weight: 720;
}

.control-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.stepper {
  display: grid;
  grid-template-columns: 44px 72px 44px;
  height: 42px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
}

.stepper button,
.stepper input {
  min-width: 0;
  border: 0;
  border-right: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-align: center;
  font: inherit;
  font-size: 18px;
  font-weight: 760;
}

.stepper button:last-child {
  border-right: 0;
}

.stepper button {
  cursor: pointer;
}

.stepper button:hover,
.stepper button:focus-visible {
  background: var(--green-soft);
  outline: none;
}

.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.range-row {
  grid-template-columns: 1fr minmax(180px, 280px) 36px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--green);
}

.range-row strong {
  justify-self: end;
  font-size: 21px;
}

select {
  width: min(360px, 44vw);
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0 14px;
  font: inherit;
  font-size: 16px;
  font-weight: 620;
}

.primary-action {
  justify-self: start;
  width: min(340px, 100%);
  height: 58px;
  margin-top: 22px;
  border: 0;
  border-radius: 6px;
  background: var(--coral);
  color: #fff;
  box-shadow: 0 12px 24px rgba(242, 84, 69, 0.22);
  cursor: pointer;
  font: inherit;
  font-size: 18px;
  font-weight: 800;
}

.primary-action:hover,
.primary-action:focus-visible {
  background: var(--coral-dark);
  outline: 3px solid rgba(242, 84, 69, 0.24);
  outline-offset: 3px;
}

.result-shell {
  position: relative;
  min-height: 540px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.result-shell img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
}

.result-card {
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: min(430px, calc(100% - 56px));
  padding: 24px;
  border: 1px solid rgba(216, 222, 232, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 38px rgba(7, 17, 38, 0.16);
  backdrop-filter: blur(10px);
}

.result-card h2 {
  margin-bottom: 8px;
  font-size: 25px;
  line-height: 1.12;
}

.result-card p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 620;
}

#planList {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#planList li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--ink);
  font-size: 14px;
  font-weight: 640;
}

#planList li::before {
  content: "";
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--green-soft);
  box-shadow: inset 0 0 0 6px #fff, inset 0 0 0 8px var(--green);
}

.trust-note {
  padding: 0 5vw 32px;
}

.trust-note p {
  max-width: 1160px;
  margin: 0 auto;
  border-left: 4px solid var(--teal);
  padding: 16px 18px;
  background: #f3fbfb;
  color: #244153;
  font-size: 15px;
  font-weight: 620;
}

.resources {
  padding: 42px 5vw 54px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #fff 0%, #f7fafb 100%);
}

.section-head {
  max-width: 850px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.1;
}

.section-head p {
  color: var(--muted);
  font-size: 17px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(150px, 1fr));
  gap: 14px;
}

.resource-grid a {
  display: grid;
  gap: 7px;
  min-height: 104px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.resource-grid a::after {
  content: "->";
  justify-self: end;
  color: var(--green);
  font-weight: 900;
}

.resource-grid a:hover,
.resource-grid a:focus-visible {
  border-color: var(--green);
  box-shadow: 0 10px 24px rgba(35, 134, 60, 0.12);
  outline: none;
}

.resource-grid span {
  font-weight: 780;
}

.resource-grid small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 28px 5vw 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

footer p {
  max-width: 720px;
  margin: 0;
}

footer a {
  color: var(--green);
  font-weight: 800;
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    max-width: none;
  }

  .result-shell {
    min-height: 520px;
  }

  .result-shell img {
    min-height: 520px;
  }

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

@media (max-width: 720px) {
  .topbar {
    position: static;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-height: auto;
    padding: 18px 20px 0;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    overflow-x: auto;
  }

  nav a {
    padding: 12px 0 13px;
    white-space: nowrap;
  }

  .hero {
    padding: 34px 20px 22px;
    gap: 28px;
  }

  h1 {
    font-size: 42px;
  }

  .lead {
    font-size: 18px;
  }

  .control-row,
  .range-row {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 12px;
    padding: 17px 0;
  }

  .stepper {
    width: 160px;
  }

  select {
    width: 100%;
  }

  .primary-action {
    width: 100%;
  }

  .result-shell {
    min-height: 560px;
  }

  .result-shell img {
    min-height: 560px;
  }

  .result-card {
    right: 14px;
    bottom: 14px;
    width: calc(100% - 28px);
  }

  .trust-note,
  .resources {
    padding-left: 20px;
    padding-right: 20px;
  }

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

  footer {
    flex-direction: column;
    padding-left: 20px;
    padding-right: 20px;
  }
}
