:root {
  --ink: #08244b;
  --green: #3d7d58;
  --green-dark: #2f6848;
  --gold: #e6a627;
  --paper: #fffaf0;
  --muted: #173157;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.95), transparent 42rem),
    linear-gradient(180deg, #fff9ec 0%, #fffdf6 47%, #fbf8eb 100%);
  font-family: Inter, system-ui, sans-serif;
}

.page-shell {
  position: relative;
  max-width: 1024px;
  min-height: 1536px;
  margin: 0 auto;
  overflow: hidden;
  background: url("assets/landscape-bottom.png") center bottom / 1024px 236px no-repeat;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 34px;
  padding: 34px 49px 0;
  min-height: 88px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 30px;
  font-weight: 700;
}

.brand img {
  width: 49px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a,
.header-cta {
  color: #071f45;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  min-height: 48px;
  padding: 0 22px;
  color: #fff;
  background: var(--green);
  border-radius: 999px;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

.hero {
  position: relative;
  min-height: 640px;
  padding: 87px 0 0 80px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 480px;
}

h1,
h2,
h3,
blockquote {
  font-family: "Libre Baskerville", Georgia, serif;
}

h1 {
  margin: 0;
  max-width: 620px;
  font-size: 58px;
  line-height: 1.17;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 430px;
  margin: 24px 0 48px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 25px;
  line-height: 1.55;
}

.primary-cta {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-height: 62px;
  padding: 0 34px;
  color: #fff;
  background: var(--green);
  border-radius: 999px;
  text-decoration: none;
  font-size: 19px;
  font-weight: 700;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.primary-cta svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-art {
  position: absolute;
  z-index: 1;
  top: 94px;
  right: 0;
  width: 504px;
  height: auto;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16%, #000 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 16%, #000 100%);
}

.magic {
  position: relative;
  z-index: 2;
  padding-top: 27px;
}

.magic h2,
.steps h2,
.pricing h2,
.onboarding h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  text-align: center;
}

.magic h2 span,
.steps h2 span,
.pricing h2 span,
.onboarding h2 span {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 20px;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 780px;
  margin: 18px auto 0;
}

.feature-row article {
  min-height: 186px;
  padding: 0 38px;
  text-align: center;
}

.feature-row article + article {
  border-left: 1px solid rgba(8, 36, 75, 0.11);
}

.feature-row img {
  width: 88px;
  height: 88px;
  object-fit: contain;
}

h3 {
  margin: 12px 0 11px;
  font-size: 18px;
  line-height: 1.2;
}

.feature-row p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.onboarding {
  position: relative;
  z-index: 3;
  scroll-margin-top: 24px;
  padding: 46px 72px 0;
}

.onboarding-heading {
  max-width: 620px;
  margin: 0 auto 22px;
  text-align: center;
}

.onboarding-heading p {
  margin: 12px auto 0;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.55;
}

.story-form {
  display: grid;
  gap: 16px;
  max-width: 820px;
  margin: 0 auto;
  padding: 26px;
  background: rgba(255, 253, 247, 0.78);
  border: 1px solid rgba(8, 36, 75, 0.09);
  border-radius: 26px;
  box-shadow: 0 18px 52px rgba(39, 51, 69, 0.08);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.field-grid.compact {
  grid-template-columns: 1.45fr 1fr 1fr;
}

.story-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.story-form label span em {
  color: var(--green-dark);
  font-style: normal;
  font-weight: 700;
}

.story-form input,
.story-form select,
.story-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(8, 36, 75, 0.14);
  border-radius: 14px;
  font: 600 14px/1.35 Inter, system-ui, sans-serif;
  outline: none;
}

.story-form textarea {
  resize: vertical;
}

.story-form input:focus,
.story-form select:focus,
.story-form textarea:focus {
  border-color: rgba(61, 125, 88, 0.72);
  box-shadow: 0 0 0 3px rgba(61, 125, 88, 0.12);
}

.child-count {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 12px;
  row-gap: 7px;
}

.child-count label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(8, 36, 75, 0.12);
  border-radius: 16px;
  cursor: pointer;
}

.child-count input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--green);
}

.child-count b {
  display: block;
  margin-top: 3px;
  color: var(--green-dark);
  font-size: 12px;
}

.form-section-title {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.child-profiles {
  display: grid;
  gap: 14px;
}

.child-profile {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(8, 36, 75, 0.08);
  border-radius: 20px;
}

.child-profile[hidden] {
  display: none;
}

.child-profile h3 {
  margin: 0;
  font-size: 18px;
}

.helper-note {
  margin: -2px 0 0;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.story-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 12px;
  row-gap: 7px;
  margin: 0;
}

.story-mode-title {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.story-mode label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(8, 36, 75, 0.12);
  border-radius: 16px;
  cursor: pointer;
}

.story-mode input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--green);
}

.checkout-row {
  align-items: end;
  grid-template-columns: 1fr auto;
}

.story-form button {
  min-height: 48px;
  padding: 0 24px;
  color: #fff;
  background: var(--green);
  border: 0;
  border-radius: 999px;
  font: 800 15px/1 Inter, system-ui, sans-serif;
  cursor: pointer;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.steps {
  padding-top: 36px;
}

.step-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 800px;
  margin: 7px auto 0;
}

.step-row::before {
  content: "";
  position: absolute;
  top: 82px;
  left: 164px;
  width: 486px;
  height: 25px;
  background: radial-gradient(circle, #147c8b 0 2px, transparent 3px) 0 11px / 14px 8px repeat-x;
  opacity: 0.9;
}

.step-row article {
  position: relative;
  z-index: 1;
  text-align: center;
}

.step-row img {
  width: 105px;
  height: 105px;
  object-fit: contain;
}

.step-row p {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 8px;
  max-width: 158px;
  margin: 15px auto 0;
  text-align: left;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.step-row b {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
}

.pricing {
  position: relative;
  z-index: 2;
  scroll-margin-top: 28px;
  padding: 46px 70px 0;
}

.pricing-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 820px;
  margin: 22px auto 0;
}

.price-card {
  min-height: 174px;
  padding: 24px 22px;
  text-align: center;
  background: rgba(255, 253, 247, 0.72);
  border: 1px solid rgba(8, 36, 75, 0.09);
  border-radius: 22px;
  box-shadow: 0 14px 40px rgba(39, 51, 69, 0.06);
}

.price-card.featured {
  background: rgba(255, 250, 236, 0.9);
  border-color: rgba(61, 125, 88, 0.32);
  box-shadow: 0 18px 48px rgba(61, 125, 88, 0.14);
}

.price-card h3 {
  margin-top: 0;
  font-size: 19px;
}

.price {
  margin: 14px 0 12px;
  color: var(--green-dark);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.price span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.price-card p:last-child {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.testimonial {
  position: relative;
  z-index: 2;
  padding: 28px 0 96px;
}

.quote-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: center;
  gap: 40px;
  max-width: 610px;
  min-height: 174px;
  margin: 0 auto;
  padding: 21px 53px 21px 34px;
  background: rgba(255, 253, 247, 0.82);
  border: 1px solid rgba(8, 36, 75, 0.08);
  border-radius: 45px;
  box-shadow: 0 16px 55px rgba(39, 51, 69, 0.08);
  backdrop-filter: blur(2px);
}

.quote-card img {
  width: 154px;
  height: 154px;
  object-fit: cover;
  border-radius: 50%;
}

blockquote {
  margin: 0;
  font-size: 20px;
  line-height: 1.45;
}

.quote-card p {
  margin: 15px 0 0;
  color: var(--green-dark);
  font-size: 16px;
  font-weight: 500;
}

@media (max-width: 820px) {
  .page-shell {
    min-height: 0;
    background: url("assets/landscape-bottom.png") center bottom / 900px auto no-repeat;
  }

  .site-header {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding: 24px 24px 0;
  }

  .brand {
    margin-right: auto;
    font-size: 25px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .hero {
    min-height: 1228px;
    padding: 54px 24px 0;
  }

  h1 {
    font-size: clamp(42px, 12vw, 64px);
  }

  .hero-copy p {
    font-size: 21px;
    margin-bottom: 28px;
  }

  .hero-art {
    top: 500px;
    right: -30px;
    width: min(560px, 92vw);
  }

  .magic {
    padding: 22px 24px 0;
  }

  .magic h2,
  .steps h2,
  .pricing h2,
  .onboarding h2 {
    font-size: 25px;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .feature-row article {
    min-height: auto;
    padding: 0 16px 20px;
  }

  .feature-row article + article {
    border-left: 0;
  }

  .steps {
    padding: 38px 24px 0;
  }

  .onboarding {
    padding: 38px 24px 0;
  }

  .story-form,
  .field-grid,
  .field-grid.compact,
  .child-count,
  .story-mode,
  .checkout-row {
    grid-template-columns: 1fr;
  }

  .story-form {
    padding: 22px;
    border-radius: 22px;
  }

  .story-form button {
    width: 100%;
  }

  .pricing {
    padding: 38px 24px 0;
  }

  .pricing-row {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .step-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 12px;
  }

  .step-row::before {
    display: none;
  }

  .testimonial {
    padding: 34px 24px 170px;
  }

  .quote-card {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 20px;
    padding: 28px;
    text-align: center;
    border-radius: 30px;
  }
}

@media (max-width: 480px) {
  .site-header {
    align-items: center;
  }

  .header-cta {
    min-width: 112px;
    min-height: 42px;
    padding: 0 16px;
    font-size: 14px;
  }

  .nav-links a {
    font-size: 13px;
  }

  .hero {
    min-height: 1140px;
  }

  .hero-art {
    top: 535px;
    right: -88px;
    width: 460px;
  }

  .primary-cta {
    min-height: 58px;
    padding: 0 24px;
  }

}

.checkout-plan-button {
  border: 0;
  border-radius: 999px;
  background: #21144f;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  margin-top: 1rem;
  padding: 0.85rem 1.1rem;
  width: 100%;
}
.checkout-plan-button:hover,
.checkout-plan-button:focus { background: #35206f; }
.checkout-plan-button:disabled,
#story-checkout-button:disabled { cursor: not-allowed; opacity: 0.7; }
#checkout-status { color: #21144f; font-weight: 700; margin-top: 0.9rem; }
