/* Shared styles for aibaby.care pages — a calm, nurturing theme for a baby-care app.
   Linked (not inlined) by each page; same-origin on Cloudflare Pages. */
:root {
  /* Warm, soft, restful palette. Accent is a calm blue-green; secondary is a gentle blush. */
  --bg: #fbfcfb;
  --bg-tint-a: #eaf4f1;   /* soft sage mist  */
  --bg-tint-b: #f3eef7;   /* soft lavender   */
  --bg-tint-c: #fdf3ee;   /* warm blush cream */
  --fg: #2a3230;
  --muted: #5f6d69;
  --accent: #4a9d8e;      /* calm teal-green */
  --accent-soft: #6fb7aa;
  --accent-2: #e6a4a0;    /* gentle blush    */
  --card: rgba(255, 255, 255, 0.72);
  --card-solid: #ffffff;
  --border: rgba(74, 157, 142, 0.16);
  --shadow: 0 1px 2px rgba(42, 50, 48, 0.04), 0 12px 32px rgba(42, 50, 48, 0.06);
  --shadow-soft: 0 8px 28px rgba(74, 157, 142, 0.10);
  --maxw: 720px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1413;
    --bg-tint-a: #12201d;
    --bg-tint-b: #171423;
    --bg-tint-c: #1e1815;
    --fg: #e7edeb;
    --muted: #9aa8a4;
    --accent: #7fd1c1;
    --accent-soft: #63b6a7;
    --accent-2: #e6a4a0;
    --card: rgba(255, 255, 255, 0.045);
    --card-solid: #171d1c;
    --border: rgba(127, 209, 193, 0.16);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.30), 0 14px 36px rgba(0, 0, 0, 0.34);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.30);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--fg);
  font: 17px/1.68 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  padding: 0 20px;
  /* Layered, very soft radial washes — calm and airy, never busy. */
  background-color: var(--bg);
  background-image:
    radial-gradient(120% 80% at 12% -8%, var(--bg-tint-a) 0%, transparent 55%),
    radial-gradient(110% 70% at 100% 0%, var(--bg-tint-b) 0%, transparent 50%),
    radial-gradient(140% 90% at 50% 120%, var(--bg-tint-c) 0%, transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ── Header ─────────────────────────────────────────── */
header.site { display: flex; align-items: center; gap: 13px; margin-bottom: 44px; }
header.site .logo {
  width: 46px; height: 46px;
  object-fit: cover; display: block;
  border-radius: 11px;               /* ~iOS app-icon corner curve */
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}
header.site .brand {
  font-weight: 640; font-size: 19px; letter-spacing: -0.01em;
}

/* ── Typography ─────────────────────────────────────── */
h1 {
  font-size: 33px; line-height: 1.18; letter-spacing: -0.022em;
  margin: 0 0 12px; font-weight: 680;
}
h2 {
  font-size: 21px; letter-spacing: -0.012em; margin: 44px 0 12px; font-weight: 660;
  position: relative; padding-left: 15px;
}
h2::before {
  content: ""; position: absolute; left: 0; top: 0.18em; bottom: 0.18em;
  width: 4px; border-radius: 4px;
  background: linear-gradient(var(--accent-soft), var(--accent));
}
h3 { font-size: 17.5px; margin: 26px 0 6px; font-weight: 640; letter-spacing: -0.005em; }
p, li { color: var(--fg); }
.muted { color: var(--muted); }
.lead {
  font-size: 19px; line-height: 1.6; color: var(--muted);
  margin: 0 0 8px; max-width: 60ch;
}

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

ul { padding-left: 20px; }
li { margin: 6px 0; }
li::marker { color: var(--accent-soft); }

/* ── Card ───────────────────────────────────────────── */
.card {
  background: var(--card);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 24px;
  margin: 22px 0;
  box-shadow: var(--shadow);
}

.updated { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* ── Footer ─────────────────────────────────────────── */
footer.site {
  margin-top: 80px; padding-top: 26px; border-top: 1px solid var(--border);
  font-size: 14px; color: var(--muted);
  display: flex; gap: 20px; flex-wrap: wrap; align-items: center;
}
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--accent); }

code {
  background: var(--card-solid); border: 1px solid var(--border);
  padding: 1px 6px; border-radius: 6px; font-size: 14px;
}

/* ── Home page extras ───────────────────────────────── */
.hero-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 560; letter-spacing: 0.01em;
  color: var(--accent); background: var(--card);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 14px; margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.hero-tag .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-soft); box-shadow: 0 0 0 4px rgba(74, 157, 142, 0.14);
}
.features {
  list-style: none; padding: 0; margin: 26px 0 0;
  display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }
.features li {
  margin: 0; padding: 18px 20px;
  background: var(--card);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow);
}
.features li .ico { font-size: 22px; display: block; margin-bottom: 8px; }
.features li strong { display: block; font-weight: 620; letter-spacing: -0.005em; margin-bottom: 2px; }
.features li span { color: var(--muted); font-size: 15px; line-height: 1.5; }
.pagelinks { display: flex; gap: 12px; flex-wrap: wrap; margin: 6px 0 0; padding: 0; list-style: none; }
.pagelinks a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border);
  color: var(--fg); font-weight: 540; font-size: 15px;
  box-shadow: var(--shadow);
}
.pagelinks a:hover { text-decoration: none; color: var(--accent); border-color: var(--accent-soft); }

/* Gentle entrance — respects reduced-motion. */
@media (prefers-reduced-motion: no-preference) {
  .wrap > * { animation: rise 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
  .wrap > header.site { animation-delay: 0s; }
  .wrap > h1 { animation-delay: 0.04s; }
  .wrap > .lead, .wrap > p { animation-delay: 0.08s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
  }
}
