/* Nibble marketing site. Tokens mirror the app's Colors.xcassets. See DESIGN.md. */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/assets/fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/assets/fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;

  --canvas: #f5efe6;
  --surface: #fcfaf6;
  --surface-2: #ebe4d8;
  --track: #e6e0d4;
  --ink: #1f3f38;
  --ink-2: #58675f;
  --line: rgba(31, 63, 56, 0.12);
  --line-strong: rgba(31, 63, 56, 0.2);

  --accent: #14503f;
  --accent-strong: #0f3d30;
  --on-accent: #fcfaf6;

  --sleep: #5b4e7a;
  --sleep-tint: #e8e3ee;
  --feed: #a8421b;
  --feed-tint: #f3e0d5;
  --diaper: #4e6b5d;
  --diaper-tint: #dfe7e1;
  --sage: #a6bab0;
  --mascot: #cfe088;

  --panel: #14503f;
  --on-panel: #fcfaf6;
  --on-panel-2: rgba(252, 250, 246, 0.78);

  --glow-sage: rgba(166, 186, 176, 0.45);
  --glow-plum: rgba(91, 78, 122, 0.14);
  --glow-mascot: rgba(207, 224, 136, 0.3);
  --header-bg: rgba(245, 239, 230, 0.8);
  --shadow-tint: 31, 63, 56;

  --font: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --text-h3: clamp(1.3125rem, 1.2rem + 0.5vw, 1.625rem);
  --text-h2: clamp(2rem, 1.45rem + 2.2vw, 3.25rem);
  --text-h1: clamp(2.5rem, 1.55rem + 3.9vw, 4.5rem);

  --radius-pill: 999px;
  --radius-card: 28px;
  --radius-inner: 20px;

  --nav-h: 68px;
  --container: 1240px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --section-y: clamp(5rem, 3rem + 8vw, 9.5rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --z-header: 10;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0f1412;
    --surface: #171d1a;
    --surface-2: #1f2724;
    --track: #2e3431;
    --ink: #ecf2ee;
    --ink-2: #a9b7b0;
    --line: rgba(236, 242, 238, 0.1);
    --line-strong: rgba(236, 242, 238, 0.18);

    --accent: #6fcfa5;
    --accent-strong: #8adbb7;
    --on-accent: #0f2a22;

    --sleep: #c3b7e0;
    --sleep-tint: #211d2e;
    --feed: #f0935f;
    --feed-tint: #2a1c15;
    --diaper: #a6bab0;
    --diaper-tint: #1a2420;

    --panel: #133d31;
    --on-panel: #ecf2ee;
    --on-panel-2: rgba(236, 242, 238, 0.76);

    --glow-sage: rgba(111, 207, 165, 0.12);
    --glow-plum: rgba(195, 183, 224, 0.1);
    --glow-mascot: rgba(207, 224, 136, 0.08);
    --header-bg: rgba(15, 20, 18, 0.78);
    --shadow-tint: 0, 0, 0;
  }
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  min-height: 100dvh;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img,
picture,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: inherit;
}
button,
summary {
  font: inherit;
  color: inherit;
}
ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

/* ---------- Base type ---------- */
h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}
h2 {
  font-size: var(--text-h2);
}
h3 {
  font-size: var(--text-h3);
  letter-spacing: -0.015em;
  line-height: 1.2;
}
p {
  text-wrap: pretty;
}
.lead {
  font-size: var(--text-lg);
  color: var(--ink-2);
  line-height: 1.55;
}
.muted {
  color: var(--ink-2);
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: calc(var(--z-header) + 1);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 0.75rem;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Prose base, shared with the legal pages. */
.prose {
  max-width: 68ch;
  color: var(--ink);
}
.prose > * + * {
  margin-top: 1em;
}
.prose h2 {
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
  margin-top: 2.5em;
  scroll-margin-top: calc(var(--nav-h) + 1.5rem);
}
.prose h3 {
  font-size: 1.25rem;
  margin-top: 2em;
}
.prose h2 + *,
.prose h3 + * {
  margin-top: 0.75em;
}
.prose ul,
.prose ol {
  padding-left: 1.25em;
}
.prose li + li {
  margin-top: 0.4em;
}
.prose a {
  color: var(--accent);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
.prose a:hover {
  text-decoration-thickness: 2px;
}
.prose strong {
  font-weight: 600;
}
.prose li::marker {
  color: var(--ink-2);
}
.prose > h2:first-child {
  margin-top: 0;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: var(--section-y);
}
.section-head {
  max-width: 40rem;
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}
.section-head p {
  max-width: 34rem;
}

/* ---------- Icons (Phosphor regular via jsDelivr, drawn with currentColor) ---------- */
.icon {
  display: inline-block;
  flex: none;
  width: 1.25em;
  height: 1.25em;
  background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.i-moon { --icon: url("https://cdn.jsdelivr.net/npm/@phosphor-icons/core@2.1.1/assets/regular/moon.svg"); }
.i-timer { --icon: url("https://cdn.jsdelivr.net/npm/@phosphor-icons/core@2.1.1/assets/regular/timer.svg"); }
.i-drop { --icon: url("https://cdn.jsdelivr.net/npm/@phosphor-icons/core@2.1.1/assets/regular/drop.svg"); }
.i-ruler { --icon: url("https://cdn.jsdelivr.net/npm/@phosphor-icons/core@2.1.1/assets/regular/ruler.svg"); }
.i-watch { --icon: url("https://cdn.jsdelivr.net/npm/@phosphor-icons/core@2.1.1/assets/regular/watch.svg"); }
.i-widgets { --icon: url("https://cdn.jsdelivr.net/npm/@phosphor-icons/core@2.1.1/assets/regular/squares-four.svg"); }
.i-mic { --icon: url("https://cdn.jsdelivr.net/npm/@phosphor-icons/core@2.1.1/assets/regular/microphone.svg"); }
.i-phone { --icon: url("https://cdn.jsdelivr.net/npm/@phosphor-icons/core@2.1.1/assets/regular/device-mobile.svg"); }
.i-lock { --icon: url("https://cdn.jsdelivr.net/npm/@phosphor-icons/core@2.1.1/assets/regular/lock-simple.svg"); }
.i-export { --icon: url("https://cdn.jsdelivr.net/npm/@phosphor-icons/core@2.1.1/assets/regular/download-simple.svg"); }
.i-import { --icon: url("https://cdn.jsdelivr.net/npm/@phosphor-icons/core@2.1.1/assets/regular/upload-simple.svg"); }
.i-baby { --icon: url("https://cdn.jsdelivr.net/npm/@phosphor-icons/core@2.1.1/assets/regular/baby.svg"); }
.i-pill { --icon: url("https://cdn.jsdelivr.net/npm/@phosphor-icons/core@2.1.1/assets/regular/pill.svg"); }
.i-chart { --icon: url("https://cdn.jsdelivr.net/npm/@phosphor-icons/core@2.1.1/assets/regular/chart-line-up.svg"); }
.i-images { --icon: url("https://cdn.jsdelivr.net/npm/@phosphor-icons/core@2.1.1/assets/regular/images.svg"); }
.i-file { --icon: url("https://cdn.jsdelivr.net/npm/@phosphor-icons/core@2.1.1/assets/regular/file-csv.svg"); }
.i-family { --icon: url("https://cdn.jsdelivr.net/npm/@phosphor-icons/core@2.1.1/assets/regular/users-three.svg"); }
.i-caret { --icon: url("https://cdn.jsdelivr.net/npm/@phosphor-icons/core@2.1.1/assets/regular/caret-down.svg"); }
.i-arrow { --icon: url("https://cdn.jsdelivr.net/npm/@phosphor-icons/core@2.1.1/assets/regular/arrow-right.svg"); }
.i-eye-slash { --icon: url("https://cdn.jsdelivr.net/npm/@phosphor-icons/core@2.1.1/assets/regular/eye-slash.svg"); }
.i-shield { --icon: url("https://cdn.jsdelivr.net/npm/@phosphor-icons/core@2.1.1/assets/regular/shield-check.svg"); }
.i-first-aid { --icon: url("https://cdn.jsdelivr.net/npm/@phosphor-icons/core@2.1.1/assets/regular/first-aid-kit.svg"); }
.i-receipt { --icon: url("https://cdn.jsdelivr.net/npm/@phosphor-icons/core@2.1.1/assets/regular/receipt.svg"); }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.625rem 1.25rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: var(--text-sm);
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.btn:hover {
  background: var(--accent-strong);
}
.btn:active {
  transform: translateY(1px) scale(0.98);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.text-link .icon {
  transition: transform 0.3s var(--ease-out);
}
.text-link:hover .icon {
  transform: translateX(3px);
}
.store-badge {
  display: inline-block;
  border-radius: 10px;
  transition: transform 0.3s var(--ease-out);
}
.store-badge img {
  width: 162px;
  height: 54px;
}
.store-badge:hover {
  transform: translateY(-2px);
}
.store-badge:active {
  transform: translateY(0) scale(0.98);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--nav-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 44px;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}
.brand img {
  width: 36px;
  height: 36px;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.875rem;
  border-radius: var(--radius-pill);
  color: var(--ink-2);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, background-color 0.2s;
}
.nav-links a:hover {
  color: var(--ink);
  background: var(--line);
}
@media (min-width: 960px) {
  .nav-links {
    display: flex;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100dvh - var(--nav-h));
  padding-top: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  overflow: hidden;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(42rem 30rem at 12% 8%, var(--glow-sage), transparent 70%),
    radial-gradient(38rem 28rem at 90% 14%, var(--glow-plum), transparent 70%),
    radial-gradient(30rem 22rem at 50% 78%, var(--glow-mascot), transparent 70%);
  pointer-events: none;
}
.hero-copy {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 1.25rem;
}
.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
}
.pill-tag .icon {
  color: var(--accent);
}
.hero h1 {
  max-width: 12em;
  font-size: var(--text-h1);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
}
.hero .lead {
  max-width: 31rem;
}
.hero-cta {
  margin-top: 0.75rem;
}
.hero-device {
  position: relative;
  width: clamp(250px, 21vw + 120px, 400px);
  margin: clamp(2.5rem, 2rem + 2vw, 3.5rem) auto 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
}
.hero-device img {
  width: 100%;
}

/* Floating orbs, desktop only, kept in the side gutters so they never touch the copy. */
.hero-orbs {
  display: none;
}
@media (min-width: 1100px) {
  .hero-orbs {
    display: block;
    position: absolute;
    z-index: -1;
    top: 0;
    left: 50%;
    width: min(1400px, 100%);
    height: 760px;
    transform: translateX(-50%);
    pointer-events: none;
  }
  .orb-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    color: var(--ink);
    opacity: 0.16;
  }
  .orb {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--s, 72px);
    height: var(--s, 72px);
    margin: calc(var(--s, 72px) / -2) 0 0 calc(var(--s, 72px) / -2);
    border-radius: 50%;
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line), 0 18px 40px -18px rgba(var(--shadow-tint), 0.35);
    overflow: hidden;
    display: grid;
    place-items: center;
  }
  .orb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .orb--mascot {
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }
  .orb--icon {
    font-size: calc(var(--s) * 0.42);
    color: var(--tone);
    background: var(--tint);
  }
}

/* ---------- Features bento ---------- */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  grid-auto-flow: dense;
}
.tile {
  position: relative;
  display: grid;
  gap: 1.25rem;
  min-width: 0;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.tile h3 {
  margin-bottom: 0.5rem;
}
.tile p {
  color: var(--ink-2);
  max-width: 30rem;
}
.tile-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--tone, var(--accent)) 14%, transparent);
  color: var(--tone, var(--accent));
  font-size: 1.25rem;
}
.tile-media {
  border-radius: var(--radius-inner);
  box-shadow: 0 0 0 1px var(--line), 0 24px 48px -28px rgba(var(--shadow-tint), 0.45);
  overflow: hidden;
  justify-self: center;
  align-self: end;
}
.tile-media img {
  width: 100%;
}
.tile--feeds {
  --tone: var(--feed);
  background: var(--feed-tint);
  box-shadow: none;
}
.tile--sleep {
  --tone: var(--sleep);
  background: var(--sleep-tint);
  box-shadow: none;
}
.tile--diapers {
  --tone: var(--diaper);
  background: var(--diaper-tint);
  box-shadow: none;
}
.tile--growth {
  --tone: var(--accent);
}
.tile--watch {
  --tone: var(--accent);
  background: var(--surface-2);
  box-shadow: none;
  align-content: space-between;
}
.tile--feeds p,
.tile--sleep p,
.tile--diapers p {
  color: var(--ink);
  opacity: 0.86;
}
.tile--sleep .tile-media {
  width: min(100%, 300px);
  margin-bottom: calc(-1 * clamp(1.5rem, 1.2rem + 1vw, 2.25rem));
  border-radius: var(--radius-inner) var(--radius-inner) 0 0;
}
.tile--feeds .tile-media {
  width: min(100%, 260px);
}
.tile--diapers .tile-media,
.tile--growth .tile-media {
  width: min(100%, 340px);
}
.watch-icons {
  display: flex;
  gap: 0.625rem;
}
.watch-icons .tile-icon {
  margin: 0;
  background: var(--surface);
}

@media (min-width: 768px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tile--sleep {
    grid-row: span 2;
  }
  .tile--growth,
  .tile--watch {
    grid-column: span 2;
  }
  .tile--growth {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }
}
@media (min-width: 1024px) {
  .bento {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: minmax(300px, auto);
  }
  .tile--feeds,
  .tile--diapers,
  .tile--sleep {
    grid-column: span 3;
  }
  .tile--growth {
    grid-column: span 4;
  }
  .tile--watch {
    grid-column: span 2;
  }
  .tile--sleep {
    grid-template-rows: auto 1fr;
  }
}
@media (min-width: 1200px) {
  .tile--feeds {
    grid-template-columns: minmax(0, 1fr) 220px;
    align-items: start;
  }
  .tile--feeds .tile-media {
    width: 220px;
    margin-bottom: calc(-1 * clamp(1.5rem, 1.2rem + 1vw, 2.25rem) - 60px);
  }
  .tile--diapers {
    grid-template-columns: 250px minmax(0, 1fr);
    align-items: center;
  }
  .tile--diapers .tile-media {
    order: -1;
    align-self: center;
  }
}

/* ---------- How it works (CSS sticky pin) ---------- */
.how-grid {
  display: grid;
  gap: 3rem;
}
.how-intro {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}
.how-index {
  display: none;
}
.how-steps {
  display: grid;
  gap: clamp(4rem, 3rem + 4vw, 7rem);
}
.step {
  display: grid;
  gap: 1.75rem;
  justify-items: center;
  text-align: center;
}
.step-media {
  width: min(78vw, 300px);
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
}
.step-media img {
  width: 100%;
}
.step-copy {
  display: grid;
  gap: 0.75rem;
  max-width: 24rem;
}
.step-copy h3 {
  font-size: clamp(1.625rem, 1.4rem + 0.8vw, 2.125rem);
}
.step-copy p {
  color: var(--ink-2);
}
@media (min-width: 768px) {
  .step {
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    align-items: center;
    justify-items: start;
    text-align: left;
    gap: 3rem;
  }
  .step-media {
    width: 100%;
  }
}
@media (min-width: 1024px) {
  .how-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 4rem;
    align-items: start;
  }
  .how-intro {
    position: sticky;
    top: calc(var(--nav-h) + 4rem);
  }
  .how-index {
    display: grid;
    gap: 0.25rem;
    margin-top: 1.5rem;
    padding: 0;
    list-style: none;
    border-left: 1px solid var(--line-strong);
  }
  .how-index a {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin-left: -1px;
    padding-left: 1.25rem;
    border-left: 2px solid transparent;
    color: var(--ink-2);
    font-size: 1.125rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s, border-color 0.3s;
  }
  .how-index a:hover,
  .how-index a[aria-current] {
    color: var(--ink);
    border-left-color: var(--accent);
  }
}

/* ---------- Private by design ---------- */
.privacy-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
.privacy-art {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(2rem, 1.5rem + 3vw, 4rem) clamp(1.5rem, 1rem + 3vw, 3.5rem) 0;
  border-radius: var(--radius-card);
  background:
    radial-gradient(70% 60% at 50% 40%, var(--glow-sage), transparent 75%),
    var(--diaper-tint);
  overflow: hidden;
}
.privacy-art img {
  width: min(100%, 400px);
}
.privacy-copy {
  display: grid;
  gap: 1.25rem;
}
.facts {
  display: grid;
  gap: 1.5rem;
  margin: 1rem 0 0.5rem;
  padding: 0;
  list-style: none;
}
.facts li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.facts .tile-icon {
  margin: 0;
}
.facts strong {
  display: block;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.3;
  margin-bottom: 0.2rem;
}
.facts p {
  color: var(--ink-2);
}
@media (min-width: 768px) {
  .privacy-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(3rem, 2rem + 4vw, 6rem);
  }
}

/* ---------- Nibble+ ---------- */
.plus-panel {
  display: grid;
  gap: 2.5rem;
  padding: clamp(2rem, 1.5rem + 3vw, 4.5rem);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -48px rgba(var(--shadow-tint), 0.35);
}
.plus-intro {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}
.plus-mark {
  color: var(--accent);
}
.plus-note {
  font-size: var(--text-sm);
  color: var(--ink-2);
  max-width: 28rem;
}
.plus-list {
  display: grid;
  gap: 1.75rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.plus-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.35;
}
.plus-list .tile-icon {
  margin: 0;
}
.plus-family {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}
.plus-family img {
  width: 96px;
  height: 105px;
}
@media (min-width: 768px) {
  .plus-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .plus-panel {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 4rem;
    align-items: center;
  }
}

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  gap: 2.5rem;
}
.faq-intro {
  display: grid;
  gap: 1rem;
  align-content: start;
}
.faq-list {
  border-top: 1px solid var(--line-strong);
}
.faq-item {
  border-bottom: 1px solid var(--line-strong);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 44px;
  padding: 1.375rem 0;
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary .icon {
  color: var(--ink-2);
  transition: transform 0.3s var(--ease-out);
}
.faq-item[open] summary .icon {
  transform: rotate(180deg);
}
.faq-item summary:hover {
  color: var(--accent);
}
.faq-answer {
  padding: 0 2.75rem 1.5rem 0;
  color: var(--ink-2);
  max-width: 62ch;
}
@media (min-width: 1024px) {
  .faq-grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 4rem;
  }
  .faq-intro {
    position: sticky;
    top: calc(var(--nav-h) + 3rem);
  }
}

/* ---------- Download ---------- */
.download {
  padding-top: 0;
}
.download-panel {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  gap: 1.25rem;
  padding: clamp(3rem, 2rem + 5vw, 6rem) var(--gutter);
  border-radius: var(--radius-card);
  background: var(--panel);
  color: var(--on-panel);
  text-align: center;
  overflow: hidden;
}
.download-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(28rem 18rem at 18% 0%, rgba(207, 224, 136, 0.16), transparent 70%),
    radial-gradient(26rem 18rem at 85% 100%, rgba(166, 186, 176, 0.18), transparent 70%);
}
.download-panel img.download-mascot {
  width: 112px;
  height: 112px;
}
.download-panel h2 {
  max-width: 14em;
}
.download-panel p {
  max-width: 30rem;
  color: var(--on-panel-2);
  font-size: var(--text-lg);
}
.download-panel .store-badge {
  margin-top: 0.75rem;
}
.download-panel :focus-visible {
  outline-color: var(--on-panel);
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 4rem 2.5rem;
  border-top: 1px solid var(--line);
  font-size: var(--text-sm);
  color: var(--ink-2);
}
.footer-grid {
  display: grid;
  gap: 2rem;
}
.footer-brand {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}
.footer-brand .brand {
  color: var(--ink);
}
.footer-links {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.footer-links a[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
}
.footer-legal {
  display: grid;
  gap: 0.5rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}
.footer-legal .disclaimer {
  color: var(--ink);
  font-weight: 500;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    align-items: start;
  }
  .footer-links {
    justify-self: end;
  }
}

/* ---------- 404 ---------- */
.not-found {
  display: grid;
  place-items: center;
  min-height: calc(100dvh - var(--nav-h) - 12rem);
  padding-block: var(--section-y);
  text-align: center;
}
.not-found-inner {
  display: grid;
  justify-items: center;
  gap: 1.25rem;
  max-width: 34rem;
}
.not-found img {
  width: 120px;
  height: 120px;
}
.not-found h1 {
  font-size: var(--text-h2);
}

/* ---------- Legal pages ---------- */
.legal {
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) var(--section-y);
}
.legal-head {
  display: grid;
  gap: 1rem;
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}
.legal-head h1 {
  font-size: var(--text-h2);
  letter-spacing: -0.03em;
}
.legal-head a {
  color: var(--accent);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
.legal-meta {
  font-size: var(--text-sm);
  color: var(--ink-2);
}
.legal-layout {
  display: grid;
  gap: 3rem;
}
.legal-toc {
  display: none;
}
.legal-summary {
  display: grid;
  gap: 1.5rem;
  max-width: 68ch;
  margin-bottom: clamp(3rem, 2.5rem + 2vw, 4.5rem);
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), 0 24px 48px -32px rgba(var(--shadow-tint), 0.35);
}
.legal-summary h2 {
  font-size: var(--text-h3);
}
.legal-summary .facts {
  margin: 0;
}
@media (min-width: 1024px) {
  .legal-layout {
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: clamp(3rem, 1rem + 4vw, 6rem);
    align-items: start;
  }
  .legal-toc {
    display: grid;
    gap: 0.75rem;
    position: sticky;
    top: calc(var(--nav-h) + 2.5rem);
    max-height: calc(100dvh - var(--nav-h) - 5rem);
    overflow-y: auto;
  }
  .legal-toc-title {
    font-size: var(--text-sm);
    font-weight: 600;
  }
  .legal-toc ul {
    display: grid;
    border-left: 1px solid var(--line-strong);
  }
  .legal-toc a {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin-left: -1px;
    padding: 0.4rem 0 0.4rem 1.125rem;
    border-left: 2px solid transparent;
    color: var(--ink-2);
    font-size: var(--text-sm);
    font-weight: 500;
    line-height: 1.35;
    text-decoration: none;
    transition: color 0.3s, border-color 0.3s;
  }
  .legal-toc a:hover {
    color: var(--ink);
    border-left-color: var(--accent);
  }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *,
  .hero-device {
    animation: rise 0.9s var(--ease-out) both;
    animation-delay: calc(var(--i, 0) * 90ms);
  }
  .orb {
    animation: float 7s ease-in-out infinite alternate;
    animation-delay: calc(var(--d, 0) * -1s);
  }
  .hero.is-offscreen .orb {
    animation-play-state: paused;
  }
  .is-pending {
    opacity: 0;
    transform: translateY(28px);
  }
  .is-pending.is-visible {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 80ms);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes float {
  from {
    transform: translateY(-7px);
  }
  to {
    transform: translateY(7px);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--canvas);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .pill-tag {
    background: var(--surface);
  }
}
