/* ═══════════════════════════════════════════════════════════════
   landing.css — shared styles for landing & onboarding pages
   (index.html, kid.html, dad.html)

   These pages don't use the app shell / role-based theming from
   shared.css. This file covers their shared reset, typography,
   base components, and the spin keyframe.
   ═══════════════════════════════════════════════════════════════ */


/* ──────────────────────────────────────────────────────────────
   1. Reset & Base Typography
   ────────────────────────────────────────────────────────────── */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1a1a1a;
  min-height: 100dvh;
}


/* ──────────────────────────────────────────────────────────────
   2. Onboarding Header (kid.html, dad.html)
   ────────────────────────────────────────────────────────────── */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid #EDE9E3;
  background: #FAF8F5;
}

.header-logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1a1a1a;
  text-decoration: none;
}

.header-ernest {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #E8A838;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}


/* ──────────────────────────────────────────────────────────────
   3. Ernest Chat Row (kid.html, dad.html)
   ────────────────────────────────────────────────────────────── */

.ernest-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}

.ernest-name {
  color: #E8A838;
  font-weight: 600;
}


/* ──────────────────────────────────────────────────────────────
   4. Form Elements (shared across onboarding pages)
   ────────────────────────────────────────────────────────────── */

.form-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.form-hint {
  font-size: 0.875rem;
  color: #6B7280;
  margin-top: 8px;
  line-height: 1.4;
}


/* ──────────────────────────────────────────────────────────────
   5. Error Messages
   ────────────────────────────────────────────────────────────── */

.error-msg {
  background: #FFF0F0;
  border: 1px solid #FFD4D4;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.9375rem;
  color: #C0392B;
  margin-top: 12px;
  display: none;
  line-height: 1.4;
}

.error-msg.visible {
  display: block;
}


/* ──────────────────────────────────────────────────────────────
   6. Screen Transitions (kid.html multi-screen flow)
   ────────────────────────────────────────────────────────────── */

.screen {
  display: none;
  flex: 1;
  flex-direction: column;
}

.screen.active {
  display: flex;
}


/* ──────────────────────────────────────────────────────────────
   7. Spinner & Animation
   ────────────────────────────────────────────────────────────── */

@keyframes spin {
  to { transform: rotate(360deg); }
}


/* ──────────────────────────────────────────────────────────────
   8. Footer
   ────────────────────────────────────────────────────────────── */

.footer-note {
  text-align: center;
  padding: 12px 16px 24px;
  font-size: 0.8125rem;
  color: #6B7280;
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.footer-note svg {
  flex-shrink: 0;
}
