/* BabyMix web — tokens from design/README.md. Mobile first, no JS, no third parties. */

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url('/fonts/nunito-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url('/fonts/nunito-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #FFF5E4;
  --surface: #FFFFFF;
  --border: #F1E3CB;
  --text: #2B2240;
  --muted: #6B6280;
  --accent: #5B3FD0;
  --pink: #FFB3CC;
  --blue: #A9D4FF;
  --offer: #E0568A;
  --r-card: 34px;
  --r-btn: 30px;
  --r-chip: 23px;
  --shadow: 0 10px 0 var(--border);
  --gutter: 16px;
  --max: 1080px;
  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 17px/1.55 var(--font);
  overflow-wrap: anywhere;
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2.5px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { margin: 0 0 0.5em; line-height: 1.1; letter-spacing: -0.03em; font-weight: 900; }
h1 { font-size: 36px; }
h2 { font-size: 28px; letter-spacing: -0.02em; }
h3 { font-size: 20px; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.icon { width: 24px; height: 24px; flex: none; }

/* Skip link */
.skip {
  position: absolute; left: var(--gutter); top: -100px;
  padding: 12px 20px; background: var(--text); color: #fff; border-radius: var(--r-btn);
  font-weight: 800; z-index: 10;
}
.skip:focus { top: 12px; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.bar {
  max-width: var(--max); margin: 0 auto; padding: 10px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 900; font-size: 21px; letter-spacing: -0.02em;
  min-height: 44px;
}
.brand img { border-radius: 9px; }
.lang ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.lang a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 10px;
  border-radius: var(--r-chip); text-decoration: none; font-weight: 800; font-size: 14px;
  color: var(--text);
}
.lang a:hover { background: var(--surface); }
.lang a[aria-current="page"] { background: var(--text); color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 12px 26px; border-radius: var(--r-btn);
  font: 800 17px/1.2 var(--font); text-decoration: none; text-align: center;
  border: 2px solid transparent;
}
.btn-primary { background: var(--text); color: #fff; }
.btn-primary:hover { background: #3a2f57; }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: 0 4px 0 var(--border); }
.btn-secondary:hover { border-color: var(--text); }
.btn .icon { width: 22px; height: 22px; }

.chip {
  display: inline-flex; align-items: center; min-height: 34px; padding: 4px 14px;
  border-radius: var(--r-chip); background: var(--bg); border: 1.5px solid var(--border);
  font-weight: 800; font-size: 14px; color: var(--text); white-space: nowrap;
}

/* Sections */
section { padding: 48px 0; }
section h2 { margin-bottom: 24px; }
.how, .start-free { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Hero */
.hero { padding-top: 40px; }
.hero-grid { display: grid; gap: 36px; }
.hero h1 { font-size: 40px; }
.lead { font-size: 19px; color: var(--muted); font-weight: 600; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 24px; }
.platform { color: var(--muted); font-weight: 700; font-size: 15px; }

.mosaic { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.parents { display: flex; align-items: center; justify-content: center; gap: 18px; }
.parent { margin: 0; text-align: center; }
.parent img {
  width: 108px; height: 108px; border-radius: 50%; object-fit: cover;
  background: var(--surface);
}
.parent.mom img { box-shadow: 0 0 0 5px var(--pink); }
.parent.dad img { box-shadow: 0 0 0 5px var(--blue); }
.parent figcaption { margin-top: 12px; font-weight: 800; font-size: 15px; }
.plus, .arrow { color: var(--accent); display: inline-flex; }
.plus .icon { width: 28px; height: 28px; }
.arrow .icon { width: 30px; height: 30px; transform: rotate(90deg); }

.babies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; max-width: 480px; }
.baby {
  margin: 0; background: var(--surface); border: 1.5px solid var(--border); border-radius: 22px;
  padding: 6px 6px 10px; box-shadow: var(--shadow); text-align: center;
}
.baby img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; }
.baby figcaption { margin-top: 8px; font-weight: 800; font-size: 13px; }

/* How it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: start; }
.shot {
  margin: 0; background: var(--surface); border: 1.5px solid var(--border); border-radius: 22px;
  padding: 5px; box-shadow: var(--shadow);
}
.shot img { border-radius: 17px; width: 100%; aspect-ratio: 420 / 943; object-fit: cover; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff;
  font-weight: 900; font-size: 16px; margin-bottom: 10px;
}
.step-num::before { content: counter(step); }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); margin: 0; }

/* Features */
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.feature {
  display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: start;
  background: var(--surface); border: 1.5px solid var(--border); border-radius: 26px; padding: 12px;
  box-shadow: var(--shadow);
}
.feature > div { min-width: 0; }
.feature img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; }
.feature h3 { margin: 4px 0 4px; }
.feature p { color: var(--muted); margin: 0 0 10px; font-size: 16px; }

/* Perfect for */
.perfect-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.perfect-list li {
  display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center;
  background: var(--surface); border: 1.5px solid var(--border); border-radius: 22px; padding: 12px 16px 12px 12px;
  font-weight: 700; font-size: 17px;
}
.perfect-icon {
  width: 44px; height: 44px; border-radius: 50%; background: var(--pink);
  display: inline-flex; align-items: center; justify-content: center; color: var(--text);
}
.perfect-icon .icon { width: 22px; height: 22px; }

/* Start free + your photos */
.start-grid { display: grid; gap: 32px; }
.start-free .lead { margin-bottom: 0; }
.photos {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start;
  background: var(--bg); border: 1.5px solid var(--border); border-radius: 26px; padding: 18px 20px;
}
.photos-icon {
  width: 44px; height: 44px; border-radius: 50%; background: var(--blue);
  display: inline-flex; align-items: center; justify-content: center; color: var(--text);
}
.photos h3 { font-size: 18px; margin-bottom: 4px; }
.photos p { margin: 0; color: var(--muted); font-size: 16px; }

/* Generative-AI line (the only notice on the landing) + generic notice (legal pages) */
.ai-note { color: var(--muted); font-size: 14px; margin: 0 auto; padding-top: 28px; padding-bottom: 28px; max-width: var(--max); }
.notice {
  display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start;
  background: var(--surface); border: 1.5px solid var(--border); border-radius: 26px; padding: 20px;
}
.notice-icon { color: var(--accent); display: inline-flex; padding-top: 2px; }
.notice h2 { font-size: 20px; margin-bottom: 6px; }
.notice p { margin: 0; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0 44px; color: var(--muted); font-size: 15px; }
.footer-links { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-links a { color: var(--text); font-weight: 700; display: inline-block; padding: 8px 0; }
.rights { margin: 0; }

/* Legal pages */
.legal { padding: 40px var(--gutter) 64px; }
.legal-head h1 { font-size: 34px; }
.legal-head .meta { color: var(--muted); font-size: 15px; font-weight: 600; }
.legal-head .meta strong { font-weight: 700; }
.legal-head .notice { margin: 16px 0 0; }
.legal-head .notice p { color: var(--text); }
.legal-grid { display: grid; gap: 28px; margin-top: 28px; }
.legal-grid > * { min-width: 0; } /* a wide table inside must scroll in its wrapper, not widen the track */
.legal-body { max-width: 68ch; font-size: 16.5px; }
.legal-body h2 { font-size: 24px; margin: 2.2em 0 0.6em; scroll-margin-top: 16px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 19px; margin: 1.8em 0 0.5em; }
.legal-body h4 { font-size: 17px; margin: 1.5em 0 0.4em; }
.legal-body ul, .legal-body ol { padding-left: 1.3em; }
.legal-body li { margin-bottom: 0.4em; }
.legal-body blockquote {
  margin: 1.2em 0; padding: 14px 18px; background: var(--surface); border: 1.5px solid var(--border);
  border-left: 5px solid var(--accent); border-radius: 18px;
}
.legal-body blockquote p:last-child { margin-bottom: 0; }
.legal-body code {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 0.88em;
  background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 1px 5px;
}
.legal-body hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
.table-wrap { overflow-x: auto; margin: 1.2em 0; border: 1.5px solid var(--border); border-radius: 18px; background: var(--surface); }
.table-wrap table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 480px; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.table-wrap th { font-weight: 800; background: var(--bg); }
.table-wrap tr:last-child td { border-bottom: 0; }

.toc { font-size: 15px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0; }
.toc a { display: block; padding: 8px 0; color: var(--text); text-decoration: none; font-weight: 700; }
.toc a:hover { color: var(--accent); text-decoration: underline; }
.toc-mobile { background: var(--surface); border: 1.5px solid var(--border); border-radius: 22px; padding: 4px 16px; }
.toc-mobile summary {
  cursor: pointer; font-weight: 900; padding: 12px 0; display: flex; align-items: center; justify-content: space-between;
  min-height: 44px; list-style: none;
}
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary .icon { transition: transform 0.2s; }
.toc-mobile[open] summary .icon { transform: rotate(180deg); }
.toc-mobile ol { padding-bottom: 8px; border-top: 1px solid var(--border); padding-top: 8px; }
.toc-desktop { display: none; }
.toc-desktop .toc-title { font-weight: 900; margin-bottom: 8px; }

.request {
  margin: 28px 0 0; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-card);
  padding: 22px; box-shadow: var(--shadow); scroll-margin-top: 16px;
}
.request h2 { font-size: 22px; }
.request p { color: var(--muted); max-width: 56ch; }
.request .btn { max-width: 100%; }

/* 404 */
.not-found { padding: 80px var(--gutter); text-align: center; }
.other-langs { color: var(--muted); font-size: 15px; }
.other-langs a { margin: 0 6px; }

/* Larger screens */
@media (min-width: 720px) {
  section { padding: 72px 0; }
  h2 { font-size: 34px; }
  .hero h1 { font-size: 46px; }
  .parent img { width: 150px; height: 150px; }
  .baby figcaption { font-size: 14px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .steps li { grid-template-columns: 1fr; }
  .shot { max-width: 250px; margin-bottom: 18px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; align-content: start; padding: 14px; }
  .feature img { aspect-ratio: 5 / 4; border-radius: 18px; }
  .perfect-list { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .legal-head h1 { font-size: 42px; }
}

@media (min-width: 960px) {
  .hero { padding-top: 64px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 48px; }
  .hero .lead { font-size: 21px; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .start-grid { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 48px; }
  .legal-grid { grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
  .legal-grid.no-toc { grid-template-columns: minmax(0, 1fr); }
  .toc-mobile { display: none; }
  .toc-desktop { display: block; position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow: auto; }
  .toc-desktop a { padding: 6px 0; }
}

@media print {
  .site-header, .site-footer, .toc, .skip, .request .btn { display: none !important; }
  body { background: #fff; }
  .legal-body { max-width: none; }
}
