/* Landing feature 49: the stylesheet of the rebuilt page (/, /?from=meta)
   and of /privacy, /terms and /thanks. Colours: the 16 of
   landing/content/rebuild/COLOURS.md (its Quick reference), and no other;
   every colour below is one of these tokens. Layout: REVIEW.md Part 1, for
   a phone first; one column, 16 px side margins, body text at least 16 px,
   buttons at least 48 px tall and full width. */
:root {
  --paper: #FFFBF5;
  --sand: #F8EDDA;
  --wheat: #F1D8BA;
  --line: #E6D6BF;
  --ink: #3A2E2A;
  --bark: #6B5744;
  --terracotta: #B85C28;
  --clay: #96471E;
  --cocoa: #2B201C;
  --oat: #EADDCB;
  --white: #FFFFFF;
  --field-edge: #8C7B6B;
  --leaf: #33612A;
  --leaf-tint: #F0F5E7;
  --berry: #A8233A;
  --berry-tint: #FCEDEE;

  /* Spacing (px). */
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
  --space-64: 64px;

  /* Section padding, top and bottom; the text column; the page column. */
  --section-pad: 48px;
  --measure: 36rem;
  --column: 1040px;
}
@media (min-width: 600px) {
  :root { --section-pad: 72px; }
}
@media (min-width: 900px) {
  :root { --section-pad: 96px; }
}

/* Typefaces (landing feature 7), kept: Fraunces for headings and buttons,
   Literata for text, Andika for the digits on the age chips. */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600 650;
  font-display: swap;
  src: url(/fonts/fraunces-var.8768866a.woff2) format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/fraunces-var-italic.00e7f9fa.woff2) format('woff2');
}
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/literata-var.827e8170.woff2) format('woff2');
}
@font-face {
  font-family: 'Literata';
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url(/fonts/literata-var-italic.07cc4f2b.woff2) format('woff2');
}
/* Only the digits 5-9 on the age chips. */
@font-face {
  font-family: 'Andika';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/andika-700.6b73917d.woff2) format('woff2');
  unicode-range: U+0035-0039;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Literata', Georgia, serif;
  font-size: 1.0625rem;
  font-weight: 400;
  font-variation-settings: 'opsz' 12, 'wght' 400;
  line-height: 1.5;
}
h1, h2, .wordmark, .age-label, button, .cta {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
}
h1 {
  margin: 0;
  font-size: clamp(2rem, 1.55rem + 2.2vw, 3.25rem);
  font-weight: 600;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'wght' 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
h2 {
  margin: 0;
  font-size: clamp(1.625rem, 1.35rem + 1.4vw, 2.375rem);
  font-style: italic;
  font-weight: 500;
  font-variation-settings: 'opsz' 72, 'SOFT' 100, 'wght' 500;
  line-height: 1.18;
}
p {
  margin: 0;
}
img, video, svg {
  max-width: 100%;
}
strong {
  font-weight: 600;
  font-variation-settings: 'opsz' 12, 'wght' 600;
}
.wordmark {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 650;
  font-variation-settings: 'opsz' 36, 'wght' 650;
  letter-spacing: 0.02em;
  color: var(--ink);
}

/* Links: Clay, always underlined; Ink while pressed. */
a {
  color: var(--clay);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:active {
  color: var(--ink);
}
/* Focus (keyboard): a 2 px Ink ring, 2 px away. */
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* Small text: Bark. */
.small {
  color: var(--bark);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* The main button: Terracotta, White words; Clay when pressed or hovered.
   Never greyed out: while sending it stays Terracotta. */
.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: var(--space-12) var(--space-24);
  border: 0;
  border-radius: 10px;
  background: var(--terracotta);
  color: var(--white);
  font-size: 1.1875rem;
  font-weight: 600;
  font-variation-settings: 'opsz' 24, 'wght' 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.cta:hover,
.cta:active {
  background: var(--clay);
  color: var(--white);
}
.cta:disabled,
.cta:disabled:hover {
  background: var(--terracotta);
  color: var(--white);
  cursor: default;
}
@media (min-width: 600px) {
  .cta {
    max-width: 420px;
  }
}

/* The second button ('See all 24', 'Close', the contact buttons): no fill,
   2 px Clay border, Clay words; Wheat when pressed. */
.second,
.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 48px;
  min-width: 48px;
  margin: 0;
  padding: var(--space-8) var(--space-24);
  border: 2px solid var(--clay);
  border-radius: 10px;
  background: transparent;
  color: var(--clay);
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-size: 1.0625rem;
  font-weight: 600;
  font-variation-settings: 'opsz' 24, 'wght' 600;
  text-decoration: none;
  cursor: pointer;
}
.second:active,
.contact-button:active {
  background: var(--wheat);
  color: var(--clay);
}
[hidden] {
  display: none !important;
}

/* The header: the wordmark only, no menu (REVIEW.md: 'No top menu'). It
   sits on the hero's Sand. */
.site-header {
  padding: var(--space-12) var(--space-16) 0;
  background: var(--sand);
}
.site-header .wordmark {
  max-width: var(--column);
  margin: 0 auto;
}

/* Sections take turns, Sand and Paper (COLOURS.md section 2); each runs the
   full width, its content in the centred column. */
main > section,
.meta-top {
  padding: var(--section-pad) max(var(--space-16), calc((100% - var(--column)) / 2));
}
.hero, .day, .practice, .faq, .meta-top {
  background: var(--sand);
}
.stories, .level, .parent, .final, .made-by {
  background: var(--paper);
}
main > section > h2 + p,
main > section > h2 + ol,
main > section > h2 + ul {
  margin-top: var(--space-16);
}
main > section > p {
  max-width: var(--measure);
}
main > section > h2 {
  max-width: var(--measure);
}
@media (min-width: 900px) {
  main > section > h2,
  main > section > h2 + p {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
}

/* The phone frame round every app screen: Cocoa, its shadow Cocoa at 15%. */
.device {
  box-sizing: border-box;
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
  padding: 9px;
  border-radius: 30px;
  background: var(--cocoa);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--cocoa) 15%, transparent);
}
.device img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
}

/* Section 1. Hero. On a phone: headline, text, button, small line, then the
   picture. On a laptop the picture sits to the right of the words. */
.hero {
  padding-top: var(--space-16);
}
.hero-words p:first-of-type {
  margin-top: var(--space-16);
}
.hero .cta {
  margin-top: var(--space-24);
}
.hero .small {
  margin-top: var(--space-12);
}
.hero-picture {
  margin-top: var(--space-32);
}
@media (min-width: 900px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: var(--space-64);
    align-items: center;
    padding-top: var(--space-48);
  }
  .hero-picture {
    margin-top: 0;
  }
  .hero .device {
    max-width: 300px;
  }
  .hero-words p:first-of-type {
    font-size: 1.1875rem;
  }
}

/* Story tiles (sections 2 and 8): picture and name. 3 across on a phone,
   6 across from 600 px. Each is a button opening the sheet with its story;
   on the Meta version a picture only. */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-8);
  margin: var(--space-24) auto 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 600px) {
  .tiles {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: var(--space-12);
  }
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  text-align: left;
  text-decoration: none;
}
button.tile,
a.tile {
  cursor: pointer;
}
button.tile:active,
a.tile:active {
  background: var(--wheat);
}
.tile img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.tile-name {
  display: block;
  padding: var(--space-8) var(--space-8) 10px;
  color: var(--ink);
  font-family: 'Literata', Georgia, serif;
  font-size: 0.9375rem;
  font-weight: 600;
  font-variation-settings: 'opsz' 12, 'wght' 600;
  line-height: 1.25;
}
/* The picked story: a Clay tick with a White mark. */
.tile.is-picked {
  border-color: var(--clay);
  box-shadow: inset 0 0 0 1px var(--clay);
}
.tile.is-picked::after {
  content: '✓';
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--clay);
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 700;
}
/* Section 2: the first 9 on a phone until 'See all 24'. */
.see-all-row {
  margin-top: var(--space-24);
  text-align: center;
}
/* Without JavaScript 'See all 24' is a link to the wall (#all-stories),
   which shows the rest as the URL's target; js/stories.js opens it with
   .is-open instead, keeping the URL. Collapsed from the first paint, so the
   hidden tiles' pictures are not fetched. */
@media (max-width: 599.98px) {
  .wall:not(:target):not(.is-open) .story-wall li:nth-child(n+10) {
    display: none;
  }
  .wall:is(:target, .is-open) .see-all-row {
    display: none;
  }
}
@media (min-width: 600px) {
  .see-all-row {
    display: none;
  }
}

/* Section 3. What a day looks like: three stacked cards on a phone, three
   across from 900 px; then the small line and the video. */
.day-steps {
  display: grid;
  gap: var(--space-16);
  padding: 0;
  list-style: none;
}
.card {
  padding: var(--space-24) var(--space-16);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}
.card p {
  margin-bottom: var(--space-24);
}
.card strong {
  display: block;
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-size: 1.25rem;
  font-variation-settings: 'opsz' 24, 'wght' 600;
  line-height: 1.25;
  margin-bottom: var(--space-4);
}
.day .card .device {
  max-width: 220px;
}
.day > .small {
  margin-top: var(--space-24);
}
@media (min-width: 900px) {
  .day-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .day > .small {
    text-align: center;
  }
}
.clip {
  max-width: 360px;
  margin-top: var(--space-32);
}
.clip-video {
  display: block;
  cursor: pointer;
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: var(--cocoa);
}

/* Section 4. At your child's level: three rows with large icons, in Leaf
   (step up), Clay (another go) and Bark (step back); then the drawing. */
.moves {
  display: grid;
  gap: var(--space-12);
  max-width: var(--measure);
  padding: 0;
  list-style: none;
}
.moves li {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: var(--space-12);
}
.move-icon {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}
.move-up .move-icon { color: var(--leaf); }
.move-again .move-icon { color: var(--clay); }
.move-back .move-icon { color: var(--bark); }
.level > .small {
  margin-top: var(--space-16);
}
.level > .step-path {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  margin-top: var(--space-32);
}
@media (min-width: 900px) {
  .level {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    column-gap: var(--space-64);
    align-content: start;
  }
  .level > * {
    grid-column: 1;
    margin-left: 0;
  }
  .level > h2,
  .level > h2 + p {
    margin-left: 0;
    text-align: left;
  }
  .level > .step-path {
    grid-column: 2;
    grid-row: 1 / span 4;
    align-self: center;
    margin-top: 0;
  }
}
.step-path .sp-steps { fill: var(--wheat); stroke: var(--line); }
.step-path .sp-child { fill: var(--terracotta); }
.step-path .sp-up { stroke: var(--leaf); }
.step-path .sp-up-fill { fill: var(--leaf); }
.step-path .sp-again { stroke: var(--terracotta); }
.step-path .sp-again-fill { fill: var(--terracotta); }
.step-path .sp-again-words { fill: var(--clay); }
.step-path .sp-back { stroke: var(--bark); }
.step-path .sp-back-fill { fill: var(--bark); }
.step-path .sp-words { font-family: 'Literata', Georgia, serif; }

/* Section 5. Practice: the tick and the wrong answer, side by side. */
.screens-pair {
  display: flex;
  justify-content: center;
  gap: var(--space-12);
  margin-top: var(--space-32);
}
.screens-pair .device {
  flex: 1 1 0;
  margin: 0;
  padding: 7px;
  border-radius: 24px;
}
.screens-pair .device img {
  border-radius: 18px;
}

/* Section 6. For you, the parent: the dashboard, marked 'Example'. */
.example {
  margin: var(--space-32) auto 0;
}
.example figcaption {
  margin-top: var(--space-12);
  color: var(--bark);
  font-size: 0.9375rem;
  text-align: center;
}

/* Section 7. Questions: Paper rows on Sand, a Clay + / − sign, Wheat when
   pressed. */
.faq details {
  max-width: var(--measure);
  margin-top: var(--space-8);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}
.faq h2 + details {
  margin-top: var(--space-24);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-12);
  min-height: 52px;
  box-sizing: border-box;
  padding: var(--space-12) var(--space-16);
  border-radius: 10px;
  font-weight: 600;
  font-variation-settings: 'opsz' 12, 'wght' 600;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  flex: none;
  color: var(--clay);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}
.faq details[open] summary::after {
  content: '−';
}
.faq summary:active {
  background: var(--wheat);
}
.faq details p {
  padding: 0 var(--space-16) var(--space-16);
}

/* Section 8. Final call: the tiles, then, with space between them, the
   full-width button. */
.final .final-tiles {
  margin-top: var(--space-24);
}
.final > .cta {
  margin-top: var(--space-32);
}
@media (min-width: 900px) {
  .final > h2 {
    text-align: center;
  }
}

/* 'Made by', above the footer. */
.made-by {
  padding: 0 var(--space-16) var(--section-pad);
  text-align: center;
}
.made-by p + p {
  margin-top: var(--space-4);
}

/* The footer: Cocoa, Oat words, White underlined links; each link at least
   44 px tall to tap. */
.site-footer {
  padding: var(--space-32) var(--space-16) calc(var(--space-32) + env(safe-area-inset-bottom, 0px));
  background: var(--cocoa);
  color: var(--oat);
  text-align: center;
  font-size: 0.9375rem;
}
.site-footer .wordmark {
  color: var(--oat);
}
.site-footer p {
  margin: var(--space-8) 0 0;
}
.site-footer a {
  display: inline-flex;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
  padding: 0 var(--space-8);
  color: var(--white);
}
.site-footer a:active {
  color: var(--oat);
}
.site-footer a:focus-visible {
  outline-color: var(--white);
}

/* The sticky bar on a phone: solid Paper, a 1 px Line top edge and a soft
   Cocoa shadow; hidden from 900 px and while the sheet is open. */
.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  padding: var(--space-8) var(--space-16) calc(var(--space-8) + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 -4px 14px color-mix(in srgb, var(--cocoa) 12%, transparent);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform 0.2s ease-out, visibility 0s linear 0.2s;
}
.sticky-bar.is-shown {
  transform: none;
  visibility: visible;
  transition: transform 0.2s ease-out;
}
.sticky-bar .cta {
  margin: 0 auto;
}
html.sheet-open .sticky-bar {
  visibility: hidden;
}
@media (min-width: 900px) {
  .sticky-bar {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sticky-bar,
  .sticky-bar.is-shown {
    transition: none;
  }
}

/* Landing feature 44: the Meta version's top, in place of the hero. */
.meta-top h1 {
  max-width: var(--measure);
  font-size: clamp(1.875rem, 1.5rem + 2vw, 2.75rem);
}
.meta-top > p {
  max-width: var(--measure);
  margin-top: var(--space-12);
}
.meta-reach {
  margin-top: var(--space-24);
}
.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
  margin-top: var(--space-16);
}
.contact-button {
  min-width: 132px;
}
.meta-top .meta-next {
  margin-top: var(--space-24);
  color: var(--bark);
}

/* The sign-up sheet (landing feature 22): Cocoa at 60% behind it; the sheet
   Paper. Under 600 px it sits at the bottom of the screen, full width; from
   600 px it is a centred box, 440 px wide. While it is open the page behind
   does not scroll. */
#signup {
  --sheet-row: 24px;
  box-sizing: border-box;
  inset: auto 0 0 0;
  margin: 0;
  width: 100%;
  max-width: 100%;
  max-height: 92svh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--space-12) var(--space-16) calc(var(--space-24) + env(safe-area-inset-bottom, 0px));
  border: 0;
  border-radius: 16px 16px 0 0;
  background: var(--paper);
  color: var(--ink);
}
#signup::backdrop {
  background: color-mix(in srgb, var(--cocoa) 60%, transparent);
}
html.sheet-open {
  overflow: hidden;
}
/* Landing feature 43 step 4: on a phone the whole form, consent box and
   button included, fits in the sheet without scrolling at 390 x 664. */
@media (max-width: 599.98px) {
  #signup {
    --sheet-row: 21px;
    max-height: 100svh;
    padding: var(--space-8) var(--space-16) calc(var(--space-12) + env(safe-area-inset-bottom, 0px));
  }
  #signup .sheet-intro {
    font-size: 0.9375rem;
  }
}
@media (min-width: 600px) {
  #signup {
    inset: 0;
    margin: auto;
    width: 440px;
    max-height: calc(100svh - var(--space-48));
    padding: var(--space-16) var(--space-24) var(--space-24);
    border-radius: 16px;
  }
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-12);
}
#signup h2 {
  font-size: clamp(1.375rem, 1.1rem + 1.6vw, 1.75rem);
  color: var(--ink);
}
.sheet-close {
  flex: none;
  min-height: 44px;
  padding: 0 var(--space-16);
}
.sheet-intro {
  margin-top: var(--space-8);
  line-height: var(--sheet-row);
}
.sheet-story {
  margin-top: var(--space-8);
  line-height: var(--sheet-row);
  font-weight: 600;
  font-variation-settings: 'opsz' 12, 'wght' 600;
}
.sheet-form {
  margin-top: var(--space-16);
  line-height: var(--sheet-row);
}
/* Landing feature 26: without JavaScript the form sits under the final
   call's button, shown only as the URL's target (#signup-form: each 'Pick
   your child's story' link and tile, and the server's error page); so with
   JavaScript it is never drawn, nor its fonts loaded, before js/enhance.js
   moves it into the sheet. */
.final > .sheet-form:not(:target) {
  display: none;
}
.final > .sheet-form {
  max-width: 440px;
  margin-top: var(--space-32);
}
.sheet-form .field {
  margin: 0;
  padding: 0 0 var(--space-12);
}
.sheet-form label,
.sheet-form legend {
  display: block;
  padding: 0;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  font-variation-settings: 'opsz' 12, 'wght' 600;
  line-height: var(--sheet-row);
}
.sheet-form fieldset {
  min-width: 0;
  border: 0;
}
/* Fields: White fill, 1.5 px Field Edge border; 2 px Clay while typing;
   2 px Berry when wrong. */
.sheet-form input[type="text"],
.sheet-form input[type="tel"] {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0 var(--space-12);
  border: 1.5px solid var(--field-edge);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
}
.sheet-form input[type="text"]::placeholder,
.sheet-form input[type="tel"]::placeholder {
  color: var(--bark);
}
.sheet-form input[type="text"]:focus,
.sheet-form input[type="tel"]:focus {
  border: 2px solid var(--clay);
  outline: none;
}
.sheet-form input[type="text"]:focus-visible,
.sheet-form input[type="tel"]:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.sheet-form input[aria-invalid="true"],
.sheet-form input[aria-invalid="true"]:focus {
  border: 2px solid var(--berry);
}
.tel {
  position: relative;
}
/* The fixed +91 at the field's left edge. */
.tel-prefix {
  position: absolute;
  left: var(--space-12);
  top: 0;
  line-height: 44px;
  font-size: 1.0625rem;
  color: var(--bark);
  pointer-events: none;
}
.sheet-form input[type="tel"] {
  padding-left: 48px;
}
.field-hint,
.field-error {
  font-size: 0.9375rem;
  line-height: var(--sheet-row);
}
.field-hint {
  color: var(--bark);
}
/* An error: Berry words with a small Berry '!' sign, on Paper. */
.field-error,
.form-error {
  color: var(--berry);
  font-weight: 600;
  font-variation-settings: 'opsz' 12, 'wght' 600;
}
.field-error::before,
.form-error::before {
  /* An icon only: no text for screen readers, which read the words. */
  content: '!' / '';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 17px;
  height: 17px;
  margin-right: 6px;
  border: 2px solid var(--berry);
  border-radius: 50%;
  font-size: 0.6875rem;
  line-height: 1;
  vertical-align: 1px;
}
/* Child's age: six chips in one row, 44 px tall. Not picked: White, Field
   Edge border, Ink. Picked: Clay, White. The radio covers its chip. */
.chips {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  max-width: 340px;
}
.sheet-form .chip {
  position: relative;
  display: block;
  flex: none;
  width: 44px;
  height: 44px;
}
.sheet-form .chip:has(.age-other) {
  flex: 0 1 72px;
  width: auto;
  min-width: 48px;
}
.chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.chip span {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: 1.5px solid var(--field-edge);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  line-height: 1;
  pointer-events: none;
}
.chip .age-digit {
  font-family: 'Andika', 'Comic Sans MS', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  font-variation-settings: normal;
}
.chip .age-other {
  font-size: 0.875rem;
  font-weight: 600;
  font-variation-settings: 'opsz' 12, 'wght' 600;
}
.chip input:checked + span {
  border-color: var(--clay);
  background: var(--clay);
  color: var(--white);
}
.chip input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.ages.is-invalid .chip span {
  border: 2px solid var(--berry);
}
.ages.is-invalid .chip input:checked + span {
  border-color: var(--clay);
}
/* Consent: the box beside the words, the error under both. The box: White
   with a 2 px Field Edge border; ticked, Clay with a White tick. The words
   in Ink at body size. */
.consent {
  display: grid;
  grid-template-columns: 24px 1fr;
  column-gap: var(--space-12);
}
.sheet-form .consent label {
  font-size: 0.9375rem;
  font-weight: 400;
  font-variation-settings: 'opsz' 12, 'wght' 400;
  line-height: 1.4;
}
.consent input {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  width: 24px;
  height: 24px;
  margin: 0;
  border: 2px solid var(--field-edge);
  border-radius: 5px;
  background: var(--white);
  cursor: pointer;
}
.consent input:checked {
  border-color: var(--clay);
  background: var(--clay);
}
.consent input:checked::after {
  content: '';
  display: block;
  width: 6px;
  height: 11px;
  margin: 2px auto 0;
  border: solid var(--white);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.consent input[aria-invalid="true"] {
  border-color: var(--berry);
}
.consent .field-error {
  grid-column: 1 / -1;
}
/* The honeypot (landing feature 5 step 1): off-screen. */
.hp {
  position: absolute;
  left: -10000px;
}
.sheet-actions .cta {
  max-width: none;
}
.form-error {
  margin-bottom: var(--space-8);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.sheet-note {
  margin-top: var(--space-8);
  color: var(--bark);
  font-size: 0.875rem;
  line-height: 1.5;
}
/* After sign-up: a Leaf Tint panel, a Leaf tick and heading, Ink words. */
.sheet-done {
  margin-top: var(--space-16);
  padding: var(--space-24) var(--space-16);
  border-radius: 12px;
  background: var(--leaf-tint);
}
.sheet-done .tick {
  display: block;
  width: 40px;
  height: 36px;
  fill: none;
  stroke: var(--leaf);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sheet-done h3 {
  margin: var(--space-12) 0 0;
  color: var(--leaf);
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 500;
  font-variation-settings: 'opsz' 72, 'SOFT' 100, 'wght' 500;
  line-height: 1.25;
}
.sheet-done h3:focus {
  outline: none;
}
.done-text {
  margin-top: var(--space-8);
  color: var(--ink);
}
.done-sooner {
  margin-top: var(--space-16);
  color: var(--ink);
}
.done-close {
  margin-top: var(--space-24);
}

/* /privacy and /terms (landing feature 27): the wordmark on Sand, the text
   on Paper. */
.policy-head {
  padding: var(--space-16);
  background: var(--sand);
}
.policy-head .wordmark {
  display: block;
  min-height: 44px;
  line-height: 44px;
  max-width: 42rem;
  margin: 0 auto;
  color: var(--ink);
  text-decoration: none;
}
.policy {
  box-sizing: border-box;
  overflow-wrap: break-word;
  max-width: 42rem;
  margin: 0 auto;
  padding: var(--space-32) var(--space-16) var(--space-64);
}
.policy h1 {
  font-size: clamp(2rem, 1.6rem + 2vw, 2.75rem);
}
.policy h2 {
  margin-top: var(--space-32);
  font-size: 1.5rem;
}
.policy p {
  margin-top: var(--space-12);
}
.policy-updated {
  color: var(--bark);
}

/* /thanks (landing feature 26): the sign-up without JavaScript. */
.thanks {
  box-sizing: border-box;
  max-width: 42rem;
  margin: 0 auto;
  padding: var(--space-32) var(--space-16) var(--space-64);
}
.thanks-picture {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}
.thanks h1 {
  margin-top: var(--space-24);
  font-size: clamp(1.875rem, 1.5rem + 2vw, 2.5rem);
}
.thanks h1 + p {
  margin-top: var(--space-12);
}
.thanks .done-sooner {
  margin-top: var(--space-16);
}
.thanks .back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: var(--space-24);
}

/* From 900 px the single-column pieces sit in the middle of the column. */
@media (min-width: 900px) {
  .day > .small,
  .clip,
  .faq details,
  .final > .cta,
  .final > .sheet-form {
    margin-left: auto;
    margin-right: auto;
  }
}

/* The sheet opening (landing feature 21, kept): on a phone it slides up from
   the bottom; from 600 px it fades in and grows from 0.98. The done state's
   tick fades in and grows from 0.9 over 400 ms. Under reduced motion,
   neither moves. */
@media (prefers-reduced-motion: no-preference) {
  #signup[open] {
    animation: sheet-up 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .sheet-done:not([hidden]) .tick {
    animation: tick-in 400ms ease-out;
  }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 600px) {
  #signup[open] {
    animation: sheet-in 180ms ease-out;
  }
}
@keyframes sheet-up {
  from { transform: translateY(100%); }
}
@keyframes sheet-in {
  from { opacity: 0; transform: scale(0.98); }
}
@keyframes tick-in {
  from { opacity: 0; transform: scale(0.9); }
}

/* Links inside a line of text (the consent words, the privacy answer) get
   their 44 px target (landing feature 32 step 2) from padding above and
   below the words, which leaves the lines' spacing as it is. The focus ring
   is drawn on the words. */
.consent a,
.faq details a {
  position: relative;
  white-space: nowrap;
}
.consent a {
  padding-block: 12px;
}
.faq details a {
  padding-block: 10px;
}
.site-footer a:focus-visible,
.consent a:focus-visible,
.faq details a:focus-visible {
  outline: none;
}
.site-footer a:focus-visible > span {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}
.consent a:focus-visible > span {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.faq details a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
/* The video takes focus (a tap, Enter or Space pauses and plays it). */
.clip-video:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
