:root {
  --bg: #ffffff;
  --text: #071426;
  --muted: #526176;
  --line: #d8e2eb;
  --soft: #f4f9fd;
  --mint: #eaf8f2;
  --green: #12885a;
  --blue: #1675c6;
  --coral: #de6c55;
  --shadow: 0 22px 52px rgba(14, 39, 66, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  width: min(1160px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 850;
  letter-spacing: 0;
}

nav {
  display: flex;
  gap: 26px;
  color: #1f2c3f;
  font-size: 0.96rem;
}

nav a {
  padding-block: 24px 20px;
  border-bottom: 3px solid transparent;
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  border-color: var(--green);
  outline: none;
}

nav a[href="#plan-check"] {
  border-color: var(--green);
  color: var(--green);
}

main {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  align-items: stretch;
  gap: 40px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 0 84px;
}

h1 {
  max-width: 610px;
  margin: 0;
  font-size: clamp(2.75rem, 5.1vw, 4.52rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 560px;
  margin: 26px 0 30px;
  color: var(--muted);
  font-size: 1.21rem;
}

.primary-action {
  min-width: 220px;
  min-height: 58px;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--green);
  color: #ffffff;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(18, 136, 90, 0.22);
}

.primary-action:hover,
.primary-action:focus-visible {
  background: #0d744b;
  outline: 3px solid rgba(22, 117, 198, 0.24);
}

.hero-image {
  margin: 0;
  min-height: 500px;
  overflow: hidden;
  border-left: 1px solid var(--line);
}

.hero-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.tool-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  margin-top: -30px;
  position: relative;
  z-index: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.checklist-panel,
.summary-panel {
  padding: 34px;
}

.summary-panel {
  border-left: 1px solid var(--line);
}

h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.panel-intro {
  margin: 0 0 20px;
  color: var(--muted);
}

.items {
  display: grid;
  gap: 10px;
}

.check-row {
  min-height: 72px;
  display: grid;
  grid-template-columns: 30px 34px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: #172236;
  cursor: pointer;
}

.check-row input {
  position: absolute;
  opacity: 0;
}

.check-row strong,
.check-row small {
  display: block;
}

.check-row strong {
  font-size: 0.98rem;
  font-weight: 780;
}

.check-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.box {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 2px solid #b7c2cc;
  border-radius: 6px;
  background: #ffffff;
}

.item-icon {
  width: 32px;
  height: 32px;
  position: relative;
  color: var(--green);
}

.profile-icon::before,
.profile-icon::after,
.child-icon::before,
.child-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.profile-icon::before {
  width: 11px;
  height: 11px;
  top: 5px;
  left: 5px;
  border-radius: 50%;
  box-shadow: 12px 0 0 currentColor;
}

.profile-icon::after {
  width: 28px;
  height: 12px;
  left: 2px;
  bottom: 4px;
  border-radius: 12px 12px 6px 6px;
  clip-path: polygon(0 100%, 18% 25%, 35% 0, 50% 25%, 65% 0, 82% 25%, 100% 100%);
}

.tag-icon {
  border-radius: 8px 8px 8px 2px;
  background: currentColor;
  transform: rotate(-45deg) scale(0.72);
}

.tag-icon::after {
  content: "";
  width: 7px;
  height: 7px;
  position: absolute;
  top: 7px;
  right: 7px;
  border-radius: 50%;
  background: #ffffff;
}

.shield-icon {
  clip-path: polygon(50% 0, 88% 14%, 82% 67%, 50% 100%, 18% 67%, 12% 14%);
  background: currentColor;
}

.shield-icon::after {
  content: "";
  position: absolute;
  inset: 8px 11px 7px;
  border-left: 3px solid #ffffff;
  border-bottom: 3px solid #ffffff;
  transform: rotate(-45deg);
}

.child-icon::before {
  width: 11px;
  height: 11px;
  top: 3px;
  left: 10px;
  border-radius: 50%;
}

.child-icon::after {
  width: 24px;
  height: 17px;
  left: 4px;
  bottom: 4px;
  clip-path: polygon(50% 0, 64% 28%, 100% 36%, 76% 58%, 86% 100%, 50% 75%, 14% 100%, 24% 58%, 0 36%, 36% 28%);
}

.meal-icon::before,
.meal-icon::after,
.support-icon::before,
.support-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.meal-icon::before {
  width: 5px;
  height: 28px;
  left: 7px;
  top: 2px;
  border-radius: 999px;
  box-shadow: 8px 0 0 currentColor;
}

.meal-icon::after {
  width: 5px;
  height: 28px;
  right: 5px;
  top: 2px;
  border-radius: 999px 999px 3px 3px;
}

.support-icon::before {
  width: 28px;
  height: 20px;
  left: 2px;
  top: 8px;
  border-radius: 12px 12px 8px 8px;
}

.support-icon::after {
  width: 10px;
  height: 10px;
  left: 11px;
  top: 4px;
  border-radius: 50% 50% 0 0;
  background: transparent;
  border: 4px solid currentColor;
  border-bottom: 0;
}

.box::after {
  content: "";
  width: 12px;
  height: 7px;
  border-left: 3px solid #ffffff;
  border-bottom: 3px solid #ffffff;
  transform: rotate(-45deg) translateY(-1px);
  opacity: 0;
}

.check-row input:checked + .box {
  border-color: var(--green);
  background: var(--green);
}

.check-row input:checked + .box::after {
  opacity: 1;
}

.check-row:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22, 117, 198, 0.16);
}

.tip {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.summary-card {
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 30px;
  border: 1px solid #c9dfef;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fbfe, #eef7ff);
  text-align: center;
}

.radial {
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--blue) var(--angle, 120deg), #dbe2ea 0);
  position: relative;
}

.radial::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: inherit;
  background: #ffffff;
}

.radial span {
  position: relative;
  color: var(--text);
  font-size: 2.1rem;
  font-weight: 850;
}

.summary-title {
  max-width: 360px;
  margin: 0;
  color: var(--blue);
  font-size: 1.86rem;
  line-height: 1.1;
  font-weight: 850;
}

.summary-copy {
  max-width: 370px;
  margin: 0;
  color: #415167;
}

.progress-track {
  width: min(100%, 320px);
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #d7dde5;
}

.progress-track span {
  width: 33%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--blue);
  transition: width 180ms ease;
}

.progress-label {
  margin: 0;
  color: #4d5d72;
  font-size: 0.95rem;
}

.boundary-band {
  margin: 34px 0 30px;
  padding: 28px;
  display: grid;
  grid-template-columns: 74px repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: center;
  border: 1px solid #f1cabc;
  border-radius: 8px;
  background: #fff9f6;
}

.boundary-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--coral);
  color: #ffffff;
  font-size: 2rem;
  font-weight: 900;
}

.boundary-band h2 {
  margin-bottom: 8px;
}

.boundary-band p {
  margin: 0;
  color: var(--muted);
}

.boundary-band strong {
  color: var(--text);
}

.resources {
  padding: 10px 0 24px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.resource-grid a {
  min-height: 176px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  text-decoration: none;
}

.resource-grid a::before {
  content: "";
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d9f2e7, #d8ecfb);
}

.resource-grid span {
  color: var(--muted);
}

.resource-grid a:hover,
.resource-grid a:focus-visible {
  border-color: var(--green);
  box-shadow: 0 12px 28px rgba(14, 39, 66, 0.08);
  outline: none;
}

.boundary {
  margin: 10px 0 34px;
  padding: 17px 22px;
  border: 1px solid #cbe3d4;
  border-radius: 8px;
  background: var(--mint);
  color: #24433a;
  text-align: center;
  font-weight: 680;
}

footer {
  width: min(1160px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

footer span {
  margin-right: auto;
}

footer a {
  text-decoration: none;
}

@media (max-width: 1040px) {
  .resource-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .boundary-band {
    grid-template-columns: 74px 1fr 1fr;
  }
}

@media (max-width: 920px) {
  .site-header {
    min-height: auto;
    padding: 18px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  nav {
    width: 100%;
    gap: 18px;
    overflow-x: auto;
  }

  nav a {
    padding-block: 8px;
    white-space: nowrap;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hero-copy {
    padding: 42px 0 0;
  }

  h1 {
    font-size: clamp(2.35rem, 11.2vw, 4rem);
  }

  .hero-copy p {
    font-size: 1.08rem;
  }

  .primary-action {
    width: 100%;
  }

  .hero-image {
    min-height: auto;
    border-left: 0;
    border-radius: 8px;
  }

  .hero-image img {
    aspect-ratio: 4 / 3;
  }

  .tool-shell {
    grid-template-columns: 1fr;
    margin-top: 26px;
  }

  .summary-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .checklist-panel,
  .summary-panel {
    padding: 24px;
  }

  .boundary-band {
    grid-template-columns: 1fr;
    gap: 14px;
  }

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

  footer {
    padding: 22px 0;
    flex-wrap: wrap;
  }
}

@media (max-width: 460px) {
  main,
  .site-header,
  footer {
    width: min(100% - 32px, 1160px);
  }

  .check-row {
    padding: 12px;
  }

  .summary-title {
    font-size: 1.58rem;
  }
}
