/* The family baseline, as the main landing ships it: warm monochrome on #050505,
 * text #F5F2EB, muted #99968F, hairlines #121316–#26282C. Values are carried over
 * from the main landing on purpose; a departure carries a comment saying why
 * (AGENTS.md §4). The kids edition's own voice grows here, not by restyling at whim. */

:root {
  --bg: #050505;
  --bg-raised: #0b0c0e;
  --text: #F5F2EB;
  --muted: #99968F;
  --line: #121316;
  --line-strong: #26282C;
  --font: 'Schibsted Grotesk', 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-brand: 'Inter Variable', system-ui, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--text); color: var(--bg); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; }

:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 2px; }

/* ---------- skip link ---------- */

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--text);
  color: var(--bg);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ---------- header ---------- */

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(20px, 5vw, 64px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.logo__mark { height: 22px; width: auto; }
.logo__word {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.site-header__right { display: flex; align-items: center; gap: 24px; min-width: 0; }
.site-nav { display: flex; align-items: center; gap: 28px; }
/* Owner call (2026-10-22): nav and Log in sit at full text colour like the logo word,
 * a deliberate departure from the family's muted header links. With nothing left to
 * brighten, hover and the in-view section underline instead. */
.site-nav a { font-size: 14px; color: var(--text); }
.site-nav a:hover, .site-nav a[aria-current] { text-decoration: underline; text-underline-offset: 6px; }

.site-header__tools { display: flex; align-items: center; gap: 16px; }
.site-header__login { font-size: 14px; color: var(--text); }
.site-header__login:hover { text-decoration: underline; text-underline-offset: 6px; }

/* ---------- language menu ---------- */

.lang { position: relative; }
.lang__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  /* Owner call (2026-10-22): the toggle's font sits at full colour like the other
   * header actions; only the border still reacts on hover. */
  color: var(--text);
  transition: border-color 0.15s ease;
}
.lang__toggle:hover { border-color: var(--muted); }
#current-lang { font-size: 12px; letter-spacing: 0.08em; }
.lang__toggle svg { transition: transform 0.15s ease; }
.lang__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.lang__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 190px;
  padding: 6px;
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.lang__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--muted);
  transition: background 0.15s ease, color 0.15s ease;
}
.lang__option:hover { background: var(--line); color: var(--text); }
.lang__option[aria-pressed="true"] { color: var(--text); }
.lang__code { font-size: 11px; letter-spacing: 0.08em; }

/* ---------- burger / phone menu ---------- */

.site-header__burger { display: none; }
.site-header__burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.site-header__burger span + span { margin-top: 4px; }
.site-header.is-open .site-header__burger span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.site-header.is-open .site-header__burger span:nth-child(2) { opacity: 0; }
.site-header.is-open .site-header__burger span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 768px) {
  .site-header { padding: 16px 20px; }
  .site-header__burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    margin-right: -8px;
  }
  .site-header__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 8px 20px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .site-header.is-open .site-header__menu { display: block; }
  html.menu-open, html.menu-open body { overflow: hidden; }
  .site-nav { flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 8px; }
  .site-nav a { font-size: 17px; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  background: radial-gradient(120% 90% at 72% 12%, #0d0e10 0%, var(--bg) 58%);
}
/* The owner's clip plays behind the headline; the scrim keeps the #F5F2EB copy legible
 * over any frame — the main landing's hero__shade pair folded into one pseudo-element. */
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.88) 0%, rgba(5, 5, 5, 0.52) 46%, rgba(5, 5, 5, 0.14) 100%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.32) 0%, rgba(5, 5, 5, 0.58) 100%);
}
.hero__stage { position: relative; z-index: 2; width: 100%; }
.hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px clamp(20px, 5vw, 64px) 96px;
}
.hero__copy { max-width: 640px; }
.hero__title {
  margin: 0;
  font-size: clamp(30px, 4.6vw, 54px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.hero__lead {
  margin: 22px 0 0;
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.6;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

/* The privacy promise rides directly under the CTA — the hero's second job after the value pitch. */
.hero__trust {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 22px 0 0;
  max-width: 520px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.hero__trust svg { flex: none; margin-top: 2px; }

@media (max-width: 900px) {
  /* Copy runs edge to edge on phones, so the scrim evens out instead of sitting
   * mostly on the left. */
  .hero::before {
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.5) 0%, rgba(5, 5, 5, 0.72) 100%);
  }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 26px;
  background: var(--text);
  color: var(--bg);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.15s ease;
}
.btn-primary:hover { transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 15px 26px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 15px;
  /* Owner call (2026-10-22): the font carries btn-primary's weight, so the quiet
   * border is all that is left to react on hover. */
  color: var(--text);
  transition: border-color 0.15s ease;
}
.btn-ghost:hover { border-color: var(--muted); }

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

.section { border-top: 1px solid var(--line); }
.section__wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(80px, 12vh, 144px) clamp(20px, 5vw, 64px);
}
.section-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.section-lead {
  margin: 16px 0 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

/* ---------- how it works ---------- */

/* The owner's reference (2026-10-22): a device screen the step list drives — screen
 * on the left, steps on the right. The frame is landscape, not the reference's
 * portrait phone, because this repo's clips are 1920×1080 — a cover crop would hide
 * most of the recorded UI. */
.how__stage {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  margin-top: 56px;
}
.how__device {
  padding: clamp(8px, 1.2vw, 12px);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: var(--bg-raised);
}
.how__screen video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  background: var(--bg);
}
/* The run's progress, one segment per clip — part of the device's chin, shown only
 * where the run drives itself (the phone layout). Beside the steps, the lit step is
 * indicator enough. */
.how__bars { display: none; gap: 6px; margin-top: 10px; }
.how__bar {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: var(--line-strong);
  overflow: hidden;
}
.how__bar i {
  display: block;
  height: 100%;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s linear;
}
.how__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
/* The whole step is the pick: a parent aims anywhere at the row, not at its number. */
.how-step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 0 16px;
  width: 100%;
  padding: 20px 18px;
  border: 1px solid transparent;
  border-radius: 16px;
  text-align: left;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.how-step:hover { background: var(--line); }
.how-step.is-active { background: var(--bg-raised); border-color: var(--line); }
.how-step__number {
  padding-top: 5px;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--muted);
  transition: color 0.2s ease;
}
.how-step__title {
  display: block;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--muted);
  transition: color 0.2s ease;
}
.how-step__text {
  display: block;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.how-step.is-active .how-step__number,
.how-step.is-active .how-step__title { color: var(--text); }
.how-step.is-active .how-step__text { opacity: 1; }

/* ---------- benefits gallery ---------- */

/* A viewer with a thumbnail rail underneath: the owner curates the clips, a parent
 * picks one. The rail wraps, so adding clips is markup only — no layout work. */
.gallery { margin-top: 48px; max-width: 760px; }
.gallery__viewer video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  background: var(--bg-raised);
}
.gallery__thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.gallery__thumb {
  width: 116px;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  opacity: 0.55;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery__thumb:hover { opacity: 0.85; }
.gallery__thumb.is-active { opacity: 1; border-color: var(--muted); }

@media (max-width: 900px) {
  /* The steps drop under the screen, and the run starts driving itself — so the
   * progress segments come out and the section tightens. */
  .how__stage { grid-template-columns: 1fr; gap: 20px; margin-top: 40px; }
  .how__bars { display: flex; }
  .how-step { padding: 16px 10px; }
}

/* ---------- benefits ---------- */

.benefits-list {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.benefit { padding: 26px 24px 24px; border: 1px solid var(--line); border-radius: 16px; }
.benefit__title { margin: 0 0 10px; font-size: 19px; font-weight: 700; line-height: 1.25; }
.benefit__text { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

@media (max-width: 900px) {
  .benefits-list { grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px clamp(20px, 5vw, 64px) 48px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.site-footer .logo__mark { height: 18px; }
.site-footer__tagline { margin: 0; color: var(--muted); font-size: 14px; }
.site-footer__rights { margin: 0; color: var(--muted); font-size: 13px; opacity: 0.7; }

/* ---------- footer contact strip ---------- */

/* The labs landing's closing move, in this page's voice: a question line for the
 * parent and the people who answer it, set off by the page's own hairline. */
.site-footer__contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px clamp(20px, 4vw, 48px);
  flex-wrap: wrap;
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.contact__head {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.contact__text {
  margin: 10px 0 0;
  max-width: 520px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}
.contact__strip { display: flex; gap: 10px; flex-wrap: wrap; }

/* Email carries no brand colour to borrow, so the button returns to the page's own
 * monochrome palette — filled like btn-primary, the footer's one focal action. */
.btn-mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  background: var(--text);
  color: var(--bg);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.15s ease;
}
.btn-mail:hover { transform: translateY(-1px); }
.btn-mail svg { flex: none; }
