/* Tiny Apps — palette lifted straight from the apps' own design tokens
   (Daybreak / Midnight in Theme.swift), so site and product match. */
:root {
  --ground:#F7F3EF; --surface:#FDFBF9; --card:#FFFFFF;
  --ink:#33262B; --ink-muted:#8A7880; --separator:#EAE0DD;
  --accent:#5E8F7C; --accent-deep:#4A7665;
  --feed:#E0678C; --sleep:#7A76E0; --diaper:#43A6A0; --pump:#E2A24E;
  --shadow:0 1px 3px rgba(51,38,43,.06), 0 8px 24px rgba(51,38,43,.05);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground:#0E0B0D; --surface:#1A161B; --card:#211C22;
    --ink:#F2E9EC; --ink-muted:#A08F97; --separator:#2E282D;
    --accent:#7FB9A2; --accent-deep:#5E8F7C;
    --feed:#D9718F; --sleep:#8480E8; --diaper:#4FB0AA; --pump:#DCA45C;
    --shadow:0 1px 3px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3);
  }
}
:root[data-theme="dark"] {
  --ground:#0E0B0D; --surface:#1A161B; --card:#211C22;
  --ink:#F2E9EC; --ink-muted:#A08F97; --separator:#2E282D;
  --accent:#7FB9A2; --accent-deep:#5E8F7C;
  --feed:#D9718F; --sleep:#8480E8; --diaper:#4FB0AA; --pump:#DCA45C;
}
:root[data-theme="light"] {
  --ground:#F7F3EF; --surface:#FDFBF9; --card:#FFFFFF;
  --ink:#33262B; --ink-muted:#8A7880; --separator:#EAE0DD;
  --accent:#5E8F7C; --accent-deep:#4A7665;
}

*,*::before,*::after { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body {
  margin:0; background:var(--ground); color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  line-height:1.65; font-size:17px;
}
.wrap { max-width:64rem; margin:0 auto; padding:0 24px; }
.narrow { max-width:44rem; }

/* ---- header ---- */
header.site {
  position:sticky; top:0; z-index:10;
  backdrop-filter:saturate(180%) blur(14px);
  -webkit-backdrop-filter:saturate(180%) blur(14px);
  background:color-mix(in srgb, var(--ground) 82%, transparent);
  border-bottom:1px solid var(--separator);
}
header.site .wrap { display:flex; align-items:center; gap:18px; height:62px; }
.brand { display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--ink); font-weight:750; letter-spacing:-.01em; }
.brand svg { display:block; }
nav.site { margin-left:auto; display:flex; gap:22px; }
nav.site a { color:var(--ink-muted); text-decoration:none; font-size:.94rem; font-weight:600; }
nav.site a:hover, nav.site a:focus-visible { color:var(--accent); }

/* ---- hero ---- */
.hero { padding:84px 0 64px; text-align:center; }
.hero h1 {
  font-size:clamp(2.2rem,6vw,3.6rem); line-height:1.08; margin:0 0 18px;
  letter-spacing:-.03em; font-weight:800; text-wrap:balance;
}
.hero p.lede {
  font-size:clamp(1.05rem,2.4vw,1.25rem); color:var(--ink-muted);
  max-width:34rem; margin:0 auto; text-wrap:pretty;
}
.pill {
  display:inline-block; font-size:.78rem; font-weight:700; letter-spacing:.08em;
  text-transform:uppercase; color:var(--accent);
  background:color-mix(in srgb, var(--accent) 12%, transparent);
  padding:6px 13px; border-radius:999px; margin-bottom:22px;
}

/* ---- cards ---- */
.grid { display:grid; gap:20px; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); }
.card {
  background:var(--card); border:1px solid var(--separator);
  border-radius:20px; padding:26px; box-shadow:var(--shadow);
}
.card h3 { margin:0 0 8px; font-size:1.12rem; letter-spacing:-.01em; }
.card p { margin:0; color:var(--ink-muted); font-size:.97rem; }
.dot { width:34px; height:34px; border-radius:11px; display:grid; place-items:center; margin-bottom:14px; }
.dot svg { width:18px; height:18px; }

/* app card */
.app-card {
  display:flex; gap:22px; align-items:center; flex-wrap:wrap;
  background:var(--card); border:1px solid var(--separator);
  border-radius:24px; padding:28px; box-shadow:var(--shadow);
}
.app-card .icon { width:88px; height:88px; border-radius:22px; flex:none; box-shadow:var(--shadow); }
.app-card .body { flex:1 1 16rem; }
.app-card h2 { margin:0 0 6px; font-size:1.5rem; letter-spacing:-.02em; }
.status {
  display:inline-block; font-size:.75rem; font-weight:700; letter-spacing:.06em;
  text-transform:uppercase; color:var(--pump);
  background:color-mix(in srgb, var(--pump) 15%, transparent);
  padding:4px 10px; border-radius:999px; margin-left:8px; vertical-align:2px;
}
.app-card p { color:var(--ink-muted); margin:0 0 14px; }
.linkrow { display:flex; gap:16px; flex-wrap:wrap; }
.linkrow a { color:var(--accent); font-weight:650; text-decoration:none; font-size:.95rem; }
.linkrow a:hover { text-decoration:underline; }

section { padding:56px 0; }
section h2.section-title { font-size:1.6rem; letter-spacing:-.02em; margin:0 0 8px; text-wrap:balance; }
section p.section-sub { color:var(--ink-muted); margin:0 0 28px; max-width:38rem; }

/* ---- legal / prose ---- */
.prose h1 { font-size:2rem; letter-spacing:-.02em; margin:0 0 6px; text-wrap:balance; }
.prose .eyebrow { text-transform:uppercase; letter-spacing:.09em; font-size:.74rem; font-weight:700; color:var(--accent); margin:0 0 10px; }
.prose .effective { color:var(--ink-muted); font-size:.92rem; margin:0 0 34px; }
.prose h2 { font-size:1.18rem; letter-spacing:-.01em; margin:34px 0 10px; text-wrap:balance; }
.prose p, .prose li { color:var(--ink); }
.prose ul { padding-left:1.15rem; }
.prose li { margin-bottom:8px; }
.prose a { color:var(--accent); }
.callout {
  background:var(--surface); border:1px solid var(--separator);
  border-radius:16px; padding:18px 20px; margin:22px 0;
}
.callout.alert { border-color:var(--accent); background:color-mix(in srgb, var(--accent) 9%, transparent); }
.callout p:last-child, .callout ul:last-child { margin-bottom:0; }
.callout p:first-child { margin-top:0; }

footer.site {
  border-top:1px solid var(--separator); margin-top:40px;
  padding:34px 0 54px; color:var(--ink-muted); font-size:.9rem;
}
footer.site .wrap { display:flex; gap:20px; flex-wrap:wrap; align-items:center; }
footer.site nav { display:flex; gap:18px; flex-wrap:wrap; margin-left:auto; }
footer.site a { color:var(--ink-muted); text-decoration:none; }
footer.site a:hover { color:var(--accent); }
:focus-visible { outline:2px solid var(--accent); outline-offset:3px; border-radius:6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior:auto; } *{animation:none!important;transition:none!important} }

/* ---- contact form ---- */
.contact-form { display:flex; flex-direction:column; gap:6px; margin-top:26px; }
.contact-form label { font-weight:650; font-size:.94rem; margin-top:14px; }
.contact-form .opt { font-weight:400; color:var(--ink-muted); font-size:.85rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  font:inherit; color:var(--ink); background:var(--card);
  border:1px solid var(--separator); border-radius:13px;
  padding:12px 14px; width:100%;
}
.contact-form textarea { resize:vertical; min-height:150px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline:2px solid var(--accent); outline-offset:1px; border-color:transparent;
}
.contact-form .hint { color:var(--ink-muted); font-size:.85rem; margin:4px 0 0; }
.contact-form button {
  font:inherit; font-weight:700; margin-top:24px; align-self:flex-start;
  color:#fff; background:var(--accent); border:0; cursor:pointer;
  padding:13px 28px; border-radius:999px;
}
.contact-form button:hover { background:var(--accent-deep); }
/* honeypot: hidden from people, visible to bots that ignore CSS */
.contact-form .hp { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

/* ==========================================================================
   Showcase system — added for the product redesign.
   Everything here is pure CSS: the site ships script-src 'none', so there is
   no JavaScript to lean on. Motion uses scroll-driven animations where the
   browser supports them and simply doesn't animate where it doesn't.
   ========================================================================== */

/* ---- aurora: soft colour wash built from the app's own event colours ---- */
.aurora { position:relative; isolation:isolate; }
.aurora::before {
  content:""; position:absolute; inset:-10% -20% auto; height:min(760px,90vh);
  z-index:-1; pointer-events:none;
  background:
    radial-gradient(42% 38% at 18% 22%, color-mix(in srgb,var(--feed) 26%,transparent), transparent 70%),
    radial-gradient(38% 34% at 82% 12%, color-mix(in srgb,var(--sleep) 24%,transparent), transparent 70%),
    radial-gradient(46% 40% at 62% 46%, color-mix(in srgb,var(--accent) 22%,transparent), transparent 72%),
    radial-gradient(30% 30% at 30% 58%, color-mix(in srgb,var(--pump) 16%,transparent), transparent 70%);
  filter:blur(46px); opacity:.85;
}
@media (prefers-color-scheme: dark) { .aurora::before { opacity:.5; filter:blur(58px); } }

/* ---- device frame ---- */
.device {
  position:relative; flex:none; width:100%; max-width:272px;
  aspect-ratio:736/1600; padding:2.4%; border-radius:14% / 6.4%;
  background:linear-gradient(160deg,#2a2a2e,#0a0a0b 45%,#1b1b1f);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.06) inset,
    0 2px 6px rgba(51,38,43,.14),
    0 22px 50px -12px rgba(51,38,43,.34);
}
@media (prefers-color-scheme: dark) {
  .device { box-shadow:0 0 0 1px rgba(255,255,255,.09) inset, 0 24px 56px -14px rgba(0,0,0,.75); }
}
.device img {
  display:block; width:100%; height:100%; object-fit:cover;
  border-radius:12.4% / 5.6%; background:var(--ground);
}
.device.sm { max-width:206px; }

/* device cluster: one phone forward, two tucked behind */
.cluster {
  display:flex; justify-content:center; align-items:flex-end; gap:clamp(-26px,-3vw,-14px);
  padding:8px 0 4px; perspective:1400px;
}
.cluster .device:nth-child(1) { transform:rotate(-7deg) translateY(20px) scale(.9); z-index:1; }
.cluster .device:nth-child(2) { z-index:3; }
.cluster .device:nth-child(3) { transform:rotate(7deg) translateY(20px) scale(.9); z-index:2; }
@media (max-width:640px) {
  .cluster .device:nth-child(1), .cluster .device:nth-child(3) { display:none; }
  .cluster { gap:0; }
}

/* ---- alternating feature rows ---- */
.feature {
  display:grid; gap:clamp(26px,5vw,60px); align-items:center;
  grid-template-columns:1fr; padding:clamp(38px,6vw,72px) 0;
}
@media (min-width:820px) {
  .feature { grid-template-columns:1fr auto; }
  .feature.flip > .device-col { order:-1; }
}
.feature .device-col { display:flex; justify-content:center; }
.feature h3 { font-size:clamp(1.4rem,3.2vw,1.9rem); letter-spacing:-.022em; margin:0 0 12px; text-wrap:balance; }
.feature p { color:var(--ink-muted); margin:0 0 14px; font-size:1.03rem; max-width:34rem; }
/* Unscoped: kickers appear inside .feature and .showcase alike. Scoping the
   svg size to .feature once let a shield icon expand to fill a whole card. */
.kicker {
  display:inline-flex; align-items:center; gap:7px; margin-bottom:14px;
  font-size:.75rem; font-weight:750; letter-spacing:.09em; text-transform:uppercase;
  padding:5px 12px; border-radius:999px;
}
.kicker svg { width:14px; height:14px; flex:none; }
.k-feed  { color:var(--feed);   background:color-mix(in srgb,var(--feed) 13%,transparent); }
.k-sleep { color:var(--sleep);  background:color-mix(in srgb,var(--sleep) 13%,transparent); }
.k-diaper{ color:var(--diaper); background:color-mix(in srgb,var(--diaper) 13%,transparent); }
.k-pump  { color:var(--pump);   background:color-mix(in srgb,var(--pump) 15%,transparent); }
.k-accent{ color:var(--accent); background:color-mix(in srgb,var(--accent) 13%,transparent); }

/* bullet list inside a feature */
.ticks { list-style:none; padding:0; margin:16px 0 0; display:grid; gap:9px; }
.ticks li { display:flex; gap:10px; align-items:flex-start; color:var(--ink); font-size:.98rem; }
.ticks li::before {
  content:""; flex:none; width:17px; height:17px; margin-top:4px; border-radius:50%;
  background:color-mix(in srgb,var(--accent) 16%,transparent) no-repeat center;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E8F7C' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-size:11px;
}

/* ---- trust strip ---- */
.strip {
  display:flex; flex-wrap:wrap; justify-content:center; gap:10px;
  margin:6px auto 0; max-width:52rem;
}
.strip span {
  font-size:.86rem; font-weight:620; color:var(--ink-muted);
  border:1px solid var(--separator); background:var(--surface);
  padding:7px 14px; border-radius:999px;
}

/* ---- CTA buttons ---- */
.cta-row { display:flex; gap:12px; flex-wrap:wrap; justify-content:center; margin-top:26px; }
.btn {
  font:inherit; font-weight:700; font-size:.98rem; text-decoration:none;
  padding:13px 26px; border-radius:999px; display:inline-flex; align-items:center; gap:8px;
  transition:transform .18s ease, background .18s ease, border-color .18s ease;
}
.btn.primary { color:#fff; background:var(--accent); }
.btn.primary:hover { background:var(--accent-deep); transform:translateY(-1px); }
.btn.ghost { color:var(--ink); border:1px solid var(--separator); background:var(--surface); }
.btn.ghost:hover { border-color:var(--accent); color:var(--accent); transform:translateY(-1px); }

/* ---- big app showcase card ---- */
.showcase {
  display:grid; gap:clamp(24px,4vw,48px); align-items:center; grid-template-columns:1fr;
  background:var(--card); border:1px solid var(--separator);
  border-radius:28px; padding:clamp(26px,4vw,44px); box-shadow:var(--shadow); overflow:hidden;
}
@media (min-width:820px) { .showcase { grid-template-columns:1.15fr auto; } }
.showcase .head { display:flex; align-items:center; gap:16px; margin-bottom:14px; }
.showcase .head img { width:64px; height:64px; border-radius:16px; flex:none; box-shadow:var(--shadow); }
.showcase h2 { margin:0; font-size:clamp(1.5rem,3.4vw,2rem); letter-spacing:-.025em; }

/* ---- numbers / at-a-glance ---- */
.facts { display:grid; gap:16px; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); margin-top:8px; }
.fact { background:var(--surface); border:1px solid var(--separator); border-radius:18px; padding:20px; }
.fact b { display:block; font-size:1.5rem; letter-spacing:-.02em; margin-bottom:2px; }
.fact span { color:var(--ink-muted); font-size:.9rem; }

/* ---- section heading block ---- */
.sec-head { text-align:center; max-width:40rem; margin:0 auto clamp(24px,4vw,40px); }
.sec-head h2 { font-size:clamp(1.7rem,4vw,2.3rem); letter-spacing:-.025em; margin:0 0 10px; text-wrap:balance; }
.sec-head p { color:var(--ink-muted); margin:0; text-wrap:pretty; }

/* ---- scroll-driven reveal (no JS). Degrades to "just visible". ---- */
@keyframes rise { from { opacity:0; transform:translateY(26px); } to { opacity:1; transform:none; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* Fixed length, not a percentage: these sections are taller than the
       viewport, and a percentage range leaves them half-faded while you're
       already reading them. 260px of scroll and they're fully there. */
    .reveal { animation:rise linear both; animation-timeline:view(); animation-range:entry 0px entry 260px; }
  }
}

/* ==========================================================================
   Classes replacing inline style="" attributes.
   The CSP sets style-src 'self' with no 'unsafe-inline', which also governs
   style attributes — so every inline style on this site was silently dead
   (the coloured icon dots rendered transparent). Keeping the strict CSP and
   moving the declarations here instead.
   ========================================================================== */
.pagetop { padding-top:44px; padding-bottom:20px; }
.hero.tight { padding-bottom:26px; }
.hero.compact { padding:64px 0 22px; }
.hero-icon { border-radius:22px; box-shadow:var(--shadow); margin-bottom:18px; }
.pt0 { padding-top:0; }
.mb-sm { margin-bottom:12px; }
.strip { margin-top:28px; }
.device-col { display:flex; justify-content:center; }
.cta-row.left { justify-content:flex-start; }
.lead-muted { color:var(--ink-muted); margin:0 0 6px; }
.note { color:var(--ink-muted); font-size:.95rem; }
.note-after { color:var(--ink-muted); font-size:.95rem; margin:18px 0 0; }
.footnote { color:var(--ink-muted); font-size:.9rem; margin-top:26px; }
.callout.mt { margin-top:18px; }
.callout p.tightnote { margin:0; font-size:.95rem; }

/* icon-dot colour variants (were inline background declarations) */
.dot.accent { background:color-mix(in srgb,var(--accent) 15%,transparent); }
.dot.feed   { background:color-mix(in srgb,var(--feed) 15%,transparent); }
.dot.sleep  { background:color-mix(in srgb,var(--sleep) 15%,transparent); }
.dot.diaper { background:color-mix(in srgb,var(--diaper) 15%,transparent); }
.dot.pump   { background:color-mix(in srgb,var(--pump) 15%,transparent); }
