/* Growspurt — shared stylesheet. Tokens mirrored from src/theme/tokens.js
   ("Meadow Sky" palette) so the site reads as one system with the app. */

@font-face {
  font-family: 'Nunito';
  src: url('../fonts/nunito-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/nunito-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/nunito-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/nunito-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: 245 247 250;
  --color-surface: 255 255 255;
  --color-surface-elevated: 255 255 255;
  --color-muted: 234 238 243;
  --color-border: 220 226 234;
  --color-border-strong: 196 204 214;
  --color-text: 28 34 43;
  --color-text-muted: 99 110 124;
  --color-text-faint: 141 151 165;
  --color-primary: 59 114 214;
  --color-primary-foreground: 255 255 255;
  --color-primary-muted: 230 238 252;
  --color-accent: 18 128 87;
  --color-accent-foreground: 255 255 255;
  --color-feeding: 200 67 36;
  --color-feeding-muted: 252 231 222;
  --color-warning: 143 100 20;
  --color-danger: 208 51 43;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 28px;

  --font-display: 'Nunito', ui-rounded, -apple-system, 'Segoe UI Rounded', Roboto, system-ui, sans-serif;
  --max-width: 800px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: 21 25 32;
    --color-surface: 27 31 38;
    --color-surface-elevated: 35 40 48;
    --color-muted: 35 40 48;
    --color-border: 51 58 69;
    --color-border-strong: 73 82 96;
    --color-text: 238 242 246;
    --color-text-muted: 141 151 165;
    --color-text-faint: 99 110 124;
    --color-primary: 90 147 236;
    --color-primary-foreground: 21 25 32;
    --color-primary-muted: 33 51 83;
    --color-accent: 71 200 144;
    --color-accent-foreground: 21 25 32;
    --color-feeding: 251 129 92;
    --color-feeding-muted: 58 36 25;
    --color-warning: 255 223 110;
    --color-danger: 242 134 122;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: rgb(var(--color-bg));
  color: rgb(var(--color-text));
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: rgb(var(--color-primary));
  text-decoration-color: rgb(var(--color-primary) / 0.4);
}
a:hover {
  text-decoration-color: rgb(var(--color-primary));
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  padding: 20px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand img {
  height: 40px;
  width: auto;
  display: block;
}

/* ---------- Hero (index) ---------- */
.hero {
  padding: 40px 0 24px;
  text-align: center;
}
.hero-logo {
  width: min(320px, 80%);
  height: auto;
  margin: 0 auto 28px;
  display: block;
}
.hero h1 {
  font-size: clamp(26px, 5vw, 34px);
  font-weight: 800;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.hero .lede {
  font-size: 18px;
  color: rgb(var(--color-text-muted));
  max-width: 560px;
  margin: 0 auto;
}
.hero .tagline {
  margin: 18px auto 0;
  max-width: 560px;
  font-weight: 600;
  color: rgb(var(--color-accent));
}

.store-badge-wrap {
  margin-top: 32px;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--radius-lg);
  background: rgb(var(--color-text));
  color: rgb(var(--color-bg));
  font-weight: 700;
  font-size: 15px;
  opacity: 0.55;
  cursor: default;
  user-select: none;
}
.store-badge svg {
  width: 22px;
  height: 22px;
  flex: none;
}
.store-note {
  margin-top: 10px;
  font-size: 13px;
  color: rgb(var(--color-text-faint));
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 40px 0;
}
@media (max-width: 640px) {
  .feature-strip {
    grid-template-columns: 1fr;
  }
}
.feature-card {
  background: rgb(var(--color-surface));
  border: 1px solid rgb(var(--color-border));
  border-radius: var(--radius-xl);
  padding: 20px;
}
.feature-card .dot {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 10px;
}
.feature-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.feature-card p {
  margin: 0;
  font-size: 14px;
  color: rgb(var(--color-text-muted));
}
.tone-sleep .dot {
  background: rgb(var(--color-primary-muted));
  color: rgb(var(--color-primary));
}
.tone-feeding .dot {
  background: rgb(var(--color-feeding-muted));
  color: rgb(var(--color-feeding));
}
.tone-accent .dot {
  background: rgb(var(--color-accent) / 0.15);
  color: rgb(var(--color-accent));
}

/* ---------- Legal / content pages ---------- */
.page-header {
  padding: 12px 0 8px;
}
.page-header h1 {
  font-size: clamp(24px, 4vw, 30px);
  font-weight: 800;
  margin: 8px 0 4px;
}
.page-header .stand {
  color: rgb(var(--color-text-faint));
  font-size: 14px;
}

.legal {
  padding-bottom: 64px;
}
.legal h2 {
  font-size: 19px;
  font-weight: 700;
  margin: 40px 0 12px;
  padding-top: 8px;
  border-top: 1px solid rgb(var(--color-border));
  scroll-margin-top: 20px;
}
.legal section:first-of-type h2 {
  border-top: none;
  margin-top: 24px;
}
.legal h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 20px 0 8px;
  scroll-margin-top: 20px;
}
.legal p {
  margin: 0 0 14px;
}
.legal ul {
  margin: 0 0 14px;
  padding-left: 22px;
}
.legal li {
  margin-bottom: 6px;
}
.legal address {
  font-style: normal;
  margin: 0 0 14px;
}

.toc {
  background: rgb(var(--color-surface));
  border: 1px solid rgb(var(--color-border));
  border-radius: var(--radius-xl);
  padding: 20px 24px;
  margin: 24px 0 8px;
}
.toc h2 {
  margin: 0 0 10px !important;
  border-top: none !important;
  font-size: 16px !important;
}
.toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 24px;
}
@media (max-width: 560px) {
  .toc ol {
    columns: 1;
  }
}
.toc li {
  margin-bottom: 6px;
  break-inside: avoid;
}
.toc a {
  text-decoration: none;
}
.toc a:hover {
  text-decoration: underline;
}

.attribution {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid rgb(var(--color-border));
  font-size: 13px;
  color: rgb(var(--color-text-faint));
}

/* ---------- Support / FAQ ---------- */
.contact-card {
  background: rgb(var(--color-primary-muted));
  border-radius: var(--radius-xl);
  padding: 24px;
  margin: 24px 0 36px;
  text-align: center;
}
.contact-card a {
  font-size: 20px;
  font-weight: 700;
}
.faq-item {
  border-bottom: 1px solid rgb(var(--color-border));
  padding: 18px 0;
}
.faq-item:first-child {
  border-top: 1px solid rgb(var(--color-border));
}
.faq-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
}
.faq-item p {
  margin: 0;
  color: rgb(var(--color-text-muted));
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid rgb(var(--color-border));
  padding: 28px 0 40px;
  margin-top: 40px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links a {
  color: rgb(var(--color-text-muted));
  text-decoration: none;
  font-size: 14px;
}
.footer-links a:hover {
  color: rgb(var(--color-text));
}
.footer-social {
  display: flex;
  gap: 14px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgb(var(--color-muted));
  color: rgb(var(--color-text-muted));
}
.footer-social a:hover {
  background: rgb(var(--color-primary-muted));
  color: rgb(var(--color-primary));
}
.footer-social svg {
  width: 17px;
  height: 17px;
}
.footer-copy {
  margin-top: 18px;
  font-size: 12px;
  color: rgb(var(--color-text-faint));
}
