:root {
  --bg: #FCFCFB;
  --surface: #FFFFFF;
  --section: #F6F8F5;
  --sage: #EAF1EC;
  --ink: #16211C;
  --muted: #59645E;
  --accent: #9F3A25;
  --accent-dark: #7F2E1D;
  --accent-soft: #F7E4DD;
  --line: #E5E7E1;
  --line-strong: #D5DBD2;
  --shadow: 0 10px 30px rgba(20, 30, 25, 0.06);
  --font: "Hanken Grotesk", Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

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

h1,
h2,
h3,
.wordmark,
.phone-title,
.price-line {
  font-family: var(--font);
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 700;
  line-height: 0.96;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4.5vw, 58px);
  font-weight: 700;
  line-height: 1;
}

h3 {
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.12;
}

main,
.header-inner,
.site-footer {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(229, 231, 225, 0.82);
  background: var(--surface);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 11px;
  text-decoration: none;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: block;
}

.wordmark {
  margin: 0;
  font-size: 27px;
  font-weight: 700;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.site-nav a {
  text-decoration: none;
  transition: color 170ms ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.nav-cta {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 15px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
}

.nav-toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: currentColor;
}

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(330px, 0.88fr);
  align-items: center;
  gap: 64px;
  padding: 64px 0 92px;
}

.hero-text {
  max-width: 610px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 32px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 13px 22px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 170ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: var(--surface);
}

.button-quiet {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.text-link {
  color: var(--accent-dark);
  font-weight: 700;
  transition: color 170ms ease;
}

.text-link:hover {
  color: var(--ink);
}

.trust-line {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.story-card,
.step-card,
.feature-card,
.letter-card,
.price-card,
.faq-item,
.activity-preview,
.phone-card,
.phone-screen {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.story-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.story-card-wide {
  grid-column: 1 / -1;
  min-height: 210px;
}

.date-line {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.story-line {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: clamp(20px, 2.4vw, 27px);
  font-weight: 600;
  line-height: 1.16;
}

.domain-tag {
  width: fit-content;
  margin: auto 0 0;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 14px;
  font-weight: 700;
}

.motor {
  background: #E7F4EF;
  color: #0E5D51;
}

.language {
  background: #F5E9DC;
  color: #70410E;
}

.sensory {
  background: #F1E7EF;
  color: #66334E;
}

.section {
  padding: 94px 0;
}

.section-band {
  background: var(--section);
  box-shadow: 0 0 0 100vmax var(--section);
  clip-path: inset(0 -100vmax);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading p:last-child,
.preview-copy p,
.milestone-copy p,
.price-card p,
.faq-item p {
  color: var(--muted);
}

.section-kicker {
  margin-bottom: 12px;
  color: var(--accent-dark);
  font-size: 16px;
  font-weight: 700;
}

.steps-grid,
.feature-grid,
.pricing-grid,
.faq-list {
  display: grid;
  gap: 18px;
}

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

.step-card,
.feature-card,
.price-card,
.faq-item {
  padding: 26px;
}

.line-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.step-card p,
.feature-card p,
.faq-item p {
  margin-bottom: 0;
}

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

.feature-card {
  min-height: 260px;
}

.milestone-band {
  padding: 96px 0;
  background: var(--sage);
  box-shadow: 0 0 0 100vmax var(--sage);
  clip-path: inset(0 -100vmax);
}

.milestone-copy {
  max-width: 860px;
}

.milestone-copy h2 {
  max-width: 720px;
}

.milestone-copy p {
  max-width: 760px;
  font-size: clamp(19px, 2vw, 24px);
}

.source-line {
  margin-bottom: 0;
  font-size: 16px;
  font-weight: 700;
}

.weekly-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1fr);
  align-items: start;
  gap: 52px;
}

.weekly-section .section-heading {
  margin-bottom: 0;
}

.letter-card {
  padding: clamp(28px, 5vw, 46px);
}

.letter-card p:last-child {
  margin-bottom: 0;
  font-size: clamp(22px, 2.9vw, 35px);
  font-weight: 600;
  line-height: 1.22;
}

.app-preview {
  display: grid;
  grid-template-columns: minmax(300px, 430px) minmax(0, 1fr);
  align-items: center;
  gap: 76px;
}

.phone-shell {
  width: min(100%, 390px);
  border: 2px solid var(--ink);
  border-radius: 34px;
  padding: 12px;
  background: var(--surface);
}

.phone-screen {
  min-height: 620px;
  border-radius: 25px;
  padding: 24px;
  box-shadow: none;
}

.phone-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.phone-muted {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.phone-title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.05;
}

.age-pill {
  min-width: 74px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 9px 10px;
  text-align: center;
}

.age-pill strong {
  display: block;
  color: var(--accent);
  font-size: 30px;
  line-height: 1;
}

.age-pill span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.activity-preview {
  margin-top: 24px;
  padding: 22px;
  box-shadow: none;
}

.chip {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 11px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 700;
}

.activity-preview h3 {
  margin-top: 18px;
  font-size: 30px;
}

.activity-preview p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.4;
}

.activity-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.activity-actions span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--sage);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.phone-card {
  margin-top: 16px;
  padding: 18px;
  box-shadow: none;
}

.phone-card p:last-child {
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.4;
}

.week-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.week-line span {
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.preview-copy {
  max-width: 620px;
}

.preview-copy p:last-child {
  font-size: 21px;
}

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

.price-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
}

.price-card h3 {
  font-size: 34px;
}

.price-line {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
}

.pro-card {
  border-color: #DAB4A9;
}

.faq-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq-item:last-child {
  grid-column: 1 / -1;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 36px;
  border-top: 1px solid var(--line);
  padding: 46px 0 56px;
  color: var(--muted);
  font-size: 15px;
}

.footer-brand {
  width: fit-content;
  color: var(--ink);
}

.site-footer p {
  max-width: 430px;
  margin: 16px 0 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: flex-end;
  gap: 14px 22px;
}

.site-footer a:hover {
  color: var(--ink);
}

.has-js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.has-js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .has-js .reveal,
  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .site-nav {
    gap: 16px;
  }

  .hero,
  .weekly-section,
  .app-preview {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 44px;
    padding-top: 56px;
  }

  .story-grid {
    max-width: 720px;
  }

  .steps-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-preview {
    gap: 42px;
  }

  .phone-shell {
    order: 2;
  }

  .preview-copy {
    order: 1;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 17px;
  }

  main,
  .header-inner,
  .site-footer {
    width: min(100% - 28px, 1120px);
  }

  .header-inner {
    min-height: 68px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 6px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .has-js .site-nav {
    display: none;
  }

  .has-js .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    border-radius: 10px;
    padding: 12px 14px;
  }

  .nav-cta {
    width: 100%;
    margin-top: 4px;
    box-shadow: none;
  }

  .hero {
    padding: 42px 0 72px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .story-grid,
  .steps-grid,
  .feature-grid,
  .pricing-grid,
  .faq-list {
    grid-template-columns: 1fr;
  }

  .story-card-wide,
  .faq-item:last-child {
    grid-column: auto;
  }

  .section,
  .milestone-band {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .phone-shell {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 34px;
  }

  .story-card,
  .step-card,
  .feature-card,
  .price-card,
  .faq-item {
    padding: 22px;
  }

  .phone-shell {
    border-radius: 28px;
    padding: 8px;
  }

  .phone-screen {
    min-height: auto;
    border-radius: 22px;
    padding: 18px;
  }

  .phone-top,
  .activity-actions {
    grid-template-columns: 1fr;
  }

  .phone-top {
    display: grid;
  }

  .age-pill {
    width: 84px;
  }
}

/* Subtle premium motion: card hover-lift + staggered card entrances. */
@media (hover: hover) {
  .story-card,
  .step-card,
  .feature-card,
  .price-card,
  .faq-item {
    transition: transform 280ms cubic-bezier(0.22, 0.61, 0.36, 1),
      box-shadow 280ms cubic-bezier(0.22, 0.61, 0.36, 1);
  }

  .story-card:hover,
  .step-card:hover,
  .feature-card:hover,
  .price-card:hover,
  .faq-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 44px rgba(20, 30, 25, 0.11);
  }
}

.has-js .reveal .story-grid > *,
.has-js .reveal .steps-grid > *,
.has-js .reveal .feature-grid > *,
.has-js .reveal .pricing-grid > *,
.has-js .reveal .faq-list > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 620ms cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 620ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.has-js .reveal.is-visible .story-grid > *,
.has-js .reveal.is-visible .steps-grid > *,
.has-js .reveal.is-visible .feature-grid > *,
.has-js .reveal.is-visible .pricing-grid > *,
.has-js .reveal.is-visible .faq-list > * {
  opacity: 1;
  transform: translateY(0);
}

.has-js .reveal.is-visible .story-grid > *:nth-child(2),
.has-js .reveal.is-visible .steps-grid > *:nth-child(2),
.has-js .reveal.is-visible .feature-grid > *:nth-child(2),
.has-js .reveal.is-visible .pricing-grid > *:nth-child(2),
.has-js .reveal.is-visible .faq-list > *:nth-child(2) {
  transition-delay: 90ms;
}

.has-js .reveal.is-visible .story-grid > *:nth-child(3),
.has-js .reveal.is-visible .steps-grid > *:nth-child(3),
.has-js .reveal.is-visible .feature-grid > *:nth-child(3),
.has-js .reveal.is-visible .faq-list > *:nth-child(3) {
  transition-delay: 180ms;
}

.has-js .reveal.is-visible .feature-grid > *:nth-child(4),
.has-js .reveal.is-visible .faq-list > *:nth-child(4) {
  transition-delay: 270ms;
}

.has-js .reveal.is-visible .feature-grid > *:nth-child(5),
.has-js .reveal.is-visible .faq-list > *:nth-child(5) {
  transition-delay: 360ms;
}

.has-js .reveal.is-visible .feature-grid > *:nth-child(6) {
  transition-delay: 450ms;
}

/* Gentle entrance for the phone mockup. */
.has-js .app-preview .phone-shell {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition: opacity 720ms cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 720ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.has-js .app-preview.is-visible .phone-shell {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .has-js .reveal .story-grid > *,
  .has-js .reveal .steps-grid > *,
  .has-js .reveal .feature-grid > *,
  .has-js .reveal .pricing-grid > *,
  .has-js .reveal .faq-list > *,
  .has-js .app-preview .phone-shell {
    opacity: 1 !important;
    transform: none !important;
    transition-delay: 0ms !important;
  }
}
