/* Colours from the app's asset catalog (Background, Ink, SecondaryInk, Surface, Coral). */
:root {
  color-scheme: light dark;
  --bg: #fbf8f0; --fg: #243c39; --muted: #596c66; --surface: #fff; --coral: #b84335; --link: #b84335;
  --band: #243c39; --band-fg: #f9f7ef;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #182b29; --fg: #f9f7ef; --muted: #bacac3; --surface: #243c39; --coral: #f29a8c; --link: #f29a8c; --band: #f9f7ef; --band-fg: #243c39; }
}
body {
  margin: 0; padding: 2rem 1rem 4rem; color: var(--fg); background: var(--bg);
  font: 17px/1.55 ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
main { max-width: 42rem; margin: 0 auto; }
nav { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 2rem; }
nav a:first-child { font-weight: 700; margin-inline-end: auto; }
/* Privacy and terms: the language menu opens under the whole nav, so it stays on screen when the nav wraps on phones */
nav { position: relative; align-items: center; }
nav .lang { position: static; }
a { color: var(--link); }
h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 .5rem; }
h2 { font-size: 1.25rem; margin: 2rem 0 .5rem; }
.muted, footer { color: var(--muted); font-size: .9rem; }
footer { margin-top: 3rem; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }

/* Home (sales + support) page */
.home { padding-top: 1rem; }
.home > :is(header, main, footer) { max-width: 68rem; margin-inline: auto; }
.home h1, .home h2, .home h3 { font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
.home h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.1; margin: 0 0 1rem; }
.home h3 { font-size: 1.25rem; margin: 0 0 .35rem; }
.home section { margin-block: clamp(3.5rem, 9vw, 6.5rem); }
.home img { max-width: 100%; height: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--muted); margin: 0 0 .5rem; }
[dir="rtl"] .eyebrow { letter-spacing: 0; } /* spacing splits Arabic's joined letters */
:lang(ja) :is(h1, h2, h3) { word-break: auto-phrase; } /* no mid-word breaks in Japanese headlines (Chrome) */
.lede { font-size: 1.2rem; color: var(--muted); max-width: 36rem; text-wrap: pretty; } /* no lone last word */

.top { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .4rem; margin-inline-end: auto; font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; color: var(--fg); text-decoration: none; }
.brand svg { fill: var(--coral); }
.top > a:not(.brand) { padding-block: .7rem; color: var(--fg); font-weight: 600; text-decoration: none; }

.lang { position: relative; }
.lang summary { display: flex; align-items: center; gap: .4rem; cursor: pointer; list-style: none; padding: .6rem .9rem; border-radius: 999px; background: var(--surface); font-weight: 600; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.lang ul { position: absolute; z-index: 10; inset-inline-end: 0; top: calc(100% + .5rem); margin: 0; padding: .5rem; list-style: none;
  columns: 2; column-gap: .25rem; width: max-content; max-width: calc(100vw - 2rem); box-sizing: border-box;
  background: var(--surface); border-radius: 1.25rem; box-shadow: 0 12px 40px rgb(0 0 0 / .18); }
.lang a { display: block; padding: .6rem .75rem; border-radius: .6rem; color: var(--fg); text-decoration: none; white-space: nowrap; }
.lang a:hover { background: var(--bg); }
.lang a[aria-current] { font-weight: 700; color: var(--coral); }
@media (max-width: 30rem) { .lang a { white-space: normal; } } /* long names wrap instead of running into the next column */

.home .hero { display: grid; gap: 2.5rem; align-items: center; margin-block: 2rem 0; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.25rem); line-height: 1.03; margin: .25rem 0 1.25rem; }
.badge { display: inline-block; margin-top: .75rem; }
.badge img { display: block; height: 3.4rem; width: auto; }
.note { color: var(--muted); font-size: .95rem; margin-top: .75rem; text-wrap: pretty; }
.art { position: relative; width: min(72%, 19rem); margin-inline: auto; }
/* The phone: a frame drawn around the app screenshot, in the proportions of an iPhone with Face ID */
.art .phone { position: relative; padding: 4%; border-radius: 18% / 8.7%; background: #243c39; rotate: 3deg; filter: drop-shadow(0 24px 28px rgb(36 60 57 / .22)); }
.art .phone::before { content: ""; position: absolute; top: 3.9%; left: 50%; translate: -50% 0; width: 28%; aspect-ratio: 7 / 2; border-radius: 99px; background: #243c39; }
.art .phone img { display: block; width: 100%; border-radius: 15.2% / 7%; }
.art .sticker { position: absolute; width: 40%; inset-inline-start: -22%; bottom: 6%; rotate: -10deg; }
@media (min-width: 52rem) { .home .hero { grid-template-columns: 1.15fr .85fr; } }
@media (prefers-reduced-motion: no-preference) {
  .art .sticker { animation: bob 2.6s ease-in-out infinite alternate; }
  @keyframes bob { to { translate: 0 -4%; } }
}

.story { display: grid; gap: 1.5rem 3rem; align-items: start; background: var(--surface); border-radius: 2.5rem; padding: clamp(1.5rem, 5vw, 3.5rem); }
.story > img { width: 8rem; }
.story p { font-size: 1.15rem; max-width: 38rem; }
.story .beat { font-size: clamp(1.35rem, 3vw, 1.6rem); font-weight: 800; letter-spacing: -.01em; margin-block: 1.5rem; }
.story blockquote { margin: 2rem 0 1.25rem; padding-inline-start: 1.25rem; border-inline-start: 5px solid #bca8ef; font-size: clamp(1.35rem, 3vw, 1.75rem); font-weight: 800; line-height: 1.25; letter-spacing: -.01em; max-width: 34rem; }
.story .signoff { font-weight: 700; margin-bottom: 0; }
.story .signoff::before { content: "— "; }
@media (min-width: 52rem) { .story { grid-template-columns: 12rem 1fr; } .story > img { width: 100%; position: sticky; top: 2rem; } }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; padding: 0; margin: 0; list-style: none; counter-reset: step; }
.steps li { background: var(--surface); border-radius: 1.75rem; padding: 1.5rem 1.5rem 1.25rem; }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-bottom: 1rem; border-radius: 50%; background: var(--coral); color: var(--bg); font-weight: 800; font-size: 1.25rem; }
.steps p { margin: 0; color: var(--muted); }
/* AR section: the app's "AR" chip above the heading, then a real child's open mouth beside the three points */
.ar-chip { display: inline-block; margin-bottom: .75rem; padding: .3em .45em; border-radius: .45em; background: color-mix(in srgb, var(--fg) 7%, transparent); font-weight: 800; line-height: 1; }
.ar { display: grid; gap: 2rem 3rem; align-items: center; }
.ar > img { display: block; border-radius: 1.75rem; }
.ar ul { display: grid; gap: 1.5rem; padding: 0; margin: 0; list-style: none; }
.ar p { margin: 0; color: var(--muted); max-width: 34rem; }
@media (min-width: 52rem) { .ar { grid-template-columns: 18.75rem 1fr; } } /* the photo's 300 px */

.worlds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; padding: 0; margin: 2rem 0 0; list-style: none; }
.worlds li { display: flex; flex-direction: column; gap: .5rem; padding: 1rem 1rem 1.25rem; border-radius: 1.75rem; background: var(--tint); color: #243c39; }
.worlds span { font-weight: 700; line-height: 1.25; }
@media (min-width: 40rem) { .worlds { grid-template-columns: repeat(4, 1fr); } }

.privacy { background: var(--band); color: var(--band-fg); border-radius: 2.5rem; padding: clamp(1.5rem, 5vw, 3.5rem); }
.privacy p { font-size: 1.15rem; max-width: 40rem; }
.privacy ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: .75rem 2rem; padding: 0; margin: 1.75rem 0; list-style: none; }
.privacy li { display: flex; gap: .6rem; font-weight: 600; }
.privacy li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #81d8b1; color: #243c39; font-size: .85rem; font-weight: 800; }
.privacy a { color: var(--band-fg); font-weight: 700; }
.privacy :focus-visible { outline-color: currentColor; }

.help { display: grid; gap: 2.5rem; }
.help h3 { margin: 2rem 0 0; color: var(--muted); }
.help h2 + h3 { margin-top: .5rem; }
.help details { border-bottom: 1px solid color-mix(in srgb, var(--muted) 30%, transparent); }
.help summary { cursor: pointer; padding: 1rem 0; font-weight: 700; font-size: 1.1rem; }
.help details p { margin: 0 0 1.25rem; color: var(--muted); max-width: 40rem; }
.contact { align-self: start; background: var(--surface); border-radius: 1.75rem; padding: 1.5rem; }
.contact h2 { font-size: 1.5rem; }
.contact a { font-weight: 700; font-size: 1.1rem; overflow-wrap: anywhere; }
:is(.privacy, .contact, .home footer) a { display: inline-block; padding-block: .6rem; }
@media (min-width: 52rem) { .help { grid-template-columns: 1fr 20rem; } }

.close { display: grid; justify-items: center; text-align: center; }
.close > img { width: 7rem; margin-bottom: .5rem; }
.close h2 { max-width: 18ch; }
.close .note { max-width: 32rem; }
.home footer { border-top: 1px solid color-mix(in srgb, var(--muted) 30%, transparent); padding-top: 1.5rem; }
.home footer p { margin: .25rem 0; }

/* Flyer and post links (/r/<placement>) */
.redeem main { max-width: 30rem; text-align: center; padding-top: 2rem; }
.redeem .lede { margin-inline: auto; }
.cta {
  display: inline-block; margin-top: 1rem; padding: .9rem 1.6rem; min-height: 44px; box-sizing: border-box;
  border-radius: 999px; background: var(--coral); color: var(--bg); font-weight: 800; text-decoration: none;
}
