/* Weekwell landing page. Tokens mirror apps/ios Theme.swift and docs/design/brand/README.md (D-19).
   Contrast pairs used here are listed in web/README.md → "Accessibility". */

/* Nunito (SIL Open Font License 1.1, public/fonts/OFL.txt), self-hosted: no request leaves weekwell.app.
   Variable weight 400–900; split like Google Fonts so Latin-only pages load one file. */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/nunito-v32-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/nunito-v32-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;
}

:root {
  color-scheme: light dark;
  --canvas: #FFF6EA;
  --card: #FFFFFF;
  --tint: #FFEBDD;
  --ink: #3A2340;
  --ink-soft: #76627A;
  --coral: #FF7A59;
  --on-coral: #3A2340;
  --sunshine: #FFC845;
  --lagoon: #3BB3A3;
  --accent: #C2410C;
  --plum: #3A2340;
  --line: rgb(58 35 64 / 0.12);
  --line-strong: rgb(58 35 64 / 0.28);
  --band: #3A2340;
  --band-ink: #FFF6EA;
  --band-soft: #D9C8D4;
  --band-accent: #FFC845;
  --phone-frame: #2A1B2E;
  --store-bg: #3A2340;
  --store-ink: #FFF6EA;
  --shadow-sm: 0 1px 2px rgb(58 35 64 / 0.06), 0 4px 12px -4px rgb(58 35 64 / 0.12);
  --shadow-lg: 0 2px 6px rgb(58 35 64 / 0.08), 0 30px 60px -24px rgb(58 35 64 / 0.35);
  --focus: var(--accent);

  --font: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius-card: 1.75rem;
  --gutter: 1rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #1E1420;
    --card: #2C1F2F;
    --tint: #3A2A3D;
    --ink: #FFF6EA;
    --ink-soft: #C9B6C4;
    --coral: #FF8A6B;
    --sunshine: #FFD166;
    --lagoon: #4CC7B6;
    --accent: #FF8A6B;
    --line: rgb(255 246 234 / 0.12);
    --line-strong: rgb(255 246 234 / 0.3);
    --band: #2C1F2F;
    --band-soft: #C9B6C4;
    --band-accent: #FFD166;
    --phone-frame: #0E080F;
    --store-bg: #FFF6EA;
    --store-ink: #3A2340;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3), 0 4px 12px -4px rgb(0 0 0 / 0.4);
    --shadow-lg: 0 2px 6px rgb(0 0 0 / 0.3), 0 30px 60px -24px rgb(0 0 0 / 0.7);
  }
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.55;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2 {
  font-weight: 900;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 1.55rem + 4.2vw, 4.25rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 1.35rem + 2.8vw, 3.25rem); line-height: 1.05; }
h3 { font-size: 1.25rem; font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; }

a { color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 3px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 0.375rem;
}

.lede {
  max-width: 36em;
  color: var(--ink-soft);
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
  font-weight: 600;
  line-height: 1.5;
  text-wrap: pretty;
}

.wrap {
  width: 100%;
  max-width: 74rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-narrow { max-width: 48rem; }

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -10rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--canvas);
  font-weight: 800;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Buttons and store badges ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.5rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--coral);
  color: var(--on-coral);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.button:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.button:active { transform: scale(0.97); box-shadow: none; }
.button-small { min-height: 2.75rem; padding-inline: 1.15rem; font-size: 1rem; white-space: nowrap; }

.stores { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.store {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3.5rem;
  padding: 0.5rem 1rem 0.5rem 0.75rem;
  border-radius: 1rem;
  background: var(--store-bg);
  color: var(--store-ink);
  text-decoration: none;
  transition: transform 160ms var(--ease-out);
}
.store[href]:hover { transform: translateY(-2px); }
.store[href]:active { transform: scale(0.97); }
/* Not in the stores yet: no link, an outlined "coming soon" chip. */
.store:not([href]) {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--line-strong);
}
.store-icon {
  width: 1.6rem;
  height: 1.6rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.store-text { display: flex; flex-direction: column; line-height: 1.15; }
.store-small { font-size: 0.8125rem; font-weight: 700; }
.store-name { font-size: 1.125rem; font-weight: 900; letter-spacing: -0.01em; }

/* ---------- Header ---------- */

.site-header { padding-block: 1rem; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark { width: 2.75rem; height: 2.75rem; }
.brand-name { font-size: 1.5rem; font-weight: 900; letter-spacing: -0.02em; }

/* ---------- Hero ---------- */

.hero { padding-block: 1rem 3.5rem; overflow: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; }
.hero-copy h1 { margin-bottom: 1.1rem; }
.hero-promise { margin-top: 1rem; font-size: 1.125rem; font-weight: 800; }
.hero-promise::before {
  content: "";
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  margin-inline-end: 0.4em;
  vertical-align: -0.2em;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='5' y='10' width='14' height='11' rx='3' fill='none' stroke='black' stroke-width='2.2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='5' y='10' width='14' height='11' rx='3' fill='none' stroke='black' stroke-width='2.2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.get { margin-top: 1.75rem; }

.hero-visual {
  --phone-w: min(14.5rem, 66vw);
  --scene-w: calc(var(--phone-w) * 2.6);
  position: relative;
  display: grid;
  justify-items: center;
  /* The phone's top edge sits at 49% of the scene, so the sun rises from behind it. */
  padding-top: calc(var(--scene-w) * 0.32);
}

/* The logo's sun and wave, drawn large behind the phone (viewBox cropped to the drawing: y 18–82). */
.scene {
  position: absolute;
  top: calc(var(--scene-w) * 0.01);
  left: 50%;
  width: var(--scene-w);
  max-width: none;
  translate: -50% 0;
  overflow: visible;
}
.scene-sun path { fill: var(--sunshine); }
.scene-rays line { stroke: var(--sunshine); stroke-width: 6; stroke-linecap: round; }
.scene-wave { fill: none; stroke: var(--coral); stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }

.phone {
  position: relative;
  z-index: 1;
  width: var(--phone-w);
  aspect-ratio: 9 / 19.2;
  padding: calc(var(--phone-w) * 0.035);
  border-radius: calc(var(--phone-w) * 0.165);
  background: var(--phone-frame);
  box-shadow: var(--shadow-lg);
}
.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--phone-w) * 0.135);
  background: var(--canvas);
  font-size: calc(var(--phone-w) * 0.05);
  line-height: 1.3;
}
.ph-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.95em 1.7em 0;
  font-size: 0.95em;
  font-weight: 800;
}
.ph-island {
  position: absolute;
  top: 0.65em;
  left: 50%;
  width: 6.5em;
  height: 1.9em;
  translate: -50% 0;
  border-radius: 1em;
  background: #000;
}
.ph-icons { display: flex; gap: 0.25em; }
.ph-icons i { width: 0.45em; height: 0.8em; border-radius: 0.15em; background: var(--ink); }
.ph-icons i:last-child { width: 1.4em; }
.ph-head { padding: 1.2em 1.25em 0.6em; }
.ph-date { color: var(--ink-soft); font-size: 0.85em; font-weight: 700; }
.ph-title { font-size: 2.1em; font-weight: 900; line-height: 1.05; letter-spacing: -0.02em; }
.ph-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.2em;
  padding-inline: 0.9em;
  text-align: center;
}
.ph-week li { padding: 0.4em 0; border-radius: 0.9em; }
.ph-week span { display: block; color: var(--ink-soft); font-size: 0.7em; font-weight: 800; }
.ph-week b { display: block; font-size: 1.05em; font-weight: 900; }
.ph-week .is-today { background: var(--coral); color: var(--on-coral); }
.ph-week .is-today span { color: var(--on-coral); }
.ph-card {
  margin: 0.8em 0.9em 0;
  padding: 0.95em;
  border-radius: 1.3em;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.ph-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5em; }
.ph-card-top b { font-weight: 800; }
.ph-card-top span { color: var(--ink-soft); font-size: 0.75em; font-weight: 700; }
.ph-dose { display: flex; align-items: center; gap: 0.85em; margin-top: 0.75em; }
.ph-tile {
  display: grid;
  place-items: center;
  width: 4em;
  height: 4.2em;
  padding-top: 0.2em;
  border-radius: 1.1em;
  background: var(--coral);
  color: var(--on-coral);
  line-height: 1;
}
.ph-tile span { font-size: 0.7em; font-weight: 900; text-transform: uppercase; }
.ph-tile b { font-size: 1.7em; font-weight: 900; }
.ph-time { font-size: 1.6em; font-weight: 900; line-height: 1.1; }
.ph-state { display: grid; color: var(--ink-soft); font-size: 0.8em; font-weight: 700; }
.ph-state > span { grid-area: 1 / 1; }
.ph-planned { opacity: 0; }
.ph-actions { display: flex; gap: 0.5em; margin-top: 0.85em; }
.ph-log {
  display: grid;
  flex: 1;
  place-items: center;
  height: 3.1em;
  border-radius: 999px;
  background: var(--lagoon);
  color: var(--plum);
  font-weight: 900;
}
.ph-log > span { grid-area: 1 / 1; }
.ph-log-label { opacity: 0; }
.ph-more {
  display: grid;
  place-items: center;
  width: 3.1em;
  height: 3.1em;
  border-radius: 50%;
  background: var(--tint);
  font-size: 0.8em;
  font-weight: 900;
  letter-spacing: 0.05em;
}
.ph-supply .ph-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.3em; margin-top: 0.6em; }
.ph-bar i { height: 0.55em; border-radius: 999px; background: var(--coral); }
.ph-bar i:last-child { background: var(--tint); }
.ph-chips { display: flex; gap: 0.3em; margin-top: 0.55em; }
.ph-chips i {
  padding: 0.35em 0.75em;
  border-radius: 999px;
  background: var(--tint);
  font-size: 0.72em;
  font-style: normal;
  font-weight: 800;
}
.ph-chips .on { background: var(--sunshine); color: var(--plum); }
.ph-toast {
  position: absolute;
  inset-inline: 0.9em;
  bottom: 1.3em;
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.55em 0.9em 0.55em 0.6em;
  border-radius: 1.3em;
  background: var(--card);
  box-shadow: var(--shadow-lg);
}
.ph-toast img { width: 2.6em; height: 2.6em; }
.ph-toast p { font-size: 0.82em; line-height: 1.25; }
.ph-toast b { display: block; font-weight: 900; }
.ph-toast span { margin-inline-start: auto; color: var(--accent); font-size: 0.8em; font-weight: 800; }

.hero-otter {
  position: absolute;
  z-index: 2;
  bottom: -0.5rem;
  left: calc(50% - var(--phone-w) * 0.5 - 4.6rem);
  width: auto;
  height: 9.5rem;
}

@media (min-width: 26rem) {
  .hero-visual { --phone-w: min(15.5rem, 66vw); }
  .hero-otter { height: 11rem; left: calc(50% - var(--phone-w) * 0.5 - 5.6rem); }
}

@media (min-width: 60rem) {
  :root { --gutter: 2rem; }
  .hero { padding-block: 2rem 6rem; }
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: 2rem; }
  .hero-copy { position: relative; z-index: 3; }
  .hero-visual { --phone-w: min(16rem, 26vw); --scene-w: calc(var(--phone-w) * 2.35); }
  .hero-otter { height: 13rem; left: calc(50% - var(--phone-w) * 0.5 - 7rem); bottom: 0; }
}

/* ---------- Sections ---------- */

.section { padding-block: 4.5rem; }
@media (min-width: 60rem) { .section { padding-block: 6.5rem; } }

/* How it works */
.steps-track { position: relative; margin-top: 2.5rem; }
.steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  column-gap: 1rem;
  row-gap: 0.35rem;
}
.step-num {
  grid-row: span 2;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--sunshine);
  color: var(--plum);
  font-size: 1.25rem;
  font-weight: 900;
}
.step h3 { align-self: center; }
.step p { grid-column: 2; color: var(--ink-soft); max-width: 34em; }
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 3.25rem;
  bottom: -1.75rem;
  inset-inline-start: calc(1.5rem - 2px);
  width: 4px;
  border-radius: 2px;
  background: var(--coral);
  opacity: 0.55;
}
.steps-wave { display: none; }

@media (min-width: 60rem) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
  .step { display: block; }
  .step::before { display: none; }
  .step-num { margin-bottom: 1.25rem; width: 3.5rem; height: 3.5rem; font-size: 1.4rem; }
  .step h3 { margin-bottom: 0.5rem; }
  .steps-wave {
    display: block;
    position: absolute;
    top: calc(1.75rem - 30px);
    left: 1.75rem;
    width: calc((100% - 6rem) * 0.75 + 6rem); /* first circle's centre to the last one's */
    height: 60px;
    overflow: visible;
  }
  .steps-wave path { fill: none; stroke: var(--coral); stroke-width: 6; stroke-linecap: round; }
}

/* Features */
.features { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-top: 2.5rem; }
.feature {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.feature h3 { margin-bottom: 0.45rem; }
.feature p { color: var(--ink-soft); }
.also { margin-top: 1.5rem; color: var(--ink-soft); font-weight: 600; }

@media (min-width: 44rem) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-wide { grid-column: span 2; }
}
@media (min-width: 64rem) {
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
  .feature { padding: 1.75rem; }
  .feature-wide { flex-direction: row; align-items: center; gap: 2rem; }
  .feature-wide .feature-text { flex: 1; }
  .feature-wide .mini { flex: 0 0 22rem; }
}

/* Feature mini illustrations (decorative; the text carries the meaning) */
.mini { font-size: 0.9375rem; }

.notify {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 1.25rem;
  background: var(--canvas);
  box-shadow: var(--shadow-sm);
}
.notify-icon { width: 2.4rem; height: 2.4rem; flex: none; }
.notify-icon rect { fill: var(--coral); }
.notify-body { flex: 1; min-width: 0; }
.notify-top { display: flex; flex-wrap: wrap; justify-content: space-between; column-gap: 0.5rem; }
.notify-top b { font-weight: 800; }
.notify-top span { color: var(--ink-soft); font-size: 0.8125rem; }
.notify-body p:last-child { color: var(--ink); }
.notify-actions { display: grid; gap: 0.4rem; margin-top: 0.45rem; }
.notify-actions span {
  padding: 0.6rem;
  border-radius: 1rem;
  background: var(--canvas);
  color: var(--accent);
  font-weight: 800;
  text-align: center;
}

.mini-sites { display: grid; gap: 0.45rem; }
.mini-sites li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 0.6rem;
  padding: 0.55rem 0.9rem;
  border-radius: 1.4rem;
  background: var(--canvas);
  font-weight: 700;
}
.mini-sites em { margin-inline-start: auto; color: var(--ink-soft); font-style: normal; font-weight: 600; }
.mini-sites .dot { width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--coral); }
.mini-sites li:nth-child(2) .dot { background: var(--sunshine); }
.mini-sites li:nth-child(3) .dot { background: var(--lagoon); }

.supply-top { display: flex; justify-content: space-between; font-weight: 800; }
.supply-top span { color: var(--ink-soft); font-weight: 700; }
.supply-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.35rem; margin-block: 0.6rem 0.55rem; }
.supply-bar i { height: 0.8rem; border-radius: 999px; background: var(--coral); transform-origin: left center; }
.supply-bar i:last-child { background: var(--tint); }
.supply-note { color: var(--ink-soft); font-size: 0.875rem; font-weight: 600; }

.mini-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.mini-tags li {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px var(--line-strong);
  font-weight: 700;
}
.mini-tags .on { background: var(--sunshine); box-shadow: none; color: var(--plum); }

.mini-ring { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.mini-ring p { flex: 1 1 8rem; min-width: 0; }
.mini-ring svg { width: 6rem; height: 6rem; flex: none; rotate: -90deg; }
.mini-ring circle { fill: none; stroke-width: 13; }
.ring-track { stroke: var(--tint); }
.ring-fill { stroke: var(--sunshine); stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.mini-ring b { display: block; color: var(--ink); font-size: 1.5rem; font-weight: 900; line-height: 1.1; }
.mini-ring span { color: var(--ink-soft); font-weight: 600; }

.section-lede { margin-top: 1rem; }

/* What Weekwell doesn't do */
.limits-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.limits { border-top: 2px solid var(--line); }
.limits li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-block: 1rem;
  border-bottom: 2px solid var(--line);
  font-size: 1.125rem;
  font-weight: 800;
}
.limits li::before {
  content: "";
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--ink-soft);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M8 12h8' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M8 12h8' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (min-width: 60rem) {
  .limits-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: center; }
}

/* Privacy band */
.privacy-section {
  --focus: var(--band-accent);
  margin-inline: 0.5rem;
  border-radius: 2rem;
  background: var(--band);
  color: var(--band-ink);
}
.privacy-section .lede { margin-top: 1rem; color: var(--band-soft); }
.privacy-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
.privacy-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; margin-top: 2.25rem; }
.privacy-list li { display: flex; gap: 1rem; }
.privacy-list svg {
  width: 3rem;
  height: 3rem;
  flex: none;
  padding: 0.7rem;
  border-radius: 1rem;
  background: rgb(255 246 234 / 0.1);
  fill: none;
  stroke: var(--band-accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.privacy-list h3 { font-size: 1.125rem; margin-bottom: 0.2rem; }
.privacy-list p { color: var(--band-soft); }
.privacy-otter { justify-self: center; width: auto; height: 12rem; }

@media (min-width: 48rem) {
  .privacy-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
}
@media (min-width: 60rem) {
  .privacy-section { margin-inline: 1rem; border-radius: 2.5rem; }
  .privacy-grid { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 3rem; }
  .privacy-otter { height: 19rem; margin-bottom: -1rem; }
}

/* FAQ */
.faq { margin-top: 2rem; border-top: 2px solid var(--line); }
.faq details { border-bottom: 2px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  padding-block: 1rem;
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 1rem;
  height: 1rem;
  margin-inline-end: 0.25rem;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: rotate 200ms var(--ease-out);
}
.faq details[open] summary::after { rotate: 180deg; }
.faq details p { max-width: 62ch; padding-bottom: 1.25rem; color: var(--ink-soft); }

/* Closing band */
.closing-section {
  --focus: var(--plum);
  --ink: var(--plum);
  --ink-soft: var(--plum);
  --accent: var(--plum);
  --line-strong: rgb(58 35 64 / 0.4);
  margin-inline: 0.5rem;
  margin-bottom: 0.5rem;
  border-radius: 2rem;
  background: var(--sunshine);
  color: var(--plum);
}
.closing-section h2 { font-size: clamp(2.5rem, 1.4rem + 5vw, 4.75rem); line-height: 1; letter-spacing: -0.03em; }
.closing-section .lede { margin-block: 1rem 1.75rem; }
.closing-section .stores { margin-bottom: 0.5rem; }
.closing-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.closing-otter { justify-self: center; width: auto; height: 12rem; }
@media (min-width: 60rem) {
  .closing-section { margin-inline: 1rem; margin-bottom: 1rem; border-radius: 2.5rem; }
  .closing-grid { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3rem; }
  .closing-otter { height: 20rem; }
}

/* Footer */
.site-footer { padding-block: 3rem 2.5rem; }
.boundary { max-width: 34em; font-size: 1.125rem; font-weight: 800; line-height: 1.4; }
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-block: 2rem 1.5rem;
}
.brand-footer .brand-mark { width: 2.25rem; height: 2.25rem; }
.brand-footer .brand-name { font-size: 1.25rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.footer-links a { display: inline-block; padding-block: 0.6rem; color: var(--ink); font-weight: 700; }
.footer-links a:hover { color: var(--accent); }
.fineprint { margin-top: 0.5rem; color: var(--ink-soft); font-size: 0.875rem; }

/* ---------- Motion (only when the visitor hasn't asked for less) ----------
   Every animation runs once and ends within 5 seconds, so nothing needs a pause control (WCAG 2.2.2).
   The static end state above is what reduced-motion visitors see. */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* Hero: the sun rises, its rays pop, the wave draws, then the phone logs a dose. */
  .scene-sun { animation: sun-rise 1100ms var(--ease-out) 100ms both; }
  .scene-rays line {
    transform-origin: 50px 55px;
    animation: ray-pop 520ms var(--ease-spring) both;
  }
  .scene-rays line:nth-child(1) { animation-delay: 760ms; }
  .scene-rays line:nth-child(2), .scene-rays line:nth-child(3) { animation-delay: 840ms; }
  .scene-rays line:nth-child(4), .scene-rays line:nth-child(5) { animation-delay: 920ms; }
  .scene-wave { stroke-dasharray: 1 1; animation: draw 1200ms var(--ease-out) 300ms both; }
  .phone { animation: rise 900ms var(--ease-out) both; }
  .hero-otter {
    transform-origin: 50% 90%;
    animation: otter-in 700ms var(--ease-spring) 650ms both, otter-wave 900ms ease-in-out 1500ms 1;
  }

  .ph-log { animation: press 260ms ease-in-out 2300ms both, log-done 240ms ease-out 2480ms both; }
  .ph-log-label { animation: fade-out 160ms ease-out 2480ms both; }
  .ph-done-label { animation: fade-in 200ms ease-out 2560ms both; }
  .ph-planned { animation: fade-out 160ms ease-out 2480ms both; }
  .ph-logged { animation: fade-in 200ms ease-out 2560ms both; }
  .ph-toast { animation: toast-in 520ms var(--ease-spring) 2750ms both; }

  @keyframes sun-rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes ray-pop { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  @keyframes rise { from { transform: translateY(28px); } to { transform: none; } }
  @keyframes otter-in { from { transform: translateY(24px) scale(0.9); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes otter-wave {
    25% { rotate: -4deg; }
    50% { rotate: 3deg; }
    75% { rotate: -2deg; }
  }
  @keyframes press { 0%, 100% { transform: none; } 50% { transform: scale(0.94); } }
  @keyframes log-done { from { background: var(--coral); } to { background: var(--lagoon); } }
  @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
  @keyframes fade-out { from { opacity: 1; } to { opacity: 0; } }
  @keyframes toast-in { from { transform: translateY(140%); opacity: 0; } to { transform: none; opacity: 1; } }

  /* How it works: the wave draws and the numbers pop as the section scrolls into view. */
  @supports (animation-timeline: view()) {
    .steps-wave path {
      stroke-dasharray: 1 1;
      animation: draw linear both;
      animation-timeline: view();
      animation-range: entry 30% cover 45%;
    }
    .step-num {
      animation: ray-pop linear both;
      animation-timeline: view();
      animation-range: entry 20% entry 80%;
    }
  }

  /* Features: each card's illustration plays once when it comes into view (main.js adds .motion and .is-in). */
  .motion [data-animate] .notify { transition: transform 600ms var(--ease-spring), opacity 400ms ease-out; }
  .motion [data-animate] .notify-actions { transition: opacity 400ms ease-out 350ms; }
  .motion [data-animate]:not(.is-in) .notify { transform: translateY(-1.25rem); opacity: 0; }
  .motion [data-animate]:not(.is-in) .notify-actions { opacity: 0; }

  .motion [data-animate] .mini-sites li { transition: transform 500ms var(--ease-out), opacity 400ms ease-out; }
  .motion [data-animate] .mini-sites li:nth-child(2) { transition-delay: 120ms; }
  .motion [data-animate] .mini-sites li:nth-child(3) { transition-delay: 240ms; }
  .motion [data-animate]:not(.is-in) .mini-sites li { transform: translateX(-1rem); opacity: 0; }

  .motion [data-animate] .supply-bar i { transition: transform 500ms var(--ease-out); }
  .motion [data-animate] .supply-bar i:nth-child(2) { transition-delay: 100ms; }
  .motion [data-animate] .supply-bar i:nth-child(3) { transition-delay: 200ms; }
  .motion [data-animate] .supply-bar i:nth-child(4) { transition-delay: 300ms; }
  .motion [data-animate]:not(.is-in) .supply-bar i { transform: scaleX(0); }

  .motion [data-animate] .mini-tags .on { transition: transform 450ms var(--ease-spring), background-color 300ms ease-out; }
  .motion [data-animate] .mini-tags .on:nth-child(3) { transition-delay: 150ms; }
  .motion [data-animate]:not(.is-in) .mini-tags .on { transform: scale(0.85); background-color: transparent; color: inherit; }

  .motion [data-animate] .ring-fill { transition: stroke-dashoffset 1100ms var(--ease-out) 150ms; }
  .motion [data-animate]:not(.is-in) .ring-fill { stroke-dashoffset: 1; }

  /* FAQ answers slide open where the browser supports animating <details>. */
  @supports selector(::details-content) {
    :root { interpolate-size: allow-keywords; }
    .faq details::details-content {
      height: 0;
      overflow: clip;
      transition: height 260ms var(--ease-out), content-visibility 260ms allow-discrete;
    }
    .faq details[open]::details-content { height: auto; }
  }
}

/* Windows high-contrast and other forced-colour modes: keep edges visible. */
@media (forced-colors: active) {
  .button, .store, .feature, .ph-card { border: 2px solid CanvasText; }
  .store-icon, .privacy-list svg { stroke: CanvasText; }
}

/* ---------- Text pages (privacy, terms, accessibility, 404) ---------- */

.doc { padding-block: 2rem 4.5rem; }
.doc h1 { font-size: clamp(2.25rem, 1.6rem + 2.8vw, 3.25rem); margin-bottom: 1rem; }
.doc h2 { margin-top: 2.5rem; font-size: 1.5rem; line-height: 1.25; letter-spacing: -0.015em; }
.doc p, .doc li { max-width: 44rem; }
.doc p + p, .doc h2 + p, .doc p + ul, .doc h2 + ul, .doc ul + p { margin-top: 0.85rem; }
.doc ul { padding-inline-start: 1.25rem; list-style: disc; }
.doc ol { padding-inline-start: 1.5rem; list-style: decimal; }
.doc h2 + ol, .doc p + ol, .doc ol + p { margin-top: 0.85rem; }
.doc li + li { margin-top: 0.4rem; }
.doc .updated { color: var(--ink-soft); font-weight: 700; }
.doc .back { display: inline-block; margin-top: 2.5rem; font-weight: 800; }
mark.todo { padding: 0 0.25em; border-radius: 0.25em; background: var(--sunshine); color: var(--plum); }
