/* ==========================================================================
   Ellsby — public site
   --------------------------------------------------------------------------
   Tokens are copied from design/preview-system.html (palette, verbatim) and
   DESIGN.md (radius ladder, 4pt spacing, type scale). No new colors, radii,
   or gradients. Pills for CTAs and chips; vivid dots only for identity.
   ========================================================================== */

:root {
  /* palette — light, verbatim from preview-system.html */
  --bg:             #FFF8F5;
  --card:           #FFFFFF;
  --card-2:         #F4F6FB;
  --border:         #EEEDF2;
  --border-strong:  #DDDCE5;

  --text:           #1E2530;
  --text-muted:     #5F6B85;
  --text-subtle:    #98A2BF;

  --ink:            #1E2530;
  --ink-fg:         #FFFFFF;

  --hover:          #F6F5F9;
  --selected:       #EEF1F9;

  --coral-bg:       #FFE3E3;
  --coral-fg:       #9A3232;
  --coral-dot:      #FF6B6B;
  --blue-bg:        #E1EAFD;
  --blue-fg:        #2A4A8F;
  --blue-dot:       #5B8DEF;
  --lavender-bg:    #EFE6FB;
  --lavender-fg:    #5A3F9A;
  --lavender-dot:   #8B5CF6;
  --green-bg:       #DDF3EA;
  --green-fg:       #1F6B4E;
  --green-dot:      #2FB27A;
  --indigo-bg:      #E8E5F6;
  --indigo-fg:      #3A3178;
  --indigo-dot:     #4A3F93;
  --butter-bg:      #FFEFD1;
  --butter-fg:      #7A5311;
  --butter-dot:     #F4B740;
  --rose-bg:        #FBE1E1;
  --rose-fg:        #8A3838;
  --rose-dot:       #E5484D;

  --parent-a-bg:    var(--coral-bg);
  --parent-a-fg:    var(--coral-fg);
  --parent-a-dot:   var(--coral-dot);
  --parent-b-bg:    var(--blue-bg);
  --parent-b-fg:    var(--blue-fg);
  --parent-b-dot:   var(--blue-dot);

  --shadow-card:    0 1px 2px rgba(15, 15, 17, 0.04);
  --shadow-elev:    0 4px 12px rgba(15, 15, 17, 0.08);

  /* the one gradient — DESIGN.md "Tokens — gradient" */
  --coral:   #FF6B6B;
  --blue:    #5B8DEF;
  --indigo:  #4A3F93;
  --cream:   #FFF8F5;

  /* type scale — DESIGN.md */
  --display-2xl:  40px;
  --display-xl:   28px;
  --display-lg:   22px;
  --heading:      17px;
  --body-lg:      16px;
  --body:         15px;
  --label:        13px;
  --caption:      13px;
  --mono:         13px;

  /* spacing — DESIGN.md strict 4pt grid, 7 steps */
  --space-xs:    4px;
  --space-sm:    8px;
  --space-md:   12px;
  --space-lg:   16px;
  --space-xl:   24px;
  --space-xxl:  32px;
  --space-xxxl: 48px;

  /* radius — DESIGN.md ladder */
  --r-xs:   8px;
  --r-sm:  12px;
  --r-md:  16px;
  --r-lg:  20px;
  --r-pill: 9999px;

  --enter: 150ms cubic-bezier(0.2, 0.8, 0.2, 1);

  --font-sans:  system-ui, -apple-system, 'Segoe UI', Inter, sans-serif;
  --font-display: 'Nunito', system-ui, -apple-system, sans-serif;
  --font-serif: var(--font-display); /* retired; alias */
  --font-mono:  'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --measure: 62ch;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--text);
}

p { max-width: var(--measure); }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--text); }
p a, li a { text-decoration: underline; text-underline-offset: 0.15em; text-decoration-color: var(--border-strong); }
p a:hover, li a:hover { text-decoration-color: var(--text); }

strong { font-weight: 600; }

.mono {
  font-family: var(--font-mono);
  font-feature-settings: "tnum";
}

.muted { color: var(--text-muted); }

:focus-visible {
  outline: 2px solid var(--indigo-dot);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

.skip {
  position: absolute; left: var(--space-lg); top: -100px;
  background: var(--ink); color: var(--ink-fg);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--r-pill);
  z-index: 100;
}
.skip:focus { top: var(--space-lg); }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}
@media (min-width: 720px) {
  .container { padding-left: var(--space-xl); padding-right: var(--space-xl); }
}

/* A page is a vertical flow of sections separated by a hairline + air. */
.section {
  padding-top: var(--space-xxxl);
  padding-bottom: var(--space-xxxl);
}
.section + .section { border-top: 1px solid var(--border); }
@media (min-width: 900px) {
  .section { padding-top: calc(var(--space-xxxl) * 2); padding-bottom: calc(var(--space-xxxl) * 2); }
}

.section-title {
  font-size: var(--display-lg);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-md);
}
@media (min-width: 900px) {
  .section-title { font-size: var(--display-xl); letter-spacing: -0.02em; }
}
.section-lede {
  font-size: var(--body-lg);
  color: var(--text-muted);
  line-height: 1.5;
}
.section-head { margin-bottom: var(--space-xxl); }

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

.site-head {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.site-head .container {
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-lg);
}

.wordmark {
  display: inline-flex; align-items: center; gap: var(--space-sm);
  font-weight: 600; font-size: var(--heading); letter-spacing: -0.012em;
  color: var(--text);
}
.wordmark svg { width: 20px; height: 20px; flex-shrink: 0; }

.site-nav { display: flex; align-items: center; gap: var(--space-xs); }
.site-nav a {
  font-size: var(--label); font-weight: 500;
  color: var(--text-muted);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--r-pill);
  transition: background var(--enter), color var(--enter);
}
.site-nav a:hover { color: var(--text); background: var(--hover); }
.site-nav a.is-current { color: var(--text); }
.site-nav .hide-sm { display: none; }
@media (min-width: 560px) { .site-nav .hide-sm { display: inline-flex; } }

.site-foot {
  border-top: 1px solid var(--border);
  padding: var(--space-xxl) 0 var(--space-xxxl);
  color: var(--text-muted);
  font-size: var(--label);
}
.site-foot .container {
  display: flex; flex-direction: column; gap: var(--space-lg);
}
.foot-links { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); }
.foot-links a { color: var(--text-muted); }
.foot-links a:hover { color: var(--text); }
.foot-legal { color: var(--text-muted); }
@media (min-width: 720px) {
  .site-foot .container { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* --------------------------------------------------------------------------
   Buttons — all pills (DESIGN.md)
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm);
  height: 32px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: var(--label);
  font-weight: 500;
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--enter), color var(--enter), border-color var(--enter), opacity var(--enter);
}
.btn-ink { background: var(--ink); color: var(--ink-fg); }
.btn-ink:hover { opacity: 0.92; color: var(--ink-fg); }
.btn-secondary { background: var(--card); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--hover); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); background: var(--hover); }

.btn-lg {
  height: 44px;
  padding: 0 var(--space-xl);
  font-size: var(--body);
  font-weight: 600;
}
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-md); align-items: center; }

/* --------------------------------------------------------------------------
   Chips — one form per meaning (DESIGN.md "Visual vocabulary")
     .chip  = Identity: vivid dot + name, hue tint, pill
     .tag   = Category: hue tint, NO dot, pill
     status = plain colored text, no container
   -------------------------------------------------------------------------- */

.chip, .tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 11px; font-weight: 500; line-height: 1.4;
  white-space: nowrap;
}
.chip { padding-left: 8px; }
.chip .dot { width: 8px; height: 8px; border-radius: var(--r-pill); flex-shrink: 0; }

.chip-coral    { background: var(--coral-bg);    color: var(--coral-fg); }
.chip-blue     { background: var(--blue-bg);     color: var(--blue-fg); }
.chip-coral    .dot { background: var(--coral-dot); }
.chip-blue     .dot { background: var(--blue-dot); }

.tag-lavender  { background: var(--lavender-bg); color: var(--lavender-fg); }
.tag-butter    { background: var(--butter-bg);   color: var(--butter-fg); }
.tag-indigo       { background: var(--indigo-bg);      color: var(--indigo-fg); }
.tag-coral     { background: var(--coral-bg);    color: var(--coral-fg); }
.tag-blue      { background: var(--blue-bg);     color: var(--blue-fg); }
.tag-neutral   { background: var(--card-2);      color: var(--text-muted); border: 1px solid var(--border); }

.status-green     { color: var(--green-fg); }
.status-lavender { color: var(--lavender-fg); }

/* Kid avatar — all kids green-dot (brand v2); told apart by initial / photo */
.kid-av {
  width: 18px; height: 18px;
  border-radius: var(--r-pill);
  font-family: var(--font-serif);
  font-weight: 700; font-size: 10px; line-height: 1;
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--card);
  flex-shrink: 0;
}
.kid-av.f { background: var(--green-dot); }
.kid-av.m { background: var(--green-dot); }
.kid-stack { display: inline-flex; }
.kid-stack .kid-av + .kid-av { margin-left: -7px; }
.kid-av.lg { width: 26px; height: 26px; font-size: 13px; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero-wrap { padding-top: var(--space-xl); padding-bottom: var(--space-xxxl); }
@media (min-width: 900px) { .hero-wrap { padding-top: var(--space-xxl); } }

.hero {
  background: var(--card);
  border: 1px solid var(--border);
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-lg);
  padding: var(--space-xxl) var(--space-xl);
  display: grid;
  gap: var(--space-xxl);
  align-items: center;
}
@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    padding: var(--space-xxxl);
    gap: var(--space-xxxl);
  }
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: var(--space-lg);
}
.hero h1 {
  font-size: var(--display-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  max-width: 14ch;
}
@media (min-width: 900px) { .hero h1 { font-size: clamp(var(--display-2xl), 4.6vw, 56px); } }
.hero-sub {
  margin-top: var(--space-lg);
  font-size: var(--body-lg);
  line-height: 1.5;
  color: var(--text);
  max-width: 46ch;
}
@media (min-width: 900px) { .hero-sub { font-size: 18px; } }
.hero .btn-row { margin-top: var(--space-xl); }
.hero-note {
  margin-top: var(--space-lg);
  font-size: var(--caption);
  color: var(--text-muted);
}
.hero-note .sep { margin: 0 var(--space-sm); color: var(--text-subtle); }

/* --------------------------------------------------------------------------
   Device frame — CSS only. Degrades to a tinted placeholder when the
   screenshot is missing (the <img onerror> adds .is-missing).
   -------------------------------------------------------------------------- */

.device {
  width: min(100%, 232px);
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: var(--space-sm);
  box-shadow: var(--shadow-card);
  position: relative;
}
@media (min-width: 900px) { .device { width: min(100%, 272px); } }
.device::before {
  /* speaker hint */
  content: "";
  position: absolute; top: var(--space-xs); left: 50%;
  width: 40px; height: 4px; transform: translateX(-50%);
  border-radius: var(--r-pill);
  background: var(--border-strong);
}
.device-screen {
  position: relative;
  aspect-ratio: 1206 / 2622;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--card-2);
  border: 1px solid var(--border);
  margin-top: var(--space-xs);
}
.device-screen img {
  display: block; width: 100%; height: 100%; object-fit: cover;
}
.device-ph {
  position: absolute; inset: 0;
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-sm);
  color: var(--text-subtle);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--card-2);
}
.device-ph::before {
  content: ""; width: 48px; height: 48px; border-radius: var(--r-pill);
  border: 1px solid var(--border-strong); background: var(--card);
}
.device.is-missing img { display: none; }
.device.is-missing .device-ph { display: flex; }

/* --------------------------------------------------------------------------
   Problem statement
   -------------------------------------------------------------------------- */

.problem {
  font-size: var(--display-lg);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.012em;
  max-width: 34ch;
  color: var(--text);
}
@media (min-width: 900px) { .problem { font-size: var(--display-xl); letter-spacing: -0.018em; } }
.problem strong { font-weight: 700; }

/* --------------------------------------------------------------------------
   Feature blocks — text + illustrative UI fragment, alternating
   -------------------------------------------------------------------------- */

.features { display: flex; flex-direction: column; gap: var(--space-xxxl); }
@media (min-width: 900px) { .features { gap: calc(var(--space-xxxl) * 2); } }

.feature {
  display: grid; gap: var(--space-xl);
  align-items: center;
}
@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-xxxl); }
  .feature.flip .feature-copy { order: 2; }
}
.feature h3 { font-size: var(--display-lg); letter-spacing: -0.015em; margin-bottom: var(--space-md); }
.feature p { color: var(--text-muted); font-size: var(--body-lg); line-height: 1.5; }
.feature p + p { margin-top: var(--space-md); }

/* UI fragments: flat white panel, hairline, r-md. Interactive-looking
   surfaces (chips, cards, pills) are allowed here because they illustrate
   interactive product elements. */
.ui {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  font-size: var(--label);
  max-width: 440px;
  margin: 0 auto;
  width: 100%;
}
@media (min-width: 900px) { .ui { margin: 0; } }
.feature.flip .ui { margin-left: auto; }
@media (max-width: 899px) { .feature.flip .ui { margin-left: auto; margin-right: auto; } }

.ui-head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-md);
  margin-bottom: var(--space-md);
}
.ui-title { font-size: var(--heading); font-weight: 600; letter-spacing: -0.01em; }
.ui-sub { font-size: var(--caption); color: var(--text-muted); margin-top: 2px; }
.ui-meta { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); font-feature-settings: "tnum"; }

/* Week strip — two rows of 7, tinted by who has the kids. */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: var(--space-xs); }
.week + .week { margin-top: var(--space-xs); }
.wd {
  border-radius: var(--r-xs);
  padding: var(--space-sm) var(--space-xs);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-height: 56px;
  position: relative;
}
.wd.zone-a { background: rgba(255, 107, 107, 0.16); }   /* parent A — coral */
.wd.zone-b { background: rgba(91, 141, 239, 0.16); }    /* parent B — blue */
.wd.today  { box-shadow: inset 0 0 0 1px rgba(255, 120, 73, 0.22); }
.wd-l { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.wd-n { font-family: var(--font-mono); font-size: 15px; font-weight: 500; color: var(--text); font-feature-settings: "tnum"; }
.wd-h {
  position: absolute; left: 50%; bottom: -3px; transform: translateX(-50%);
  width: 6px; height: 6px; border-radius: var(--r-pill);
  background: var(--card); border: 1.5px solid var(--text-muted);
}
.week-foot {
  margin-top: var(--space-md); padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); flex-wrap: wrap;
}
.legend { display: flex; align-items: center; gap: var(--space-sm); flex-wrap: wrap; }
.handoff-line { display: inline-flex; align-items: center; gap: var(--space-sm); color: var(--text-muted); font-size: var(--caption); }
.handoff-line .wd-h { position: static; transform: none; }

/* Event chips — color = event type, kid = avatar */
.ev-list { display: flex; flex-direction: column; gap: var(--space-sm); }
.ev {
  border-radius: var(--r-sm);
  padding: var(--space-sm) var(--space-md);
  display: flex; flex-direction: column; gap: 3px;
}
.ev-coral { background: var(--coral-bg); color: var(--coral-fg); }
.ev-blue  { background: var(--blue-bg);  color: var(--blue-fg); }
.ev-indigo   { background: var(--indigo-bg);   color: var(--indigo-fg); }
.ev-head { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ev-title { font-weight: 500; font-size: var(--label); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-time, .ev-place { font-family: var(--font-mono); font-size: 11px; font-feature-settings: "tnum"; }
.ev-time { opacity: 0.85; }
.ev-place { opacity: 0.7; }
.ev-pending {
  /* DESIGN.md pending state: dashed fg @ .55 over bg @ .35 */
  background: color-mix(in srgb, var(--indigo-bg) 35%, transparent);
  border: 1px dashed color-mix(in srgb, var(--indigo-fg) 55%, transparent);
}
.ev-status { font-family: var(--font-mono); font-size: 11px; color: var(--indigo-fg); opacity: 0.85; }
.ev-day {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); margin: var(--space-xs) 0 2px;
}

/* Request card */
.req-head { display: flex; align-items: center; gap: var(--space-sm); flex-wrap: wrap; }
.req-head .ui-meta { margin-left: auto; }
.req-body { margin-top: var(--space-md); font-size: var(--body); line-height: 1.5; color: var(--text); max-width: none; }
.req-meta { margin-top: var(--space-sm); font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); font-feature-settings: "tnum"; }
.req-actions {
  margin-top: var(--space-md); padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  display: flex; gap: var(--space-sm);
}

/* School calendar card — divider rows, neutral glyph, neutral tag */
.sc-row {
  display: flex; align-items: center; gap: var(--space-md);
  padding: var(--space-md) 0;
  border-top: 1px solid var(--border);
}
.sc-row:last-child { padding-bottom: 0; }
.glyph {
  width: 26px; height: 26px; border-radius: var(--r-pill);
  background: var(--card-2); color: var(--text-muted);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.glyph svg { width: 14px; height: 14px; }
.sc-day { font-weight: 500; color: var(--text); font-size: var(--label); }
.sc-note { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.sc-row .tag { margin-left: auto; }

/* Also in the box */
.also {
  margin-top: var(--space-xxxl);
  padding-top: var(--space-xxl);
  border-top: 1px solid var(--border);
  display: grid; gap: var(--space-xl);
}
@media (min-width: 720px) { .also { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .also { grid-template-columns: repeat(4, 1fr); } }
.also-item h4 { font-size: var(--heading); font-weight: 600; margin: var(--space-md) 0 var(--space-xs); }
.also-item p { color: var(--text-muted); font-size: var(--body); line-height: 1.5; }
.icon { width: 22px; height: 22px; color: var(--text); }
.icon svg { width: 100%; height: 100%; stroke-width: 1.5; }
/* Brand icons (DESIGN.md "Iconography"): the two-tone family at 48px, only for
   feature moments; compact glyphs above stay single-hue. */
.icon.brand { width: 48px; height: 48px; }
.icon.brand img { display: block; width: 100%; height: 100%; }
.feature-copy .icon.brand { margin-bottom: var(--space-md); }

/* --------------------------------------------------------------------------
   Snap section — photo tile -> extracted summary
   -------------------------------------------------------------------------- */

.snap { display: grid; gap: var(--space-xxl); align-items: center; }
@media (min-width: 900px) { .snap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-xxxl); } }

.snap-flow {
  display: grid; gap: var(--space-md); align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .snap-flow { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); } }

.photo {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-card);
}
.photo-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
  background: var(--card-2); border: 1px solid var(--border); border-radius: var(--r-xs); padding: var(--space-xs);
}
.photo-grid i { display: block; aspect-ratio: 1; border-radius: 2px; background: var(--card); border: 1px solid var(--border); }
.photo-grid i.mark { background: var(--selected); border-color: var(--border-strong); }
.photo-cap { margin-top: var(--space-sm); font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }

.flow-arrow { display: flex; justify-content: center; color: var(--text-subtle); }
.flow-arrow svg { width: 22px; height: 22px; transform: rotate(90deg); }
@media (min-width: 560px) { .flow-arrow svg { transform: none; } }

.found { padding: var(--space-md) var(--space-lg); }
.found-row { display: flex; align-items: center; gap: var(--space-md); padding: var(--space-sm) 0; }
.found-row + .found-row { border-top: 1px solid var(--border); }
.found-n { font-family: var(--font-mono); font-size: var(--heading); font-weight: 500; min-width: 2ch; color: var(--text); font-feature-settings: "tnum"; }
.found-l { color: var(--text-muted); font-size: var(--label); }
.found-l strong { color: var(--text); }
.found-foot { margin-top: var(--space-sm); padding-top: var(--space-sm); border-top: 1px solid var(--border); font-size: var(--caption); }

/* --------------------------------------------------------------------------
   Principles — divider-separated rows (no boxes)
   -------------------------------------------------------------------------- */

.rows { border-top: 1px solid var(--border); }
.row {
  display: grid; gap: var(--space-sm);
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 720px) {
  .row { grid-template-columns: 40px minmax(0, 260px) minmax(0, 1fr); gap: var(--space-xl); align-items: start; }
}
.row h3 { font-size: var(--heading); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.row p { color: var(--text-muted); font-size: var(--body-lg); line-height: 1.5; max-width: 60ch; }
.row .icon { display: none; }
@media (min-width: 720px) { .row .icon { display: block; margin-top: 1px; } }

/* --------------------------------------------------------------------------
   How it works — 3 steps + device
   -------------------------------------------------------------------------- */

.how { display: grid; gap: var(--space-xxl); align-items: center; }
@media (min-width: 900px) { .how { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: var(--space-xxxl); } }

.steps { counter-reset: step; }
.step {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--space-lg);
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
}
.step:last-child { border-bottom: 1px solid var(--border); }
.step-n { font-family: var(--font-mono); font-size: var(--heading); font-weight: 500; color: var(--coral-fg); font-feature-settings: "tnum"; padding-top: 2px; }
.step h3 { font-size: var(--heading); font-weight: 600; margin-bottom: var(--space-xs); }
.step p { color: var(--text-muted); font-size: var(--body-lg); line-height: 1.5; }
.step .example {
  display: inline-block; margin-top: var(--space-sm);
  font-family: var(--font-serif); font-weight: 600; font-size: var(--body-lg);
  color: var(--text);
}

/* --------------------------------------------------------------------------
   FAQ — native <details>
   -------------------------------------------------------------------------- */

.faq { border-top: 1px solid var(--border); max-width: 760px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg);
  padding: var(--space-lg) 0;
  font-size: var(--heading); font-weight: 600; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 8px; height: 8px; flex-shrink: 0;
  border-right: 1.5px solid var(--text-muted); border-bottom: 1.5px solid var(--text-muted);
  transform: rotate(45deg); transition: transform var(--enter);
  margin-right: var(--space-xs);
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .answer { padding: 0 0 var(--space-lg); color: var(--text-muted); font-size: var(--body-lg); line-height: 1.55; }
.faq .answer p + p { margin-top: var(--space-md); }

/* --------------------------------------------------------------------------
   Closing CTA
   -------------------------------------------------------------------------- */

.cta { text-align: center; }
.cta .section-title { margin-bottom: var(--space-sm); }
.cta p { margin: 0 auto; color: var(--text-muted); font-size: var(--body-lg); }
.cta .btn-row { justify-content: center; margin-top: var(--space-xl); }
.cta .hero-note { margin-top: var(--space-lg); }

/* --------------------------------------------------------------------------
   Document pages — privacy / terms / support
   -------------------------------------------------------------------------- */

.doc { padding-top: var(--space-xxl); padding-bottom: calc(var(--space-xxxl) * 2); }
.doc-head { margin-bottom: var(--space-xxl); padding-bottom: var(--space-xl); border-bottom: 1px solid var(--border); }
.doc-head h1 { font-size: var(--display-xl); letter-spacing: -0.02em; margin: var(--space-md) 0 var(--space-sm); }
@media (min-width: 720px) { .doc-head h1 { font-size: var(--display-2xl); } }
.doc-meta { font-family: var(--font-mono); font-size: var(--mono); color: var(--text-muted); font-feature-settings: "tnum"; }
.doc-lede { margin-top: var(--space-md); color: var(--text-muted); font-size: var(--body-lg); }

.doc-body { max-width: 720px; }
.doc-body h2 {
  font-size: var(--display-lg); letter-spacing: -0.015em;
  margin-top: var(--space-xxl); margin-bottom: var(--space-md);
  padding-top: var(--space-xl); border-top: 1px solid var(--border);
}
.doc-body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.doc-body h3 { font-size: var(--heading); font-weight: 600; margin-top: var(--space-xl); margin-bottom: var(--space-sm); }
.doc-body p, .doc-body li { font-size: var(--body-lg); line-height: 1.6; color: var(--text); max-width: var(--measure); }
.doc-body p + p { margin-top: var(--space-md); }
.doc-body ul, .doc-body ol { margin: var(--space-md) 0; padding-left: var(--space-xl); }
.doc-body li + li { margin-top: var(--space-sm); }
.doc-body .note {
  background: var(--card-2); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: var(--space-lg); margin: var(--space-lg) 0;
  color: var(--text-muted); font-size: var(--body);
}
.doc-body code { font-family: var(--font-mono); font-size: 0.92em; }
.doc-body table { width: 100%; border-collapse: collapse; margin: var(--space-md) 0; font-size: var(--body); }
.doc-body th, .doc-body td { text-align: left; vertical-align: top; padding: var(--space-md) var(--space-sm); border-bottom: 1px solid var(--border); }
.doc-body th { font-weight: 600; color: var(--text-muted); font-size: var(--label); }

/* Support contact rows */
.contact {
  display: grid; gap: var(--space-lg);
  margin: var(--space-xl) 0;
}
@media (min-width: 720px) { .contact { grid-template-columns: repeat(2, 1fr); } }
.contact-item { padding: var(--space-lg) 0; border-top: 1px solid var(--border); }
.contact-item .k { font-size: var(--label); color: var(--text-muted); font-weight: 500; margin-bottom: var(--space-xs); }
.contact-item .v { font-size: var(--heading); font-weight: 600; }
.contact-item .v a { text-decoration: none; }


/* --------------------------------------------------------------------------
   Brand v2 (2026-09-13) — Nunito display type, overlap motif, icon tiles.
   See DESIGN.md "Palette", "Typography", "Overlap motif".
   -------------------------------------------------------------------------- */

h1, h2, h3, .hero h1, .section-title, .wordmark {
  font-family: var(--font-display);
}
h1, .hero h1 { font-weight: 800; }
h2, h3, .section-title { font-weight: 700; }
.wordmark { font-weight: 800; letter-spacing: -0.01em; }
.wordmark svg { width: 22px; height: 22px; }
.kid-av { font-family: var(--font-display); font-weight: 800; }

/* Overlap motif — two circles, coral from the left, blue from the right, indigo
   where they meet. Cropped by the surface. Only on hero / empty surfaces. */
.overlap, .hero { position: relative; overflow: hidden; isolation: isolate; }
.overlap::before, .overlap::after,
.hero::before, .hero::after {
  content: "";
  position: absolute; bottom: -38%; width: 62%; aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.92;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}
.overlap::before, .hero::before { left: -12%; background: var(--coral); }
.overlap::after,  .hero::after  { right: -12%; background: var(--blue); }
.hero > * { position: relative; z-index: 1; }
@media (min-width: 900px) {
  /* extra room at the bottom so the motif never sits under the hero copy */
  .hero { padding-bottom: calc(var(--space-xxxl) + 88px); }
  /* wider than half so the two circles overlap under the centre (the indigo lens) */
  .hero::before, .hero::after { width: 70%; bottom: -80%; }
  .hero::before { left: -10%; }
  .hero::after  { right: -10%; }
}

/* Icon tile — a 40px hue-bg square with the glyph in the hue dot colour. */
.tile {
  width: 40px; height: 40px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  background: var(--card-2); color: var(--text-muted);
}
.tile svg { width: 20px; height: 20px; }
.tile-coral    { background: var(--coral-bg);    color: var(--coral-dot); }
.tile-blue     { background: var(--blue-bg);     color: var(--blue-dot); }
.tile-indigo   { background: var(--indigo-bg);   color: var(--indigo-dot); }
.tile-green    { background: var(--green-bg);    color: var(--green-dot); }
.tile-butter   { background: var(--butter-bg);   color: var(--butter-dot); }
.tile-lavender { background: var(--lavender-bg); color: var(--lavender-dot); }
