/* The public pages (src/site): the app's colours and fonts (src/styles/global.css, docs/art-direction.md),
   for grown-ups reading rather than children tapping. The fonts are copied from @fontsource by
   scripts/build-site.ts into /site/fonts/. */

@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/site/fonts/fredoka-latin-500-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/site/fonts/fredoka-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Andika';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/site/fonts/andika-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --screen: #e4f2ec;
  --screen-deep: #d3e9df;
  --panel: #ffffff;
  --ink: #2f3a45;
  --ink-soft: #5c6b78;
  --ok: #46b98a;
  --primary: #267a56; /* white text on it: about 5.2:1 */
  --focus: #2f6fdb;
  --raised: inset 0 -5px 0 rgba(0, 0, 0, 0.12), inset 0 3px 0 rgba(255, 255, 255, 0.5), 0 3px 6px rgba(47, 58, 69, 0.12);
  --radius: 20px;
  --word-font: 'Andika', 'Comic Sans MS', system-ui, sans-serif;
  --ui-font: 'Fredoka', 'Nunito', system-ui, sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--screen);
  color: var(--ink);
  font: 500 18px/1.55 var(--ui-font);
}

a {
  color: var(--focus);
}

:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 3px;
}

.site-header,
main,
.site-footer {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  color: var(--ink);
  font-weight: 700;
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  line-height: 1.15;
  text-decoration: none;
}

main {
  padding-bottom: 48px;
}

h1 {
  font-size: clamp(2rem, 6vw, 2.8rem);
  line-height: 1.15;
  margin: 24px 0 12px;
}

h2 {
  font-size: 1.3rem;
  line-height: 1.25;
  margin: 0 0 6px;
}

p {
  margin: 0 0 16px;
}

.lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
}

.eyebrow {
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-weight: 700;
}

.eyebrow + h1 {
  margin-top: 6px;
}

.small {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

main > section {
  margin-top: 40px;
}

main > section.hero {
  margin-top: 0;
}

main > section > h2 {
  font-size: 1.6rem;
  margin-bottom: 14px;
}

h3 {
  font-size: 1.15rem;
  line-height: 1.25;
  margin: 0 0 6px;
}

.cards {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 14px;
}

.cards li {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 18px 20px 4px;
  box-shadow: 0 2px 0 var(--screen-deep);
}

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 28px 0;
  display: grid;
  gap: 14px;
}

.steps li {
  counter-increment: step;
  position: relative;
  background: var(--panel);
  border-radius: var(--radius);
  padding: 18px 20px 4px 72px;
  box-shadow: 0 2px 0 var(--screen-deep);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--screen);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--raised);
}

.button--primary {
  background: var(--primary);
  color: #fff;
}

.button--small {
  min-height: 44px;
  padding: 6px 16px;
  font-size: 0.95rem;
}

.site-footer {
  border-top: 2px solid var(--screen-deep);
  padding-top: 20px;
  padding-bottom: 32px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* Shared player proportions: native playback, sound and caption controls. */
.product-demo { margin: 24px 0; min-width: 0; }
.product-demo video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 20px; background: #e4f2ec; box-shadow: 0 6px 24px rgba(47,58,69,.14); }
.product-demo figcaption { margin-top: 12px; font-size: 16px; line-height: 1.5; color: var(--ink-soft); }
.product-demo figcaption b { color: var(--ink); }

@media (max-width: 420px) { .site-header { flex-wrap: wrap; } }

.demo-transcript summary { cursor: pointer; padding: 12px 0; color: var(--ink); font-weight: 700; }
.demo-transcript ol { padding-left: 24px; }
.demo-transcript li { margin: 16px 0; }
.demo-transcript p { margin: 6px 0; }

.early-access-invitation { padding: 24px; border-radius: var(--radius); background: var(--panel); }

/* Public support: native FAQ disclosures work without a script or account. */
.support-topics { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.support-answer { margin: 12px 0; padding: 16px 20px; border-radius: var(--radius); background: var(--panel); }
.support-answer summary { cursor: pointer; font-weight: 700; line-height: 1.4; }
.support-answer > div { padding-top: 14px; }
.support-answer p:last-child { margin-bottom: 0; }
.support-contact { padding: 24px; border-radius: var(--radius); background: var(--panel); overflow-wrap: anywhere; }
.support-topics a, .support-answer summary { scroll-margin-top: 20px; }
