/* ===========================================================================
   ReadMyBaby — marketing site styles
   "Cozy nightlight" design system, matched to the Android app:
   warm clay + sage + slate + honey on cream (light) / espresso (dark).
   Baloo 2 (display) + Nunito (body). WCAG-AA verified pairings.
   =========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Nunito:wght@400;500;600;700;800&display=swap');

:root {
  /* brand */
  --clay: #C15F3C;
  --clay-bright: #D9744F;
  --clay-soft: #E89A78;
  --sage: #407753;
  --sage-soft: #9CC4A9;
  --slate: #3D698F;
  --slate-soft: #9BC0E0;
  --honey: #B07A2E;
  --honey-soft: #E7C078;

  /* light surfaces (default) */
  --bg: #FAF6EC;
  --bg-tint: #F3E9DA;
  --surface: #FFFDF8;
  --surface-2: #F4ECDE;
  --on-bg: #2D2925;
  --on-muted: #6B6057;
  --border: rgba(45, 41, 37, 0.10);
  --shadow: 0 18px 40px -22px rgba(80, 50, 30, 0.45);
  --shadow-sm: 0 8px 20px -14px rgba(80, 50, 30, 0.4);

  --primary: #AE5129;          /* AA on cream */
  --on-primary: #FFFFFF;
  --primary-container: #F3D9CD;
  --on-primary-container: #421F10;

  --radius-lg: 28px;
  --radius: 20px;
  --radius-sm: 14px;
  --maxw: 1080px;
  --font-display: 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1D1611;
    --bg-tint: #251C16;
    --surface: #2A201A;
    --surface-2: #34281F;
    --on-bg: #F1ECE6;
    --on-muted: #C8B9A9;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.8);
    --shadow-sm: 0 12px 28px -18px rgba(0, 0, 0, 0.7);

    --primary: #EAA686;
    --on-primary: #4A2311;
    --primary-container: #7A3A22;
    --on-primary-container: #FBE0D2;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background:
    radial-gradient(700px 420px at 88% -8%, rgba(232,154,120,0.18), transparent 60%),
    radial-gradient(620px 460px at -8% 18%, rgba(64,119,83,0.12), transparent 55%),
    var(--bg);
  color: var(--on-bg);
  line-height: 1.6;
  font-weight: 500;
  min-height: 100vh;
}
a { color: var(--clay); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; color: var(--on-bg); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 72px 0; }
.section-tight { padding: 44px 0; }
.center { text-align: center; }
.muted { color: var(--on-muted); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  padding: 14px 22px; border-radius: 50px; border: none; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  color: #fff; background: linear-gradient(150deg, var(--clay-soft), var(--clay-bright));
  box-shadow: 0 16px 30px -12px rgba(193,95,60,0.6);
}
.btn-ghost {
  color: var(--on-bg); background: var(--surface-2);
  box-shadow: inset 0 0 0 1.5px var(--border);
}
.btn-lg { font-size: 18px; padding: 16px 26px; }

/* Google Play badge button */
.play-badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: #1d1611; color: #fff; border-radius: 14px; padding: 10px 18px;
  box-shadow: var(--shadow-sm);
}
.play-badge:hover { text-decoration: none; transform: translateY(-1px); }
.play-badge .sub { font-size: 11px; opacity: .82; line-height: 1; font-family: var(--font-body); font-weight: 600; }
.play-badge .main { font-size: 18px; font-family: var(--font-display); font-weight: 700; line-height: 1.1; }
@media (prefers-color-scheme: dark) { .play-badge { background: #fff; color: #1d1611; } }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--on-bg); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.brand b { color: var(--clay); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--on-muted); font-weight: 700; font-size: 15px; }
.nav-links a:hover { color: var(--on-bg); text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--on-bg); }

/* ---- hero ---- */
.hero { padding: 72px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; }
.hero h1 .accent { color: var(--clay); }
.hero .lede { font-size: 19px; color: var(--on-muted); font-weight: 600; margin: 18px 0 26px; max-width: 30ch; }
.hero-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--on-muted); font-weight: 600; }
.phone-shot { justify-self: center; max-width: 300px; border-radius: 34px; box-shadow: var(--shadow); border: 1px solid var(--border); }

.pill-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.pill {
  font-size: 13px; font-weight: 800; padding: 7px 14px; border-radius: 50px;
  background: var(--surface-2); color: var(--on-muted); box-shadow: inset 0 0 0 1px var(--border);
}

/* ---- pebble cards ---- */
.cards { display: grid; gap: 18px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.pebble {
  position: relative; background: var(--surface); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow); border: 1px solid var(--border); overflow: hidden;
}
.pebble .ic {
  width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 14px;
}
.pebble h3 { font-size: 19px; margin-bottom: 7px; }
.pebble p { color: var(--on-muted); font-size: 15px; font-weight: 500; }
.ic-clay { background: rgba(193,95,60,0.15); color: var(--clay); }
.ic-sage { background: rgba(64,119,83,0.16); color: var(--sage); }
.ic-slate { background: rgba(61,105,143,0.16); color: var(--slate); }
.ic-honey { background: rgba(176,122,46,0.16); color: var(--honey); }

/* ---- section heads ---- */
.eyebrow { font-family: var(--font-display); font-weight: 700; color: var(--clay); letter-spacing: .4px; font-size: 14px; text-transform: uppercase; }
.section h2 { font-size: clamp(26px, 4vw, 38px); margin: 8px 0 12px; }
.section .sub { color: var(--on-muted); font-size: 17px; font-weight: 600; max-width: 56ch; margin: 0 auto; }

/* ---- steps ---- */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; counter-reset: step; }
.step { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.step .num {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; color: #fff;
  background: linear-gradient(150deg, var(--clay-soft), var(--clay-bright)); margin-bottom: 14px;
}
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--on-muted); font-size: 15px; }

/* ---- problem scenarios ---- */
.scenarios { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.scenario { background: var(--bg-tint); border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); }
.scenario .emoji { font-size: 26px; }
.scenario h3 { font-size: 17px; margin: 10px 0 6px; }
.scenario p { color: var(--on-muted); font-size: 14.5px; }

/* ---- bands ---- */
.band {
  background: linear-gradient(150deg, color-mix(in srgb, var(--clay) 14%, var(--surface)), var(--surface));
  border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: space-between;
}
.band h3 { font-size: 22px; }
.band p { color: var(--on-muted); font-weight: 600; }
.disclaimer {
  background: var(--surface-2); border-radius: var(--radius); padding: 16px 20px;
  font-size: 14px; color: var(--on-muted); font-weight: 600; display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--border);
}
.disclaimer svg { flex: 0 0 auto; margin-top: 1px; }

/* ---- FAQ ---- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--surface); border-radius: var(--radius); padding: 4px 22px; margin-bottom: 12px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-family: var(--font-display);
  font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; color: var(--clay); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--on-muted); font-size: 15px; font-weight: 500; }

/* ---- footer ---- */
.site-footer { background: var(--surface-2); border-top: 1px solid var(--border); padding: 40px 0; margin-top: 40px; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--on-muted); font-weight: 700; font-size: 14px; }
.footer-meta { color: var(--on-muted); font-size: 13px; font-weight: 600; }

/* ---- legal/article pages ---- */
.article { max-width: 780px; margin: 0 auto; }
.article h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 8px; }
.article .updated { color: var(--on-muted); font-weight: 700; font-size: 14px; margin-bottom: 28px; }
.article h2 { font-size: 23px; margin: 30px 0 10px; }
.article h3 { font-size: 18px; margin: 22px 0 8px; }
.article p, .article li { color: var(--on-bg); font-size: 16px; font-weight: 500; margin-bottom: 12px; }
.article ul, .article ol { padding-left: 22px; margin-bottom: 14px; }
.article .callout {
  background: var(--primary-container); color: var(--on-primary-container);
  border-radius: var(--radius); padding: 16px 20px; font-weight: 600; margin: 18px 0;
}
.article a { font-weight: 700; }
.article table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14.5px; }
.article th, .article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.article th { font-family: var(--font-display); }

/* ---- responsive ---- */
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero-cta, .pill-tags { justify-content: center; }
  .cards-3, .cards-2, .steps, .scenarios { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 66px; left: 0; right: 0;
    background: var(--surface); padding: 18px 22px; gap: 16px; box-shadow: var(--shadow); border-bottom: 1px solid var(--border);
  }
  .nav-toggle { display: block; }
}
