/*
 * pativo.app — "cut paper, refined".
 *
 * The palette and roles are the app's own (src/design-system/tokens/colors.ts):
 * a hue has one job. Apricot is paint, never text; its readable form is
 * --accent-text. Every urgency level has an ink and a soft wash, and the
 * ladder always pairs colour with position and a label.
 */

@font-face { font-family: Fraunces; src: url(/fonts/Fraunces-Medium.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Fraunces; src: url(/fonts/Fraunces-SemiBold.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Figtree; src: url(/fonts/Figtree-Regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Figtree; src: url(/fonts/Figtree-Medium.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Figtree; src: url(/fonts/Figtree-SemiBold.woff2) format('woff2'); font-weight: 600; font-display: swap; }
/* Metric-matched fallbacks, so the swap to the web fonts does not move the layout. */
@font-face { font-family: 'Figtree Fallback'; src: local('Arial'), local('ArialMT'); font-weight: 400; size-adjust: 100.8%; ascent-override: 94.2%; descent-override: 24.8%; line-gap-override: 0%; }
@font-face { font-family: 'Figtree Fallback'; src: local('Arial'), local('ArialMT'); font-weight: 500; size-adjust: 101.5%; ascent-override: 93.6%; descent-override: 24.6%; line-gap-override: 0%; }
@font-face { font-family: 'Figtree Fallback'; src: local('Arial Bold'), local('Arial-BoldMT'); font-weight: 600; size-adjust: 95%; ascent-override: 100%; descent-override: 26.3%; line-gap-override: 0%; }
@font-face { font-family: 'Fraunces Fallback'; src: local('Georgia'); font-weight: 500; size-adjust: 107.5%; ascent-override: 91%; descent-override: 23.7%; line-gap-override: 0%; }
@font-face { font-family: 'Fraunces Fallback'; src: local('Georgia Bold'), local('Georgia-Bold'); font-weight: 600; size-adjust: 94%; ascent-override: 104%; descent-override: 27.1%; line-gap-override: 0%; }

:root {
  --paper: #f7f1e6;
  --paper-raised: #fffcf5;
  --paper-sunken: #ede5d5;
  --edge: #ddd3c0;
  --ink: #1b2235;
  --ink-2: #3d4250;
  --muted: #545b6b;
  --hairline: rgb(27 34 53 / 0.12);
  --navy: #22304f;
  --on-navy: #fffcf5;
  --on-navy-muted: rgb(255 252 245 / 0.82);
  --navy-hairline: rgb(255 252 245 / 0.18);
  --primary: #2e4270;
  --link: #2e4270;
  --accent: #f0a35e;
  --accent-text: #8f4e14;
  --accent-soft: #fbe8d3;
  --brick: #c8553d;
  --danger: #8e2a22;
  --danger-soft: #f5d9d3;
  --u-no_concern: #3b5878;
  --u-monitor: #5a6230;
  --u-vet_soon: #855610;
  --u-vet_urgent: #a4431f;
  --u-emergency: #8e2a22;
  --s-no_concern: #dfe6ef;
  --s-monitor: #e8ead6;
  --s-vet_soon: #f6e8cc;
  --s-vet_urgent: #f7dfd2;
  --s-emergency: #f5d9d3;
  --shadow: 0 1px 2px rgb(27 34 53 / 0.06), 0 8px 24px -12px rgb(27 34 53 / 0.18);
  --display: Fraunces, 'Fraunces Fallback', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --ui: Figtree, 'Figtree Fallback', -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #10141f;
    --paper-raised: #181e2c;
    --paper-sunken: #0a0d15;
    --edge: #283044;
    --ink: #eee9df;
    --ink-2: #d6d1c7;
    --muted: #a5acbb;
    --hairline: rgb(238 233 223 / 0.12);
    --navy: #283a60;
    --on-navy: #f4efe5;
    --on-navy-muted: rgb(244 239 229 / 0.84);
    --primary: #8ea5d4;
    --link: #a6b8de;
    --accent-text: #f5bc86;
    --accent-soft: #3a2c1b;
    --danger: #f6948a;
    --danger-soft: #44201c;
    --u-no_concern: #9db4d6;
    --u-monitor: #bcc48a;
    --u-vet_soon: #eac071;
    --u-vet_urgent: #f4a47e;
    --u-emergency: #f6948a;
    --s-no_concern: #1c2638;
    --s-monitor: #272b1c;
    --s-vet_soon: #382c17;
    --s-vet_urgent: #3f241a;
    --s-emergency: #44201c;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 10px 30px -14px rgb(0 0 0 / 0.6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--ui);
  font-feature-settings: 'kern';
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; color: var(--ink); text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem); line-height: 1.06; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.625rem, 1.2rem + 1.5vw, 2.375rem); line-height: 1.12; letter-spacing: -0.012em; font-weight: 500; }
h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 500; }
p { margin: 0 0 1em; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
strong { font-weight: 600; }
.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; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.lead { font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem); line-height: 1.55; color: var(--ink-2); max-width: 40em; }
.fine { font-size: 0.875rem; color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--link); text-decoration: none; }
.text-link::after { content: ''; width: 16px; height: 2px; background: currentColor; transition: width 160ms var(--ease); }
.text-link:hover::after { width: 24px; }
mark.todo { background: #ffe58a; color: #1b2235; padding: 0 3px; border-radius: 3px; }

.skip { position: absolute; left: 12px; top: -48px; z-index: 30; padding: 8px 14px; background: var(--ink); color: var(--paper); border-radius: 8px; }
.skip:focus { top: 12px; }

/* header ----------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 94%, transparent); border-bottom: 1px solid var(--hairline); }
.header-row { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 600 1.375rem/1 var(--display); letter-spacing: -0.01em; }
.logo-mark { width: 32px; height: 32px; border-radius: 8px; }
.nav-desktop { margin-left: auto; }
.nav-desktop ul, .popover ul, .footer-nav ul, .plain, .crumbs ol { list-style: none; margin: 0; padding: 0; }
.nav-desktop ul { display: flex; gap: 4px; }
.nav-desktop a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 0.9688rem; }
.nav-desktop a:hover { background: var(--paper-sunken); color: var(--ink); }
.nav-desktop a[aria-current='page'] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.header-tools { display: flex; gap: 8px; align-items: center; }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.lang-menu, .menu-mobile { position: relative; }
.lang-menu > summary, .menu-mobile > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 10px; border: 1px solid var(--hairline); border-radius: 10px; font-weight: 500; font-size: 0.9375rem; color: var(--ink-2); }
.lang-menu > summary:hover, .menu-mobile > summary:hover { border-color: var(--edge); background: var(--paper-raised); }
.lang-name { display: none; }
.chev { width: 14px; height: 14px; transition: transform 160ms var(--ease); }
details[open] > summary .chev { transform: rotate(180deg); }
.popover { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; padding: 8px; background: var(--paper-raised); border: 1px solid var(--hairline); border-radius: 12px; box-shadow: var(--shadow); }
.popover a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.popover a:hover, .popover a[aria-current] { background: var(--paper-sunken); }
.popover a[aria-current]::after { content: ' ·'; color: var(--accent-text); }
.menu-mobile { display: none; }
@media (max-width: 920px) {
  .nav-desktop { display: none; }
  .menu-mobile { display: block; }
  .header-tools { margin-left: auto; }
}

/* language banner --------------------------------------------------------- */
.lang-banner { position: fixed; left: 50%; bottom: 16px; z-index: 40; transform: translateX(-50%); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; width: min(560px, calc(100% - 32px)); padding: 12px 16px; background: var(--navy); color: var(--on-navy); border-radius: 12px; box-shadow: var(--shadow); }
.lang-banner[hidden] { display: none; }
.lang-banner p { margin: 0; flex: 1 1 200px; }
.banner-go { color: var(--on-navy); font-weight: 600; }
.banner-stay { font: inherit; color: var(--on-navy-muted); background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 0.18em; }

/* App Store badge: Apple's own artwork, unmodified, never under 40px tall */
.store-badge { display: inline-block; flex: none; line-height: 0; border-radius: 9px; }
.store-badge img { height: 40px; width: auto; }
.store-badge-lg img { height: 52px; }
.store-badge:focus-visible { outline-offset: 3px; }

/* torn paper ------------------------------------------------------------ */
.tear { width: 100%; height: 22px; fill: currentColor; }

/* hero ------------------------------------------------------------------ */
.hero { position: relative; z-index: 2; padding: clamp(32px, 6vw, 72px) 0 clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy h1 { max-width: 16ch; font-size: clamp(2.25rem, 1.5rem + 2.8vw, 3.5rem); }
.hero-copy .lead { margin-top: 24px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }
.hero-note { margin-top: 16px; color: var(--muted); font-size: 0.9375rem; }
.hero-visual { position: relative; }
.hero-scene { width: min(400px, 78%); margin: 0; }
.slip { position: absolute; right: 0; bottom: 5%; width: min(280px, 58%); margin: 0; color: var(--paper-raised); transform: rotate(-1.6deg); filter: drop-shadow(0 16px 24px rgb(27 34 53 / 0.24)); }
.slip .tear { display: block; margin-bottom: -1px; }
.slip-body { background: var(--paper-raised); color: var(--ink); padding: 8px 20px 18px; border-radius: 0 0 6px 6px; }
.slip-pet { font-size: 0.8125rem; color: var(--muted); margin: 0 0 6px; }
.slip-said { font-size: 0.9375rem; margin: 0 0 12px; padding-left: 12px; border-left: 2px solid var(--edge); color: var(--ink-2); }
.slip-verdict { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 8px; }
.slip-level { font: 600 1.625rem/1.1 var(--display); color: var(--u-emergency); }
.slip-action { font-weight: 600; color: var(--u-emergency); }
.slip-why { font-size: 0.875rem; margin: 12px 0 8px; color: var(--ink-2); }
.slip-do { font-size: 0.875rem; margin: 0 0 10px; font-weight: 500; }
.slip-floor { font-size: 0.75rem; color: var(--accent-text); margin: 0; }
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 400px; margin: 0 auto; width: 100%; }
  .hero-scene { width: min(300px, 82%); margin: 0 auto; }
  .slip { position: relative; bottom: auto; right: auto; width: 100%; margin: -96px 0 0; }
}

/* diorama scenes (the App Store screenshots' paper stage) -------------- */
.scene { margin: 0; }
.scene-stage { position: relative; container-type: inline-size; overflow: hidden; border-radius: 20px; background: #e9dbc5; box-shadow: 0 1px 2px rgb(27 34 53 / 0.08), 0 22px 44px -26px rgb(27 34 53 / 0.45); isolation: isolate; }
.scene-glass { position: absolute; inset: 0; background: linear-gradient(118deg, #313b52 0%, #1b2131 34%, #121620 35%, #0d1018 100%); }
.scene-screen, .scene-glare { position: absolute; left: 0; top: 0; width: 100cqw; height: calc(100cqw * 2868 / 1320); transform-origin: 0 0; }
.scene-screen img { width: 100%; height: 100%; object-fit: cover; }
.scene-glare { background: linear-gradient(118deg, rgb(255 255 255 / 0.13) 0%, rgb(255 255 255 / 0.04) 34%, rgb(255 255 255 / 0) 35%); pointer-events: none; }
.scene-art { position: absolute; inset: 0; }
.scene-art img { width: 100%; height: 100%; }
@supports not (width: 1cqw) { .scene-screen, .scene-glare { display: none; } }
@media (prefers-color-scheme: dark) {
  .scene-stage { box-shadow: 0 0 0 1px rgb(238 233 223 / 0.1), 0 22px 44px -26px rgb(0 0 0 / 0.8); }
}

/* ladder ---------------------------------------------------------------- */
.ladder { list-style: none; margin: 16px 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.rung { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 10px 10px 8px; border-radius: 6px; background: var(--paper-sunken); color: var(--muted); font-size: 0.8125rem; line-height: 1.25; border-top: 4px solid var(--rung); }
.rung-no_concern { --rung: var(--u-no_concern); --rung-soft: var(--s-no_concern); }
.rung-monitor { --rung: var(--u-monitor); --rung-soft: var(--s-monitor); }
.rung-vet_soon { --rung: var(--u-vet_soon); --rung-soft: var(--s-vet_soon); }
.rung-vet_urgent { --rung: var(--u-vet_urgent); --rung-soft: var(--s-vet_urgent); }
.rung-emergency { --rung: var(--u-emergency); --rung-soft: var(--s-emergency); }
.rung-step { font: 600 0.75rem/1 var(--ui); font-variant-numeric: tabular-nums; color: var(--rung); }
.rung-label { font-weight: 600; color: var(--ink-2); }
.rung-action { color: var(--muted); }
.rung.is-current { background: var(--rung-soft); box-shadow: inset 0 0 0 1px var(--rung); }
.rung.is-current .rung-label, .rung.is-current .rung-action { color: var(--rung); }
.ladder-compact { gap: 3px; margin: 8px 0; }
.ladder-compact .rung { padding: 4px 6px; font-size: 0.6875rem; border-top-width: 3px; }
.ladder-compact .rung-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 640px) {
  .ladder:not(.ladder-compact) { grid-template-columns: 1fr; }
  .ladder:not(.ladder-compact) .rung { flex-direction: row; align-items: baseline; gap: 10px; border-top: 0; border-left: 4px solid var(--rung); }
  .ladder:not(.ladder-compact) .rung-action { margin-left: auto; }
}

/* sections -------------------------------------------------------------- */
.section { padding: clamp(56px, 8vw, 112px) 0; }
.section-head { max-width: 44rem; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p, .section-lead { margin-top: 16px; color: var(--ink-2); font-size: 1.125rem; }
.sheet-navy { background: var(--navy); color: var(--on-navy); position: relative; }
.sheet-navy .tear-top { color: var(--navy); position: absolute; top: -21px; left: 0; }
.sheet-navy .tear-bottom { color: var(--navy); position: absolute; bottom: -21px; left: 0; z-index: 1; }
.sheet-navy h2, .sheet-navy h3 { color: var(--on-navy); }
.sheet-navy p { color: var(--on-navy-muted); }
.sheet-inner { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--navy-hairline); }
.steps li { padding: 28px 28px 8px 0; border-right: 1px solid var(--navy-hairline); }
.steps li + li { padding-left: 28px; }
.steps li:last-child { border-right: 0; }
.step-no { display: block; font: 500 2.5rem/1 var(--display); color: var(--accent); margin-bottom: 20px; font-variant-numeric: lining-nums; }
.steps h3 { margin-bottom: 10px; }
.steps p { font-size: 0.9688rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(2) { border-right: 0; }
  .steps li:nth-child(3) { padding-left: 0; }
  .steps li:nth-child(n + 3) { border-top: 1px solid var(--navy-hairline); }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 24px 0 4px; border-right: 0; }
  .steps li + li { border-top: 1px solid var(--navy-hairline); }
}

/* features -------------------------------------------------------------- */
.feature-lead { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 8px 48px; align-items: center; padding: clamp(24px, 3vw, 40px); background: var(--paper-raised); border: 1px solid var(--hairline); border-radius: 4px 16px 16px 16px; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: border-color 160ms var(--ease); }
.feature-lead:hover { border-color: var(--edge); }
.feature-lead-name { display: block; font: 600 clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem)/1.1 var(--display); grid-column: 1; }
.feature-lead-sum { display: block; margin: 0; color: var(--ink-2); font-size: 1.125rem; grid-column: 1; }
.feature-lead .ladder { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
.feature-lead .text-link { grid-column: 1; margin-top: 8px; }
.feature-rows { display: grid; gap: clamp(56px, 8vw, 112px); margin: clamp(56px, 8vw, 112px) 0 clamp(48px, 6vw, 80px); }
.feature-row { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: clamp(32px, 7vw, 112px); align-items: center; }
.feature-row:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); }
.feature-row:nth-child(even) .feature-scene { order: 2; }
.feature-text { max-width: 30rem; }
.feature-row:nth-child(even) .feature-text { justify-self: end; }
.feature-no { display: block; font: 500 1rem/1 var(--ui); color: var(--accent-text); font-variant-numeric: tabular-nums; margin-bottom: 14px; }
.feature-text h3 { font-size: clamp(1.75rem, 1.35rem + 1.3vw, 2.375rem); line-height: 1.1; letter-spacing: -0.012em; }
.feature-text h3 a { color: inherit; text-decoration: none; }
.feature-text h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.feature-sum { margin: 16px 0 0; font-size: 1.125rem; color: var(--ink-2); }
.feature-free { margin: 16px 0 20px; padding-left: 14px; border-left: 2px solid var(--accent); font-size: 0.9375rem; color: var(--muted); }
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline); }
.ledger-more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 56px); border-top: 0; }
.ledger li { border-bottom: 1px solid var(--hairline); }
.ledger-more li { border-top: 1px solid var(--hairline); }
.ledger a { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 12px; padding: 16px 4px; color: var(--ink); text-decoration: none; transition: background-color 160ms var(--ease); }
.ledger-no { grid-row: span 2; font: 500 0.875rem/1.9 var(--ui); color: var(--accent-text); font-variant-numeric: tabular-nums; }
.ledger a:hover { background: var(--paper-sunken); }
.ledger-name { font: 500 1.25rem/1.3 var(--display); }
.ledger-sum { color: var(--muted); font-size: 0.9375rem; }
@media (max-width: 860px) {
  .feature-lead { grid-template-columns: 1fr; }
  .feature-lead .ladder { grid-column: 1; grid-row: auto; margin: 12px 0 4px; }
  .feature-row, .feature-row:nth-child(even) { grid-template-columns: 1fr; gap: 28px; }
  .feature-row .feature-scene, .feature-row:nth-child(even) .feature-scene { order: 2; width: min(320px, 100%); justify-self: center; }
  .feature-row:nth-child(even) .feature-text { justify-self: start; }
  .ledger-more { grid-template-columns: 1fr; }
}

/* species --------------------------------------------------------------- */
.species { background: var(--paper-sunken); }
.species-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 20px; align-items: start; }
.species-row li { display: flex; flex-direction: column; }
.species-art { height: 132px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 16px; }
.species-art img { max-height: 132px; width: auto; }
.species-row li:nth-child(even) .species-art { transform: translateY(-10px) rotate(1.5deg); }
.species-row li:nth-child(3n) .species-art { transform: rotate(-2deg); }
.species-row h3 { font-size: 1.125rem; margin-bottom: 4px; }
.species-row p { font-size: 0.875rem; color: var(--muted); margin: 0; }
@media (max-width: 1000px) { .species-row { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 40px; } }
@media (max-width: 560px) { .species-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .species-art, .species-art img { height: 104px; max-height: 104px; } }

/* safety ---------------------------------------------------------------- */
.safety-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); }
.safety-lead { font: 500 clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem)/1.35 var(--display); color: var(--ink); margin: 20px 0 24px; }
.safety-scene { margin-top: 48px; max-width: 340px; }
@media (max-width: 860px) { .safety-scene { display: none; } }
.safety-points { list-style: none; margin: 0; padding: 0; }
.safety-points li { padding: 24px 0 24px 28px; border-top: 1px solid var(--hairline); position: relative; }
.safety-points li::before { content: ''; position: absolute; left: 0; top: 32px; width: 12px; height: 12px; background: var(--brick); clip-path: polygon(0 10%, 100% 0, 88% 100%, 8% 92%); }
.safety-points h3 { margin-bottom: 8px; }
.safety-points p { margin: 0; color: var(--ink-2); }
@media (max-width: 860px) { .safety-grid { grid-template-columns: 1fr; } }

/* privacy --------------------------------------------------------------- */
.privacy { padding-top: 0; }
.privacy-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.privacy-art { max-width: 420px; }
.checks { list-style: none; margin: 20px 0 28px; padding: 0; }
.checks li { position: relative; padding: 8px 0 8px 32px; border-bottom: 1px solid var(--hairline); }
.checks li::before { content: ''; position: absolute; left: 4px; top: 16px; width: 14px; height: 8px; border-left: 2px solid var(--accent-text); border-bottom: 2px solid var(--accent-text); transform: rotate(-45deg); }
@media (max-width: 860px) { .privacy-grid { grid-template-columns: 1fr; } .privacy-art { max-width: 300px; } }

/* pricing --------------------------------------------------------------- */
.pricing { background: var(--paper-sunken); }
.plans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.plan { padding: clamp(24px, 3vw, 40px); border-radius: 4px; }
.plan h3 { font-size: 1.5rem; }
.plan-free { background: var(--paper-raised); border: 1px solid var(--hairline); }
.plan-premium { background: var(--navy); color: var(--on-navy); position: relative; -webkit-mask: radial-gradient(circle 12px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat; mask: radial-gradient(circle 12px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat; }
.plan-premium h3 { color: var(--on-navy); }
.plan-premium .checks li { border-color: var(--navy-hairline); }
.plan-premium .checks li::before { border-color: var(--accent); }
.price { margin: 12px 0 0; }
.price-num { font: 600 2.5rem/1 var(--display); font-variant-numeric: lining-nums; }
.price-per { color: var(--muted); }
.plan-premium .price-per, .plan-premium .price-note { color: var(--on-navy-muted); }
.price-pair { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 28px; }
.price-alt .price-num { font-size: 1.75rem; }
.price-note { margin: 8px 0 0; font-size: 0.9375rem; }
.terms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); margin-top: 48px; }
.terms-grid h3 { margin-bottom: 12px; }
.plain li { padding: 8px 0; border-top: 1px solid var(--hairline); color: var(--ink-2); }
.pricing .fine { margin-top: 32px; }
@media (max-width: 760px) { .plans, .terms-grid { grid-template-columns: 1fr; } }

/* FAQ ------------------------------------------------------------------- */
.home-faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.home-faq h2 { position: sticky; top: 92px; }
@media (max-width: 860px) { .home-faq { grid-template-columns: 1fr; } .home-faq h2 { position: static; } }
.home-faq h2, .faq-section h2 { margin-bottom: 20px; }
.faq { border-top: 1px solid var(--hairline); }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-item summary { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 18px 4px 18px 0; }
.faq-item summary h3 { font: 500 1.125rem/1.4 var(--ui); color: var(--ink); }
.faq-item summary::after { content: ''; flex: none; width: 10px; height: 10px; margin-top: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 160ms var(--ease); }
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: 12px; }
.faq-item p { margin: 0 0 20px; color: var(--ink-2); max-width: 44em; }

/* CTA band -------------------------------------------------------------- */
.cta-band { margin-top: 48px; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding-top: 56px; padding-bottom: 72px; }
.cta-inner h2 { max-width: 22ch; }
.cta-inner p { margin: 12px 0 0; }
.page-home .site-footer .tear-footer { display: none; }

/* articles -------------------------------------------------------------- */
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(32px, 5vw, 72px); padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(56px, 7vw, 96px); align-items: start; }
.article { min-width: 0; max-width: 46rem; }
.page-narrow { max-width: 860px; padding-top: clamp(32px, 5vw, 64px); padding-bottom: 96px; }
.article-head { margin-bottom: 32px; }
.article-head .lead { margin-top: 20px; }
.article-head-grid { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 16px 40px; align-items: start; margin-bottom: 32px; }
.article-head-grid .article-head { margin-bottom: 0; }
.article-scene { margin-top: 8px; }
@media (max-width: 700px) { .article-head-grid { grid-template-columns: 1fr; } .article-scene { width: min(220px, 70%); margin: 0 auto; } }
.byline { font-size: 0.875rem; color: var(--muted); margin: 16px 0 0; }
.prose h2, .article > section > h2, .article > h2 { margin: 48px 0 16px; }
.prose h3 { margin: 32px 0 12px; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1em; }
.prose li { margin: 0.35em 0; }
.prose li::marker { color: var(--accent-text); }
.prose strong { color: var(--ink); }
.table-wrap { overflow-x: auto; margin: 0 0 1.5em; border: 1px solid var(--hairline); border-radius: 8px; background: var(--paper-raised); }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--hairline); }
th { font-weight: 600; background: var(--paper-sunken); color: var(--ink); }
tr:last-child td { border-bottom: 0; }
td { font-variant-numeric: tabular-nums; }
.free-note { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 14px 16px; background: var(--accent-soft); border-radius: 8px; color: var(--ink); font-size: 0.9688rem; }
.free-note span { font-weight: 600; color: var(--accent-text); }
.crumbs { margin-top: 56px; padding-top: 16px; border-top: 1px solid var(--hairline); font-size: 0.875rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs li + li::before { content: '/'; color: var(--muted); margin-right: 8px; }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--ink-2); }

.rail { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 24px; font-size: 0.9375rem; }
.rail-block h2 { font: 600 0.9375rem/1.3 var(--ui); color: var(--ink); margin-bottom: 8px; }
.rail-block ul, .rail-block ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--hairline); }
.rail-block li a { display: block; padding: 5px 0 5px 14px; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.rail-block li a:hover { color: var(--link); box-shadow: inset 2px 0 0 var(--accent); }
.rail-app { padding: 20px; background: var(--paper-raised); border: 1px solid var(--hairline); border-radius: 4px 12px 12px 12px; }
.rail-app-title { font: 500 1.125rem/1.3 var(--display); margin: 0 0 6px; }
.rail-app p:not(.rail-app-title) { color: var(--muted); font-size: 0.875rem; }
@media (max-width: 1000px) {
  .article-grid { grid-template-columns: 1fr; }
  .rail { position: static; }
  .toc { display: none; }
}

/* hubs ------------------------------------------------------------------ */
.hub-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline); }
.hub-list li { padding: 24px 0; border-bottom: 1px solid var(--hairline); }
.hub-list h2 { font-size: 1.5rem; margin-bottom: 8px; }
.hub-list h2 a { color: var(--ink); text-decoration: none; }
.hub-list h2 a:hover { color: var(--link); text-decoration: underline; }
.hub-list p { margin: 0 0 4px; color: var(--ink-2); }
.hub-free { font-size: 0.875rem; color: var(--muted) !important; }
.hub-group h3 { margin: 32px 0 12px; }
.toxin-table td:first-child { width: 62%; }

/* toxin pages ----------------------------------------------------------- */
.disclaimer { padding: 12px 16px; border-left: 3px solid var(--brick); background: var(--paper-raised); font-size: 0.9375rem; color: var(--ink-2); }
.act-now { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin: 28px 0 8px; align-items: start; }
.act-now-single { grid-template-columns: 1fr; }
.act-now h2 { font-size: 1.375rem; margin: 0 0 12px; }
.act-now h3 { font: 600 1rem/1.3 var(--ui); margin: 20px 0 6px; }
.act-now ol, .act-now ul { margin: 0; padding-left: 1.2em; }
.act-now li { margin: 0.4em 0; }
.do-now { padding: 24px; background: var(--accent-soft); border-radius: 4px 14px 14px 14px; }
.do-now li::marker { font-weight: 600; color: var(--accent-text); }
.go-now { padding: 24px; background: var(--danger-soft); border-radius: 14px 4px 14px 14px; }
.go-now h2 { color: var(--danger); }
.go-now p { margin: 0 0 6px; }
.lines-title { font-weight: 600; margin-top: 12px !important; }
.lines { list-style: none; padding: 0 !important; }
.lines a { display: inline-block; padding: 4px 0; color: var(--ink); font-weight: 500; }
.lines .num { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--danger); font-weight: 600; }
.rating { margin-top: 40px; }
.rating-verdict { margin: 0; }
.sev { display: inline-block; font-weight: 600; padding: 2px 0; }
.sev-emergency { color: var(--u-emergency); }
.sev-urgent, .sev-doseDependent { color: var(--u-vet_urgent); }
.sev-caution { color: var(--u-vet_soon); }
.sources ol { padding-left: 1.25em; }
.sources li { margin: 0.4em 0; overflow-wrap: anywhere; }
@media (max-width: 700px) { .act-now { grid-template-columns: 1fr; } }

/* emergency page -------------------------------------------------------- */
.hard-stops { padding: 24px; background: var(--danger-soft); border-radius: 4px 14px 14px 14px; }
.hard-stops h2 { margin: 0 0 12px !important; font-size: 1.375rem; color: var(--danger); }
.hard-stops ul { margin: 0; padding-left: 1.2em; }
.hard-stops li { margin: 0.35em 0; }
.lvl { display: block; font-weight: 600; }
.lvl-emergency { color: var(--u-emergency); }
.lvl-vet_urgent { color: var(--u-vet_urgent); }
.lvl-vet_soon { color: var(--u-vet_soon); }
.lvl-action { display: block; font-size: 0.8125rem; color: var(--muted); }
.floor-table td:first-child { min-width: 180px; }
.first-aid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.aid { padding: 20px; background: var(--paper-raised); border: 1px solid var(--hairline); border-radius: 4px; }
.aid:nth-child(3n + 1) { border-radius: 4px 14px 14px 14px; }
.aid h3 { margin-bottom: 8px; }
.aid ol { margin: 0; padding-left: 1.2em; font-size: 0.9375rem; }
.aid li { margin: 0.35em 0; }
@media (max-width: 640px) { .first-aid { grid-template-columns: 1fr; } }

/* support, legal, 404 --------------------------------------------------- */
.contact { margin: 8px 0 40px; padding: 24px; background: var(--paper-raised); border: 1px solid var(--hairline); border-radius: 4px 14px 14px 14px; }
.contact h2 { margin: 0 0 8px !important; font-size: 1.5rem; }
.contact-form { display: grid; gap: 8px; margin-top: 16px; }
.contact-form label { font-weight: 600; margin-top: 8px; }
.contact-form select, .contact-form textarea { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--edge); border-radius: 8px; padding: 10px 12px; width: 100%; }
.contact-form button { justify-self: start; margin-top: 12px; font: 600 1rem/1 var(--ui); color: var(--on-navy); background: var(--primary); border: 0; border-radius: 10px; padding: 14px 20px; cursor: pointer; transition: background-color 160ms var(--ease); }
.contact-form button:hover { background: var(--navy); }
@media (prefers-color-scheme: dark) { .contact-form button { color: #0a0d15; } .contact-form button:hover { background: #c6d2ec; } }
.summary-box { padding: 20px 24px; background: var(--paper-raised); border: 1px solid var(--hairline); border-radius: 8px; margin-bottom: 40px; }
.summary-box h2 { margin: 0 0 8px !important; font-size: 1.25rem; }
.summary-box ul { margin: 0 0 8px; padding-left: 1.2em; }
.legal-text h2 { font-size: 1.5rem; }
.legal-text hr { border: 0; border-top: 1px solid var(--hairline); margin: 32px 0; }
.not-found { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; padding-top: 80px; padding-bottom: 120px; }
.nf-art { width: 264px; }
.nf-links a { font-weight: 500; }
@media (max-width: 640px) { .not-found { grid-template-columns: 1fr; } .nf-art { width: 200px; } }

/* footer ---------------------------------------------------------------- */
.site-footer { margin-top: 0; }
.site-footer .tear-footer { color: var(--navy); display: block; margin-bottom: -1px; }
.footer-sheet { background: var(--navy); color: var(--on-navy-muted); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 48px; }
.logo-invert { color: var(--on-navy); }
.footer-brand p { margin: 16px 0 20px; font-size: 0.9375rem; max-width: 30ch; }
.footer-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.footer-nav h2 { font: 600 0.9375rem/1.3 var(--ui); color: var(--on-navy); margin-bottom: 12px; }
.footer-nav a { display: inline-block; padding: 4px 0; color: var(--on-navy-muted); text-decoration: none; font-size: 0.9375rem; }
.footer-nav a:hover { color: var(--on-navy); text-decoration: underline; }
.footer-fine { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--navy-hairline); font-size: 0.8125rem; }
.footer-fine p { margin: 0 0 8px; }
.footer-fine a { color: var(--on-navy); }
.footer-notvet { color: var(--on-navy); font-size: 0.875rem; }
.footer-apple { opacity: 0.85; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; } .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
@media print { .site-header, .site-footer, .rail, .lang-banner { display: none; } body { background: #fff; } }

/* scenes (generated from data/scenes.json) */
.scene-symptom-check .scene-stage{aspect-ratio:1320/2328}
.scene-symptom-check .scene-glass{clip-path:polygon(34.503515% 13.86326%,90.981935% 14.73434%,83.769515% 87.21248%,26.574035% 84.42992%)}
.scene-symptom-check .scene-screen,.scene-symptom-check .scene-glare{transform:translate(34.983cqw,25.701473cqw) matrix(0.539442,0.014673,-0.035215,0.552704,0,0) perspective(100cqw) matrix3d(1,0,0.025767,0,0,1,0.007266,0,0,0,1,0,0,0,0,1)}
.scene-baseline .scene-stage{aspect-ratio:1320/2328}
.scene-baseline .scene-glass{clip-path:polygon(9.0177% 14.745485%,65.67972% 13.852985%,73.38072% 84.498185%,15.96186% 87.158345%)}
.scene-baseline .scene-screen,.scene-baseline .scene-glare{transform:translate(9.645cqw,27.227018cqw) matrix(0.569066,-0.015808,0.030818,0.566779,0,0) perspective(100cqw) matrix3d(1,0,-0.024402,0,0,1,0.007573,0,0,0,1,0,0,0,0,1)}
.scene-poison-photo .scene-stage{aspect-ratio:1320/2328}
.scene-poison-photo .scene-glass{clip-path:polygon(34.503515% 13.86326%,90.981935% 14.73434%,83.769515% 87.21248%,26.574035% 84.42992%)}
.scene-poison-photo .scene-screen,.scene-poison-photo .scene-glare{transform:translate(34.983cqw,25.701473cqw) matrix(0.539442,0.014673,-0.035215,0.552704,0,0) perspective(100cqw) matrix3d(1,0,0.025767,0,0,1,0.007266,0,0,0,1,0,0,0,0,1)}
.scene-vet-report .scene-stage{aspect-ratio:1320/2328}
.scene-vet-report .scene-glass{clip-path:polygon(9.0177% 14.745485%,65.67972% 13.852985%,73.38072% 84.498185%,15.96186% 87.158345%)}
.scene-vet-report .scene-screen,.scene-vet-report .scene-glare{transform:translate(9.645cqw,27.227018cqw) matrix(0.569066,-0.015808,0.030818,0.566779,0,0) perspective(100cqw) matrix3d(1,0,-0.024402,0,0,1,0.007573,0,0,0,1,0,0,0,0,1)}
.scene-meds-family .scene-stage{aspect-ratio:1320/2328}
.scene-meds-family .scene-glass{clip-path:polygon(23.35976% 14.08506%,80.42672% 14.48796%,76.6007% 86.68356%,18.56882% 85.09542%)}
.scene-meds-family .scene-screen,.scene-meds-family .scene-glare{transform:translate(23.877cqw,26.085945cqw) matrix(0.550513,0.006855,-0.021236,0.555107,0,0) perspective(100cqw) matrix3d(1,0,0.016028,0,0,1,0.008139,0,0,0,1,0,0,0,0,1)}
.scene-lost-pet .scene-stage{aspect-ratio:1320/2328}
.scene-lost-pet .scene-glass{clip-path:polygon(9.0177% 14.745485%,65.67972% 13.852985%,73.38072% 84.498185%,15.96186% 87.158345%)}
.scene-lost-pet .scene-screen,.scene-lost-pet .scene-glare{transform:translate(9.645cqw,27.227018cqw) matrix(0.569066,-0.015808,0.030818,0.566779,0,0) perspective(100cqw) matrix3d(1,0,-0.024402,0,0,1,0.007573,0,0,0,1,0,0,0,0,1)}
.scene-emergency .scene-stage{aspect-ratio:1320/2328}
.scene-emergency .scene-glass{clip-path:polygon(9.0177% 14.745485%,65.67972% 13.852985%,73.38072% 84.498185%,15.96186% 87.158345%)}
.scene-emergency .scene-screen,.scene-emergency .scene-glare{transform:translate(9.645cqw,27.227018cqw) matrix(0.569066,-0.015808,0.030818,0.566779,0,0) perspective(100cqw) matrix3d(1,0,-0.024402,0,0,1,0.007573,0,0,0,1,0,0,0,0,1)}
.scene-all-species .scene-stage{aspect-ratio:1320/2328}
.scene-all-species .scene-glass{clip-path:polygon(23.35976% 14.08506%,80.42672% 14.48796%,76.6007% 86.68356%,18.56882% 85.09542%)}
.scene-all-species .scene-screen,.scene-all-species .scene-glare{transform:translate(23.877cqw,26.085945cqw) matrix(0.550513,0.006855,-0.021236,0.555107,0,0) perspective(100cqw) matrix3d(1,0,0.016028,0,0,1,0.008139,0,0,0,1,0,0,0,0,1)}
