/* Landing page. Built from the Figma "Welcome" frame (1524:3), 1440px wide. */

/* DM Sans (SIL Open Font License), self-hosted so the first paint doesn't wait
   on two extra connections to Google. One variable file covers every weight
   and the optical-size axis; this is Google's Latin subset. */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("/fonts/dm-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --green: #006650;
  --green-line: #62a58c;
  --cream: #fff9d9;
  --yellow: #ffe34b;
  --ink: #112e29;
  --mint: #9ae0cc;
  --coral: #ff633c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-variation-settings: "opsz" 14;
  line-height: 1.08;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1 {
  margin: 0;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--green);
  color: var(--cream);
}

.topbar {
  display: flex;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 80px 0;
}

.wordmark {
  font-size: 23px;
  font-weight: 800;
}

.nav {
  display: flex;
  gap: 40px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 500;
}

.nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 54px;
  padding: 0 36px;
  border-radius: 28px;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

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

.btn:focus-visible,
.nav a:focus-visible,
.wordmark:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--yellow);
  color: var(--ink);
}

.btn-ghost {
  border: 1px solid var(--green-line);
  color: var(--cream);
}

.btn-ghost:hover {
  background: rgba(255, 249, 217, 0.08);
}

.btn-header {
  width: 160px;
  margin-left: 150px;
  padding: 0;
}

.intro {
  max-width: 1080px;
  margin: 62px auto 0;
  padding: 0 16px;
  text-align: center;
}

.eyebrow {
  color: var(--yellow);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin-top: 22px;
  font-size: clamp(44px, 6.12vw, 88px);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.lede {
  margin-top: 21px;
  font-size: clamp(17px, 1.4vw, 20px);
}

.actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 33px;
}

.actions .btn-primary {
  width: 370px;
}

.actions .btn-ghost {
  width: 232px;
}

.note {
  margin-top: 14px;
  font-size: 15px;
  opacity: 0.8;
}

/* Phones and cards. Every size is in em at 1em = 1px of the design, so one
   font-size scales the whole group down on narrower screens. Positions are
   measured from the Figma frame, relative to the mint card's left edge (x 165.5)
   and the middle phone's top (y 567). */

.stage {
  --w: 1106;
  position: relative;
  width: calc(var(--w) * 1em);
  height: 383em;
  margin: 13px auto 0;
  font-size: min(1px, calc((100vw - 32px) / var(--w)));
}

.phone {
  position: absolute;
  width: 232em;
  height: 490.3em;
  padding: 6em;
  border-radius: 28em;
  background: var(--ink);
}

.phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 22em;
}

.phone-level {
  left: 252.6em;
  top: 33.6em;
  transform: rotate(-5.9deg);
}

.phone-reader {
  left: 639.2em;
  top: 32.3em;
  transform: rotate(5.07deg);
}

.phone-home {
  left: 442em;
  top: 0;
}

.card {
  position: absolute;
  padding: 0 28em;
  border-radius: 28em;
  color: var(--ink);
}

.card-mint {
  left: 16.1em;
  top: 116.9em;
  width: 245em;
  height: 278.8em;
  background: var(--mint);
  transform: rotate(-7deg);
}

/* Margins on text that sets its own font-size are divided by that size, so
   they stay in design pixels. */
.card-letter {
  display: block;
  margin-top: calc(12em / 94);
  color: var(--green);
  font-size: 94em;
  font-weight: 800;
}

/* The letter's line box ends at about y 113; the copy starts at y 142. */
.card-mint p {
  margin-top: calc(28em / 17);
  font-size: 17em;
  font-weight: 700;
  line-height: 1.2;
}

.card-coral {
  left: 853.4em;
  top: 130.6em;
  width: 238em;
  height: 251em;
  padding-top: 32em;
  background: var(--coral);
  transform: rotate(7deg);
}

.card-coral p {
  font-size: 16em;
  font-weight: 500;
}

.card-coral .card-title {
  height: calc(123em / 22);
  font-size: 22em;
  font-weight: 800;
}

/* Overlapping cream ellipses along the bottom edge. Every other one sits 10px
   lower, as in the design. */
.clouds {
  position: absolute;
  left: 50%;
  bottom: -57px;
  display: flex;
  transform: translateX(-50%);
  pointer-events: none;
}

.clouds img {
  display: block;
  flex: none;
  width: 190px;
  height: 100px;
}

.clouds img + img {
  margin-left: -50px;
}

.clouds img:nth-child(even) {
  transform: translateY(10px);
}

/* ---------- Sections ---------- */

:root {
  --muted: #52645a;
  --sand: #f3edc5;
  --sand-dark: #efe8b8;
  --peach: #f7b49b;
  --paper: #fffdf0;
}

.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px;
}

.section h2 {
  margin: 0;
  font-size: clamp(36px, 3.55vw, 51px);
  font-weight: 800;
  line-height: 1.1;
}

.section h3 {
  margin: 0;
}

.kicker {
  margin-bottom: 18px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  text-transform: uppercase;
}

.sub {
  margin-top: 12px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.45;
}

.split {
  display: grid;
  grid-template-columns: 1fr 560px;
  column-gap: 40px;
}

/* A quieter kind of adventure */

.about {
  padding: 68px 0 45px;
}

.about-copy {
  padding-top: 32px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.45;
}

.about-copy p + p {
  margin-top: 22px;
}

.glance {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 100px;
  margin: 105px 0 0;
  padding: 15px 28px 13px;
  list-style: none;
  border-radius: 24px;
  background: var(--sand);
  line-height: 1.45;
}

.glance strong {
  display: block;
  color: var(--green);
  font-size: 30px;
  font-weight: 800;
}

.glance span {
  color: var(--muted);
  font-size: 14px;
}

/* Three gentle steps */

.steps {
  padding: 42px 0 49px;
}

.steps .kicker {
  margin-bottom: 14px;
}

.step-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  margin: 50px 0 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 21px 26px 28px;
  border-radius: 24px;
}

.step-yellow {
  background: var(--yellow);
}

.step-mint {
  background: var(--mint);
}

.step-peach {
  background: var(--peach);
}

.step-num {
  color: var(--green);
  font-size: 58px;
  font-weight: 800;
  line-height: 1.1;
}

.step h3 {
  margin-top: 27px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
}

.step p {
  margin-top: auto;
  padding-top: 24px;
  font-size: 17px;
  line-height: 1.45;
}

/* Made like a book */

.book {
  padding: 70px 0;
  background: var(--mint);
}

.book-grid {
  display: grid;
  grid-template-columns: 545px 1fr;
  column-gap: 81px;
  align-items: start;
}

.book-photo {
  display: block;
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 32px;
}

.book .kicker {
  margin-top: -4px;
  margin-bottom: 18px;
}

.features {
  display: grid;
  grid-template-columns: repeat(2, 285px);
  column-gap: 51px;
  row-gap: 30px;
  margin: 69px 0 0;
  padding: 0;
  list-style: none;
  line-height: 1.45;
}

.features span {
  color: var(--green);
  font-size: 15px;
  font-weight: 800;
}

.features h3 {
  margin-top: 8px;
  font-size: 21px;
  font-weight: 700;
}

.features p {
  margin-top: 4px;
  font-size: 16px;
}

/* A path that grows with them */

.path {
  padding: 70px 0;
}

.path .kicker {
  margin-bottom: 16px;
}

.path-head {
  grid-template-columns: 1fr 465px;
}

.path-copy {
  padding-top: 50px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.45;
}

.levels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 63px;
}

.level {
  min-height: 230px;
  padding: 25px 28px 28px;
  border-radius: 24px;
  line-height: 1.45;
}

.level-0 {
  background: var(--sand-dark);
}

.level-1 {
  background: var(--green);
  color: var(--cream);
}

.level-2 {
  background: var(--mint);
}

.level-3 {
  background: var(--peach);
}

.level-tag {
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.level-1 .level-tag {
  color: var(--yellow);
}

/* Green on peach falls short of 4.5:1 contrast. */
.level-3 .level-tag {
  color: var(--ink);
}

.level h3 {
  margin-top: 21px;
  font-size: 30px;
  font-weight: 800;
}

.level-name {
  margin-top: 7px;
  font-size: 20px;
  font-weight: 700;
}

.level p:last-child {
  margin-top: 14px;
  font-size: 17px;
}

.level-0 p:last-child {
  color: var(--muted);
}

/* Inside the app */

.inside {
  padding: 61px 0 33px;
  background: var(--sand);
}

.inside .kicker {
  margin-bottom: 15px;
}

.inside .sub {
  margin-top: 14px;
  line-height: 1.4;
}

.shots {
  display: flex;
  justify-content: center;
  gap: 30px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 60px 80px 0;
  list-style: none;
  text-align: center;
  line-height: 1.4;
}

.shots li {
  flex: 0 1 232px;
  min-width: 0;
}

.shots img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 232 / 490.3;
  padding: 6px;
  border-radius: 28px;
  background: var(--ink);
  object-fit: contain;
}

.shots h3 {
  margin-top: 24px;
  color: var(--green);
  font-size: 17px;
  font-weight: 700;
}

.shots p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

/* Simple pricing */

.pricing {
  padding: 55px 0 66px;
  text-align: center;
}

.pricing .kicker {
  margin-bottom: 12px;
}

.plans {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin-top: 38px;
  text-align: left;
}

.plan {
  display: flex;
  flex-direction: column;
  flex: 0 1 460px;
  padding: 25px 30px 32px;
  border-radius: 28px;
  line-height: 1.45;
}

.plan-yearly {
  background: var(--green);
  color: var(--cream);
}

.plan-monthly {
  background: var(--sand-dark);
}

.plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
}

.plan h3 {
  font-size: 22px;
  font-weight: 700;
}

.badge {
  width: 120px;
  padding: 7px 0;
  border-radius: 16px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  text-transform: uppercase;
}

.price {
  margin-top: 28px;
  font-size: 62px;
  font-weight: 800;
  line-height: 1.1;
}

.per {
  margin-top: 14px;
  font-size: 17px;
}

.plan-monthly .per {
  color: var(--muted);
}

.plan .btn {
  margin-top: 42px;
}

.btn-dark {
  background: var(--green);
  color: var(--cream);
}

.fine {
  margin-top: 35px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

/* Questions parents ask */

.faqs {
  padding: 32px 0 91px;
}

.faqs .kicker {
  margin-bottom: 15px;
}

.faq-list {
  margin-top: 36px;
}

.faq-list details {
  border-radius: 12px;
  background: var(--paper);
  line-height: 1.45;
}

.faq-list details + details {
  margin-top: 8px;
}

.faq-list details[open] {
  border-radius: 16px;
  background: var(--sand-dark);
}

.faq-list details[open] + details {
  margin-top: 14px;
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 24px;
  font-size: 18px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  flex: none;
  width: 40px;
  color: var(--green);
  font-size: 25px;
  font-weight: 500;
  line-height: 1;
}

.faq-list details[open] summary {
  padding-top: 17px;
  font-size: 20px;
}

.faq-list details[open] summary::after {
  content: "−";
  font-weight: 700;
}

.faq-list summary:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 12px;
}

.faq-list details p {
  max-width: 1170px;
  padding: 4px 24px 20px;
  color: var(--muted);
  font-size: 17px;
}

.faq-list details a {
  color: var(--green);
  text-decoration: underline;
}

/* Their first story is waiting + footer */

.site-footer {
  padding: 45px 0 56px;
  background: var(--green);
  color: var(--cream);
  line-height: 1.45;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 240px;
  padding: 35px 44px 30px 40px;
  border-radius: 28px;
  background: var(--coral);
  color: var(--ink);
}

.cta h2 {
  margin: 0;
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 800;
  line-height: 1.1;
}

.cta p {
  margin-top: 16px;
  font-size: 19px;
}

.cta-actions {
  flex: none;
}

/* Apple's official badge, served by Apple's marketing tools (120x40 SVG). */
.store {
  display: block;
  border-radius: 12px;
}

.store img {
  display: block;
  width: 186px;
  height: 62px;
}

.store:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.big-wordmark {
  margin-top: 40px;
  font-size: clamp(44px, 6.95vw, 100px);
  font-weight: 800;
  line-height: 1.1;
}

.foot-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 40px;
  margin-top: 21px;
  font-size: 18px;
}

.foot-row nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 30px;
  font-size: 16px;
  font-weight: 500;
}

.foot-row nav a:hover {
  text-decoration: underline;
}

.foot-small {
  align-items: flex-start;
  margin-top: 40px;
  font-size: 13px;
}

.disclaimer {
  font-size: 11px;
  text-align: right;
}

/* ---------- Smaller screens ---------- */

@media (max-width: 1180px) {
  .topbar {
    padding: 24px 32px 0;
  }

  .nav {
    gap: 22px;
    white-space: nowrap;
  }

  .btn-header {
    margin-left: 32px;
  }

  .wrap,
  .shots {
    padding-left: 32px;
    padding-right: 32px;
  }

  .split,
  .path-head {
    grid-template-columns: 1fr 1fr;
  }

  .book-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
  }

  .features {
    grid-template-columns: 1fr 1fr;
    column-gap: 32px;
  }

  .shots {
    gap: 20px;
  }
}

@media (max-width: 900px) {
  /* Only the link to the free resources stays; the rest jump within this page. */
  .nav a:not(.nav-keep) {
    display: none;
  }

  .btn-header {
    margin-left: 20px;
  }

  .wide-only {
    display: none;
  }

  .split,
  .path-head,
  .book-grid {
    grid-template-columns: 1fr;
  }

  .about-copy,
  .path-copy {
    padding-top: 20px;
  }

  .book-photo {
    height: auto;
    aspect-ratio: 545 / 480;
    margin-bottom: 40px;
  }

  .features {
    margin-top: 40px;
  }

  .glance {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 16px;
  }

  .step-cards,
  .levels {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .step {
    min-height: 0;
  }

  .step h3 {
    margin-top: 16px;
  }

  /* Five phones don't fit: let them scroll sideways. */
  .shots {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 32px;
    padding-top: 48px;
    padding-bottom: 8px;
  }

  .shots li {
    flex: 0 0 200px;
    scroll-snap-align: start;
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .foot-row,
  .foot-small {
    flex-direction: column;
  }

  .disclaimer {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .topbar {
    padding: 16px 16px 0;
  }

  .nav {
    padding-left: 12px;
    font-size: 14px;
  }

  .wordmark {
    font-size: 20px;
  }

  .btn-header {
    width: auto;
    height: 46px;
    margin-left: 14px;
    padding: 0 20px;
    font-size: 15px;
  }

  .intro {
    margin-top: 44px;
  }

  h1 {
    margin-top: 16px;
    line-height: 1.04;
  }

  .lede {
    margin-top: 16px;
    line-height: 1.3;
  }

  .actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
  }

  .actions .btn {
    width: 100%;
    max-width: 370px;
  }

  .note {
    max-width: 300px;
    margin: 14px auto 0;
    line-height: 1.4;
  }

  /* Phones only: the three phones span x 228–892 of the stage. Shift the group
     left by the empty space and size it on that width so they stay legible. */
  .stage {
    --w: 664;
    height: 470em;
    margin-top: 28px;
  }

  .stage > * {
    margin-left: -228em;
  }

  .card {
    display: none;
  }

  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .shots {
    padding-left: 16px;
    padding-right: 16px;
    scroll-padding: 0 16px;
  }

  .shots li {
    flex-basis: 180px;
  }

  .about,
  .path,
  .book {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .sub,
  .about-copy,
  .path-copy {
    font-size: 17px;
  }

  .glance {
    gap: 16px;
    margin-top: 36px;
    padding: 20px 24px;
  }

  .features {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }

  .level h3 {
    font-size: 26px;
  }

  .plans {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .plan {
    flex-basis: auto;
    padding: 24px;
  }

  .price {
    margin-top: 16px;
    font-size: 52px;
  }

  .plan .btn {
    margin-top: 28px;
    width: 100%;
  }

  .faq-list summary {
    padding: 12px 16px;
    font-size: 17px;
  }

  .faq-list details[open] summary {
    font-size: 18px;
  }

  .faq-list details p {
    padding: 4px 16px 18px;
    font-size: 16px;
  }

  .faq-list summary::after {
    width: auto;
  }

  .cta {
    padding: 28px 24px;
  }
}

@media (max-width: 400px) {
  .wordmark {
    font-size: 18px;
  }

  .btn-header {
    padding: 0 16px;
  }
}

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

  .btn {
    transition: none;
  }
}
