/*
 * DogHealth — website styles.
 *
 * Tokens mirror the app's design system (app/lib/theme/theme.dart, 2026-11-21 revision):
 * warm paper, ink, brand red for the mark, the darker action red for buttons, and one tint per
 * event type. Fonts are the same Nunito / Nunito Sans the app bundles, self-hosted (no request to
 * third parties, so no cookie/consent banner is needed).
 */

/* ---------- Fonts ---------- */
@font-face { font-family: "Nunito"; src: url("../fonts/Nunito-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/Nunito-800.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("../fonts/NunitoSans-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("../fonts/NunitoSans-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("../fonts/NunitoSans-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --paper: #FBF8F4;
  --paper-deep: #F4EFE9;
  --surface: #FFFFFF;
  --hairline: #EDE6DE;
  --field: #DDD3C8;
  --ink: #241F1C;
  --ink-soft: #625952;
  --ink-muted: #756A62;
  --ink-faint: #B7ADA4;
  --brand: #E8463C;
  --brand-deep: #C0322C;
  --primary: #C0322C;
  --on-primary: #FFFFFF;
  --primary-hover: #A72A25;
  --brand-tint: #FDECEA;
  --brand-tint-ink: #8E2420;
  --night: #241F1C;          /* dark band background */
  --night-ink: #F6F1EA;
  --night-soft: #C9BFB5;

  --vaccine-bg: #E5EEF6;       --vaccine-fg: #2F6690;
  --antiparasitic-bg: #DFF0EE; --antiparasitic-fg: #1F6B64;
  --visit-bg: #F1EBF7;         --visit-fg: #6A4B93;
  --medication-bg: #F7E8F0;    --medication-fg: #933B6C;
  --success-bg: #EAF3E1;       --success-fg: #3F6F2A;
  --warning-bg: #FBEEDA;       --warning-fg: #8F4E06;
  --danger-bg: #FCE8E6;        --danger-fg: #B3261E;

  --photo-a: #E7C892;
  --photo-b: #A97C46;

  --shadow-sm: 0 1px 2px rgba(36, 31, 28, .06), 0 1px 1px rgba(36, 31, 28, .04);
  --shadow-md: 0 10px 30px -12px rgba(36, 31, 28, .18), 0 2px 6px rgba(36, 31, 28, .05);
  --shadow-lg: 0 40px 80px -30px rgba(36, 31, 28, .35), 0 12px 30px -12px rgba(36, 31, 28, .18);

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --container: 1160px;
  --gutter: 20px;

  --font-display: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #171512;
    --paper-deep: #1D1A16;
    --surface: #221E1A;
    --hairline: #332D26;
    --field: #3C352C;
    --ink: #F6F1EA;
    --ink-soft: #B9AFA5;
    --ink-muted: #A39990;
    --ink-faint: #6E655C;
    --brand: #FF7B6B;
    --brand-deep: #E8463C;
    --primary: #FF7B6B;
    --on-primary: #2A0F0C;
    --primary-hover: #FF9284;
    --brand-tint: #3A2320;
    --brand-tint-ink: #FF8E80;
    --night: #0F0D0B;
    --night-ink: #F6F1EA;
    --night-soft: #B9AFA5;
    --vaccine-bg: #1E2B33;       --vaccine-fg: #8CB8D1;
    --antiparasitic-bg: #18302D; --antiparasitic-fg: #7CC7BE;
    --visit-bg: #2A2333;         --visit-fg: #B79CDA;
    --medication-bg: #35202C;    --medication-fg: #E39BC4;
    --success-bg: #24301C;       --success-fg: #9FC77A;
    --warning-bg: #3A2C16;       --warning-fg: #E0B057;
    --danger-bg: #3D211F;        --danger-fg: #F59A90;
    --photo-a: #6E5837;
    --photo-b: #453422;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 10px 30px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 12px 30px -12px rgba(0, 0, 0, .5);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #171512; --paper-deep: #1D1A16; --surface: #221E1A; --hairline: #332D26; --field: #3C352C;
  --ink: #F6F1EA; --ink-soft: #B9AFA5; --ink-muted: #A39990; --ink-faint: #6E655C;
  --brand: #FF7B6B; --brand-deep: #E8463C; --primary: #FF7B6B; --on-primary: #2A0F0C; --primary-hover: #FF9284;
  --brand-tint: #3A2320; --brand-tint-ink: #FF8E80; --night: #0F0D0B; --night-ink: #F6F1EA; --night-soft: #B9AFA5;
  --vaccine-bg: #1E2B33; --vaccine-fg: #8CB8D1; --antiparasitic-bg: #18302D; --antiparasitic-fg: #7CC7BE;
  --visit-bg: #2A2333; --visit-fg: #B79CDA; --medication-bg: #35202C; --medication-fg: #E39BC4;
  --success-bg: #24301C; --success-fg: #9FC77A; --warning-bg: #3A2C16; --warning-fg: #E0B057;
  --danger-bg: #3D211F; --danger-fg: #F59A90; --photo-a: #6E5837; --photo-b: #453422;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; 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: 16px; top: -60px; z-index: 100; background: var(--surface); color: var(--ink); padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow-md); }
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--deep { background: var(--paper-deep); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 800; font-size: 13px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--brand-deep);
}
:root[data-theme="dark"] .eyebrow { color: var(--brand); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .eyebrow { color: var(--brand); } }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }

.section-head { max-width: 680px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3rem); margin-top: 14px; }
.section-head p { margin-top: 16px; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 16px;
  font-family: var(--font-display); font-weight: 800; font-size: 16px; letter-spacing: .005em;
  text-decoration: none; cursor: pointer; border: 0;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 8px 20px -8px rgba(192, 50, 44, .55); }
.btn--primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.btn--ghost { color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1.5px var(--field); }
.btn--ghost:hover { color: var(--ink); background: var(--surface); }
.btn--sm { min-height: 42px; padding: 0 18px; border-radius: 12px; font-size: 15px; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Store button: neutral and high-contrast in both themes. */
.store-btn {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 60px; padding: 10px 24px 10px 18px; border-radius: 16px;
  background: #15120F; color: #fff; text-decoration: none;
  box-shadow: 0 14px 30px -14px rgba(21, 18, 15, .7);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.store-btn:hover { color: #fff; background: #000; transform: translateY(-1px); box-shadow: 0 18px 36px -14px rgba(21, 18, 15, .8); }
.store-btn svg { width: 30px; height: 30px; flex: none; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.15; }
.store-btn small { font-size: 12px; font-weight: 600; opacity: .78; letter-spacing: .02em; }
.store-btn strong { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -.005em; }
:root[data-theme="dark"] .store-btn { background: #F6F1EA; color: #15120F; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .store-btn { background: #F6F1EA; color: #15120F; } :root:not([data-theme="light"]) .store-btn:hover { background: #fff; color: #15120F; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--hairline); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 4px 12px -4px rgba(192, 50, 44, .5); }
.brand span { font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -.02em; }
.nav { display: none; align-items: center; gap: 4px; }
.nav a { padding: 8px 14px; border-radius: 10px; color: var(--ink-soft); font-weight: 600; font-size: 15px; text-decoration: none; }
.nav a:hover { color: var(--ink); background: var(--paper-deep); }
@media (min-width: 1040px) { .nav { display: flex; } }

/* Language menu: <details> works without JS; main.js only closes it on outside click / Esc. */
.header-actions { display: flex; align-items: center; gap: 8px; }
.lang { position: relative; }
.lang summary {
  display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 12px;
  border-radius: 12px; color: var(--ink-soft); font-weight: 700; font-size: 14px; letter-spacing: .04em;
  cursor: pointer; list-style: none; user-select: none;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: var(--ink); background: var(--paper-deep); }
.lang summary svg { width: 18px; height: 18px; }
.lang ul {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 180px;
  margin: 0; padding: 6px; list-style: none; background: var(--surface);
  border: 1px solid var(--hairline); border-radius: var(--r-sm); box-shadow: var(--shadow-md);
}
.lang ul a {
  display: flex; align-items: center; justify-content: space-between; padding: 10px 12px;
  border-radius: 8px; color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none;
}
.lang ul a:hover { background: var(--paper-deep); }
.lang ul a[aria-current]::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.lang summary svg { flex-shrink: 0; }
@media (max-width: 520px) {
  .site-header .container { gap: 8px; }
  .brand span { font-size: 19px; }
  .header-actions { gap: 2px; }
  .lang summary { padding: 0 8px; }
  .site-header .btn--sm { padding: 0 14px; }
  .site-header .btn--sm svg { display: none; }
}
@media (max-width: 359px) { .lang summary span { display: none; } }

/* "Also available in <your language>" bar, inserted by main.js above the header. */
.lang-banner { background: var(--night); color: var(--night-ink); font-size: 14.5px; }
.lang-banner .container { display: flex; align-items: center; justify-content: center; gap: 8px 14px; flex-wrap: wrap; min-height: 48px; padding-top: 8px; padding-bottom: 8px; }
.lang-banner a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.lang-banner button {
  display: inline-grid; place-items: center; width: 32px; height: 32px; margin-left: 4px; padding: 0;
  border: 0; border-radius: 8px; background: transparent; color: var(--night-soft); cursor: pointer;
}
.lang-banner button:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.lang-banner button svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(32px, 6vw, 72px) 0 clamp(64px, 9vw, 112px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%);
  pointer-events: none; z-index: -1;
}
.hero .container { display: grid; gap: clamp(48px, 6vw, 72px); align-items: center; }
@media (min-width: 960px) { .hero .container { grid-template-columns: 1.08fr .92fr; } }
.hero h1 { font-size: clamp(2.4rem, 1.5rem + 3.2vw, 3.9rem); margin-top: 18px; letter-spacing: -.03em; }
.hero h1 em { font-style: normal; color: var(--brand-deep); }
:root[data-theme="dark"] .hero h1 em { color: var(--brand); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero h1 em { color: var(--brand); } }
.hero-lead { margin-top: 22px; font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem); color: var(--ink-soft); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--ink-soft); font-size: 15px; font-weight: 600; }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 18px; height: 18px; color: var(--success-fg); flex: none; }

.hero-visual { position: relative; max-width: 560px; margin: 0 auto; width: 100%; padding: 0 0 40px 0; }
.hero-photo { position: relative; aspect-ratio: 4 / 5; width: 82%; margin-left: auto; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-visual .phone { position: absolute; left: 0; bottom: 0; width: 44%; z-index: 2; }
.hero-photo .slot-ph { padding-left: 44%; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 18px;
  padding: 12px 16px 12px 12px; box-shadow: var(--shadow-md); max-width: 290px; z-index: 3;
}
.float-card .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.float-card .ic svg { width: 22px; height: 22px; }
.float-card strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 14.5px; line-height: 1.25; }
.float-card small { display: block; color: var(--ink-muted); font-size: 13px; line-height: 1.3; margin-top: 2px; }
.float-card--notif { top: 7%; right: -2%; }
.float-card--done { bottom: 14%; right: 4%; }
@media (max-width: 520px) {
  .float-card { max-width: 230px; padding: 10px 12px 10px 10px; }
  .float-card--notif { right: 0; top: 4%; }
  .float-card--done { display: none; }
}

/* ---------- Phone frame & screenshots ---------- */
.phone {
  position: relative; aspect-ratio: 1 / 2; border-radius: 15% / 7.6%; /* the screenshots are 1080×2160 */
  background: #14110F; padding: 3.2%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06) inset, var(--shadow-lg);
}
.phone::after { /* camera punch-hole */
  content: ""; position: absolute; top: 2.9%; left: 50%; width: 5.5%; aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%; background: #050404; box-shadow: 0 0 0 1.5px #24201C; z-index: 3;
}
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 12.5% / 6.4%; overflow: hidden; background: var(--paper); }

/* A slot for a real image (screenshot or photo). If the file is missing, main.js marks the image
   and the designed placeholder underneath shows, labelled with the file to provide. */
.slot { position: relative; overflow: hidden; isolation: isolate; }
.slot picture { display: contents; }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.slot img.is-missing { display: none; }
.slot-ph {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 12%; text-align: center; color: var(--ink-muted);
  background:
    radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 60%),
    repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--ink) 3%, transparent) 14px 15px),
    var(--paper-deep);
}
.slot-ph svg { width: 34px; height: 34px; opacity: .55; }
.slot-ph b { font-family: var(--font-display); font-weight: 800; font-size: 14px; color: var(--ink-soft); line-height: 1.25; }
.slot-ph code { font-size: 11px; background: var(--surface); border: 1px dashed var(--field); padding: 3px 7px; border-radius: 6px; color: var(--ink-muted); overflow-wrap: anywhere; max-width: 100%; }
.slot--photo .slot-ph { color: rgba(255, 255, 255, .9); background: linear-gradient(135deg, var(--photo-a), var(--photo-b)); }
.slot--photo .slot-ph b { color: #fff; font-size: 16px; }
.slot--photo .slot-ph svg { width: 64px; height: 64px; opacity: .45; }
.slot--photo .slot-ph code { background: rgba(0, 0, 0, .18); border-color: rgba(255, 255, 255, .35); color: #fff; }

/* Hero mock of the home screen (shown until screens/home.png exists). */
.mock { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; background: var(--paper); font-size: 10px; color: var(--ink); container-type: inline-size; }
.mock-status { height: 9cqw; flex: none; }
.mock-bar { display: flex; align-items: center; justify-content: space-between; padding: 2cqw 6cqw 3cqw; }
.mock-bar b { font-family: var(--font-display); font-weight: 800; font-size: 7.6cqw; letter-spacing: -.02em; }
.mock-plus { width: 8cqw; height: 8cqw; border-radius: 50%; display: grid; place-items: center; color: var(--primary); font-weight: 800; font-size: 7cqw; line-height: 1; }
.mock-body { flex: 1; padding: 0 5cqw; display: flex; flex-direction: column; gap: 3.2cqw; overflow: hidden; }
.mock-summary { border-radius: 4.5cqw; padding: 3.6cqw 4cqw; background: var(--warning-bg); color: var(--warning-fg); font-weight: 700; font-size: 3.7cqw; display: flex; gap: 2.4cqw; align-items: center; }
.mock-summary i { width: 2.4cqw; height: 2.4cqw; border-radius: 50%; background: currentColor; flex: none; }
.mock-pet { background: var(--surface); border: 1px solid var(--hairline); border-radius: 5cqw; padding: 3.6cqw; display: flex; gap: 3.4cqw; align-items: center; }
.mock-avatar { width: 13cqw; height: 13cqw; border-radius: 50%; flex: none; background: linear-gradient(135deg, var(--photo-a), var(--photo-b)); position: relative; overflow: hidden; }
.mock-avatar--b { background: linear-gradient(135deg, #CDB49A, #7D6450); }
.mock-pet div { min-width: 0; flex: 1; }
.mock-pet b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 4.6cqw; }
.mock-pet small { display: block; font-size: 3.2cqw; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-pill { display: inline-block; margin-top: 1.4cqw; font-size: 2.9cqw; font-weight: 700; padding: .8cqw 2.4cqw; border-radius: 99px; }
.pill-ok { background: var(--success-bg); color: var(--success-fg); }
.pill-soon { background: var(--warning-bg); color: var(--warning-fg); }
.mock-label { margin-top: 1.5cqw; font-family: var(--font-display); font-weight: 800; font-size: 3.2cqw; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.mock-list { background: var(--surface); border: 1px solid var(--hairline); border-radius: 5cqw; overflow: hidden; }
.mock-row { display: flex; align-items: center; gap: 3cqw; padding: 3cqw 3.6cqw; border-top: 1px solid var(--hairline); }
.mock-row:first-child { border-top: 0; }
.mock-row .t { width: 8.6cqw; height: 8.6cqw; border-radius: 2.6cqw; flex: none; display: grid; place-items: center; }
.mock-row .t svg { width: 5cqw; height: 5cqw; }
.mock-row div { flex: 1; min-width: 0; }
.mock-row b { display: block; font-size: 3.6cqw; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-row small { display: block; font-size: 3cqw; color: var(--ink-muted); }
.mock-row em { font-style: normal; font-size: 2.9cqw; font-weight: 700; padding: .8cqw 2.2cqw; border-radius: 99px; white-space: nowrap; }
.mock-nav { flex: none; display: flex; justify-content: space-around; padding: 3cqw 4cqw 5cqw; background: var(--surface); border-top: 1px solid var(--hairline); }
.mock-nav span { display: flex; flex-direction: column; align-items: center; gap: 1cqw; font-size: 2.9cqw; font-weight: 700; color: var(--ink-muted); }
.mock-nav span i { width: 12cqw; height: 6.4cqw; border-radius: 99px; display: grid; place-items: center; }
.mock-nav span i::before { content: ""; width: 4cqw; height: 4cqw; border-radius: 1.2cqw; background: currentColor; opacity: .8; }
.mock-nav span.on { color: var(--ink); }
.mock-nav span.on i { background: var(--brand-tint); color: var(--brand-tint-ink); }

/* Event-type tints (shared by the mock and the cards). */
.tone-vaccine { background: var(--vaccine-bg); color: var(--vaccine-fg); }
.tone-antiparasitic { background: var(--antiparasitic-bg); color: var(--antiparasitic-fg); }
.tone-visit { background: var(--visit-bg); color: var(--visit-fg); }
.tone-medication { background: var(--medication-bg); color: var(--medication-fg); }
.tone-success { background: var(--success-bg); color: var(--success-fg); }
.tone-brand { background: var(--brand-tint); color: var(--brand-tint-ink); }

/* ---------- Trust strip ---------- */
.trust { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); background: var(--surface); }
.trust ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; }
.trust li { display: flex; gap: 14px; align-items: flex-start; padding: 26px 4px; border-top: 1px solid var(--hairline); }
.trust li:first-child { border-top: 0; }
.trust .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--paper-deep); color: var(--ink); }
.trust .ic svg { width: 22px; height: 22px; }
.trust b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 16.5px; }
.trust p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.5; margin-top: 2px; }
@media (min-width: 640px) {
  .trust ul { grid-template-columns: 1fr 1fr; }
  .trust li { padding: 28px 20px; border-top: 0; }
  .trust li:nth-child(n+3) { border-top: 1px solid var(--hairline); }
  .trust li:nth-child(2n) { border-left: 1px solid var(--hairline); }
}
@media (min-width: 1040px) {
  .trust ul { grid-template-columns: repeat(4, 1fr); }
  .trust li:nth-child(n+3) { border-top: 0; }
  .trust li + li { border-left: 1px solid var(--hairline); }
  .trust li:first-child { padding-left: 0; }
}

/* ---------- Event types ---------- */
.types { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .types { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .types { grid-template-columns: repeat(4, 1fr); } }
.type-card {
  position: relative; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md);
  padding: 26px 24px 28px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.type-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.type-card .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; }
.type-card .ic svg { width: 26px; height: 26px; }
.type-card h3 { font-size: 20px; margin-top: 20px; }
.type-card p { margin-top: 8px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.55; }

.split-photo { display: grid; gap: 32px; align-items: center; margin-top: clamp(48px, 6vw, 72px); }
@media (min-width: 900px) { .split-photo { grid-template-columns: 1.15fr .85fr; gap: 56px; } }
.split-photo .photo { aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.split-photo blockquote { margin: 0; }
.split-photo blockquote p { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 1.1rem + 1.1vw, 2rem); line-height: 1.25; letter-spacing: -.015em; }
.split-photo blockquote footer { margin-top: 16px; color: var(--ink-soft); font-size: 16px; }

/* ---------- Feature rows ---------- */
.features { display: flex; flex-direction: column; gap: clamp(80px, 11vw, 140px); }
.feature { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 80px; }
  .feature--flip .feature-media { order: 2; }
}
.feature-media { position: relative; display: flex; justify-content: center; padding: 40px 0; }
.feature-media::before {
  content: ""; position: absolute; inset: 0 6%; border-radius: 40px;
  background: var(--tint, var(--paper-deep));
}
.feature-media .phone { width: min(290px, 70%); position: relative; }
.feature-copy h3 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem); margin-top: 14px; }
.feature-copy > p { margin-top: 16px; color: var(--ink-soft); font-size: 1.1rem; }
.checks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--success-fg); }
.checks b { font-weight: 700; }
.checks span { color: var(--ink-soft); }
.feature--vaccine { --tint: var(--vaccine-bg); }
.feature--success { --tint: var(--success-bg); }
.feature--visit { --tint: var(--visit-bg); }
.feature--brand { --tint: var(--brand-tint); }

/* ---------- Gallery ---------- */
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(240px, 62vw); gap: 24px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 12px var(--gutter) 36px; margin: 0 calc(var(--gutter) * -1);
  scrollbar-width: thin; scrollbar-color: var(--field) transparent;
}
@media (min-width: 1240px) { .gallery { grid-auto-columns: 1fr; grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); overflow: visible; margin: 0; padding: 12px 0 0; } }
.gallery figure { margin: 0; scroll-snap-align: center; }
.gallery figcaption { margin-top: 18px; text-align: center; font-weight: 700; font-size: 15px; color: var(--ink-soft); }
.gallery-hint { text-align: center; color: var(--ink-muted); font-size: 14px; }
@media (min-width: 1240px) { .gallery-hint { display: none; } }

/* ---------- Privacy band ---------- */
.band { background: var(--night); color: var(--night-ink); position: relative; overflow: hidden; }
.band h2, .band h3 { color: var(--night-ink); }
.band .eyebrow { color: #FF8E80; }
.band .section-head p { color: var(--night-soft); }
.band-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .band-grid { grid-template-columns: .9fr 1.1fr; gap: 72px; } }
.band .photo { aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); max-width: 460px; }
.band .section-head { margin-bottom: 36px; }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 640px) { .pillars { grid-template-columns: 1fr 1fr; } }
.pillars li { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); border-radius: var(--r-md); padding: 22px 22px 24px; }
.pillars .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 123, 107, .16); color: #FF9A8D; }
.pillars .ic svg { width: 21px; height: 21px; }
.pillars h3 { font-size: 17px; margin-top: 14px; }
.pillars p { color: var(--night-soft); font-size: 15px; margin-top: 6px; line-height: 1.55; }
.band-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 30px; color: #FF9A8D; font-weight: 700; text-decoration: none; }
.band-link:hover { color: #FFB4AA; }
.band-link svg { width: 18px; height: 18px; }

/* ---------- Upgrade (existing users) ---------- */
.upgrade { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: clamp(28px, 5vw, 56px); box-shadow: var(--shadow-sm); display: grid; gap: 40px; }
@media (min-width: 960px) { .upgrade { grid-template-columns: .9fr 1.1fr; align-items: center; gap: 64px; } }
.upgrade h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); margin-top: 14px; }
.upgrade-copy > p { color: var(--ink-soft); margin-top: 14px; font-size: 1.08rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 18px 0; border-top: 1px solid var(--hairline); }
.steps li:first-child { border-top: 0; padding-top: 0; }
.steps li::before {
  content: counter(step); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 19px; background: var(--brand-tint); color: var(--brand-tint-ink);
}
.steps h3 { font-size: 18px; margin-top: 2px; }
.steps p { color: var(--ink-soft); font-size: 15.5px; margin-top: 4px; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; gap: 40px; }
@media (min-width: 960px) { .faq-wrap { grid-template-columns: .8fr 1.2fr; gap: 72px; } .faq-wrap .section-head { position: sticky; top: 110px; align-self: start; } }
.faq { border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 2px; font-family: var(--font-display); font-weight: 800; font-size: 18px; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 30px; height: 30px; flex: none; border-radius: 50%;
  background: var(--paper-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23756A62' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 48px 24px 2px; color: var(--ink-soft); }
.faq details p + p { margin-top: -10px; }

.notice { display: flex; gap: 14px; margin-top: 28px; padding: 18px 20px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--hairline); font-size: 15px; color: var(--ink-soft); }
.notice svg { width: 22px; height: 22px; flex: none; color: var(--ink-muted); margin-top: 1px; }
.notice b { color: var(--ink); }

/* ---------- Final CTA ---------- */
.cta { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 460px; display: flex; align-items: flex-end; box-shadow: var(--shadow-lg); isolation: isolate; }
.cta .slot { position: absolute; inset: 0; z-index: -2; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 16, 13, 0) 20%, rgba(20, 16, 13, .55) 55%, rgba(20, 16, 13, .88) 100%); }
@media (min-width: 900px) { .cta { align-items: center; min-height: 520px; } .cta::after { background: linear-gradient(90deg, rgba(20, 16, 13, .88) 0%, rgba(20, 16, 13, .6) 42%, rgba(20, 16, 13, 0) 75%); } }
.cta .slot-ph { justify-content: flex-start; padding-top: 10%; }
@media (min-width: 900px) { .cta .slot-ph { justify-content: center; padding: 0 6% 0 56%; } }
.cta-copy { padding: clamp(28px, 6vw, 64px); max-width: 560px; color: #fff; }
.cta-copy h2 { color: #fff; font-size: clamp(2rem, 1.3rem + 2.8vw, 3.2rem); }
.cta-copy p { margin-top: 14px; color: rgba(255, 255, 255, .85); font-size: 1.1rem; }
.cta-copy .store-btn { margin-top: 28px; background: #fff; color: #15120F; }
.cta-copy .store-btn:hover { background: #F6F1EA; color: #15120F; }

/* ---------- Footer ---------- */
.site-footer { padding: 64px 0 40px; border-top: 1px solid var(--hairline); }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.site-footer p { color: var(--ink-soft); font-size: 15px; margin-top: 14px; max-width: 360px; }
.site-footer h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.site-footer ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.site-footer ul a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.site-footer ul a:hover { color: var(--primary); }
.site-footer ul a[aria-current] { color: var(--primary); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--hairline); color: var(--ink-muted); font-size: 13.5px; }

/* ---------- Legal pages ---------- */
.legal { padding: clamp(40px, 6vw, 72px) 0 0; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.2rem); margin-top: 14px; }
.legal .updated { margin-top: 12px; color: var(--ink-muted); font-size: 15px; }
.legal .translation-note { margin-top: 8px; color: var(--ink-muted); font-size: 14px; font-style: italic; }
.legal .summary { margin-top: 32px; padding: 24px 26px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--hairline); box-shadow: var(--shadow-sm); }
.legal .summary h2 { font-size: 18px; margin: 0; }
.legal .summary ul { margin: 12px 0 0; padding-left: 20px; color: var(--ink-soft); }
.legal .summary li { margin-top: 6px; }
.legal .toc { margin-top: 28px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.legal .toc a { display: inline-block; padding: 6px 12px; border-radius: 99px; background: var(--paper-deep); color: var(--ink-soft); font-size: 14px; font-weight: 600; text-decoration: none; }
.legal .toc a:hover { color: var(--ink); }
.prose { margin-top: 40px; }
.prose h2 { font-size: 1.45rem; margin: 48px 0 0; padding-top: 8px; }
.prose h3 { font-size: 1.12rem; margin: 28px 0 0; }
.prose p, .prose ul, .prose ol { margin: 14px 0 0; color: var(--ink-soft); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-top: 6px; }
.prose strong { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--hairline); color: var(--ink-soft); }
.prose th { color: var(--ink); font-family: var(--font-display); font-weight: 800; }
.table-scroll { overflow-x: auto; }
.prose code { font-size: .9em; background: var(--paper-deep); padding: 2px 6px; border-radius: 6px; }
/* Data the owner still has to fill in: deliberately loud so nothing ships unfilled. */
mark.todo { background: #FFE58A; color: #3B2F00; padding: 0 4px; border-radius: 4px; font-weight: 700; }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.notfound .big { font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 3rem + 10vw, 9rem); line-height: 1; color: var(--brand); letter-spacing: -.04em; }
.notfound h1 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem); margin-top: 10px; }
.notfound p { color: var(--ink-soft); margin-top: 12px; }
.notfound .btn { margin-top: 28px; }
.notfound-langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin: 32px 0 0; padding: 0; list-style: none; font-size: 14.5px; }
.notfound-langs a { color: var(--ink-muted); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .type-card, .store-btn, .btn { transition: none; }
}

.legal + .site-footer { margin-top: 96px; }
