: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: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page-shell {
  position: relative;
  max-width: 1024px;
  min-height: 1536px;
  margin: 0 auto;
  overflow: hidden;
  background: url("assets/landscape-bottom.webp") 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: Georgia, "Times New Roman", 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: Georgia, "Times New Roman", 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: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1.55;
}

.hero-guide-link {
  display: block;
  margin-top: 12px;
  color: inherit;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  text-underline-offset: 3px;
}

.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,
.inbox-samples 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,
.inbox-samples 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;
}

.app-first {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(230px, 0.7fr);
  gap: 38px;
  align-items: center;
  margin: 48px 72px 0;
  padding: 38px 42px;
  background: rgba(255, 253, 247, 0.82);
  border: 1px solid rgba(8, 36, 75, 0.09);
  border-radius: 30px;
  box-shadow: 0 18px 52px rgba(39, 51, 69, 0.08);
  scroll-margin-top: 24px;
}

.app-first h2 {
  max-width: 650px;
  margin: 5px 0 14px;
  font: 700 32px/1.16 Georgia, "Times New Roman", serif;
}

.app-first-copy > p:not(.app-eyebrow) {
  max-width: 680px;
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
}

.app-eyebrow {
  margin: 0;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.app-first ul {
  display: grid;
  gap: 9px;
  margin: 20px 0 24px;
  padding-left: 20px;
  line-height: 1.5;
}

.app-first-card {
  display: grid;
  justify-items: center;
  padding: 28px 20px;
  color: #fff;
  text-align: center;
  background: var(--green);
  border-radius: 24px;
}

.app-first-card p {
  margin: 12px 0 2px;
  font-size: 14px;
  font-weight: 700;
}

.app-first-card strong {
  font: 700 28px/1.2 Georgia, "Times New Roman", serif;
}

.app-first-card span {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  line-height: 1.45;
}

.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 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe 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;
}

.child-profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.extra-children {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: rgba(61, 125, 88, 0.08);
  border: 1px dashed rgba(61, 125, 88, 0.42);
  border-radius: 18px;
}

.extra-children[hidden] {
  display: none;
}

.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 180px auto;
}

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

.story-form .add-child-button {
  justify-self: start;
  background: var(--ink);
}

.story-form .remove-child-button {
  min-height: 34px;
  padding: 0 14px;
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(61, 125, 88, 0.28);
  box-shadow: none;
  font-size: 12px;
}

.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: Georgia, "Times New Roman", 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: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
}

.inbox-samples {
  padding-top: 36px;
}

.inbox-samples-intro,
.inbox-samples-note {
  max-width: 640px;
  margin: 14px auto 0;
  text-align: center;
  color: var(--muted);
}

.inbox-samples-note {
  font-style: italic;
}

.inbox-samples-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 26px;
  align-items: start;
}

@media (min-width: 760px) {
  .inbox-samples-row {
    grid-template-columns: 1fr 1fr;
  }
}

.email-window {
  border: 1px solid #eadfc8;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(8, 36, 75, 0.08);
  overflow: hidden;
}

.email-chrome {
  background: var(--paper);
  border-bottom: 1px solid #eadfc8;
  padding: 14px 20px;
}

.email-chrome p {
  margin: 0;
}

.email-from {
  font-weight: 700;
  color: var(--green);
}

.email-subject {
  font-size: 14px;
  color: var(--ink);
  opacity: 0.85;
}

.email-body {
  padding: 26px 24px;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
}

.email-preview-title {
  font-weight: 700;
}

.email-body-scroll {
  max-height: 560px;
  overflow-y: auto;
}

.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: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.price span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe 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.webp") 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;
  }

  .app-first {
    grid-template-columns: 1fr;
    margin: 36px 24px 0;
    padding: 28px 24px;
  }

  .app-first h2 {
    font-size: 27px;
  }

  .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%;
  }

  .child-profile-header {
    align-items: flex-start;
  }

  .story-form .remove-child-button {
    width: auto;
  }

  .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; }

.site-legal-footer,.legal-links{display:flex;flex-wrap:wrap;justify-content:center;gap:18px;text-align:center;padding:24px 20px 38px}.legal-shell{max-width:980px;margin:0 auto;padding:24px 20px 64px}.legal-header{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:28px}.legal-card{background:rgba(255,255,255,.88);border:1px solid #eadfc8;border-radius:28px;box-shadow:0 18px 50px rgba(8,36,75,.08);padding:clamp(24px,5vw,54px)}.legal-card h1{margin-top:0}.legal-card h2{font-family:Georgia,serif;color:#21144f;margin-top:2rem}.legal-card p,.legal-card li{line-height:1.75}.legal-card li+li{margin-top:.45rem}.legal-updated{color:#5f5870;font-weight:700}.legal-links{padding-bottom:0}@media(max-width:640px){.legal-header{align-items:flex-start;flex-direction:column}.legal-card{border-radius:20px;padding:22px}.legal-card ul{padding-left:1.25rem}}
