/* Nunito Sans, served from this site so visitors' browsers don't contact Google.
   One variable file covers every weight the site uses. */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url('/assets/fonts/nunito-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 {
  color-scheme: light;
  --cream: #f7f6e8;
  --white: #ffffff;
  --reed: #233f35;
  --frog: #527d3d;
  --lily: #b9d58c;
  --pond: #356e78;
  --earth: #806044;
  --sun: #e8be63;
  --night-pond: #142b28;
  --deep-water: #223f3a;

  --bg: var(--cream);
  --surface: var(--white);
  --surface-muted: #eaf0d9;
  --border: #dce3c4;
  --text: var(--reed);
  --text-muted: var(--earth);
  --text-subtle: #5f635d;
  --field-border: #8a8f7e;
  --action: var(--pond);
  --action-text: var(--white);
  --link: var(--pond);
  --phone: #16251f;
  --phone-rim: #3f4f48;
}

/* Dark colors apply when the device asks for them, unless the visitor picked
   light, and always when the visitor picked dark. theme.js sets data-theme. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: var(--night-pond);
    --surface: var(--deep-water);
    --surface-muted: #2e4c46;
    --border: #3b5a53;
    --text: var(--cream);
    --text-muted: #cbd2c2;
    --text-subtle: #b4beb6;
    --field-border: #6f8a83;
    --action: var(--lily);
    --action-text: var(--night-pond);
    --link: var(--lily);
    --phone: #0b1513;
    --phone-rim: #4f6c64;
  }
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: var(--night-pond);
  --surface: var(--deep-water);
  --surface-muted: #2e4c46;
  --border: #3b5a53;
  --text: var(--cream);
  --text-muted: #cbd2c2;
  --text-subtle: #b4beb6;
  --field-border: #6f8a83;
  --action: var(--lily);
  --action-text: var(--night-pond);
  --link: var(--lily);
  --phone: #0b1513;
  --phone-rim: #4f6c64;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-wrap: break-word;
}

/* Long words wrap instead of forcing sideways scrolling at very large text */
h1,
h2,
h3,
.brand span,
.article p,
.article li {
  min-width: 0;
  overflow-wrap: anywhere;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  opacity: 0.85;
}

.wrap {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

header.site {
  padding: 24px 0;
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.brand span {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.2px;
}

nav.site {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-weight: 600;
  font-size: 0.9375rem;
}

nav.site a {
  color: var(--text-muted);
  text-decoration: none;
}

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

main {
  flex: 1;
}

main.page {
  padding: 24px 0 64px;
}

main.page h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin: 0 0 4px;
}

main.page .updated {
  color: var(--text-subtle);
  font-size: 0.875rem;
  margin: 0 0 32px;
}

main.page h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 32px 0 8px;
}

main.page p,
main.page li {
  color: var(--text-muted);
  font-size: 1rem;
}

main.page ul {
  padding-left: 20px;
}

main.page strong {
  color: var(--text);
}

footer.site {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--text-subtle);
}

footer.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

footer.site a {
  color: var(--text-subtle);
  text-decoration: none;
}

/* Keeps wrapped links large enough to tap on a phone */
nav.site a,
footer.site nav a {
  display: inline-block;
  padding: 4px 0;
}

footer.site a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* Visible only when focused, for keyboard users */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  background: var(--action);
  color: var(--action-text);
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* Read by screen readers, not shown on screen */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Coming-soon hero */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 0;
}

.hero img.logo {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(35, 63, 53, 0.12);
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 8px;
}

.hero .tagline {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin: 0 0 28px;
}

.pill {
  display: inline-block;
  background: var(--surface-muted);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.3px;
  margin-bottom: 32px;
}

.hero .sub {
  color: var(--text-subtle);
  font-size: 0.9375rem;
  max-width: 420px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  margin-top: 8px;
}

.button {
  display: inline-block;
  background: var(--action);
  color: var(--action-text);
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 28px;
  border-radius: 999px;
  text-decoration: none;
  margin-top: 8px;
}

/* ---- Marketing home page ---- */

.wrap.wide {
  max-width: 1000px;
}

:focus-visible {
  outline: 3px solid var(--action);
  outline-offset: 3px;
  border-radius: 6px;
}

.hero-home {
  padding: 24px 0 72px;
}

/* Copy on the left, the app on the right; stacks on narrow screens */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: center;
  gap: 56px;
}

.eyebrow {
  display: inline-block;
  background: var(--surface-muted);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 16px;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.3px;
  margin: 0 0 20px;
}

/* The label sits inside the h1 so search engines read it as part of the heading */
.hero-home h1 .eyebrow {
  line-height: 1.6;
}

.hero-home h1 {
  font-size: clamp(2rem, 5.2vw, 3.125rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin: 0 0 20px;
}

.hero-home .lead {
  color: var(--text-muted);
  font-size: 1.1875rem;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 0 28px;
}

.hero-home .hero-links {
  justify-content: flex-start;
  align-items: center;
}

ul.hero-facts {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: var(--text-subtle);
  font-size: 0.9375rem;
  font-weight: 600;
}

ul.hero-facts li {
  position: relative;
  padding-left: 22px;
}

ul.hero-facts li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 7px;
  width: 10px;
  height: 5px;
  border-left: 3px solid var(--action);
  border-bottom: 3px solid var(--action);
  transform: rotate(-45deg);
}

.hero-shot {
  margin: 0;
}

/* Phone frame: the bezel is the image's border, the camera is drawn on its figure */
.hero-shot,
.phone-shot,
.screens figure {
  --bezel: 10px;
  --corner: 46px;
  position: relative;
}

.hero-shot::before,
.phone-shot::before,
.screens figure::before {
  content: '';
  position: absolute;
  z-index: 1;
  top: calc(var(--bezel) * 1.9);
  left: 50%;
  width: 30%;
  height: calc(var(--bezel) * 2.6);
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--phone);
}

.hero-shot img,
.phone-shot img,
.screens img {
  display: block;
  width: 100%;
  height: auto;
  border: var(--bezel) solid var(--phone);
  border-radius: var(--corner);
  box-shadow: 0 0 0 1px var(--phone-rim), 0 18px 44px rgba(35, 63, 53, 0.22);
}

.phone-shot {
  width: min(260px, 70%);
  margin: 0 auto;
}

@media (max-width: 820px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-home .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-home .hero-links,
  ul.hero-facts {
    justify-content: center;
  }

  .hero-shot {
    width: min(240px, 70%);
    margin: 0 auto;
  }
}

@media (max-width: 520px) {
  .hero-home .lead {
    font-size: 1.0625rem;
  }
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0 0 20px;
}

.hero-links .button {
  margin-top: 0;
}

.button.secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.fine {
  color: var(--text-subtle);
  font-size: 0.875rem;
  max-width: 560px;
  margin: 0 auto;
}

.fine.center {
  text-align: center;
  margin-top: 28px;
}

.section {
  padding: 64px 0;
}

.section.band {
  background: var(--surface-muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section h2 {
  font-size: clamp(1.625rem, 4vw, 2.125rem);
  font-weight: 800;
  letter-spacing: -0.4px;
  line-height: 1.2;
  margin: 0 0 12px;
  text-align: center;
}

.section-note {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 28px 0 0;
  text-align: center;
}

.section-lead {
  color: var(--text-muted);
  font-size: 1.125rem;
  text-align: center;
  max-width: 560px;
  margin: 0 auto 36px;
}

.section h2 + .grid {
  margin-top: 32px;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 760px;
  margin: 0 auto;
}

.grid .card {
  margin-top: 0;
}

.card h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
}

.card p {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0;
}

/* Age label above a card heading */
.age-card .eyebrow {
  margin-bottom: 14px;
}

ol.steps {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  counter-reset: step;
}

ol.steps li {
  counter-increment: step;
}

ol.steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--lily);
  color: var(--night-pond);
  font-weight: 800;
  font-size: 1.0625rem;
  margin-bottom: 14px;
}

/* Pricing */
.plan {
  position: relative;
}

.plan.featured {
  border: 2px solid var(--action);
}

.plan .price {
  color: var(--text);
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  margin: 8px 0 2px;
}

.plan .plan-for {
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 600;
  margin: -4px 0 0;
}

/* Free vs Lifetime unlock, under the plan cards */
.compare {
  width: 100%;
  max-width: 760px;
  margin: 32px auto 0;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.compare th,
.compare td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.compare th[scope='row'] {
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
}

.compare thead th {
  color: var(--text);
  font-weight: 800;
}

@media (max-width: 520px) {
  .compare th,
  .compare td {
    padding: 8px 6px;
  }
}

/* A line under a split's checklist */
.split-note {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 20px 0 0;
}

.split-note.muted {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 400;
  margin-top: 12px;
}

@media (max-width: 820px) {
  .split-note {
    text-align: center;
  }
}

.plan .price-note {
  color: var(--text-subtle);
  font-size: 0.9375rem;
  margin-bottom: 20px;
}

.badge {
  display: inline-block;
  background: var(--sun);
  color: var(--reed);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.2px;
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 10px;
}

ul.checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

ul.checks li {
  position: relative;
  padding-left: 28px;
  color: var(--text-muted);
  font-size: 1rem;
}

ul.checks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 6px;
  width: 12px;
  height: 7px;
  border-left: 3px solid var(--action);
  border-bottom: 3px solid var(--action);
  transform: rotate(-45deg);
}

/* FAQ */
#faq .wrap {
  max-width: 720px;
}

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-top: 12px;
  padding: 0 20px;
}

details:first-of-type {
  margin-top: 28px;
}

details summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--text);
  padding: 16px 28px 16px 0;
  list-style: none;
  position: relative;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-muted);
}

details[open] summary::after {
  content: '\2212';
}

details p {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0 0 18px;
}

.closing {
  text-align: center;
}

.closing .fine a {
  color: inherit;
}

/* App Store badge (official artwork, no built-in padding) */
.apple-badge {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  border-radius: 10px;
}

.apple-badge img {
  display: block;
  width: auto;
  height: 57px;
}

/* Google Play badge (official artwork includes its own padding) */
.play-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 12px;
}

.play-badge img {
  display: block;
  width: 220px;
  height: auto;
  margin: -12px 0;
}

/* The Play badge image has built-in padding; this one doesn't, so size it to the Play badge's visible area */
.amazon-badge {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  border-radius: 8px;
}

.amazon-badge img {
  display: block;
  width: 190px;
  height: auto;
}

/* Screenshot gallery: seven shots run past most screens, so it scrolls sideways at every width.
   "safe center" keeps the first shot reachable; a plain center would clip it. */
.screens {
  display: flex;
  justify-content: safe center;
  gap: 20px;
  padding: 4px 24px 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding: 0 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--field-border) transparent;
}

.screens figure {
  --bezel: 7px;
  --corner: 34px;
  flex: 0 0 200px;
  margin: 0;
  scroll-snap-align: center;
  text-align: center;
}

.screens figcaption {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 14px;
}

@media (max-width: 600px) {
  .screens {
    gap: 16px;
    padding: 4px 16px 12px;
    scroll-padding: 0 16px;
  }

  .screens figure {
    flex-basis: 62%;
  }
}

/* Copy beside a picture or video; stacks on narrow screens */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 48px;
}

.split-next {
  margin-top: 72px;
}

.split-copy h2 {
  text-align: left;
  margin-bottom: 20px;
}

.split-copy strong {
  color: var(--text);
}

.art {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(35, 63, 53, 0.16);
}

video.art {
  background: var(--night-pond);
}

.devices {
  max-width: 640px;
  margin: 36px auto 0;
  text-align: center;
}

.devices figcaption {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 600;
  margin-top: 16px;
}

@media (max-width: 820px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .split-copy h2 {
    text-align: center;
  }

  /* Heading first, even where the video comes first on wide screens */
  #whats-new video {
    order: 1;
  }
}

/* Blog posts */
main.page .article h2 {
  font-size: 1.5625rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 44px 0 10px;
}

main.page .article h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 28px 0 6px;
}

main.page .article p,
main.page .article li {
  font-size: 1.0625rem;
  line-height: 1.7;
}

main.page .article li {
  margin-bottom: 8px;
}

main.page .article ol {
  padding-left: 22px;
}

main.page .article .eyebrow {
  font-size: 0.875rem;
  margin-bottom: 16px;
}

main.page .article .article-lead {
  color: var(--text);
  font-size: 1.1875rem;
}

main.page .article .note {
  background: var(--surface-muted);
  border-radius: 16px;
  color: var(--text);
  font-size: 1rem;
  padding: 16px 20px;
}

.article-figure {
  margin: 28px auto;
}

.article-figure figcaption {
  color: var(--text-subtle);
  font-size: 0.875rem;
  margin-top: 14px;
  text-align: center;
}

.printable-shot img {
  border: 1px solid var(--border);
  border-radius: 12px;
  display: block;
  height: auto;
  width: 100%;
}

.article-cta {
  border-top: 1px solid var(--border);
  margin-top: 44px;
  text-align: center;
}

.theme-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--field-border);
  border-radius: 50%;
  cursor: pointer;
}

.theme-toggle .icon-sun,
.theme-toggle[aria-pressed='true'] .icon-moon {
  display: none;
}

.theme-toggle[aria-pressed='true'] .icon-sun {
  display: block;
}

.closing-frog {
  display: block;
  width: 160px;
  height: auto;
  margin: 0 auto 16px;
}

.follow-title {
  font-size: 1.1875rem;
  font-weight: 700;
  margin: 36px 0 12px;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 44pt tap targets around the 20pt icons */
footer.site .footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -12px 0;
}

.closing p .button {
  margin-top: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Four nav links don't fit beside the brand on a phone: stack the nav under it. */
@media (max-width: 520px) {
  /* The toggle stays beside the brand, and wraps under it before overlapping */
  header.site .wrap {
    gap: 12px;
  }

  nav.site {
    flex-basis: 100%;
    order: 1;
  }

}
