/* =============================================================
   Little Stars — Marketing Site
   Design system + components. AAA contrast targets enforced.
   ============================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg: #fff9f0;
  --bg-warm: #fff4e6;
  --bg-card: #ffffff;
  --bg-soft: #fff1f2;
  --ink-900: #1c1917;
  --ink-700: #44403c;
  --ink-600: #57534e;
  --line: #e7e5e4;
  --line-strong: #a8a29e;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --rose-300: #fda4af;
  --rose-500: #f43f5e;
  --emerald-500: #10b981;
  --emerald-700: #047857;
  --violet-500: #8b5cf6;
  --shadow-sticker: 0 4px 0 rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);
  --shadow-lg: 0 6px 0 rgba(0,0,0,0.08), 0 4px 14px rgba(0,0,0,0.08);
  --radius-sm: 0.5rem;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --radius-pill: 9999px;
  --max: 72rem;
  --max-prose: 42rem;
  --focus: 3px solid var(--ink-900);
  --focus-offset: 3px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -moz-text-size-adjust: 100%; text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; }

/* ---------- Base ---------- */
html { color-scheme: light; }
body {
  margin: 0;
  font-family: 'Nunito', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-900);
  background: radial-gradient(circle at 10% 0%, var(--bg-warm) 0%, var(--bg) 30%, #fffbf5 100%);
  min-height: 100vh;
}
.font-display { font-family: 'Fredoka', system-ui, sans-serif; letter-spacing: -0.01em; font-weight: 600; }

h1, h2, h3, h4 { font-family: 'Fredoka', system-ui, sans-serif; font-weight: 600; line-height: 1.15; color: var(--ink-900); }
h1 { font-size: clamp(2.25rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.375rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.125rem; }

p { color: var(--ink-700); }
strong { font-weight: 700; color: var(--ink-900); }
small { font-size: 0.875rem; }

a {
  color: var(--amber-900);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--ink-900); }

/* ---------- Focus (AAA-grade) ---------- */
/* Robust fallback: keep a visible outline for any :focus, then refine
   for browsers supporting :focus-visible (so mouse clicks don't keep rings). */
:focus { outline: var(--focus); outline-offset: var(--focus-offset); border-radius: 4px; }
@supports selector(:focus-visible) {
  :focus { outline: none; }
  :focus-visible {
    outline: var(--focus);
    outline-offset: var(--focus-offset);
    border-radius: 4px;
  }
}
.btn:focus-visible, a.btn:focus-visible { outline-offset: 4px; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--ink-900);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--amber-400);
  outline-offset: 3px;
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.prose { max-width: var(--max-prose); margin: 0 auto; }
.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section-tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.center { text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 249, 240, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1.375rem;
  color: var(--ink-900);
  text-decoration: none;
}
.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.625rem;
  background: linear-gradient(135deg, var(--amber-400), var(--rose-300));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sticker);
  color: #fff;
}
.brand-mark svg { width: 1.125rem; height: 1.125rem; }

.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: 0.25rem; align-items: center; flex-wrap: wrap; }
.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px; /* WCAG 2.5.5 / 2.5.8 target size */
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink-900);
  font-weight: 600;
}
.primary-nav a:hover { background: var(--amber-100); }
.primary-nav a[aria-current="page"] {
  background: var(--ink-900);
  color: #fff;
}

/* ---------- Mobile hamburger ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0 0.75rem;
  margin-left: auto;
  background: var(--bg-card);
  color: var(--ink-900);
  border: 2px solid var(--ink-900);
  border-radius: var(--radius-sm);
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}
.nav-toggle svg { width: 1.125rem; height: 1.125rem; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 720px) {
  .site-header .wrap { flex-wrap: nowrap; gap: 0.5rem; }
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1rem 1rem;
    box-shadow: 0 16px 32px rgba(0,0,0,0.10);
  }
  .primary-nav[data-open="true"] { display: block; }
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }
  .primary-nav li { width: 100%; }
  .primary-nav a,
  .primary-nav a.btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .primary-nav li:has(.btn-primary) { margin-top: 0.5rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.375rem;
  border-radius: var(--radius);
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease;
  min-height: 44px; /* WCAG target size */
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--amber-400);
  color: var(--ink-900);
  box-shadow: var(--shadow-sticker);
  border-color: var(--ink-900);
}
.btn-primary:hover { background: var(--amber-300); color: var(--ink-900); }
.btn-secondary {
  background: var(--bg-card);
  color: var(--ink-900);
  border-color: var(--ink-900);
}
.btn-secondary:hover { background: var(--bg-warm); color: var(--ink-900); }
.btn-ghost {
  background: transparent;
  color: var(--ink-900);
  text-decoration: underline;
}
.btn-ghost:hover { background: var(--amber-100); text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem); }
.hero h1 { margin-bottom: 1rem; }
.hero .lead { font-size: clamp(1.125rem, 1.6vw, 1.25rem); color: var(--ink-700); max-width: 38rem; }
.hero .cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 2rem; }

.eyebrow {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--amber-100);
  color: var(--amber-900);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-2 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--bg-card);
  border: 2px solid var(--ink-900);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sticker);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover, .card:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 10px 0 rgba(0,0,0,0.10), 0 10px 24px rgba(0,0,0,0.12);
}
.card h3 { margin-bottom: 0.5rem; }
.card-icon {
  width: 3rem; height: 3rem; border-radius: 0.875rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--amber-100);
  color: var(--amber-900);
  margin-bottom: 1rem;
  border: 2px solid var(--ink-900);
  transition: transform 0.3s ease, background-color 0.2s ease;
}
.card-icon svg { width: 1.5rem; height: 1.5rem; }
.card:hover .card-icon, .card:focus-within .card-icon {
  transform: rotate(-6deg) scale(1.06);
  background: var(--amber-300);
}

/* ---------- How-it-works steps ---------- */
.steps { counter-reset: step; }
.steps li {
  counter-increment: step;
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 2px solid var(--ink-900);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sticker);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.steps li:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 0 rgba(0,0,0,0.10), 0 10px 24px rgba(0,0,0,0.12);
}
.steps li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--ink-900); color: #fff;
  font-family: 'Fredoka', sans-serif; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.125rem;
}

/* ---------- Pricing ---------- */
.tier {
  background: var(--bg-card);
  border: 2px solid var(--ink-900);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tier:hover, .tier:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 12px 0 rgba(0,0,0,0.10), 0 14px 28px rgba(0,0,0,0.14);
}
.tier.featured {
  background: linear-gradient(180deg, #fffbeb, var(--bg-card));
  position: relative;
}
.tier .price {
  font-family: 'Fredoka', sans-serif;
  font-size: 3rem;
  font-weight: 600;
  margin: 1rem 0 0.25rem;
  color: var(--ink-900);
}
.tier .price-note { color: var(--ink-700); font-size: 0.95rem; }
.tier ul { margin: 1.5rem 0; display: flex; flex-direction: column; gap: 0.625rem; }
.tier li { display: flex; gap: 0.625rem; align-items: flex-start; }
.tier li svg { flex-shrink: 0; width: 1.25rem; height: 1.25rem; margin-top: 0.18rem; color: var(--emerald-700); }
.tier li.no svg { color: var(--ink-600); }
.tier li.no span { color: var(--ink-600); text-decoration: line-through; }
.tier .btn { margin-top: auto; width: 100%; }
.featured-tag {
  position: absolute; top: -0.875rem; left: 1.5rem;
  background: var(--ink-900); color: #fff;
  padding: 0.25rem 0.75rem; border-radius: var(--radius-pill);
  font-size: 0.875rem; font-weight: 700; letter-spacing: 0.04em;
}

/* ---------- Comparison table ---------- */
.compare {
  width: 100%; border-collapse: collapse;
  background: var(--bg-card);
  border: 2px solid var(--ink-900);
  border-radius: var(--radius);
  overflow: hidden;
}
.compare caption { caption-side: top; text-align: left; padding: 0 0 0.75rem; font-weight: 700; }
.compare th, .compare td { padding: 0.875rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--bg-warm); font-family: 'Fredoka', sans-serif; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare th:first-child, .compare td:first-child { font-weight: 600; color: var(--ink-900); }
.compare td:not(:first-child) { text-align: center; }
.compare svg { display: inline-block; vertical-align: middle; width: 1.125rem; height: 1.125rem; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 0.75rem; }
.faq details {
  background: var(--bg-card);
  border: 2px solid var(--ink-900);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow-sticker);
}
.faq summary {
  list-style: none;
  padding: 1rem 1.25rem;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-radius: var(--radius);
  transition: background-color 0.15s ease;
}
.faq summary:hover { background: var(--amber-50); }
.faq details[open] summary { background: var(--bg-warm); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 0.75rem; height: 0.75rem;
  border-right: 3px solid var(--ink-900);
  border-bottom: 3px solid var(--ink-900);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details > div { padding: 0 1.25rem 1.25rem; color: var(--ink-700); }

/* ---------- Contact split layout ---------- */
.contact-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
}
@media (min-width: 820px) {
  .contact-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
}

/* ---------- Form ---------- */
.form { display: flex; flex-direction: column; gap: 1.25rem; max-width: 36rem; }
.field { display: flex; flex-direction: column; gap: 0.375rem; }
.field label { font-weight: 700; color: var(--ink-900); }
.field .hint { color: var(--ink-600); font-size: 0.875rem; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.75rem 0.875rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--ink-900);
  background: var(--bg-card);
  color: var(--ink-900);
  font-size: 1rem;
}
.field input:focus-visible, .field textarea:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
  border-color: var(--ink-900);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--rose-500); }
.field-error { color: #9f1239; font-size: 0.875rem; font-weight: 700; }

/* ---------- Stats / signal blocks ---------- */
.signals { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.signal {
  background: var(--bg-card);
  border: 2px solid var(--ink-900);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--ink-900);
  box-shadow: var(--shadow-sticker);
}
.signal svg { width: 1.125rem; height: 1.125rem; color: var(--amber-700); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-900);
  color: #f5f5f4;
  margin-top: 4rem;
  padding: 3rem 0 2rem;
}
.site-footer h2 { color: #fff; font-size: 1.125rem; margin-bottom: 0.75rem; }
.site-footer p { color: #d6d3d1; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--amber-300); }
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid ul { display: flex; flex-direction: column; gap: 0.5rem; }
.socials { display: flex; gap: 0.5rem; margin-top: 1rem; }
.socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: 0.625rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  text-decoration: none;
}
.socials a:hover { background: rgba(255,255,255,0.18); color: var(--amber-300); }
.socials svg { width: 1.25rem; height: 1.25rem; }
.legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  color: #a8a29e;
  font-size: 0.9rem;
}

/* ---------- Breadcrumbs ---------- */
.crumbs {
  font-size: 0.9rem;
  color: var(--ink-700);
  padding: 1rem 0 0;
}
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.crumbs li::after { content: "›"; margin-left: 0.5rem; color: var(--ink-600); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--amber-900); }
.crumbs [aria-current="page"] { color: var(--ink-900); font-weight: 700; }

/* ---------- Banner / placeholder note ---------- */
.placeholder-banner {
  background: var(--amber-100);
  border: 2px dashed var(--amber-800);
  color: var(--amber-900);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
}

/* ---------- Visually hidden (a11y) ---------- */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ---------- Signal tooltip (5 languages, etc.) ---------- */
.signal-tip { position: relative; }
.signal-btn {
  background: var(--bg-card);
  border: 2px solid var(--ink-900);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--ink-900);
  box-shadow: var(--shadow-sticker);
  font-size: 1rem;
  cursor: help;
  min-height: 44px;
  transition: background-color 0.15s ease;
}
.signal-btn svg { width: 1.125rem; height: 1.125rem; color: var(--amber-700); }
.signal-btn::after {
  content: "";
  width: 0.5rem; height: 0.5rem;
  border-right: 2px solid var(--ink-900);
  border-bottom: 2px solid var(--ink-900);
  transform: rotate(45deg);
  margin-left: 0.25rem;
  margin-top: -0.25rem;
}
.signal-btn:hover, .signal-btn:focus-visible { background: var(--amber-50); }

.lang-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink-900);
  color: #fff;
  padding: 0.875rem 1.125rem;
  border-radius: 0.875rem;
  min-width: 200px;
  font-size: 0.95rem;
  line-height: 1.45;
  z-index: 60;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.15s ease, visibility 0s linear 0.15s, transform 0.15s ease;
  pointer-events: none;
  box-shadow: 0 12px 28px rgba(0,0,0,0.22);
}
.lang-tooltip strong { color: var(--amber-300); display: block; margin-bottom: 0.375rem; font-weight: 700; }
.lang-tooltip ul { display: flex; flex-direction: column; gap: 0.25rem; }
.lang-tooltip li { color: #f5f5f4; }
.lang-tooltip::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px;
  background: var(--ink-900);
  border-radius: 2px;
}
.signal-tip:hover .lang-tooltip,
.signal-tip:focus-within .lang-tooltip {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(2px);
  transition-delay: 0s;
}

/* ---------- Showcase / phone mockups ---------- */
.showcase {
  background: linear-gradient(180deg, transparent, #fff7ec 30%, #fff7ec 70%, transparent);
}
.phones {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 1rem 0;
  perspective: 1200px;
}
.phone {
  width: 240px;
  flex-shrink: 0;
  background: #1c1917;
  border-radius: 38px;
  padding: 10px;
  box-shadow:
    0 30px 60px rgba(28,25,23,0.22),
    0 8px 18px rgba(28,25,23,0.14),
    inset 0 0 0 2px #292524;
  position: relative;
  transition: transform 0.4s cubic-bezier(.22,1.3,.36,1);
}
.phone-tilt-l { transform: rotate(-6deg) translateY(8px); }
.phone-tilt-r { transform: rotate(6deg) translateY(8px); }
.phone:hover, .phone:focus-within {
  transform: rotate(0) translateY(-6px) scale(1.03);
  z-index: 5;
}
/* Notch */
.phone::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #1c1917;
  border-radius: 9999px;
  z-index: 4;
}
.phone-screen {
  background: var(--bg);
  border-radius: 28px;
  height: 480px;
  overflow: hidden;
  position: relative;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-900);
}
.phone-screen .scr {
  padding: 50px 16px 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Common app-mock pieces */
.mock-h1 { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 22px; color: var(--ink-900); }
.mock-h2 { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 17px; color: var(--ink-900); }
.mock-sub { color: var(--ink-700); font-size: 12px; }
.mock-pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--amber-100); color: var(--amber-900);
  border-radius: 9999px; padding: 2px 8px; font-size: 10px; font-weight: 700;
}
.mock-card {
  background: #fff;
  border: 1.5px solid var(--ink-900);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 2px 0 rgba(0,0,0,0.07);
}
.mock-btn {
  background: var(--amber-400);
  color: var(--ink-900);
  border-radius: 12px;
  padding: 9px 12px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  text-align: center;
  font-size: 13px;
  border: 2px solid var(--ink-900);
  box-shadow: 0 2px 0 rgba(0,0,0,0.08);
}
.mock-input {
  background: #fff;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 11px;
  color: var(--ink-700);
}
.mock-label { font-size: 11px; font-weight: 700; color: var(--ink-900); margin-bottom: 3px; }

/* Auth screen */
.scr-auth { gap: 12px; align-items: stretch; text-align: center; }
.scr-auth .auth-star {
  width: 36px; height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--amber-400), var(--rose-300));
  margin: 4px auto 6px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--ink-900);
}
.scr-auth .auth-star svg { width: 20px; height: 20px; color: #fff; }
.scr-auth .tabs {
  display: flex;
  background: var(--amber-100);
  padding: 3px;
  border-radius: 10px;
  margin: 4px 0;
}
.scr-auth .tabs span {
  flex: 1; text-align: center; padding: 6px;
  font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 12px;
  border-radius: 8px;
}
.scr-auth .tabs .active { background: #fff; color: var(--ink-900); box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.scr-auth .tabs .inactive { color: var(--ink-600); }
.scr-auth .field-row { text-align: left; }
.scr-auth .field-row + .field-row { margin-top: 2px; }

/* Family chart screen */
.scr-chart .who {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; background: #fff;
  border: 1.5px solid var(--ink-900);
  border-radius: 14px;
  margin-bottom: 12px;
}
.scr-chart .who .ava {
  width: 36px; height: 36px;
  border-radius: 12px;
  background: var(--rose-300);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  border: 1.5px solid var(--ink-900);
}
.scr-chart .who .name { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 14px; }
.scr-chart .who .count { font-size: 11px; color: var(--amber-900); font-weight: 700; }
.scr-chart .grid-title { font-size: 11px; font-weight: 700; color: var(--ink-700); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.scr-chart .gridx {
  display: grid;
  grid-template-columns: 70px repeat(7, 1fr);
  gap: 3px;
}
.scr-chart .gx-h { font-size: 9px; color: var(--ink-600); text-align: center; padding: 2px 0; font-weight: 700; }
.scr-chart .gx-row-l {
  font-size: 10px; font-weight: 700; color: var(--ink-900);
  background: #fff; padding: 5px 4px;
  border-radius: 6px;
  display: flex; align-items: center;
  border: 1px solid var(--line);
}
.scr-chart .gx-cell {
  aspect-ratio: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.scr-chart .gx-cell.on { background: var(--amber-100); border-color: var(--amber-400); }
.scr-chart .gx-cell svg { width: 11px; height: 11px; color: var(--amber-500); }

/* Rewards screen */
.scr-rewards .reward {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; margin-bottom: 8px;
}
.scr-rewards .reward .emoji {
  width: 38px; height: 38px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-warm);
  font-size: 20px;
  flex-shrink: 0;
}
.scr-rewards .reward .info { flex: 1; min-width: 0; }
.scr-rewards .reward .ttl { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 13px; }
.scr-rewards .reward .meta { font-size: 11px; color: var(--ink-600); }
.scr-rewards .reward .cost {
  display: inline-flex; align-items: center; gap: 3px;
  background: var(--amber-100); color: var(--amber-900);
  font-weight: 700; font-size: 11px;
  padding: 4px 8px; border-radius: 9999px;
}
.scr-rewards .reward .cost svg { width: 11px; height: 11px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover, .btn:active { transform: none; }
  .card:hover, .card:focus-within,
  .tier:hover, .tier:focus-within,
  .steps li:hover,
  .phone:hover, .phone:focus-within,
  .phone-tilt-l, .phone-tilt-r { transform: none; }
  .card:hover .card-icon, .card:focus-within .card-icon { transform: none; }
}

/* ---------- High contrast / forced colors fallback ---------- */
@media (forced-colors: active) {
  .btn { border-color: ButtonText; }
  .card, .tier, .faq details, .compare, .field input, .field textarea {
    border-color: CanvasText;
  }
}
