/* Hoot website, brand direction A, "Pickup hour".
   The one bold idea is the voice-message bubble. Text tiles echo it with one
   tight corner: the child's side (bottom left) or the parent's side (bottom right). */

@font-face {
  font-family: "Gabarito";
  src: url("fonts/gabarito-latin.woff2") format("woff2");
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-hyperlegible-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-hyperlegible-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-hyperlegible-400-italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --dusk: #1F2A55;
  --dusk-deep: #172045;
  --dusk-night: #11183A;
  --dusk-raised: #2C3A6E;
  --streetlight: #FFC53D;
  --sky: #EEF2F7;
  --paper: #FFFFFF;
  --slate: #4A5470;
  --mist: #D5DCEA;
  --line: #C9D2E3;
  --talk-red: #E5484D;
  /* Form errors: a deeper red than the talk button, for 4.5:1 text on white. */
  --error: #B42318;
  /* The app's heard tick (Theme.tickHeard): the one green, and only on a tick. */
  --heard: #7CF29A;

  --font-display: "Gabarito", "Avenir Next", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", system-ui, sans-serif;

  --gutter: clamp(16px, 5vw, 40px);
  --band-pad: clamp(64px, 11vw, 112px);
  /* Room left for the pinned header; the header itself stays a little shorter. */
  --header-h: 104px;
  --radius-card: 28px;
  --radius-inner: 20px;
  --tight: 6px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  /* Jump links and keyboard focus land below the pinned header. */
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--dusk);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
}

.page { container-type: inline-size; }

h1, h2, h3, p, figure, dl, dd { margin: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  text-wrap: balance;
  color: inherit;
}
h1 {
  font-size: clamp(36px, 9.5cqi, 60px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.015em;
}
h2 {
  font-size: clamp(28px, 7.4cqi, 40px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
h3 {
  font-size: clamp(19px, 5.2cqi, 21px);
  font-weight: 700;
  line-height: 1.2;
}

/* A heading is made of phrases; a line may break only between them. */
.phrase { white-space: nowrap; }
/* Keeps a hyphenated word whole in body text, e.g. "family-only" in the hero lead. */
.keep { white-space: nowrap; }

p { text-wrap: pretty; }

a { color: inherit; text-underline-offset: 0.18em; }

img, svg { display: block; }

:focus-visible {
  outline: 3px solid var(--streetlight);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--dusk);
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Single-column grids never grow past their container on narrow screens. */
.hero__copy, .voice--hero, .problem .wrap, .step, .scene, .trust__layout, .trust__intro,
.tiles, .tile, .ages__grid, .card,
.app__head, .app__layout, .family__layout, .family__copy, .compare__grid,
.waitlist__inner, .waitlist__bubble, .reply__bubble {
  grid-template-columns: minmax(0, 1fr);
}

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 860px; }

.band { padding-block: var(--band-pad); }
.band--sky { background: var(--sky); }
.band--dusk { background: var(--dusk); color: var(--paper); }

.lead {
  font-size: clamp(19px, 4.8cqi, 21px);
  line-height: 1.55;
  color: var(--slate);
  max-width: 34em;
}
.band--dusk .lead { color: var(--mist); }

/* ---------- Buttons ---------- */

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 30px;
  border-radius: 999px;
  background: var(--streetlight);
  color: var(--dusk);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}
.cta:hover { background: #FFD466; }
.cta--small { min-height: 44px; padding: 0 20px; font-size: 16px; }
button.cta { border: 0; cursor: pointer; font-family: var(--font-display); }
button.cta--quiet { background: transparent; border: 2px solid var(--dusk); }
.cta--quiet:hover { background: var(--sky); }

.cta-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(10px, 3.2cqi, 20px);
}
.cta-row .cta {
  flex: 0 0 auto;
  font-size: clamp(16px, 5.2cqi, 19px);
  padding-inline: clamp(18px, 6cqi, 30px);
}
.cta-row__note {
  flex: 0 1 auto;
  white-space: nowrap;
  font-weight: 700;
  font-size: clamp(14px, 4.4cqi, 17px);
  color: var(--paper);
}

.round-btn {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--dusk);
  background: var(--paper);
  color: var(--dusk);
  cursor: pointer;
}
.round-btn--solid { background: var(--dusk); color: var(--paper); }
.round-btn:disabled { opacity: 0.4; cursor: default; }
/* Without JavaScript the arrows would do nothing, so they stay out of sight. */
html:not(.js) .how__controls { visibility: hidden; }

/* ---------- Imagery ---------- */

/* A photo sits in a soft frame; the ground shows while it loads. */
.shot {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-inner);
  background: var(--mist);
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.band--dusk .shot,
.product--main .shot { background: var(--dusk-raised); }

/* The parent app in a plain phone frame. */
.phone {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(46%, 252px);
}
.phone__body {
  width: 100%;
  padding: 6px;
  border-radius: 40px;
  background: var(--dusk);
  box-shadow:
    inset 0 0 0 1.5px #3A4880,
    0 30px 50px -28px rgb(31 42 85 / 0.55);
}
.phone__screen {
  width: 100%;
  height: auto;
  border-radius: 34px;
}
.phone figcaption {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--slate);
  text-align: center;
}

/* ---------- Masthead ---------- */

/* The strip and the header stay pinned while the page scrolls. */
.masthead {
  position: sticky;
  top: 0;
  z-index: 5;
  padding-block: 0;
  box-shadow: 0 1px 0 var(--dusk-raised);
}
.strip {
  margin: 0;
  padding: 5px var(--gutter);
  /* Darker than the header, with a gold rule under it, so it reads as its own line
     above the navy header and hero. */
  background: var(--dusk-night);
  color: var(--mist);
  box-shadow: inset 0 -2px 0 var(--streetlight);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}
.made-in { white-space: nowrap; }
/* On short screens (landscape phones, heavy zoom) a pinned header would take too much room. */
@media (max-height: 500px) {
  .masthead { position: relative; }
  :root { --header-h: 0px; }
}
.masthead__inner {
  padding-block: 12px;
  display: flex;
  align-items: center;
  gap: clamp(8px, 2.6cqi, 16px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  text-decoration: none;
  margin-right: auto;
}
.brand__word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 27px;
  line-height: 1;
  text-transform: lowercase;
  letter-spacing: -0.01em;
}
.masthead__nav { display: none; }
.masthead__nav a {
  color: var(--mist);
  text-decoration: none;
  font-size: 16px;
}
.masthead__nav a:hover { color: var(--paper); text-decoration: underline; }

/* Below 860px the jump links fold into a menu. It is a native disclosure, so
   it opens without JavaScript; main.js closes it once a link is chosen. The
   panel drops over the hero rather than pushing it down. */
.menu__toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--dusk-raised);
  color: var(--paper);
  cursor: pointer;
  list-style: none;
}
.menu__toggle::-webkit-details-marker { display: none; }
.menu__toggle:hover { border-color: var(--mist); }
.menu__icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}
.menu__cross,
.menu[open] .menu__bars { display: none; }
.menu[open] .menu__cross { display: inline; }
.menu[open] .menu__toggle { background: var(--paper); border-color: var(--paper); color: var(--dusk); }
.menu__panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: grid;
  padding: 4px var(--gutter) 20px;
  background: var(--dusk);
  border-bottom: 1px solid var(--dusk-raised);
  box-shadow: 0 24px 40px -24px rgb(10 14 30 / 0.7);
  /* The header is pinned, so a long panel scrolls inside itself. */
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
}
.menu__panel a {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-top: 1px solid var(--dusk-raised);
  color: var(--paper);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
}
.menu__panel a:first-child { border-top: 0; }
.menu__panel a:hover { color: var(--streetlight); }

/* On the narrowest phones the brand, the button and the menu share 288px. */
@media (max-width: 389.98px) {
  .brand { gap: 8px; }
  .brand__mark { width: 32px; height: 32px; }
  .brand__word { font-size: 24px; }
  .masthead .cta--small { padding: 0 14px; font-size: 15px; }
}

@media (min-width: 860px) {
  .masthead__inner { padding-block: 14px; }
  .masthead__nav { display: flex; gap: 28px; margin-right: 12px; }
  .menu { display: none; }
}

/* ---------- Voice bubble ---------- */

.voice__player {
  display: flex;
  align-items: center;
  gap: 14px;
}
.voice__play {
  flex: 0 0 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--streetlight);
  display: grid;
  place-items: center;
}
.voice__play svg { margin-left: 3px; }
.voice__wave { flex: 1 1 0; min-width: 0; height: 40px; }
.voice__bars { fill: var(--line); }
.voice__bars--played { fill: var(--dusk); }
.voice__time {
  /* Gabarito, for its open zero; the body face draws a slashed one. */
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--slate);
  font-variant-numeric: tabular-nums;
}

/* ---------- Bubble meta ----------
   The parent app's meta line (ThreadView.swift metaLine): "Sender · time · New/Heard"
   on someone else's bubble, "Sender · time" and ticks on your own, with the state
   word in small grey under your own bubble. Caption-sized against the words. */

.meta {
  display: block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0;
  /* The app sets meta a size below the words at 0.75 opacity; these are that look
     as solid colours that keep 4.5:1 contrast (5.0:1 on sky, 6.4:1 on dusk). */
  color: #5E6782;
  font-variant-numeric: tabular-nums;
}
.bubble--parent .meta { color: #A8B0C5; }
.meta time { white-space: nowrap; }
.tick {
  display: inline-block;
  width: 16px;
  height: 9px;
  margin-left: 3px;
  vertical-align: 0;
  color: rgb(255 255 255 / 0.6);
}
.tick--heard { color: var(--heard); }
.state {
  align-self: flex-end;
  margin-top: -5px;
  padding-right: 6px;
  font-size: 12px;
  line-height: 1.3;
  color: #5E6782;
}

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

.hero {
  padding-block: clamp(20px, 5vw, 48px) var(--band-pad);
  /* The streetlight: one warm pool of light over the dusk band. */
  --glow-at: 70% 78%;
  background:
    radial-gradient(circle at var(--glow-at), rgb(255 197 61 / 0.16), rgb(255 197 61 / 0) 42%),
    var(--dusk);
}
.hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(40px, 6vw, 64px);
  align-items: center;
}
.hero__copy {
  display: grid;
  gap: 28px;
  justify-items: start;
}
.voice--hero {
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: 580px;
  padding: clamp(18px, 5cqi, 28px) clamp(20px, 5.5cqi, 32px) clamp(22px, 6cqi, 34px);
  background: var(--paper);
  color: var(--dusk);
  border-radius: 32px 32px 32px var(--tight);
  box-shadow: 0 24px 60px -30px rgb(255 197 61 / 0.35);
}
/* "A little more freedom." is about 9.6em wide and stays on one line, so the hero heading
   is sized from the card itself (10cqi = a tenth of the card's content width): about 25px at
   320 and at most 50px. The card is a container only for the heading; its own padding still
   resolves against .page, and nothing else inside it uses container units. */
.voice--hero { container-type: inline-size; }
#hero-title { font-size: clamp(24px, 10cqi, 50px); }
.hero .lead { max-width: 30em; }
.shot--hero {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-card);
  box-shadow: 0 40px 80px -40px rgb(0 0 0 / 0.6);
}
.shot--hero img { object-position: 50% 50%; }
/* One column below 960 px: capped so a tablet's hero is no taller than the old square one. */
@media (max-width: 959.98px) {
  .shot--hero { max-width: 576px; margin-inline: auto; }
}
/* The story loop (main.js initHeroVideo) sits over the still, which is its poster too. */
.shot__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shot__pause {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgb(23 32 69 / 0.72);
  color: var(--paper);
  cursor: pointer;
}

/* The single orchestrated moment: the hero message plays its three seconds once. */
.voice__progress {
  transform-box: fill-box;
  transform-origin: 0 50%;
  animation: voice-play 3s linear 0.5s both;
}
@keyframes voice-play {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* The hero waveform breathes: each bar slowly rises and falls about its own centre, in four
   staggered groups, so a soft wave travels along it. Transform only; the bars never grow
   past their resting height, so they stay inside the bubble. Only the hero's inline bars
   move: the other bubbles draw theirs with <use>. Reduced motion stops it (see the end). */
.voice--hero .voice__bars rect {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: voice-breathe 2.8s ease-in-out infinite;
}
.voice--hero .voice__bars rect:nth-child(4n + 2) { animation-delay: -0.7s; }
.voice--hero .voice__bars rect:nth-child(4n + 3) { animation-delay: -1.4s; }
.voice--hero .voice__bars rect:nth-child(4n + 4) { animation-delay: -2.1s; }
.voice--hero .voice__bars rect:nth-child(3n + 1) { animation-duration: 3.1s; }
@keyframes voice-breathe {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.55); }
}

@media (min-width: 960px) {
  .hero { --glow-at: 78% 45%; }
  .hero__layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
}

/* ---------- The problem ---------- */

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

/* ---------- How it works ---------- */

.how__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 24px;
  margin-bottom: clamp(28px, 4vw, 40px);
}
.how__head h2 { max-width: 18em; }
.how__controls { display: flex; gap: 10px; }

.steps {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  /* Stays inside the page column like every other section; the next step peeks in
     at the column's edge. */
  padding-block: 4px;
}
.steps::-webkit-scrollbar { display: none; }
/* main.js marks a row whose edge cuts a card and sets the fade to that card's visible strip. */
.steps[data-more-after] {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - var(--fade-after)), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - var(--fade-after)), transparent);
}
.steps[data-more-before] {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--fade-before));
  mask-image: linear-gradient(to right, transparent, #000 var(--fade-before));
}
.steps[data-more-before][data-more-after] {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--fade-before), #000 calc(100% - var(--fade-after)), transparent);
  mask-image: linear-gradient(to right, transparent, #000 var(--fade-before), #000 calc(100% - var(--fade-after)), transparent);
}
.step {
  flex: 0 0 min(86%, 420px);
  scroll-snap-align: center;
  display: grid;
  align-content: start;
  gap: 20px;
  padding: 12px 12px 26px;
  border-radius: var(--radius-card);
  background: var(--sky);
}
.shot--step { aspect-ratio: 4 / 3; }
.step__text {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-inline: 10px;
}
.step__text p { color: var(--slate); margin-top: 6px; }
/* Who acts in this step: a quiet tag, warm for the child (the streetlight
   colour of their device) and plain white for you, so the loop reads child,
   you, you, child at a glance without leaning on colour alone. */
.step__text .step__who {
  display: inline-block;
  margin: 0 0 8px;
  padding: 2px 10px;
  border-radius: 999px;
  color: var(--dusk);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}
.step__who--child { background: #FFE6A3; }
.step__who--parent { background: var(--paper); box-shadow: inset 0 0 0 1px #CBD3E1; }
.step__num {
  flex: 0 0 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--streetlight);
  color: var(--dusk);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
}
.dots {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin-top: 16px;
}
/* A 44px target around a small marker: hollow for the steps still to come,
   a filled bar for the one you are on, so it never rests on colour alone. */
.dots__dot {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.dots__dot::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 6px;
  border: 2px solid var(--slate);
  transition: width 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.dots__dot[aria-current="true"]::before {
  width: 28px;
  background: var(--dusk);
  border-color: var(--dusk);
}

/* ---------- Everyday scenes ---------- */

.scenes h2 { margin-bottom: clamp(28px, 4vw, 40px); }
.scenes__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}
.scene {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 12px 12px 22px;
  border-radius: var(--radius-card);
  background: var(--paper);
}
.shot--scene { aspect-ratio: 4 / 3; }
.scene h3 { padding-inline: 8px; }
.chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-inline: 4px;
}
.bubble {
  max-width: 88%;
  padding: 11px 16px 12px;
  font-size: 17px;
  line-height: 1.4;
}
.bubble--kid {
  align-self: flex-start;
  background: var(--sky);
  border-radius: 20px 20px 20px var(--tight);
}
.bubble--parent {
  align-self: flex-end;
  background: var(--dusk);
  color: var(--paper);
  border-radius: 20px 20px var(--tight) 20px;
}

/* ---------- Trust ---------- */

/* The heading and lead run across the section, as in the others; below them the
   screens sit beside the tiles on wide screens. */
.trust__intro {
  display: grid;
  gap: 22px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.trust__layout {
  display: grid;
  gap: clamp(40px, 6vw, 64px);
  align-items: start;
}

/* Hoot's own screens, one at a time: swipe, the arrows or the dots step through them. */
.devices { width: min(100%, 460px); }
.devices__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.devices__track::-webkit-scrollbar { display: none; }
.devices__item {
  flex: 0 0 100%;
  scroll-snap-align: start;
}
/* The CoreS3 itself, cut from the studio photo; the CAT-M module beside it fades out. */
.screen { display: grid; gap: 10px; }
.screen img { display: block; width: 100%; height: auto; }
.screen figcaption {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
}
.devices__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.devices__controls .dots { margin-top: 0; }
html:not(.js) .devices__controls { visibility: hidden; }

.tiles {
  display: grid;
  gap: 14px;
  align-content: start;
}
.tile {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 22px 22px 24px;
  background: var(--sky);
  border-radius: 24px 24px 24px var(--tight);
}
.tile p { color: var(--slate); }
.tile__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--streetlight);
  margin-bottom: 6px;
}

@media (min-width: 620px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Three trust cards: the last one takes the full row rather than sitting alone in half of it. */
  .tiles--trust > .tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 1020px) {
  .trust__layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

/* ---------- Ages ---------- */

.ages h2 { margin-bottom: clamp(28px, 4vw, 40px); }
.ages__grid { display: grid; gap: 20px; }
.card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 12px 12px 26px;
  border-radius: var(--radius-card);
  background: var(--paper);
}
.card h3, .card p { padding-inline: 10px; }
.card p { color: var(--slate); }
.shot--age { aspect-ratio: 16 / 10; }
@media (min-width: 760px) {
  .ages__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Parent app ---------- */

.app__head {
  display: grid;
  gap: 12px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.app__layout {
  display: grid;
  gap: clamp(40px, 5vw, 56px);
  align-items: center;
}
.app__phones {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
}
.phone + .phone { margin-top: 56px; }

@media (min-width: 1020px) {
  .app__layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

/* ---------- Family ---------- */

.family__layout {
  display: grid;
  gap: clamp(36px, 6vw, 56px);
  align-items: center;
}
.family__copy { display: grid; gap: 20px; }
/* "Every kid. Every caregiver." stays on one line; "One family." follows. */
.h2--fit .phrase { display: block; }
@media (max-width: 374.98px) {
  .h2--fit { font-size: clamp(22px, 7.4cqi, 28px); }
}
/* Owner: one beat per line. The longer beat, about 9.8em, fits at the usual h2 size. */
.problem .lead { text-wrap: pretty; }
.family__map {
  padding: clamp(12px, 4cqi, 32px);
  border-radius: var(--radius-card);
  background: var(--paper);
}
.family__svg { width: 100%; height: auto; overflow: visible; }
.family__ring { fill: none; stroke: var(--line); stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; }
.family__spokes path { fill: none; stroke: var(--line); stroke-width: 2; }
.family__hub circle { fill: var(--dusk); }
.family__node > circle { fill: var(--sky); stroke: var(--line); stroke-width: 1.5; }
.family__node text {
  fill: var(--dusk);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  text-anchor: middle;
  /* A halo in the panel's own colour, so the dashed ring stops short of a label
     instead of running through it. */
  paint-order: stroke;
  stroke: var(--paper);
  stroke-width: 8px;
  stroke-linejoin: round;
}
.family__phone { fill: var(--dusk); }
.family__phone-screen { fill: var(--paper); }
.family__phone-msg { fill: var(--line); }
.family__phone-msg--me { fill: var(--streetlight); }
.family__device { fill: #D3D8E0; stroke: #B5BCC8; stroke-width: 1; }
.family__device-screen { fill: var(--dusk); }
.family__device-talk { fill: var(--streetlight); }
.family__base { fill: #4C9FDA; }
.family__catm { fill: #4A5470; }
.family__antenna { fill: var(--dusk); }

@media (min-width: 1020px) {
  /* Wide enough for the heading's first line at full size. */
  .family__layout { grid-template-columns: minmax(480px, 5fr) minmax(0, 6fr); }
}

/* ---------- Compare ---------- */

.compare h2 { margin-bottom: clamp(28px, 4vw, 40px); }
.compare__grid {
  display: grid;
  gap: 20px;
  align-items: stretch;
}
.product {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 12px 22px;
  border-radius: 32px;
  /* On a white band. An outline, not a sky fill: the photo's own backdrop is sky, and its
     frame would vanish into a sky card. */
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.product--main { background: var(--dusk); color: var(--paper); box-shadow: none; }
.product__badge {
  position: absolute;
  z-index: 1;
  top: 26px;
  /* Top right: top left sat over the antenna in the product photo. */
  right: 26px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--streetlight);
  color: var(--dusk);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
}
.shot--product { aspect-ratio: 4 / 3; margin-bottom: 10px; background: var(--sky); }
.product h3,
.product__pitch,
.facts { margin-inline: 12px; }
.product h3 {
  font-size: clamp(32px, 8.6cqi, 44px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.015em;
}
.product__pitch { font-size: 19px; color: var(--slate); }
.product--main .product__pitch { color: var(--mist); }
.facts { margin-top: 8px; }
.facts > div {
  padding-block: 12px;
  border-top: 1px solid var(--line);
}
.product--main .facts > div { border-top-color: var(--dusk-raised); }
.facts dt { font-size: 15px; color: var(--slate); }
.product--main .facts dt { color: var(--mist); }
/* Balanced lines, so a narrow card never leaves "Fi" alone after "Wi-". */
.facts dd { font-weight: 700; text-wrap: balance; }

@media (min-width: 820px) {
  .compare__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- FAQ ---------- */

.faq h2 { margin-bottom: 20px; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(19px, 5.2cqi, 21px);
  line-height: 1.3;
  text-wrap: balance;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: 0 0 32px;
  height: 32px;
  border-radius: 50%;
  background:
    linear-gradient(var(--dusk), var(--dusk)) center / 14px 2px no-repeat,
    linear-gradient(var(--dusk), var(--dusk)) center / 2px 14px no-repeat,
    var(--paper);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  padding-bottom: 22px;
  max-width: 60ch;
  color: var(--slate);
}

/* ---------- Final call to action: the reply bubble ---------- */

.waitlist__inner {
  display: grid;
  gap: 28px;
  justify-items: start;
}
.waitlist__msg {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  width: 100%;
}
@media (min-width: 520px) {
  .waitlist__msg { flex-direction: row; gap: 14px; }
}
.waitlist__bubble {
  flex: 1 1 auto;
  display: grid;
  gap: 14px;
  padding: clamp(22px, 6cqi, 36px);
  background: var(--paper);
  color: var(--dusk);
  border-radius: 32px 32px var(--tight) 32px;
}
.waitlist__bubble .lead { color: var(--slate); }
.waitlist__mark { flex: 0 0 auto; width: clamp(40px, 10cqi, 56px); height: auto; aspect-ratio: 1; }

/* ---------- Waitlist dialog: the same reply bubble, picked up and held in front ---------- */

.reply {
  width: min(568px, calc(100% - 2 * var(--gutter)));
  max-width: none;
  max-height: calc(100% - 2 * var(--gutter));
  margin: auto;
  /* The padding leaves room for the bubble's streetlight ring, which the
     scrolling box would otherwise clip. */
  padding: 4px;
  border: 0;
  background: transparent;
  color: var(--dusk);
  /* On a very short screen (400% zoom, landscape) the content scrolls inside
     the dialog instead of running off the bottom of the viewport. */
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.reply::backdrop {
  background: rgba(23, 32, 69, 0.84);
}
.reply__msg {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
@media (min-width: 520px) {
  .reply__msg { flex-direction: row; gap: 14px; }
}
.reply__bubble {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 14px;
  padding: clamp(24px, 6vw, 36px);
  background: var(--paper);
  border-radius: 32px 32px var(--tight) 32px;
  /* The pool of streetlight from the page, once more, behind the words. */
  box-shadow: 0 0 0 4px var(--streetlight);
}
.reply__body { color: var(--slate); }
.reply__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}
.reply__result {
  display: block;
  padding: 12px 16px;
  border-radius: var(--radius-inner);
  background: var(--sky);
  color: var(--dusk);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.reply__result:empty { display: none; }
.reply__result[data-state="shown"] { user-select: all; }
.reply__mark { flex: 0 0 auto; width: clamp(40px, 12vw, 56px); height: auto; aspect-ratio: 1; }

/* ---------- The waitlist form, inside the same bubble ---------- */

.reply__view { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.reply__view[hidden] { display: none; }
.reply__small { font-size: 14px; line-height: 1.45; color: var(--slate); }

.join { gap: 18px; }
.field { display: grid; gap: 6px; }
.field__label { font-weight: 700; font-size: 17px; }
.field__optional { font-weight: 400; color: var(--slate); }
.field__input {
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  color: var(--dusk);
  font: inherit;
  font-size: 17px;
}
.field__input:focus-visible { border-color: var(--dusk); }
.field__input--short { width: 8.5em; letter-spacing: 0.08em; text-transform: uppercase; }
.field__input[aria-invalid="true"] { border-color: var(--error); }
.field__why { font-size: 15px; line-height: 1.45; color: var(--slate); }
.field__error, .join__failed { font-weight: 700; font-size: 15px; line-height: 1.45; color: var(--error); }
.field__error:empty { display: none; }
/* Kept in the layout while empty, so screen readers announce it when the text arrives;
   the negative margin cancels the form's gap. */
.join__failed:empty { margin-top: -18px; }

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius-inner);
  background: var(--sky);
  font-size: 16px;
  line-height: 1.45;
  cursor: pointer;
}
.consent input { flex: 0 0 auto; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--dusk); }

/* Off screen rather than display:none, which some bots skip. */
.join__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* The app's "heard" ticks, on the navy they are drawn for. */
.heard {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 10px;
  border-radius: 999px;
  background: var(--dusk);
  color: var(--paper);
  font-weight: 700;
  font-size: 15px;
}
.heard__tick { width: 16px; height: 9px; color: var(--heard); }
.done__title:focus { outline: none; }

@media (prefers-reduced-motion: no-preference) {
  .reply[open] .reply__msg { animation: reply-in 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.1); transform-origin: 100% 100%; }
  .reply[open]::backdrop { animation: reply-fade 0.2s ease; }
}
@keyframes reply-in {
  from { opacity: 0; transform: translateY(14px) scale(0.94); }
}
@keyframes reply-fade {
  from { opacity: 0; }
}

/* ---------- Privacy page ---------- */

.hero--page { padding-block: clamp(32px, 6vw, 64px) clamp(48px, 8vw, 80px); }
.pill {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 999px;
  background: var(--streetlight);
  color: var(--dusk);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
}
.doc { padding-block: clamp(40px, 7vw, 72px) var(--band-pad); }
.doc__section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding-block: clamp(24px, 4vw, 36px);
  border-top: 1px solid var(--line);
}
.doc__section h2 { font-size: clamp(24px, 6.4cqi, 30px); }
.doc__body { display: grid; gap: 14px; max-width: 36em; }
.doc__body ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.doc__body li::marker { color: var(--streetlight); }
.doc__body a { font-weight: 700; }

@media (min-width: 860px) {
  .doc__section { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px; }
}

/* ---------- Footer ---------- */

/* A page shorter than the screen (404) stretches its hero so no bare paper shows below the footer. */
.page--short { min-height: 100svh; display: flex; flex-direction: column; }
.page--short main { flex: 1; display: flex; flex-direction: column; }
.page--short main > .hero { flex: 1; }

.footer {
  background: var(--dusk-deep);
  color: var(--mist);
  padding-block: 32px;
  font-size: 15px;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 24px;
}
/* Gabarito for the year: the body face draws a slashed zero. */
.footer__copy { font-family: var(--font-display); }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer a { color: var(--mist); }
.footer a:hover { color: var(--paper); }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  html, .steps, .devices__track { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
