/* ===========================================================
   wekids.io home page (2026-11, TV-first)

   Loaded by index.html only, after styles.css, so the answer pages and
   /parents keep their look. Everything here is scoped to body.home and
   reads the brand tokens from styles.css, so the dark scheme there
   carries over without a second set of rules.

   Direction: crisp and calm. White and soft-sage surfaces in light mode,
   real TV screenshots as the hero, left-aligned type, and trust signals
   taken word for word from the privacy policy.
   =========================================================== */

/* Light mode: a cleaner, whiter ground than the cream of the answer pages. */
@media (prefers-color-scheme: light) {
  body.home {
    --surface: #FFFFFF;
    --surface-tint: #F3F7F2;
    --surface-card: #FFFFFF;
    --text: #18241D;
    --text-soft: #4D5B53;
  }
}
@media not all and (prefers-color-scheme: dark) {
  body.home { --surface: #FFFFFF; --surface-tint: #F3F7F2; --surface-card: #FFFFFF; }
}

body.home { background: var(--surface); }
body.home main section[id] { scroll-margin-top: 84px; }

/* ── Header: sticky, light glass, real nav ── */
.home .site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.home .header-inner { gap: 24px; }
.h-nav { display: none; gap: 26px; margin-left: auto; }
.h-nav a {
  font-family: var(--font-head); font-weight: 500; font-size: 0.92rem;
  color: var(--text-soft); text-decoration: none;
}
.h-nav a:hover { color: var(--text-head); }
.home .header-cta { margin-left: 0; }
@media (min-width: 900px) { .h-nav { display: flex; } }

/* ── Buttons ── */
.h-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.h-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  text-decoration: none; border-radius: var(--radius-pill);
  padding: 14px 26px; min-height: 48px;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.h-btn--primary { background: var(--brand); color: var(--brand-on); box-shadow: var(--shadow); }
.h-btn--primary:hover { background: var(--brand-hover); transform: translateY(-1px); }
.h-btn--ghost { color: var(--text-head); border: 1px solid var(--line-strong); background: var(--surface-card); }
.h-btn--ghost:hover { border-color: var(--brand); }
.h-btn:focus-visible { outline: 3px solid var(--green-accent); outline-offset: 3px; }

/* ── Hero ── */
.h-hero {
  padding: 64px 0 56px;
  background:
    radial-gradient(760px 420px at 85% 10%, rgba(63, 163, 77, 0.14), rgba(63, 163, 77, 0) 70%),
    var(--surface);
}
.h-hero-grid { display: grid; gap: 48px; align-items: center; }
.h-hero-copy { min-width: 0; }
.h-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand);
  margin-bottom: 18px;
}
.h-eyebrow img { width: 22px; height: 22px; }
.h-hero h1 {
  font-weight: 700; font-size: clamp(2.5rem, 5.2vw, 4.1rem);
  line-height: 1.04; letter-spacing: -0.035em; margin-bottom: 20px; max-width: 14ch;
}
.h-hero h1 span { color: var(--brand); }
.h-promise { font-size: clamp(1.06rem, 1.7vw, 1.2rem); color: var(--text-soft); max-width: 34rem; margin-bottom: 28px; }
.h-promise strong { color: var(--text-head); }

.h-checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.h-checks li { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; color: var(--text); font-weight: 600; }
.h-checks .icon, .h-list .icon { color: var(--brand); font-size: 20px; flex: 0 0 auto; }
@media (min-width: 560px) { .h-checks { grid-template-columns: repeat(2, minmax(0, max-content)); column-gap: 26px; } }

@media (min-width: 960px) {
  .h-hero { padding: 84px 0 76px; }
  .h-hero-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr); gap: 56px; }
}

/* A TV: dark bezel, thin stand. The screenshot inside is a real capture. */
.tv { margin: 0; position: relative; max-width: 100%; }
.tv-screen {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
  border: 10px solid #0E1210; border-radius: 18px; background: #0E1210;
  box-shadow: 0 2px 6px rgba(0,0,0,.08), 0 30px 70px rgba(22, 65, 42, 0.22);
}
.tv--stand { padding-bottom: 26px; }
.tv--stand::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 28%; height: 14px; border-radius: 0 0 10px 10px;
  background: linear-gradient(#2A302C, #121513);
}
.tv--stand::before {
  content: ""; position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  width: 7%; height: 16px; background: #1A1E1B;
}
.tv figcaption {
  margin-top: 12px; text-align: center; font-family: var(--font-head);
  font-weight: 600; font-size: 0.9rem; color: var(--text-head);
}

/* ── Platforms strip ── */
.h-platforms { border-block: 1px solid var(--line); background: var(--surface-tint); }
.h-platforms .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 12px 34px; padding-block: 20px;
}
.h-platforms p { margin: 0; font-size: 0.85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-soft); }
.h-platforms ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; }
.h-platforms li { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; color: var(--text-head); }
.h-platforms .icon { color: var(--brand); font-size: 20px; }
.h-soon { font-family: var(--font-body); font-weight: 700; font-size: 0.7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); padding: 2px 8px; border-radius: 999px; }

/* ── Sections ── */
.home .h-sec { padding: 96px 0; }
.home .h-sec--tint { background: var(--surface-tint); }
.h-head { max-width: 46rem; margin-bottom: 40px; }
.h-head--center { margin-inline: auto; text-align: center; }
.h-kicker {
  font-family: var(--font-head); font-weight: 600; font-size: 0.8rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px;
}
.home .h-sec h2 {
  font-weight: 700; font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 16px;
}
.home .h-sec h2 em { font-style: normal; color: var(--brand); }
.h-lead { font-size: clamp(1.04rem, 1.6vw, 1.16rem); color: var(--text-soft); }
.h-lead strong { color: var(--text-head); }

/* Cards: one quiet style used everywhere on the page. */
.h-cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); }
.h-card {
  background: var(--surface-card); border: 1px solid var(--line);
  border-radius: 20px; padding: 26px 24px 26px; min-width: 0;
}
.h-sec--tint .h-card { box-shadow: var(--shadow-sm); border-color: transparent; }
.h-card h3 { font-size: 1.08rem; margin: 16px 0 6px; letter-spacing: -0.015em; }
.h-card p { margin: 0; font-size: 0.95rem; color: var(--text-soft); line-height: 1.6; }
.h-card p strong { color: var(--text-head); }
.h-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--brand-soft); color: var(--brand); font-size: 23px;
}
.h-ico--glyph { font-family: var(--font-head); font-weight: 700; font-size: 1rem; letter-spacing: -0.02em; }
.h-step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); color: var(--brand-on);
  font-family: var(--font-head); font-weight: 600; font-size: 0.85rem;
  margin-left: 10px; vertical-align: middle;
}
.h-card--soon { background: transparent; border: 1.5px dashed var(--line-strong); box-shadow: none; }
.h-card--soon h3 .h-soon { margin-left: 6px; vertical-align: 2px; }

/* Split rows: text beside a screenshot */
.h-split { display: grid; gap: 40px; align-items: center; }
.h-split > * { min-width: 0; }
@media (min-width: 900px) {
  .h-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 64px; }
  .h-split--flip > :first-child { order: 2; }
}

.h-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.h-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.h-list li .icon { margin-top: 3px; }
.h-list strong { color: var(--text-head); }

.h-shots { display: grid; gap: 22px; margin-top: 40px; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.h-shots .tv-screen { border-width: 6px; border-radius: 14px; box-shadow: var(--shadow); }

/* ── Privacy band ── */
.h-trust {
  background:
    radial-gradient(700px 320px at 15% 0%, rgba(70, 184, 113, 0.20), rgba(70, 184, 113, 0) 70%),
    var(--green-deep);
  color: rgba(251, 248, 241, 0.86);
}
.home .h-trust h2, .h-trust h3 { color: #FBF8F1; }
.h-trust .h-kicker { color: #9FE0B4; }
.h-trust .h-lead { color: rgba(251, 248, 241, 0.78); }
.h-trust .h-card { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.10); }
.h-trust .h-card p { color: rgba(251, 248, 241, 0.74); }
.h-trust .h-ico { background: rgba(159, 224, 180, 0.14); color: #9FE0B4; }
.h-trust-link { margin-top: 32px; }
.h-trust-link a { color: #9FE0B4; font-family: var(--font-head); font-weight: 600; text-underline-offset: 4px; }

/* ── Get the apps ── */
.h-apps { display: grid; gap: 18px; max-width: 60rem; margin: 0 auto; }
@media (min-width: 780px) { .h-apps { grid-template-columns: 1fr 1fr; } }
.h-app { background: var(--surface-card); border: 1px solid var(--line); border-radius: 24px; padding: 28px 26px; text-align: center; box-shadow: var(--shadow-sm); }
.h-app-icon { width: 72px; height: 72px; border-radius: 18px; margin: 0 auto 14px; box-shadow: var(--shadow); }
.h-app-step { font-family: var(--font-head); font-weight: 600; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin: 0; }
.h-app h3 { font-size: 1.4rem; margin: 6px 0 4px; }
.h-app .app-devices { margin: 0; font-size: 0.93rem; color: var(--text-soft); }
.h-app .badges { flex-direction: column; max-width: 19rem; margin: 18px auto 0; }
.h-apps-note { text-align: center; margin-top: 22px; font-size: .92rem; color: var(--text-soft); }

/* ── Demos sit tighter here ── */
.home .demos { margin-top: 28px; }

/* ── Footer ── */
.h-footer { background: var(--green-deep); color: rgba(251, 248, 241, 0.74); padding: 56px 0 40px; }
.h-footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.h-footer h4 { font-family: var(--font-head); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: #FBF8F1; margin: 0 0 12px; }
.h-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.h-footer a { color: rgba(251, 248, 241, 0.82); text-decoration: none; font-size: .95rem; }
.h-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.h-footer-brand { display: flex; align-items: center; gap: 10px; color: #FBF8F1; font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; margin: 0 0 10px; }
.h-footer-brand img { width: 30px; height: 30px; }
.h-footer-tag { margin: 0; font-size: .95rem; }
.h-footer-base { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
@media (prefers-color-scheme: dark) { .h-footer, .h-trust { background-color: #10301F; } }

@media (max-width: 560px) {
  .home .h-sec { padding: 64px 0; }
  .h-hero { padding: 40px 0 44px; }
  .h-actions .h-btn { flex: 1 1 100%; }
  .tv-screen { border-width: 6px; border-radius: 12px; }
}
