/* VOVO Baby website · shared by every page: the app's colour tokens (light and dark), base type, links, the header,
   the footer, the Free / Pro tags and the App Store call to action.
   System fonts only. Nothing on this site is loaded from another server. */

/* ---------- Tokens: the app's colours (BabyCareUI › Tokens › Colors.swift) ---------- */
:root,
.theme-light {
  color-scheme: light;
  --bg: #F6F3EC; --surface: #FFFFFF; --surface-2: #FBF9F4; --surface-3: #F1EEE6;
  --border: #E8E3D6; --border-2: #D9D3C1;
  --text: #1B1A16; --text-2: #4A463D; --muted: #847F71; --muted-readable: #5F5A4F; --faint: #B5AF9F;
  --ink: #1F1E1A; --ink-pressed: #3A372F;
  --pos: #2F6F3E; --pos-bg: #E5EFE3; --pos-line: #C7DCC3;
  --neg: #B33A2E; --neg-bg: #F4E4DE; --neg-line: #E5C5BB;
  --warn: #A06410; --warn-text: #85520A; --warn-bg: #F4E9D2; --warn-line: #E2D2A8;
  --info: #2E5A8A; --info-bg: #E2EAF3; --on-accent: #FFFFFF; --prominent: #1F1E1A;
  --shadow-1: 0 1px 2px rgba(28, 26, 22, .06);
  --shadow-strong: 0 6px 20px rgba(28, 26, 22, .12);
  --shadow-3: 0 10px 40px rgba(28, 26, 22, .12);
  --phone-shadow: 0 2px 4px rgba(28, 26, 22, .08), 0 24px 60px -12px rgba(28, 26, 22, .28), 0 50px 90px -40px rgba(46, 90, 138, .25);
  --ring: rgba(28, 26, 22, .08);
  --halo: rgba(255, 255, 255, .78);
  --dot-idle: rgba(27, 26, 22, .58);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #16140F; --surface: #1F1C16; --surface-2: #1A1813; --surface-3: #25221B;
    --border: #2E2A22; --border-2: #3A352A;
    --text: #F2EEDF; --text-2: #C9C3AE; --muted: #8D8675; --muted-readable: #ABA492; --faint: #5E594C;
    --ink: #F2EEDF; --ink-pressed: #C9C3AE;
    --pos: #6FBE7E; --pos-bg: #1E2C20; --pos-line: #2C4232;
    --neg: #E58779; --neg-bg: #2E1F1B; --neg-line: #44312A;
    --warn: #DDB060; --warn-text: #DDB060; --warn-bg: #2C2516; --warn-line: #443A22;
    --info: #8FB0D8; --info-bg: #1B2330; --on-accent: #16140F; --prominent: #2E5A8A;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-strong: 0 6px 20px rgba(0, 0, 0, .6);
    --shadow-3: 0 10px 40px rgba(0, 0, 0, .6);
    --phone-shadow: 0 0 0 1px rgba(255, 255, 255, .07), 0 30px 70px -20px rgba(0, 0, 0, .85);
    --ring: rgba(255, 255, 255, .14);
    --halo: rgba(143, 176, 216, .07);
    --dot-idle: rgba(242, 238, 223, .55);
  }
}

/* .theme-light: a part of the page that stays light whatever the system setting (the phone on the home page). */
.theme-light { color: var(--text); }

:root {
  /* Headings: the system serif (New York on Apple devices). Text: the system sans (SF on Apple devices). */
  --serif: ui-serif, "New York", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --gutter: clamp(16px, calc(4vw + 3px), 44px);
  --hdr-h: 56px;
}
@media (min-width: 760px) { :root { --hdr-h: 64px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--info); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }

.ic {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* The home page's icon sprite (<svg class="sprite"> of <symbol>s): takes no room in the page. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* The first stop for keyboard users: jumps past the header. */
.skip {
  position: fixed; z-index: 100; left: 12px; top: -80px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-weight: 600; text-decoration: none;
  box-shadow: var(--shadow-strong);
}
.skip:focus, .skip:focus-visible { top: 10px; }

/* ---------- Header ---------- */
.hdr {
  display: flex; align-items: center; gap: 8px 20px;
  height: var(--hdr-h);
  padding: 0 var(--gutter);
  color: var(--text);
}
.hdr__brand {
  display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px;
  min-height: 44px; margin-right: auto;
  color: var(--text); text-decoration: none;
}
.hdr__logo {
  display: block;
  width: 124px; height: 36px; object-fit: contain;
}
.hdr__name { font: 600 .625rem/1 var(--sans); letter-spacing: 0; }
@media (min-width: 760px) {
  .hdr__logo { width: 144px; height: 42px; }
}

.hdr__nav { display: flex; align-items: center; gap: 2px 18px; }
.hdr__nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--text-2); font-size: .9375rem; font-weight: 500; text-decoration: none;
}
.hdr__nav a:hover { color: var(--text); text-decoration: underline; }
.hdr__nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

/* ---------- Free / Pro tags (C.10) ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 9px;
  border-radius: 999px;
  font: 600 .6875rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap;
}
.tag .ic { width: 12px; height: 12px; stroke-width: 2; }
.tag--pro { background: var(--info-bg); color: var(--info); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--info) 22%, transparent); }
.tag--free { background: var(--pos-bg); color: var(--pos); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pos) 22%, transparent); }

/* ---------- App Store call to action ----------
   Every call to action is the same link: <a class="store-cta" data-store-cta href="https://apps.apple.com/app/id…">.
   While its address still holds the placeholder, it shows "Coming soon on the App Store" and cannot be clicked
   (pointer-events below), reached with Tab (tabindex="-1" in the HTML) or used as a link by screen readers
   (aria-disabled="true" in the HTML), with or without JavaScript; store-link.js also removes the dead address.
   Once the real App Store ID is in the address, it shows Apple's official badge from assets/app-store-badge.svg
   (served from this site, never redrawn); the text "Download on the App Store" sits under the badge for screen
   readers, and shows as a plain underlined text link if the file is missing (never a home-made badge).
   See README.md › "The App Store link". */
.store-cta {
  --h: 52px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); margin: 0; padding: 0 26px 0 22px;
  border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font: 600 1rem/1.2 var(--sans); letter-spacing: -.005em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .08), 0 10px 24px -12px rgba(28, 26, 22, .45);
}
.store-cta .ic { width: 20px; height: 20px; stroke-width: 1.8; }
.store-cta__live { display: none; }

/* Not live yet: a status, not a button. */
.store-cta[href*="OWNER-TODO"],
.store-cta:not([href]) { pointer-events: none; cursor: default; }

/* Live: the official badge (Apple's artwork, aspect ratio 119.66 × 40), at least 40 px tall, with clear space.
   The box only sizes the badge: without the badge file it is a plain text link, never an imitation of the badge. */
.store-cta[href]:not([href*="OWNER-TODO"]) {
  width: calc(var(--h) * 2.9916); max-width: none; padding: 0 10px;
  border-radius: 0;
  background: none; color: var(--text);
  font-size: .75rem; line-height: 1.15; white-space: normal; text-align: center;
  text-decoration: underline;
  box-shadow: none;
  overflow: hidden;
}
.store-cta[href]:not([href*="OWNER-TODO"]) .store-cta__soon,
.store-cta[href]:not([href*="OWNER-TODO"]) .ic { display: none; }
.store-cta[href]:not([href*="OWNER-TODO"]) .store-cta__live { display: inline; }
.store-cta[href]:not([href*="OWNER-TODO"])::after {
  content: ""; position: absolute; inset: 0;
  background: url("../app-store-badge.svg") center / contain no-repeat;
}
.store-cta[href]:not([href*="OWNER-TODO"]):focus-visible { outline-offset: 4px; }

.store-cta--sm {
  --h: 40px;
  padding: 0 16px 0 14px;
  gap: 7px;
  font-size: .8125rem;
  box-shadow: none;
}
.store-cta--sm .ic { width: 16px; height: 16px; }
.store-cta--sm[href*="OWNER-TODO"],
.store-cta--sm:not([href]) {
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border-2);
}

/* Narrow windows, page zoom and larger text: the "Coming soon" label may wrap (min-height lets the pill grow)
   instead of running off the screen or under the next column. The live badge sets its own width above. */
.store-cta:not(.store-cta--sm) { white-space: normal; text-wrap: balance; text-align: center; max-width: 100%; }

/* ---------- Footer ---------- */
.foot {
  padding: 28px var(--gutter) calc(36px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: var(--bg);
  text-align: center;
  font-size: .8125rem; line-height: 1.55;
  color: var(--muted-readable);
}
.foot p { margin: 0 auto; max-width: 46rem; }
.foot__nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 22px;
  margin: 0 0 12px;
}
.foot__nav a {
  display: inline-flex; align-items: center; min-height: 40px;
  color: var(--text); font-size: .9375rem; font-weight: 500; text-decoration: none;
}
.foot__nav a:hover { text-decoration: underline; }
.foot__nav a[aria-current="page"] { font-weight: 650; }
.foot__tm { margin-top: 8px !important; font-size: .75rem; }

@media print {
  .skip { display: none; }
  .foot { border-top-color: #999; }
}
