/* tovi.kids marketing site
 *
 * The hero and "Everyday moments" band are a fixed 1536-unit composition on
 * desktop (>= 1100px), scaled by --u so the collage keeps its arrangement at
 * every width. Below that they switch to the flowing phone layout. The rest of
 * the page uses ordinary responsive sections.
 */

@property --u {
  syntax: "<length>";
  inherits: true;
  initial-value: 1px;
}

:root {
  --bg: #f4ece0;
  --bg-soft: #f7f0e5;
  --ink: #1c201b;
  --ink-soft: #2c2e29;
  --muted: #5b5a52;
  --green: #15281e;
  --green-hover: #213a2c;
  --sage: #3f6f57;
  --terracotta: #b25c4a;
  --terracotta-light: #e7a28e;
  --card: #faf5ec;
  --card-label: #4f3732;
  --heart: #b8604f;
  --line: #e5dbca;
  --cream: #f3ebdf;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Kalam", "Bradley Hand", cursive;
  --pad: clamp(20px, 6vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

[hidden] { display: none !important; }

img,
svg { display: block; }

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

p,
h1,
h2,
h3,
ul,
ol,
figure { margin: 0; }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  background: var(--green);
  color: var(--cream);
  padding: 10px 16px;
  border-radius: 10px;
}
.skip:focus { left: 12px; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: min(1154px, 100% - 2 * var(--pad)); margin-inline: auto; }

/* ---------- Shared pieces ---------- */

.eyebrow {
  font-weight: 500;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.eyebrow--sm { font-size: 11px; letter-spacing: .3em; line-height: 1.4; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  background: var(--green);
  color: #f6f1e7;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .25s ease, transform .25s ease;
}

.btn:hover { background: var(--green-hover); }
.btn:active { transform: translateY(1px); }

.btn__arrow {
  flex: none;
  width: 1.1em;
  height: 1.1em;
  transition: transform .25s ease;
}

.btn:hover .btn__arrow { transform: translate(2px, -2px); }

.watch {
  display: inline-flex;
  align-items: center;
  color: var(--ink-soft);
  white-space: nowrap;
}

.watch__icon {
  display: grid;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.watch__icon svg { width: 52%; height: 52%; transition: transform .25s ease; }
.watch:hover .watch__icon { background: var(--green); border-color: var(--green); color: #f6f1e7; }
.watch:hover .watch__icon svg { transform: translateY(2px); }

/* Polaroid card. Inner sizes use cqw so every card scales as one object. */
.card {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  container-type: inline-size;
  transform: translate(-50%, -50%) rotate(var(--r));
  transition: translate .45s var(--ease), rotate .45s var(--ease);
}

.card__in {
  background: var(--card);
  border-radius: 4px;
  padding: 6.5cqw 6.5cqw 0;
  box-shadow:
    0 1px 2px rgba(92, 66, 40, .07),
    0 6px 12px -4px rgba(92, 66, 40, .10),
    0 18px 34px -10px rgba(92, 66, 40, .20);
}

.card img {
  width: 100%;
  height: auto;
  aspect-ratio: var(--ar);
  object-fit: cover;
  border-radius: 1px;
}

.card figcaption {
  height: 17.5cqw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1cqw 0 3.2cqw;
}

.card figcaption span {
  font-size: var(--label-size, 5.4cqw);
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--card-label);
  padding-top: 1.4cqw;
}

.card__heart {
  width: 8.2cqw;
  height: 8.2cqw;
  color: var(--heart);
  transition: transform .3s ease, fill .3s ease;
}

.card:hover { translate: 0 -6px; rotate: calc(var(--r) * -.35); z-index: 5; }
.card:hover .card__heart { transform: scale(1.12); fill: rgba(184, 96, 79, .18); }

.note {
  position: absolute;
  font-family: var(--hand);
  font-weight: 300;
  color: #2e2f2b;
  line-height: 1.16;
  transform-origin: 0 0;
  transform: rotate(var(--nr, -15deg));
  white-space: nowrap;
}

.note__heart {
  display: block;
  width: .95em;
  height: .95em;
  margin: .12em 0 0 var(--hx, 2.2em);
}

.note--flow {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: .3em;
  font-size: clamp(19px, 1.8vw, 24px);
  transform-origin: 50% 50%;
  transform: rotate(var(--nr, -3deg));
  white-space: normal;
}

.note__heart--inline { display: inline-block; margin: 0; flex: none; }

.note-arrow { position: absolute; color: #2e2f2b; }

.features { list-style: none; padding: 0; color: var(--ink); }
.features li { display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--ink-soft); }
.features svg { color: var(--ink); }

.moments { background: var(--bg-soft); }
.moments__title { font-family: var(--serif); font-weight: 400; color: var(--ink); }
.moments__title span { color: var(--terracotta); }
.moments__body p { color: var(--ink-soft); }

.arch { overflow: hidden; background: #ebe1d3; }
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }

/* ---------- Header ---------- */

.logo {
  font-weight: 800;
  letter-spacing: -.045em;
  color: var(--green);
  line-height: 1;
}

.logo--nav {
  display: inline-flex;
  align-items: center;
  gap: .3em;
  flex: none;
  white-space: nowrap;
}

.logo__mark {
  width: 1.08em;
  height: 1.08em;
  flex: none;
}

.nav { color: var(--ink-soft); }
.nav a { position: relative; padding: 6px 0; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.nav a:hover::after { transform: scaleX(1); }

/* ---------- Content sections ---------- */

.block { padding-block: clamp(80px, 9vw, 132px); }

.block__head { max-width: 640px; }

.block__title {
  margin-top: 18px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 4.3vw, 60px);
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--ink);
}

.block__title span { color: var(--terracotta); }

.block__sub {
  margin-top: 20px;
  max-width: 54ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
}

/* For every age */
.ages { background: var(--bg); border-top: 1px solid var(--line); }

.ages__list {
  list-style: none;
  padding: 0;
  margin-top: clamp(44px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 26px);
}

.age {
  background: var(--card);
  border-radius: 4px;
  padding: 12px 12px 20px;
  box-shadow:
    0 1px 2px rgba(92, 66, 40, .06),
    0 14px 30px -12px rgba(92, 66, 40, .22);
  transform: rotate(var(--r));
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}

.age:hover { transform: rotate(0deg) translateY(-6px); }

.age__photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 1px; }

.age__range {
  margin-top: 16px;
  padding-inline: 4px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  line-height: 1;
  color: var(--terracotta);
}

.age__name {
  margin-top: 6px;
  padding-inline: 4px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.15;
}

.age__text { margin-top: 8px; padding-inline: 4px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }

.age__try {
  margin-top: 12px;
  padding: 10px 4px 0;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}

.age__try span:first-child { font-weight: 600; color: var(--card-label); }
.age__time { display: block; margin-top: 3px; color: var(--terracotta); }

.ages__note { margin-top: 40px; margin-left: auto; display: flex; width: fit-content; --nr: -3deg; }

/* Why it matters */
.why { background: var(--green); color: var(--cream); }
.why .eyebrow { color: #c9bea9; }
.why .block__title { color: var(--cream); }

.why__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(48px, 7vw, 110px);
  align-items: start;
}

.loop { list-style: none; padding: 0; margin-top: 36px; }

.loop li {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: baseline;
  padding-block: 16px;
  border-top: 1px solid rgba(243, 235, 223, .14);
  font-family: var(--serif);
  font-size: clamp(21px, 1.9vw, 26px);
  line-height: 1.3;
  color: rgba(243, 235, 223, .9);
}

.loop__n { font-style: italic; font-size: .8em; color: var(--terracotta-light); }

.why__break {
  margin-top: 26px;
  font-family: var(--hand);
  font-weight: 300;
  font-size: clamp(30px, 3vw, 40px);
  color: var(--terracotta-light);
  transform: rotate(-3deg);
  transform-origin: left center;
}

.principles {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px 40px;
  margin-top: 8px;
}

.principles li { padding-top: 22px; border-top: 1px solid rgba(243, 235, 223, .22); }
.principles h3 { font-family: var(--serif); font-weight: 400; font-size: 25px; line-height: 1.2; color: var(--cream); }
.principles p { margin-top: 12px; font-size: 15.5px; line-height: 1.6; color: #cfc6b6; }

/* How it works */
.how { background: var(--bg-soft); }

.steps {
  list-style: none;
  padding: 0;
  margin-top: clamp(44px, 5vw, 68px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
}

.step { padding-top: 26px; border-top: 1px solid var(--line); }
.step__n { display: block; font-family: var(--serif); font-style: italic; font-size: 64px; line-height: .9; color: var(--terracotta); }
.step h3 { margin-top: 18px; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.2; }
.step p { margin-top: 12px; font-size: 16px; line-height: 1.6; color: var(--muted); }

.how__note { margin-top: 48px; margin-left: auto; display: flex; width: fit-content; }

/* The app */
.app { background: var(--bg); border-top: 1px solid var(--line); overflow: hidden; }

.app .block__title { font-size: clamp(38px, 3.7vw, 54px); }

.app__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.checks { list-style: none; padding: 0; margin-top: 34px; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; font-size: 16.5px; line-height: 1.45; color: var(--ink-soft); }
.checks svg { width: 22px; height: 22px; color: var(--sage); margin-top: 1px; }

.phones { position: relative; height: clamp(520px, 46vw, 640px); }

.phone { position: absolute; width: 41%; transition: transform .5s var(--ease); }
.phone__frame {
  background: #141714;
  border-radius: 13% / 6%;
  padding: 3.4%;
  box-shadow:
    0 2px 4px rgba(30, 24, 18, .12),
    0 30px 60px -18px rgba(30, 24, 18, .38);
}
.phone__frame img { width: 100%; height: auto; border-radius: 10.5% / 4.9%; }

.phone__cap {
  margin-top: 16px;
  text-align: center;
  font-family: var(--hand);
  font-weight: 300;
  font-size: 19px;
  color: #3a3a34;
  transform: rotate(-3deg);
}

.phone--a { left: 0; top: 9%; transform: rotate(-7deg); z-index: 1; }
.phone--b { left: 29.5%; top: 0; z-index: 3; }
.phone--c { right: 0; top: 11%; transform: rotate(7deg); z-index: 2; }
.phones:hover .phone--a { transform: rotate(-9deg) translateX(-8px); }
.phones:hover .phone--c { transform: rotate(9deg) translateX(8px); }

.note--dark { right: -2%; top: -4%; font-size: clamp(17px, 1.6vw, 21px); --nr: 8deg; --hx: 2.6em; }
@media (max-width: 1099.98px) { .note--dark { right: 3%; top: -7%; --hx: 2em; } }

/* Get Tovi */
.get { background: var(--bg-soft); border-top: 1px solid var(--line); text-align: center; }
.get__in { display: flex; flex-direction: column; align-items: center; }
.get .block__sub { margin-inline: auto; }

.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
  padding: 11px 22px 11px 18px;
  border-radius: 16px;
  background: var(--green);
  color: #f6f1e7;
  text-align: left;
  transition: transform .25s ease, background-color .25s ease;
}
.store svg { width: 26px; height: 26px; flex: none; }
.store i { display: block; font-style: normal; font-size: 11.5px; opacity: .75; }
.store b { display: block; font-size: 18px; font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
.store[href]:hover { background: var(--green-hover); transform: translateY(-2px); }
.store[aria-disabled="true"] { cursor: default; }

.get__trust { margin-top: 20px; font-size: 14px; color: var(--muted); }
.note--get { margin-top: 30px; --nr: -2deg; }

/* About */
.about { background: var(--bg); border-top: 1px solid var(--line); }

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}

.about__h { margin-top: 44px; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.2; }
.faq .about__h { margin-top: 0; margin-bottom: 14px; }
.checks--plain { margin-top: 18px; }

.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  padding: 18px 40px 18px 0;
  list-style: none;
  cursor: pointer;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  translate: 0 -50%;
  font-size: 24px;
  font-weight: 300;
  color: var(--terracotta);
  transition: rotate .3s var(--ease);
}
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding-bottom: 20px; font-size: 15.5px; line-height: 1.6; color: var(--muted); max-width: 56ch; }
.faq details p a { color: var(--terracotta); text-decoration: underline; text-underline-offset: 3px; }

.contact { margin-top: clamp(64px, 7vw, 100px); scroll-margin-top: 24px; }

.contact__card {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(28px, 4vw, 56px);
  background: var(--card);
  border-radius: 28px;
  box-shadow: 0 1px 2px rgba(92, 66, 40, .05), 0 24px 60px -30px rgba(92, 66, 40, .3);
}

.contact__title { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3vw, 40px); line-height: 1.1; }
.contact__intro p { margin-top: 14px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.contact__intro .contact__mail a { color: var(--terracotta); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

.contact__form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact__wide { grid-column: 1 / -1; }
.contact__form label { display: grid; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.contact__form input,
.contact__form select,
.contact__form textarea {
  width: 100%;
  font: inherit;
  font-size: 15.5px;
  font-weight: 400;
  color: var(--ink);
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact__form textarea { min-height: 120px; resize: vertical; }
.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus { outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(178, 92, 74, .15); }

.contact__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.btn--form { height: 48px; gap: 18px; padding: 0 22px 0 26px; font-size: 15px; }
.form-note { flex: 1 1 220px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.form-ok { grid-column: 1 / -1; padding: 12px 16px; border-radius: 12px; background: #e3ecdf; color: #24432f; font-size: 14.5px; }

/* Legal and support pages */
.doc { padding: clamp(40px, 6vw, 72px) 0 clamp(80px, 9vw, 120px); }
.doc__in { width: min(720px, 100% - 2 * var(--pad)); margin-inline: auto; }
.doc h1 { margin-top: 16px; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 60px); line-height: 1.04; letter-spacing: -.02em; }
.doc__updated { margin-top: 14px; font-size: 14px; color: var(--muted); }
.doc h2 { margin-top: 44px; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.2; }
.doc p,
.doc li { font-size: 17px; line-height: 1.65; color: var(--ink-soft); }
.doc h2 + p,
.doc h2 + ul { margin-top: 12px; }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 6px; }
.doc a { color: var(--terracotta); text-decoration: underline; text-underline-offset: 3px; }
.doc .eyebrow--sm { font-size: 11px; line-height: 1.4; color: var(--terracotta); }

/* Footer */
.site-footer { background: var(--green); color: #cfc6b6; padding: clamp(56px, 7vw, 84px) 0 32px; font-size: 15px; }
.site-footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .logo { font-size: 28px; color: var(--cream); }
.site-footer__brand p { margin-top: 14px; max-width: 28ch; line-height: 1.5; }
.site-footer__h { font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--cream); }
.site-footer ul { list-style: none; padding: 0; margin-top: 16px; display: grid; gap: 10px; }
.site-footer a:hover { color: var(--cream); }
.site-footer__fine {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 22px;
  border-top: 1px solid rgba(243, 235, 223, .14);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 24px;
  font-size: 13.5px;
}
.langs { display: flex; gap: 18px; }
.langs button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.langs button[aria-pressed="true"] { color: var(--cream); text-decoration: underline; text-underline-offset: 4px; }
.langs button:hover { color: var(--cream); }

/* Scroll reveals (only when JS is running) */
.js .rv { opacity: 0; translate: 0 22px; transition: opacity .8s var(--ease), translate .8s var(--ease); }
.js .rv.in { opacity: 1; translate: 0 0; }
.js .rv.d1 { transition-delay: .08s; }
.js .rv.d2 { transition-delay: .16s; }
.js .rv.d3 { transition-delay: .24s; }
.js .rv.d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: no-preference) {
  .card { animation: card-in .9s var(--ease) backwards; }
  .card--create { animation-delay: .05s; }
  .card--move { animation-delay: .15s; }
  .card--explore { animation-delay: .25s; }
  .card--learn { animation-delay: .35s; }
  .card--together { animation-delay: .45s; }
  .hero .note, .note-arrow { animation: fade-in 1.2s ease .6s backwards; }
  .hero__copy > * { animation: rise-in .8s var(--ease) backwards; }
  .hero__copy > :nth-child(2) { animation-delay: .08s; }
  .hero__copy > :nth-child(3) { animation-delay: .16s; }
  .hero__copy > :nth-child(4) { animation-delay: .24s; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; translate: none; transition: none; }
}

@keyframes card-in { from { opacity: 0; translate: 0 18px; } }
@keyframes rise-in { from { opacity: 0; translate: 0 10px; } }
@keyframes fade-in { from { opacity: 0; } }

/* ---------- Desktop composition ---------- */

@media (min-width: 1100px) {
  .topbar,
  .hero,
  .moments { --u: min(calc(100cqw / 1536), 1px); }

  .topbar { position: absolute; top: 0; left: 0; right: 0; z-index: 20; }
  .topbar__in { position: relative; width: calc(1536 * var(--u)); height: calc(85 * var(--u)); margin: 0 auto; }

  .site-header {
    position: absolute;
    inset: calc(16 * var(--u)) calc(191 * var(--u)) auto calc(191 * var(--u));
    height: calc(53 * var(--u));
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .logo { font-size: calc(37 * var(--u)); margin-top: calc(-3 * var(--u)); }

  .nav {
    position: absolute;
    left: calc(318 * var(--u));
    display: flex;
    gap: calc(39.5 * var(--u));
    font-size: max(13px, calc(13.6 * var(--u)));
  }

  .btn--header {
    min-width: calc(160 * var(--u));
    height: calc(53 * var(--u));
    gap: calc(22 * var(--u));
    padding: 0 calc(36 * var(--u)) 0 calc(34 * var(--u));
    font-size: calc(16.5 * var(--u));
  }

  .hero {
    position: relative;
    overflow: hidden;
    background:
      radial-gradient(120% 90% at 50% 40%, rgba(255, 252, 244, .55), rgba(255, 252, 244, 0) 60%),
      linear-gradient(180deg, #f5eee2 0%, #f3ebdf 70%, #f2e9dc 100%);
    border-bottom: 1px solid var(--line);
  }

  .hero__decor { position: absolute; inset: 0; pointer-events: none; }
  .decor { position: absolute; height: auto; }
  .decor--left { left: 0; top: 0; width: calc(207 * var(--u)); }
  .decor--right { right: 0; bottom: 0; width: calc(240 * var(--u)); }

  .stage {
    position: relative;
    width: calc(1536 * var(--u));
    height: calc(807 * var(--u));
    margin: 0 auto;
  }

  .hero__copy {
    position: absolute;
    left: calc(193 * var(--u));
    top: calc(137 * var(--u));
    width: calc(450 * var(--u));
  }

  .hero__copy .eyebrow { font-size: calc(11.5 * var(--u)); letter-spacing: .3em; line-height: 1; }

  .hero__title {
    margin-top: calc(46 * var(--u));
    font-family: var(--serif);
    font-weight: 400;
    font-size: var(--title-size, calc(82 * var(--u)));
    line-height: calc(84.5 * var(--u));
    letter-spacing: -.02em;
    color: var(--ink);
    white-space: nowrap;
  }

  .hero__title em { color: var(--terracotta); font-style: italic; font-size: 1.075em; letter-spacing: -.012em; }
  .br-m { display: none; }

  .hero__lede {
    margin-top: calc(9 * var(--u));
    width: calc(428 * var(--u));
    font-size: max(15px, calc(19 * var(--u)));
    line-height: 1.53;
    color: var(--ink-soft);
  }

  .hero__ctas {
    display: flex;
    align-items: center;
    gap: calc(45 * var(--u));
    margin-top: calc(37 * var(--u));
  }

  .btn--hero {
    min-width: calc(188 * var(--u));
    height: calc(56 * var(--u));
    gap: calc(24 * var(--u));
    padding: 0 calc(30 * var(--u)) 0 calc(37 * var(--u));
    font-size: calc(18 * var(--u));
  }

  .watch { gap: calc(16 * var(--u)); font-size: max(14px, calc(16 * var(--u))); }
  .watch__icon { width: calc(37 * var(--u)); height: calc(37 * var(--u)); }

  .collage { position: absolute; inset: 0; }

  .card--create   { --x: calc(774.8 * var(--u));  --y: calc(223.2 * var(--u)); --w: calc(260 * var(--u)); --r: -7.1deg; }
  .card--move     { --x: calc(1208.7 * var(--u)); --y: calc(239.6 * var(--u)); --w: calc(254 * var(--u)); --r: -8.6deg; }
  .card--explore  { --x: calc(778.5 * var(--u));  --y: calc(518.9 * var(--u)); --w: calc(232 * var(--u)); --r: 6.1deg; }
  .card--learn    { --x: calc(1015.9 * var(--u)); --y: calc(570.2 * var(--u)); --w: calc(247 * var(--u)); --r: -5.4deg; }
  .card--together { --x: calc(1288.8 * var(--u)); --y: calc(529 * var(--u));   --w: calc(256 * var(--u)); --r: 4.66deg; }

  .hero .note { font-size: max(14px, calc(21 * var(--u))); }
  .note--little    { left: calc(936 * var(--u));  top: calc(116 * var(--u)); --nr: -14deg; --hx: 2em; }
  .note--childhood { left: calc(1412 * var(--u)); top: calc(54 * var(--u));  --nr: -15deg; --hx: 2.6em; }
  .note--play      { left: calc(1367 * var(--u)); top: calc(218 * var(--u)); --nr: -14deg; --hx: 2.1em; }
  .hero .note--ideas { left: calc(942 * var(--u)); top: calc(318 * var(--u)); --nr: -18deg; font-size: max(14px, calc(22 * var(--u))); line-height: 1.3; }

  .note-arrow {
    left: calc(1014 * var(--u));
    top: calc(364 * var(--u));
    width: calc(28 * var(--u));
    height: calc(66 * var(--u));
  }

  .features li {
    position: absolute;
    top: calc(713 * var(--u));
    transform: translateX(-50%);
    gap: calc(11 * var(--u));
    font-size: max(13px, calc(15 * var(--u)));
    white-space: nowrap;
  }

  .features svg { width: calc(42 * var(--u)); height: calc(42 * var(--u)); }
  .features li:nth-child(1) { left: calc(473 * var(--u)); }
  .features li:nth-child(2) { left: calc(610 * var(--u)); }
  .features li:nth-child(3) { left: calc(767 * var(--u)); }
  .features li:nth-child(4) { left: calc(923 * var(--u)); }
  .features li:nth-child(5) { left: calc(1062 * var(--u)); }

  /* Everyday moments */
  .moments { overflow: hidden; }
  .stage--moments { height: max(calc(228 * var(--u)), 200px); }

  .arch { position: absolute; bottom: 0; }
  .arch--right {
    left: calc(1210 * var(--u));
    top: calc(25 * var(--u));
    width: calc(287 * var(--u));
    border-radius: calc(130 * var(--u)) calc(80 * var(--u)) 0 0;
  }

  .moments__head { position: absolute; left: calc(193 * var(--u)); top: calc(46 * var(--u)); }
  .moments .eyebrow--sm { font-size: calc(10.4 * var(--u)); letter-spacing: .3em; }
  .moments__title {
    margin-top: calc(18 * var(--u));
    font-size: calc(46 * var(--u));
    line-height: calc(46 * var(--u));
    letter-spacing: -.02em;
  }

  .moments__body { position: absolute; left: calc(731 * var(--u)); top: calc(60 * var(--u)); width: max(calc(310 * var(--u)), 260px); }
  .moments__body p { font-size: max(12.5px, calc(14 * var(--u))); line-height: 1.5; }
  .btn--small {
    margin-top: calc(23 * var(--u));
    min-width: calc(186 * var(--u));
    height: max(calc(44 * var(--u)), 36px);
    gap: 16px;
    padding: 0 calc(24 * var(--u)) 0 calc(28 * var(--u));
    font-size: max(12.5px, calc(14 * var(--u)));
  }
  .btn--small .btn__arrow { width: calc(17 * var(--u)); height: calc(17 * var(--u)); }

  .note--same { left: calc(1099 * var(--u)); top: calc(54 * var(--u)); font-size: max(13px, calc(19 * var(--u))); --nr: -15deg; --hx: 2.4em; }

  .doc { padding-top: 150px; }

  /* Portuguese notes run to three lines; shorten the arrow below them. */
  html:lang(pt) .note-arrow { top: calc(392 * var(--u)); height: calc(48 * var(--u)); }
}

/* ---------- Phone & tablet layout ---------- */

@media (max-width: 1099.98px) {
  .topbar__in { max-width: 640px; margin: 0 auto; padding: 18px calc(var(--pad) * .75) 0 var(--pad); }
  .site-header { display: flex; align-items: center; gap: 12px; }
  .logo { font-size: 24px; margin-right: auto; }
  .nav { display: none; }
  .btn--header { height: 40px; padding: 0 16px 0 18px; gap: 16px; font-size: 13px; }

  .hero { background: #f2ede1; overflow: hidden; }
  .hero__decor { display: none; }

  .stage {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 0 44px var(--pad);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42%;
    container-type: inline-size;
  }

  .hero__copy { grid-column: 1; grid-row: 1; padding-top: 52px; position: relative; z-index: 2; }
  .hero__copy .eyebrow { font-size: 10.5px; letter-spacing: .2em; line-height: 1.5; }

  .hero__title {
    margin-top: 22px;
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(38px, 11.8cqw, 66px);
    line-height: 1.02;
    letter-spacing: -.02em;
    color: var(--ink);
    white-space: nowrap;
  }

  .hero__title em { color: var(--terracotta); font-style: italic; }
  .br-d { display: none; }

  .hero__lede { margin-top: 18px; font-size: 15px; line-height: 1.5; color: var(--ink-soft); max-width: 330px; }

  .hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 26px; }
  .btn--hero { height: 44px; padding: 0 16px 0 20px; gap: 24px; font-size: 14.5px; }
  .watch { gap: 9px; font-size: 13px; }
  .watch__icon { width: 28px; height: 28px; }

  .collage { position: relative; container-type: inline-size; }
  .collage--top { grid-column: 2; grid-row: 1; aspect-ratio: 206 / 440; margin-top: 12px; }
  .collage--bottom {
    grid-column: 1 / -1;
    margin-left: calc(var(--pad) * -1);
    margin-top: 3cqw;
    aspect-ratio: 516 / 345;
  }

  .card { --label-size: 6cqw; }
  .card--create   { --x: 48.5cqw; --y: 76.7cqw; --w: 77.7cqw; --r: 12deg; }
  .card--move     { --x: 51.9cqw; --y: 184cqw;  --w: 71.8cqw; --r: -4deg; }
  .card--explore  { --x: 19.6cqw; --y: 23.4cqw; --w: 32cqw;   --r: 3.5deg; }
  .card--learn    { --x: 46.1cqw; --y: 43.4cqw; --w: 31.6cqw; --r: 6.5deg; }
  .card--together { --x: 79.6cqw; --y: 38.6cqw; --w: 34cqw;   --r: -3deg; }

  .note--little,
  .note--childhood,
  .note--play { display: none; }

  .hero .note--ideas { left: 43.6cqw; top: 2.4cqw; font-size: max(13px, 3.6cqw); line-height: 1.3; --nr: -10deg; }
  .note-arrow { left: 54.3cqw; top: 12.2cqw; width: 4.6cqw; height: 10.5cqw; }
  html:lang(pt) .note-arrow { top: 15.6cqw; height: 8cqw; }

  .features {
    grid-column: 1 / -1;
    margin-top: 12cqw;
    padding-right: var(--pad);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
  }
  .features li { gap: 10px; font-size: clamp(10.5px, 2.2cqw, 13px); line-height: 1.3; }
  .features svg { width: clamp(26px, 6cqw, 34px); height: clamp(26px, 6cqw, 34px); }

  /* Everyday moments */
  .moments { border-top: 1px solid var(--line); }
  .stage--moments {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
    padding: 48px var(--pad) 0;
    position: relative;
  }

  .moments__head,
  .moments__body { grid-column: 1 / -1; }
  .moments .eyebrow--sm { font-size: 10px; letter-spacing: .3em; }
  .moments__title { margin-top: 14px; font-size: clamp(38px, 10cqw, 52px); line-height: 1; letter-spacing: -.02em; }
  .moments__body { margin-top: 18px; max-width: 360px; }
  .moments__body p { font-size: 15px; line-height: 1.5; }
  .btn--small { margin-top: 22px; height: 44px; padding: 0 18px 0 22px; gap: 26px; font-size: 14px; }

  .note--same {
    position: relative;
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: end;
    margin: -34px 4px 0 0;
    font-size: 16px;
    --nr: -12deg;
    --hx: 2.4em;
  }

  .arch { margin-top: 28px; height: clamp(150px, 42cqw, 230px); align-self: end; }
  .arch--right { grid-row: 4; grid-column: 1 / -1; height: clamp(190px, 52cqw, 300px); border-radius: 110px 48px 0 0; }

  /* Content sections */
  .ages__list {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 42%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--pad) * -1);
    padding: 12px var(--pad) 28px;
    scrollbar-width: none;
  }
  .ages__list::-webkit-scrollbar { display: none; }
  .age { scroll-snap-align: center; }

  .why__grid,
  .app__grid,
  .about__grid { grid-template-columns: minmax(0, 1fr); }

  .phones { height: auto; aspect-ratio: 1 / 1.05; max-width: 560px; width: 100%; margin-inline: auto; }

  .steps { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .step { display: grid; grid-template-columns: 64px 1fr; column-gap: 12px; padding-block: 24px; }
  .step__n { grid-row: span 2; font-size: 52px; }
  .step h3 { margin-top: 0; }

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

  .site-footer__cols { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 639.98px) {
  .principles { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .contact__form { grid-template-columns: minmax(0, 1fr); }
  .contact__card { border-radius: 22px; }
  .ages__list { grid-auto-columns: 74%; }
}

@media (max-width: 479.98px) {
  .hero__copy .eyebrow { font-size: 9.5px; letter-spacing: .14em; white-space: nowrap; }
  html:lang(pt) .hero__copy .eyebrow { white-space: normal; }
}

