/* BabySteps landing — matches the iOS app: crisp white, royal blue, SF Pro, grey pill UI. Plain CSS, no build step. */

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #0b0b0f;
  --muted: #8a8a8f;
  --muted-deep: #6a6a70;
  --blue: #0a6ff5;
  --blue-deep: #0a5fd6;
  --blue-tint: #eaf2ff;
  --card: #f2f2f5;
  --card-2: #f6f6f8;
  --line: #e9e9ee;
  --ink-btn: #0b0b0f;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(11, 11, 15, 0.05);
  --shadow-card: 0 1px 3px rgba(11, 11, 15, 0.06);
  --shadow-phone: 0 24px 60px rgba(20, 20, 40, 0.18), 0 4px 12px rgba(20, 20, 40, 0.08);
  --maxw: 1080px;
  --font: -apple-system, "SF Pro Display", "SF Pro Text", BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--blue-deep); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-weight: 600; letter-spacing: -0.01em; text-decoration: none;
  padding: 12px 22px; border-radius: var(--radius-pill);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); transform: translateY(-1px); }
.btn-ghost { background: var(--card); color: var(--ink); }
.btn-ghost:hover { background: #e9e9ee; transform: translateY(-1px); }

.badge-link { display: inline-block; transition: transform .15s ease; }
.badge-link:hover { transform: translateY(-1px); }
.badge-link img { height: 54px; width: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.12rem; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); }
.nav .btn-primary { padding: 9px 20px; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 88px 0 40px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: .82rem; letter-spacing: -0.01em;
  color: var(--muted-deep); background: var(--card); padding: 7px 15px; border-radius: var(--radius-pill);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.hero h1 {
  font-size: clamp(2.3rem, 6.2vw, 3.8rem); line-height: 1.04; font-weight: 800; letter-spacing: -0.035em;
  margin: 22px auto 18px; max-width: 15ch;
}
.hero h1 .accent { color: var(--blue); }
.hero p.lead { font-size: clamp(1.05rem, 2.3vw, 1.28rem); color: var(--muted-deep); max-width: 44ch; margin: 0 auto 30px; letter-spacing: -0.01em; }
.hero-cta { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: .88rem; color: var(--muted); }

/* ---------- Screenshots ---------- */
.shots { padding: 36px 0 8px; }
.shots-row { display: flex; gap: 32px; justify-content: center; align-items: flex-end; flex-wrap: wrap; }
.shot { flex: 0 1 240px; max-width: 240px; }
.shot img {
  width: 100%; border-radius: 38px;
  background: #fff; box-shadow: var(--shadow-phone);
}
.shot figcaption { text-align: center; margin-top: 18px; color: var(--muted-deep); font-weight: 600; font-size: .92rem; letter-spacing: -0.01em; }
.shot.raised { margin-bottom: 30px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-head { text-align: center; max-width: 42ch; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; margin: 0 0 12px; }
.section-head p { color: var(--muted-deep); margin: 0; font-size: 1.05rem; letter-spacing: -0.01em; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: #dcdce3; }
.feature .ico {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: var(--card); color: var(--ink); margin-bottom: 18px;
}
.feature .ico svg { width: 24px; height: 24px; }
.feature.accent .ico { background: var(--blue-tint); color: var(--blue); }
.feature h3 { margin: 0 0 7px; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; }
.feature p { margin: 0; color: var(--muted-deep); letter-spacing: -0.005em; }

/* ---------- Trust band ---------- */
.band { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band .section-head { margin-bottom: 30px; }
.trust-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; max-width: 860px; margin: 0 auto; }
.trust-point { display: flex; gap: 13px; align-items: flex-start; background: #fff; border-radius: 16px; padding: 20px; }
.trust-point .dot { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 700; margin-top: 1px; }
.trust-point strong { display: block; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 3px; }
.trust-point span { color: var(--muted-deep); }

/* ---------- Final CTA ---------- */
.cta-wrap { padding: 80px 0; }
.cta {
  text-align: center; background: var(--blue); color: #fff;
  border-radius: var(--radius-lg); padding: 60px 24px;
  max-width: var(--maxw);
}
.cta h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; margin: 0 0 10px; }
.cta p { margin: 0 auto 26px; color: rgba(255,255,255,0.85); max-width: 40ch; font-size: 1.05rem; }
.cta .badge-link img { height: 56px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 40px 0; }
.foot { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; }
.foot .brand { font-size: 1rem; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a { color: var(--muted-deep); text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.foot a:hover { color: var(--ink); }
.foot .copy { color: var(--muted); font-size: .88rem; width: 100%; }

/* ---------- Prose (privacy / terms) ---------- */
.prose-wrap { padding: 48px 0 64px; }
.prose { max-width: 720px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px clamp(22px, 5vw, 48px); }
.prose h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; margin: 0 0 6px; }
.prose .updated { color: var(--muted); font-size: .9rem; margin: 0 0 28px; }
.prose h2 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; margin: 32px 0 10px; }
.prose p, .prose li { color: #3a3a40; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 6px 0; }
.prose a { font-weight: 600; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 22px; font-weight: 700; text-decoration: none; color: var(--blue-deep); }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .hero { padding-top: 56px; }
  .shot { flex-basis: 70%; max-width: 280px; }
  .shot.raised { margin-bottom: 0; }
  .section { padding: 52px 0; }
  .cta-wrap { padding: 52px 0; }
  .cta { padding: 44px 22px; }
  .foot { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
