/*
 * Website: the app's adult skin (src/index.css, [data-theme="adult"]) as plain CSS variables,
 * plus the town's warm colours for the drawings. System fonts, no external resources.
 */
:root {
  --ink: #1c2333;
  --muted: #5d6578; /* the app's #6b7386, a step darker: AA on the paper background too */
  --paper: #f2f4f8;
  --surface: #ffffff;
  --line: #dfe3ea;
  --accent: #2456a4;
  --accent-deep: #1b4483;
  --accent-soft: #e3ebf7;
  --gold: #ffd166;
  --gold-deep: #b37f05;
  --good: #1f9d5a;
  --sky: #cfeaf8;
  --teen: #141a26;
  --radius-card: 0.75rem;
  --radius-btn: 0.6rem;
  --radius-field: 0.55rem;
  --shadow-card: 0 1px 2px #0f1c3a0f, 0 0 0 1px #0f1c3a0a;
  --shadow-lift: 0 18px 40px -18px #0f1c3a59, 0 0 0 1px #0f1c3a0f;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(3rem, 8vw, 6rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(16px, 0.9rem + 0.3vw, 19px);
  line-height: 1.55;
  color: var(--ink);
  background: var(--surface);
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-deep); }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); font-weight: 800; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

[hidden], .sprite { display: none !important; }
.ic { width: 1.5em; height: 1.5em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 48rem; }
.band { background: var(--paper); }
main > section { padding-block: var(--section-y); }

/* ─── buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 44px; padding: 0.55em 1.1em;
  border: 0; border-radius: var(--radius-btn);
  background: var(--accent); color: #fff;
  font: inherit; font-weight: 700; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: filter .15s, transform .15s;
}
.btn:hover { color: #fff; filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-big { min-height: 52px; padding: 0.75em 1.5em; font-size: 1.08em; box-shadow: 0 8px 20px -10px var(--accent); }

/* ─── header ──────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 10;
  background: #ffffffe6; backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; min-width: 0; }
.brand img { width: 2.1rem; height: 2.1rem; }
.top .btn { font-size: 0.9rem; }
@media (max-width: 400px) { .brand { font-size: 1.05rem; } .top .btn { padding-inline: 0.8em; } }

/* ─── hero ────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--sky) 0%, #eaf6fc 55%, var(--surface) 100%);
  padding-block: clamp(2rem, 6vh, 4.5rem) 0 !important;
}
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; position: relative; z-index: 1; }
.kicker { display: inline-block; font-weight: 700; font-size: 0.85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-deep); background: #ffffffb3; padding: 0.3em 0.8em; border-radius: 999px; }
.hero h1 { font-size: clamp(2.5rem, min(9vw, 9vh) + 0.5rem, 5rem); font-weight: 900; letter-spacing: -0.03em; margin-block: 0.4em 0.35em; }
.lead { font-size: clamp(1.1rem, 1rem + 0.6vw, 1.45rem); color: #34405a; max-width: 32rem; }
.stores { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-block: 1.6rem 1.4rem; }
.store {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.45em 0.95em 0.45em 0.75em; border: 1px solid #c9ced8; border-radius: var(--radius-btn);
  background: #f6f7f9; color: #4f5768; font-weight: 700; font-size: 0.95rem; line-height: 1.1;
}
.store .ic { width: 1.6em; height: 1.6em; color: #7a8293; }
.store small { display: block; font-weight: 600; font-size: 0.72rem; color: #5d6578; text-transform: uppercase; letter-spacing: .04em; }

.video { position: relative; z-index: 1; margin: 0 auto; width: min(72vw, 19rem, 46vh); }
.hero-bee { position: absolute; width: 38%; left: clamp(-26%, -2rem - 8vw, -14%); top: 12%; filter: drop-shadow(0 8px 10px #0f1c3a26); animation: float 5s ease-in-out infinite; }
.hero-coin { position: absolute; width: 16%; right: -9%; top: 48%; filter: drop-shadow(0 6px 6px #0f1c3a33); animation: float 4s ease-in-out -1.5s infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero-bee, .hero-coin { animation: none; } }
.skyline { height: clamp(5rem, 10vw, 9rem); margin-top: clamp(-4rem, -5vw, -2rem); background: url(art/skyline.svg) repeat-x center bottom / auto 100%; }

/* phone frames around the real screenshots */
.phone {
  border-radius: clamp(1.2rem, 3vw, 2rem); padding: clamp(0.35rem, 0.9vw, 0.55rem);
  background: #1c2333; box-shadow: var(--shadow-lift);
}
.phone img { border-radius: clamp(0.9rem, 2.3vw, 1.5rem); width: 100%; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; }

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
  .video { width: min(22rem, 31vw, calc((100vh - 9rem) * 0.55)); }
}

/* promo video, full width of the content column */
.promo-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--radius-card); background: #1c2333; box-shadow: var(--shadow-lift); }
.promo .small.center { text-align: center; margin: 0.8rem auto 0; color: var(--muted); }

/* age-band videos open in one shared dialog */
.age-video { margin-top: 1rem; align-self: center; gap: 0.4rem; background: var(--surface); color: var(--accent); border: 1.5px solid currentColor; }
.parent-video { align-self: auto; margin-top: 1.5rem; white-space: normal; }
.age-video:hover { color: var(--accent); background: var(--accent-soft); filter: none; }
.age-video .ic { width: 1.3em; height: 1.3em; }
.video-dialog { width: min(92vw, 64rem); padding: 0; border: 0; border-radius: var(--radius-card); background: #11151f; color: #fff; }
.video-dialog::backdrop { background: #0b0f18cc; }
.video-dialog video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.video-dialog .small { color: #c4cad6; padding: 0.4rem 1rem 0.8rem; }
.dialog-close { position: absolute; top: 0.5rem; right: 0.5rem; z-index: 1; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border: 0; border-radius: 50%; background: #000a; color: #fff; cursor: pointer; }
.dialog-close .ic { width: 1.4rem; height: 1.4rem; }

/* ─── sections ────────────────────────────────────────── */
.section-head { text-align: center; max-width: 42rem; margin: 0 auto clamp(2rem, 5vw, 3.5rem); display: grid; gap: 0.75rem; justify-items: center; }
.section-head p { color: var(--muted); font-size: 1.1em; }
.section-head.left { text-align: left; justify-items: start; margin-inline: 0; }
.head-ic { display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.head-ic .ic { width: 2rem; height: 2rem; }

/* how it works: steps beside two phones */
.how { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative;
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow-card);
  padding: 1.1rem 1.2rem;
}
.steps li::after {
  content: counter(step); position: absolute; top: 0.9rem; right: 1rem;
  font-size: 1.6rem; font-weight: 900; color: var(--line); line-height: 1;
}
.steps h3 { margin-bottom: 0.2rem; padding-right: 1.5rem; }
.steps p { color: var(--muted); }
.step-ic { display: grid; place-items: center; flex: none; width: 3.5rem; height: 3.5rem; border-radius: 1rem; background: var(--accent); color: #fff; }
.step-ic .ic { width: 1.9rem; height: 1.9rem; }
.fan { display: flex; justify-content: center; align-items: flex-start; }
.fan .phone { width: min(42vw, 15rem); }
.fan .phone:first-child { transform: rotate(-4deg); margin-top: 1.5rem; }
.fan .phone:last-child { transform: rotate(4deg); margin-left: -12%; }
@media (min-width: 900px) { .how { grid-template-columns: 1.1fr 0.9fr; } }

.jars { display: flex; justify-content: center; gap: clamp(1rem, 5vw, 3.5rem); margin-top: clamp(2.5rem, 6vw, 4rem); }
.jars figure { margin: 0; text-align: center; font-weight: 700; color: var(--muted); }
.jars img { width: clamp(4.5rem, 14vw, 7.5rem); margin-inline: auto; }
.note { display: flex; gap: 0.75rem; align-items: center; max-width: 40rem; margin: 1.5rem auto 0; padding: 1rem 1.2rem; border-radius: var(--radius-card); background: #e8f5ee; color: #1a5a39; font-weight: 600; }
.note .ic { width: 2rem; height: 2rem; color: var(--good); }

/* three ages */
.ages { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.card { background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.age { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 0.6rem; padding: 1.5rem 1.5rem 0; border-top: 6px solid var(--gold); }
.age-kid { background: linear-gradient(180deg, #fff8e1, var(--surface) 40%); }
.age-mid { border-top-color: #d9739a; background: linear-gradient(180deg, #fdeef4, var(--surface) 40%); }
.age-teen { border-top-color: var(--teen); background: linear-gradient(180deg, #eceef3, var(--surface) 40%); }
.age-art { height: 5rem; display: flex; align-items: center; }
.age-art img { height: 5rem; width: auto; }
.teen-badge { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 1.1rem; background: var(--teen); color: #9fb8ff; }
.teen-badge .ic { width: 2.4rem; height: 2.4rem; }
.age-band { font-weight: 800; font-size: 0.85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-deep); }
.age-mid .age-band { color: #a8436b; }
.age-teen .age-band { color: #3b4458; }
.age h3 { font-size: 1.35rem; }
.age > p:not(.age-band) { color: var(--muted); flex: 1; } /* the text takes the slack: phones and video buttons line up across cards */
.phone-sm { width: 72%; margin: auto auto -18% ; padding-bottom: 0; }
.phone-sm img { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.age .phone-sm { margin-top: 1rem; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.age { padding-bottom: 0; }
.age .phone-sm { margin-bottom: 0; aspect-ratio: auto; height: 20rem; overflow: hidden; }

/* parents */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.15fr 0.85fr; } }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
@media (min-width: 600px) and (max-width: 899px) { .features { grid-template-columns: 1fr 1fr; } }
.features li { display: flex; gap: 0.9rem; align-items: flex-start; }
.features p { color: var(--muted); }
.features h3 { margin-bottom: 0.15rem; }
.feat-ic { display: grid; place-items: center; flex: none; width: 3rem; height: 3rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.feat-ic .ic { width: 1.6rem; height: 1.6rem; }

/* safe by design */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)); }
.checks li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 1.4rem; display: grid; gap: 0.5rem; align-content: start; }
.checks .ic { width: 2.5rem; height: 2.5rem; color: var(--good); margin-bottom: 0.3rem; }
.checks p { color: var(--muted); font-size: 0.95em; }

/* FAQ */
.faq { display: grid; gap: 0.75rem; }
.faq details { background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.1rem 3rem 1.1rem 1.3rem; position: relative;
  font-weight: 700; font-size: 1.05em; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 1.3rem; top: 50%; width: 0.6rem; height: 0.6rem; margin-top: -0.4rem;
  border-right: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -0.1rem; }
.faq details p { padding: 0 1.3rem 1.2rem; color: var(--muted); }

/* signup */
.signup { background: linear-gradient(180deg, var(--surface), var(--sky)); }
.signup-card {
  display: grid; gap: 1.5rem; align-items: center; max-width: 56rem;
  background: var(--surface); border-radius: calc(var(--radius-card) * 2); box-shadow: var(--shadow-lift);
  padding: clamp(1.5rem, 5vw, 3rem);
  width: calc(100% - 2 * var(--gutter));
}
.signup-art img { width: clamp(5rem, 16vw, 9rem); margin-inline: auto; }
.signup-body { display: grid; gap: 0.75rem; }
.signup-body > p { color: var(--muted); }
@media (min-width: 720px) { .signup-card { grid-template-columns: auto 1fr; } }
form { display: grid; gap: 1rem; margin-top: 0.5rem; }
.field { display: grid; gap: 0.35rem; font-weight: 700; }
.input { display: flex; align-items: center; gap: 0.6rem; border: 1.5px solid #b9c0cc; border-radius: var(--radius-field); padding-inline: 0.8rem; background: var(--surface); }
.input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input .ic { color: var(--muted); width: 1.3em; height: 1.3em; }
.input input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-weight: 400; padding: 0.75rem 0; background: transparent; color: var(--ink); font-size: max(16px, 1em); }
.consent { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--muted); font-size: 0.95em; }
.consent input { width: 1.4rem; height: 1.4rem; margin: 0.1rem 0 0; flex: none; accent-color: var(--accent); }
form .btn-big { justify-self: start; }
.msg { min-height: 1.5em; font-weight: 600; }
.msg[data-tone="good"] { color: var(--good); }
.msg[data-tone="bad"] { color: #b42323; }
.trap { position: absolute; left: -10000px; }

/* footer */
.foot { background: var(--ink); color: #c9cfdb; padding-block: 2.5rem; font-size: 0.92em; }
.foot .wrap { display: grid; gap: 0.75rem; }
.foot a { color: #fff; }
.brand-foot { display: flex; align-items: center; gap: 0.5rem; font-weight: 800; color: #fff; font-size: 1.1rem; }
.brand-foot img { width: 1.5rem; height: 1.5rem; }
.small { font-size: 0.85em; color: #a3abbb; max-width: 48rem; }

/* single-message pages (confirmation, tester) */
.page { min-height: calc(100vh - 12rem); display: grid; place-items: center; padding: var(--section-y) var(--gutter); background: linear-gradient(180deg, var(--sky), var(--surface)); }
.panel { background: var(--surface); border-radius: calc(var(--radius-card) * 2); box-shadow: var(--shadow-lift); padding: clamp(1.5rem, 5vw, 3rem); max-width: 36rem; width: 100%; display: grid; gap: 1.2rem; justify-items: center; text-align: center; }
.panel > img { width: clamp(5rem, 20vw, 8rem); }
.panel h1 { font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.1rem); font-weight: 800; }
.panel p { color: var(--muted); font-size: 1.05em; }
.panel section { display: grid; gap: 1rem; justify-items: center; }
.panel.wide { max-width: 44rem; text-align: left; justify-items: stretch; }
.panel.wide > img { justify-self: center; }
.panel h2 { font-size: 1.3rem; }
.apk { display: grid; gap: 0.5rem; justify-items: start; }
.apk p { font-size: 0.9em; }
.steps-plain { margin: 0; padding-left: 1.3rem; display: grid; gap: 0.6rem; color: var(--ink); }
.callout { padding: 0.9rem 1.1rem; border-radius: var(--radius-card); background: var(--paper); color: var(--ink); }
@media (max-width: 599px) {
  .checks li { grid-template-columns: auto 1fr; column-gap: 1rem; row-gap: 0.2rem; padding: 1.1rem; }
  .checks .ic { grid-row: span 2; margin: 0; }
}
