/* Peekaboo website. Colors mirror the app's tokens in Shared/DesignTokens/PeekColor.swift. */
:root {
  color-scheme: light dark;
  --canvas: #111315;
  --surface: #1b1e21;
  --raised: #24282c;
  --hairline: #2c3135;
  --ink: #ece7df;
  --ink-2: #a9a59e;
  --accent: #9bbfb1;
  --on-accent: #111315;
  --sleep: #aba5db;
  --feed: #e2ae8c;
  --diaper: #a6c1a2;
  --growth: #d6c08a;
  --health: #dda3aa;
  --milestone: #97c3d5;
  --shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 4px 14px rgba(0, 0, 0, .3);
  --radius: 20px;
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: light) {
  :root {
    --canvas: #f4f1ec;
    --surface: #fbf9f6;
    --raised: #ffffff;
    --hairline: #e6e0d7;
    --ink: #23272a;
    --ink-2: #5c5f5c;
    --accent: #4f7064;
    --on-accent: #ffffff;
    --sleep: #5f5a9a;
    --feed: #94593a;
    --diaper: #4e6e4c;
    --growth: #7a6432;
    --health: #965261;
    --milestone: #416e82;
    --shadow: 0 24px 60px rgba(60, 50, 35, .16), 0 4px 14px rgba(60, 50, 35, .08);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--ink);
  font: 17px/1.55 var(--font);
}
img, video { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-2); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--accent); color: var(--on-accent); padding: .6rem 1rem; border-radius: 10px;
}
.skip:focus { top: 1rem; }

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--canvas) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap { display: flex; min-width: 0; align-items: center; gap: 1.25rem; height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: none; gap: 1.25rem; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--ink); }
.site-header .btn { margin-left: auto; }
@media (min-width: 820px) {
  .nav { display: flex; }
  .site-header .btn { margin-left: 0; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.3rem; border-radius: 999px; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 1px solid transparent; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { color: var(--ink); border-color: var(--hairline); background: var(--surface); }
.btn-sm { padding: .5rem 1rem; font-size: .9rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 1rem; }

/* Sections */
section { padding: clamp(3.5rem, 9vw, 6.5rem) 0; }
section + section { border-top: 1px solid var(--hairline); }
.eyebrow, .kicker {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .9rem;
}
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 34em; }
.section-head { max-width: 40em; margin-bottom: 3rem; }

/* Hero */
.hero { padding-top: clamp(3rem, 8vw, 5.5rem); }
.hero .wrap { display: grid; gap: 3rem; align-items: center; }
.trust { font-size: .92rem; color: var(--ink-2); }
.hero-phones { display: flex; justify-content: center; gap: 1.25rem; }
.hero-phones .shot:nth-child(2) { display: none; }
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.05fr 1fr; }
  .hero-phones .shot:nth-child(2) { display: flex; margin-top: 3.5rem; }
}

/* Phone frame (CSS only) */
figure { margin: 0; }
.phone {
  width: min(280px, 72vw);
  padding: 9px; border-radius: 46px;
  background: #1d2023; border: 1px solid #3a3f44;
  box-shadow: var(--shadow);
}
.phone img, .phone video { border-radius: 38px; width: 100%; height: auto; aspect-ratio: 1320 / 2868; object-fit: cover; background: #f4f1ec; }
.shot figcaption { margin-top: 1rem; text-align: center; font-style: italic; color: var(--ink-2); font-size: .95rem; }
.shot { display: flex; flex-direction: column; align-items: center; }
.shots { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0 0 3.5rem; display: grid; gap: 1.25rem; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 1.4rem; counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 2rem; height: 2rem; margin-bottom: 1rem;
  border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700;
}
.steps h3 { font-size: 1.1rem; }
.steps p { margin: 0; color: var(--ink-2); font-size: .97rem; }

/* Features */
.feature { display: grid; gap: 2.5rem; align-items: center; padding: 2.5rem 0; }
.feature + .feature { border-top: 1px dashed var(--hairline); }
.feature ul { padding-left: 1.2rem; color: var(--ink-2); }
.feature li { margin-bottom: .35rem; }
.feature p { color: var(--ink-2); }
@media (min-width: 860px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .feature:nth-of-type(even) .feature-media { order: -1; }
}
.feature-media { display: flex; justify-content: center; gap: 1.25rem; }
.feature-media .phone { width: min(250px, 66vw); }
.feature-media.pair .phone { width: min(210px, 42vw); }

/* Glyph cards, used where there's no screenshot */
.glyphs { display: grid; gap: .8rem; width: 100%; max-width: 380px; }
.glyph {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 18px; box-shadow: var(--shadow);
}
.glyph b { font-size: 1.5rem; font-variant-numeric: tabular-nums; min-width: 4.2rem; }
.glyph span { color: var(--ink-2); font-size: .95rem; }
.c-sleep { color: var(--sleep); } .c-feed { color: var(--feed); } .c-diaper { color: var(--diaper); }
.c-growth { color: var(--growth); } .c-health { color: var(--health); } .c-milestone { color: var(--milestone); }

/* Demo */
.demo { text-align: center; }
.demo .phone { margin: 0 auto; }
.demo .fallback { margin-top: 1.25rem; font-size: .92rem; color: var(--ink-2); }

/* Privacy */
.privacy-grid { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .privacy-grid { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 1.5rem; }
.card h3 { font-size: 1.1rem; }
.card p { margin: 0; color: var(--ink-2); }
.check { margin-top: 2rem; }

/* FAQ */
.faq { max-width: 46em; }
.faq details { border-bottom: 1px solid var(--hairline); padding: 1.1rem 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .8rem 0 0; color: var(--ink-2); }

/* Closing */
.closing { text-align: center; }
.closing .lede { margin: 0 auto; }
.closing .cta-row { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--hairline); padding: 2.5rem 0 3rem; font-size: .9rem; color: var(--ink-2); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-bottom: 1rem; }
.site-footer nav a { color: var(--ink); text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer p { margin: .3rem 0; }

/* Document pages (support, privacy, terms) */
.doc { max-width: 46em; padding: clamp(2.5rem, 7vw, 4.5rem) 1.25rem; margin: 0 auto; }
.doc h1 { font-size: clamp(2rem, 5vw, 3rem); }
.doc h2 { font-size: 1.45rem; margin-top: 2.4rem; }
.doc h3 { font-size: 1.1rem; margin-top: 1.6rem; }
.doc p, .doc li { color: var(--ink-2); }
.doc strong { color: var(--ink); }
.doc li { margin-bottom: .45rem; }
.doc .updated { font-size: .92rem; }
.doc .contact { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 1.4rem 1.5rem; margin: 1.5rem 0 2rem; }
.doc .contact p { margin: 0 0 .9rem; }
.doc .faq details p { margin-top: .6rem; }
.path { font-weight: 600; color: var(--ink); white-space: nowrap; }

.notfound { text-align: center; padding: 6rem 1.25rem; }
.notfound img { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 1.5rem; }
