:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #071126;
  --muted: #56657a;
  --line: #d9e0ea;
  --line-strong: #bfccda;
  --green: #23863c;
  --green-dark: #176a2d;
  --green-soft: #e9f6ed;
  --teal: #138b95;
  --teal-soft: #e7f6f7;
  --coral: #ff4f45;
  --coral-dark: #d63e36;
  --violet: #7d63b7;
  --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.96);
  backdrop-filter: blur(14px);
}

.brand {
  font-size: 22px;
  font-weight: 820;
  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(360px, 0.9fr) minmax(450px, 1.1fr);
  gap: 44px;
  align-items: center;
  min-height: auto;
  padding: 30px 5vw 20px;
}

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

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

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

.lead {
  max-width: 690px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 21px;
}

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

fieldset {
  display: grid;
  grid-template-columns: minmax(150px, 0.55fr) minmax(360px, 1fr);
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
}

legend {
  padding: 0;
  color: var(--ink);
  font-size: 19px;
  font-weight: 760;
}

.segmented {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  min-height: 44px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
}

.segmented label {
  position: relative;
  display: grid;
  min-width: 0;
  place-items: center;
  border-right: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.segmented label:last-child {
  border-right: 0;
}

.segmented input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.segmented span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0 8px;
  text-align: center;
}

.segmented input:checked + span {
  background: var(--green);
  color: #fff;
}

.segmented label:has(input:focus-visible) {
  z-index: 1;
  outline: 3px solid rgba(35, 134, 60, 0.22);
  outline-offset: 3px;
}

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

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

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

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

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

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

#resultTitle {
  display: block;
  margin-bottom: 6px;
  color: var(--green);
  font-size: 25px;
  line-height: 1.16;
}

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

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

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

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

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

.trust-note p {
  display: flex;
  align-items: center;
  min-height: 58px;
  max-width: 1440px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 6px;
  padding: 12px 18px;
  background: #f7fcfd;
  color: #244153;
  font-size: 15px;
  font-weight: 620;
}

.compare,
.resources {
  padding: 42px 5vw 52px;
  border-top: 1px solid var(--line);
}

.compare {
  background: #fff;
}

.resources {
  background: linear-gradient(180deg, #fff 0%, #f7fafb 100%);
}

.section-head {
  max-width: 870px;
  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;
}

.comparison-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap: 16px;
}

.comparison-list article {
  min-height: 154px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.comparison-list article:nth-child(2) {
  border-color: rgba(35, 134, 60, 0.42);
  box-shadow: 0 12px 30px rgba(35, 134, 60, 0.09);
}

.comparison-list h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.16;
}

.comparison-list p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 620;
}

.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,
  .result-shell img {
    min-height: 520px;
  }

  .comparison-list,
  .resource-grid {
    grid-template-columns: repeat(2, 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 {
    gap: 28px;
    padding: 34px 20px 22px;
  }

  h1 {
    font-size: 38px;
  }

  .lead {
    font-size: 18px;
  }

  fieldset {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 17px 0;
  }

  .segmented {
    min-height: 46px;
  }

  .segmented span {
    padding: 0 6px;
    font-size: 13px;
  }

  .primary-action {
    width: 100%;
  }

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

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

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

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

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