/* How’s Your Pet? — public styles.
   Self-hosted font, no inline styles (strict CSP), no images: every picture is SVG or CSS.
   Mobile first: everything must work one-handed on a phone at the clinic.
   Motion: page-to-page view transitions, scroll reveals (scroll-driven animations) and small hover touches,
   all of it off for anyone whose device asks for reduced motion, and none of it needed to use the site. */
@font-face { font-family: 'Figtree'; src: url('/fonts/figtree.woff2') format('woff2'); font-weight: 300 900; font-style: normal; font-display: swap; 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+25B2-25BC, U+FEFF, U+FFFD; }
@font-face { font-family: 'Figtree'; src: url('/fonts/figtree-ext.woff2') format('woff2'); font-weight: 300 900; font-style: normal; font-display: swap; 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Figtree'; src: url('/fonts/figtree-italic.woff2') format('woff2'); font-weight: 300 900; font-style: italic; font-display: swap; }

:root {
  --bg: #FBF8F3; --paper: #FFFFFF; --ink: #1B2420; --ink-2: #3E4944; --muted: #5C6762;
  --line: #E8E2D8; --line-2: #F3EFE8;
  /* Brand: deep pine green, with a warm sun yellow and a coral for alerts. */
  --accent: #1F6F5C; --accent-dark: #154F41; --accent-tint: #E1F0EA; --accent-soft: #F0F8F4; --accent-ink: #FFFFFF;
  --sun: #FFCF6B; --sun-soft: #FFF1CF; --coral: #E5664B; --coral-tint: #FDEAE4;
  --ok: #2F7D4F; --ok-tint: #E4F2E8; --warn: #8A5300; --warn-tint: #FCF0D9; --bad: #B4400B; --bad-tint: #FDEBD8;
  --shadow-sm: 0 1px 2px rgba(27,36,32,.06), 0 2px 6px rgba(27,36,32,.04);
  --shadow: 0 1px 2px rgba(27,36,32,.05), 0 12px 32px -8px rgba(27,36,32,.12);
  --shadow-lg: 0 2px 4px rgba(27,36,32,.04), 0 28px 60px -18px rgba(21,79,65,.32);
  --radius: 18px;
  --f-body: 'Figtree', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --f-mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  /* A gentle overshoot for things that "hop". */
  --spring: linear(0, .25 7%, .7 16%, 1.05 28%, 1.12 35%, 1.06 46%, .99 60%, 1);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; }
a { color: var(--accent-dark); text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--ink); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.022em; text-wrap: balance; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.8vw, 2.8rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 800; }
p { margin: 0 0 1em; text-wrap: pretty; }
code { font-family: var(--f-mono); font-size: .92em; background: var(--line-2); padding: .05em .35em; border-radius: 5px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--sun); color: var(--ink); }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.fine { font-size: .875rem; color: var(--muted); }
.eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 .7rem; }
.lede { font-size: clamp(1.08rem, 1.8vw, 1.22rem); color: var(--ink-2); max-width: 36rem; }
.stack { display: flex; flex-direction: column; gap: .9rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 60; border-radius: 8px; }
.skip:focus { left: 8px; top: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { flex: none; }
.ic.fill path { fill: currentColor; }

/* ---------- buttons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; white-space: nowrap; min-height: 46px; padding: 0 1.15rem; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-size: .98rem; font-weight: 750; text-decoration: none; cursor: pointer; transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background-color .2s, border-color .2s, color .2s; }
.btn .ic { width: 18px; height: 18px; transition: transform .3s var(--ease-out); }
.btn:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.btn:hover .ic { transform: translateX(2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.primary { background: linear-gradient(180deg, #2A8570, var(--accent)); border-color: var(--accent); color: var(--accent-ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 6px 16px -6px rgba(31,111,92,.55); }
.btn.primary:hover { background: linear-gradient(180deg, #247a66, var(--accent-dark)); border-color: var(--accent-dark); color: var(--accent-ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 10px 22px -8px rgba(31,111,92,.6); }
.btn.sun { background: var(--sun); border-color: var(--sun); color: var(--ink); box-shadow: 0 10px 24px -10px rgba(0,0,0,.35); }
.btn.sun:hover { background: #FFD985; border-color: #FFD985; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink); }
.btn.ghost:hover { border-color: var(--line); background: rgba(255,255,255,.6); }
.btn.big { min-height: 54px; padding: 0 1.45rem; font-size: 1.04rem; border-radius: 16px; }
.btn.small { min-height: 40px; padding: 0 .9rem; font-size: .92rem; border-radius: 12px; }
.btn.block { width: 100%; }
.btn.two-line { flex-direction: column; gap: .1rem; min-height: 64px; padding-top: .45rem; padding-bottom: .5rem; white-space: normal; text-align: center; }
.btn.two-line .bl-main { display: inline-flex; align-items: center; gap: .5rem; }
.btn.two-line small { display: block; font-size: .78rem; font-weight: 600; line-height: 1.3; opacity: .85; }
.hero .btnrow .btn.sun { min-height: 64px; }
.btn.danger { border-color: var(--bad); color: var(--bad); }
.btn.danger:hover { background: var(--bad); color: #fff; }
.btnrow { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }

/* ---------- header + brand (sticky; it frosts and gains a shadow as the page scrolls) */
.top { position: sticky; top: 0; z-index: 40; background: rgba(251,248,243,.86); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; view-transition-name: site-header; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .top { background: var(--bg); } }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); }
.brand .mark { width: 36px; height: 36px; padding: 6px; border-radius: 11px; color: #fff; background: linear-gradient(150deg, #2E8C74, var(--accent-dark)); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 4px 10px -4px rgba(21,79,65,.6); transition: transform .5s var(--spring); }
.brand:hover .mark { transform: rotate(-12deg) scale(1.06); }
.wordmark { font-weight: 850; font-size: 1.16rem; letter-spacing: -.025em; white-space: nowrap; }
.wordmark em { font-style: normal; color: var(--accent); }
.brand.small .mark { width: 30px; height: 30px; padding: 5px; border-radius: 9px; }
.brand.small .wordmark { font-size: 1rem; }
.top-a { display: flex; align-items: center; gap: .35rem; }
.tour-btn { padding: 0 .75rem; }
.tip-link { padding: 0 .7rem; gap: .3rem; color: var(--ink-2); }
.tip-link .ic { width: 16px; height: 16px; color: var(--coral); }
.tip-link:hover .ic { transform: scale(1.15); }
.tip-nudge { margin-top: .9rem; color: var(--muted); }
.tip-nudge .ic, .tip-panel h2 .ic { width: 18px; height: 18px; vertical-align: -3px; margin-right: .25rem; color: var(--coral); }
.tip-panel h2 { display: flex; align-items: center; gap: .3rem; }
@media (max-width: 560px) { .tour-btn span { display: none; } .tour-btn { min-width: 40px; padding: 0; } .top-a .btn.small { padding: 0 .7rem; } }
/* Small phones: the wordmark goes onto two lines so the header's buttons fit beside it. */
@media (max-width: 420px) {
  .top .brand .mark { flex: none; }
  .top .wordmark { white-space: normal; font-size: .98rem; line-height: 1.02; max-width: 3.6em; }
  .top .wordmark em { white-space: nowrap; }
  .top-a { gap: .15rem; }
  .top-in { gap: .4rem; }
  .top .wordmark { font-size: .94rem; }
  .top-a .btn.small { padding: 0 .5rem; font-size: .9rem; }
  .tour-btn { min-width: 32px; }
  .tip-link .ic { display: none; }
}
@media (max-width: 420px) { .wordmark { font-size: 1rem; } .brand .mark { width: 32px; height: 32px; } .top-a .btn { padding: 0 .7rem; } }
.nudge { background: var(--warn-tint); color: var(--ink); font-size: .95rem; padding: .6rem 0; border-bottom: 1px solid #EBD9B5; }

/* ---------- animal tiles (src/lib/animals.js): a coloured tile per kind of pet, glyph coloured from here */
.animal { --t: var(--accent-tint); --c1: var(--accent); --c2: var(--accent-dark); --c3: #fff; --nose: #F08A9C;
  display: inline-grid; place-items: center; flex: none; width: 64px; height: 64px; border-radius: 21px;
  background: radial-gradient(120% 90% at 30% 15%, rgba(255,255,255,.75), transparent 55%), var(--t);
  box-shadow: inset 0 0 0 1px rgba(27,36,32,.05), inset 0 -3px 0 rgba(27,36,32,.04); }
.animal .animal-svg { width: 80%; height: 80%; overflow: visible; }
.animal.sm { width: 40px; height: 40px; border-radius: 13px; }
.animal.md { width: 52px; height: 52px; border-radius: 17px; }
.animal.lg { width: 76px; height: 76px; border-radius: 25px; }
.animal .a1 { fill: var(--c1); } .animal .a2 { fill: var(--c2); } .animal .a3 { fill: var(--c3); }
.animal .an { fill: var(--nose); } .animal .ab { fill: #F4A23C; } .animal .ae { fill: #2A2320; } .animal .aw { fill: #fff; }
.animal .ao { fill: none; stroke: rgba(42,35,32,.7); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.animal .a-blush { opacity: .55; }
.animal .a-wingline { stroke: var(--c1); stroke-width: 1.8; }
.animal .a-bubble { stroke: #6FA8DC; stroke-width: 1.5; }
.animal .a-heart { fill: #fff; }
.animal-dog     { --t: #FFEBD2; --c1: #E3A15C; --c2: #93582E; --c3: #FCE6C9; }
.animal-cat     { --t: #E9E7FA; --c1: #8E88CC; --c2: #5A5499; --c3: #F5F2FB; }
.animal-rabbit  { --t: #FCE4EA; --c1: #CDBBB0; --c2: #9F8576; --c3: #FFF6F2; --nose: #EE8EA2; }
.animal-bird    { --t: #DDF2F4; --c1: #3FB1C1; --c2: #237D8A; --c3: #F6E79B; }
.animal-fish    { --t: #E1ECFC; --c1: #F38A3A; --c2: #C3551B; --c3: #FFFFFF; }
.animal-reptile { --t: #E5F4DF; --c1: #4C9858; --c2: #2E6A39; --c3: #A9D78E; }
.animal-horse   { --t: #F5E8DF; --c1: #A5653E; --c2: #46291D; --c3: #EACDB4; }
.animal-small   { --t: #FFF2D2; --c1: #E6B158; --c2: #B07A28; --c3: #FFF2DA; }
.animal-other   { --t: var(--accent-tint); --c1: var(--accent); }

/* ---------- home: hero */
.hero { position: relative; overflow: clip; padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5.5rem); }
.hero-glow { position: absolute; inset: -20% -10% auto; height: 120%; pointer-events: none; z-index: -1;
  background:
    radial-gradient(38% 42% at 82% 30%, rgba(255,207,107,.35), transparent 70%),
    radial-gradient(40% 46% at 70% 70%, rgba(31,111,92,.16), transparent 72%),
    radial-gradient(30% 34% at 8% 12%, rgba(229,102,75,.10), transparent 70%); }
.hero-in { display: grid; gap: clamp(2.5rem, 6vw, 3rem); align-items: center; }
@media (min-width: 920px) { .hero-in { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); } }
.tagline { margin: -.05em 0 1rem; font-size: clamp(1.5rem, 3.3vw, 2.1rem); line-height: 1.2; font-weight: 800; letter-spacing: -.02em; color: var(--accent-dark); }
.hero h1 { font-size: clamp(2.2rem, 6.2vw, 3.7rem); letter-spacing: -.035em; line-height: 1.02; margin-bottom: .4em; }
.hl { background: linear-gradient(transparent 64%, var(--sun) 64%, var(--sun) 92%, transparent 92%) no-repeat 0 0 / 100% 100%; padding: 0 .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.pill { display: inline-flex; align-items: center; gap: .45rem; padding: .38rem .8rem .38rem .55rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: .88rem; font-weight: 700; color: var(--ink-2); margin: 0 0 1.2rem; }
.pill .ic { width: 18px; height: 18px; color: var(--sun); fill: var(--sun-soft); stroke: #E0A21C; }
.pill.soft { background: var(--accent-soft); border-color: var(--accent-tint); box-shadow: none; }
.trust { list-style: none; padding: 0; margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; font-size: .92rem; font-weight: 650; color: var(--muted); }
.trust li { display: inline-flex; align-items: center; gap: .4rem; }
.trust .ic { width: 18px; height: 18px; color: var(--accent); }

/* The phone with a sample vet summary, and animal tiles floating around it. */
.hero-art { position: relative; display: grid; place-items: center; padding: 1.5rem 0; }
.phone { position: relative; width: min(100%, 340px); padding: 12px; border-radius: 42px; background: linear-gradient(160deg, #2b3632, #141b18); box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255,255,255,.08); transform: rotate(2deg); transition: transform .8s var(--ease-out); }
.hero-art:hover .phone { transform: rotate(0deg) translateY(-4px); }
.phone-notch { position: absolute; top: 18px; left: 50%; width: 84px; height: 22px; margin-left: -42px; border-radius: 999px; background: #0d1210; z-index: 2; }
.sum { background: var(--paper); border-radius: 31px; padding: 44px 16px 16px; display: flex; flex-direction: column; gap: 10px; font-size: .82rem; line-height: 1.35; }
.sum-top { display: flex; justify-content: space-between; align-items: center; }
.sum-label { display: inline-flex; align-items: center; gap: .3rem; font-weight: 800; color: var(--accent); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.sum-label .ic { width: 16px; height: 16px; }
.sum-date { color: var(--muted); font-size: .74rem; }
.sum-pet { display: flex; gap: 10px; align-items: center; }
.sum-pet b { display: block; font-size: 1.15rem; letter-spacing: -.02em; }
.sum-pet span { display: block; color: var(--muted); font-size: .76rem; }
.sum-pet .sum-chip { display: inline-flex; align-items: center; gap: .2rem; margin-top: 3px; color: var(--ok); font-weight: 700; }
.sum-chip .ic { width: 13px; height: 13px; }
.sum-h { display: flex; align-items: center; gap: .3rem; margin: 0 0 4px; font-weight: 800; font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.sum-h .ic { width: 14px; height: 14px; }
.sum-h em { margin-left: auto; font-style: normal; letter-spacing: 0; text-transform: none; font-size: .76rem; }
.sum-h .down { color: var(--coral); }
.sum-alerts { background: var(--coral-tint); border-radius: 14px; padding: 10px 12px; border-left: 4px solid var(--coral); }
.sum-alerts .sum-h { color: #A63A22; }
.sum-alerts p:not(.sum-h) { margin: 2px 0 0; }
.sum-block { background: var(--line-2); border-radius: 14px; padding: 10px 12px; }
.spark { display: block; width: 100%; height: 52px; overflow: visible; }
.spark-area { fill: rgba(31,111,92,.12); }
.spark-line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; vector-effect: non-scaling-stroke; }
.spark-dot { fill: var(--coral); stroke: #fff; stroke-width: 2; }
.sum-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sum-log li { display: flex; align-items: center; gap: 7px; }
.sum-log span { margin-left: auto; color: var(--muted); font-size: .74rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.warn { background: #E8A93A; } .dot.bad { background: var(--coral); }
.sum-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 2px; }
.sum-actions span { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-dark); font-weight: 750; font-size: .72rem; }
.sum-actions .ic { width: 18px; height: 18px; }
.sum-actions .go { background: var(--accent); color: #fff; }
.floater { position: absolute; z-index: 1; filter: drop-shadow(0 10px 18px rgba(27,36,32,.16)); }
.floater .animal { border: 3px solid var(--paper); }
.floater.f1 { top: 6%; left: 2%; } .floater.f2 { top: 2%; right: 4%; } .floater.f3 { bottom: 14%; left: -2%; } .floater.f4 { bottom: 4%; right: 2%; }
@media (min-width: 520px) { .floater.f1 { left: 8%; } .floater.f3 { left: 6%; } .floater.f2 { right: 10%; } .floater.f4 { right: 8%; } }
@media (min-width: 920px) { .floater.f1 { left: -2%; } .floater.f3 { left: -6%; } .floater.f2 { right: 2%; } .floater.f4 { right: -4%; } }

/* ---------- home: sections */
.kicker { text-align: center; font-size: .82rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.4rem; }
.kinds { padding-bottom: clamp(3rem, 7vw, 5rem); }
.kind-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 1.1rem .6rem; justify-items: center; }
@media (min-width: 920px) { .kind-grid:not(.compact) { grid-template-columns: repeat(9, 1fr); } }
.kind-grid li { display: flex; flex-direction: column; align-items: center; gap: .5rem; font-weight: 700; font-size: .92rem; color: var(--ink-2); }
.kind-grid .animal { transition: transform .55s var(--spring), box-shadow .3s; }
.kind-grid li:hover .animal { transform: translateY(-6px) rotate(-6deg); box-shadow: inset 0 0 0 1px rgba(27,36,32,.05), 0 14px 22px -12px rgba(27,36,32,.35); }
.kind-grid li:nth-child(even):hover .animal { transform: translateY(-6px) rotate(6deg); }
.kind-grid.compact { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); margin-top: 1.2rem; }

.sec-head { max-width: 40rem; margin-bottom: 2rem; }
.how { padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); }
.step { position: relative; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); padding: 1.5rem 1.4rem 1.3rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step p { color: var(--ink-2); font-size: .98rem; }
.step-n { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 850; font-size: 1.05rem; margin-bottom: .9rem; box-shadow: 0 6px 14px -6px rgba(31,111,92,.6); }
.step-art { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; padding: .8rem; border-radius: 14px; background: var(--line-2); }
.mini-field { display: inline-flex; gap: .35rem; align-items: baseline; padding: .3rem .6rem; border-radius: 9px; background: var(--paper); font-size: .85rem; box-shadow: var(--shadow-sm); }
.mini-field b { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.step-art.tags span { padding: .28rem .65rem; border-radius: 999px; background: var(--paper); font-size: .82rem; font-weight: 700; color: var(--ink-2); box-shadow: var(--shadow-sm); transition: background-color .2s, color .2s; }
.step-art.tags span:hover { background: var(--accent); color: #fff; }
.step-art.modes { justify-content: space-between; }
.step-art.modes span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--paper); color: var(--accent); box-shadow: var(--shadow-sm); }
.step-art.modes span:last-child { background: var(--accent); color: #fff; }

.band { background: linear-gradient(165deg, #1F6F5C 0%, #164F42 100%); color: #EAF4EF; padding: clamp(3.5rem, 8vw, 6rem) 0; position: relative; overflow: clip; }
.band::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(40% 60% at 90% 10%, rgba(255,207,107,.18), transparent 70%), radial-gradient(30% 50% at 0% 100%, rgba(255,255,255,.07), transparent 70%); }
.band-in { position: relative; display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 880px) { .band-in { grid-template-columns: 1.1fr .9fr; gap: 4rem; } }
.band .eyebrow { color: var(--sun); }
.band h2 { color: #fff; }
.band p { color: #CFE3DA; }
.ticks { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .8rem; }
.ticks li { position: relative; padding-left: 2.1rem; color: #CFE3DA; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .15rem; width: 1.4rem; height: 1.4rem; border-radius: 8px; background: rgba(255,207,107,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFCF6B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat; }
.ticks b { display: block; color: #fff; }
.paper-wrap { display: grid; place-items: center; perspective: 1200px; }
.paper { width: min(100%, 380px); aspect-ratio: 8.5 / 11; background: #fff; color: var(--ink); border-radius: 6px; padding: 1.4rem 1.3rem; box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); transform: rotateX(8deg) rotateZ(-3deg); transition: transform .9s var(--ease-out); display: flex; flex-direction: column; gap: .9rem; font-size: .8rem; }
.paper-wrap:hover .paper { transform: none; }
.paper-head { display: flex; align-items: center; gap: .6rem; padding-bottom: .8rem; border-bottom: 2px solid var(--ink); }
.paper-head b { display: block; font-size: 1.05rem; }
.paper-head span { color: var(--muted); font-size: .72rem; }
.paper-head .paper-brand { margin-left: auto; align-self: flex-start; font-weight: 800; color: var(--accent); }
@media (max-width: 480px) { .paper-head .paper-brand { display: none; } }
.paper-alert { background: var(--coral-tint); border-left: 4px solid var(--coral); padding: .5rem .7rem; border-radius: 4px; }
.paper-alert b { color: #A63A22; text-transform: uppercase; font-size: .68rem; letter-spacing: .06em; margin-right: .3rem; }
.paper-cols { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.paper-cols b { display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: .4rem; }
.paper-cols i { display: block; height: 7px; border-radius: 4px; background: var(--line-2); margin-bottom: .4rem; }
.paper-cols i.short { width: 60%; }
.paper-chart b { display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: .3rem; }
.paper-spark { height: 40px; }
.spark-line.still { animation: none; stroke-dashoffset: 0; }
.paper-foot { margin: auto 0 0; padding-top: .6rem; border-top: 1px solid var(--line-2); font-size: .64rem; color: var(--muted); }

.compare { padding-top: clamp(3.5rem, 8vw, 6rem); padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.compare-card { display: grid; gap: 2rem; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 26px; padding: clamp(1.4rem, 4vw, 2.6rem); box-shadow: var(--shadow); }
@media (min-width: 880px) { .compare-card { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.compare-copy p:last-child { margin: 0; color: var(--ink-2); }
.meter-list { display: grid; gap: 1.1rem; }
.meter { display: grid; grid-template-columns: 6.4rem 1fr; grid-template-areas: "l bar" ". v"; gap: .25rem .8rem; align-items: center; }
.meter-l { grid-area: l; font-weight: 750; font-size: .92rem; }
.meter-v { grid-area: v; font-size: .84rem; color: var(--muted); }
.meter-bar { grid-area: bar; position: relative; height: 12px; border-radius: 999px; background: var(--line-2); }
.meter-bar .range { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, var(--accent-tint), #BFE0D3, var(--accent-tint)); }
.meter-bar .mark { position: absolute; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(27,36,32,.3); }
.r1 { left: 22%; right: 24%; } .m1 { left: 50%; }
.r2 { left: 30%; right: 18%; } .m2 { left: 34%; }
.r3 { left: 18%; right: 30%; } .m3 { left: 66%; }

.cta { padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.cta-in { position: relative; text-align: center; padding: clamp(2.4rem, 6vw, 4rem) clamp(1.2rem, 4vw, 3rem); border-radius: 30px; color: #fff; overflow: hidden;
  background: radial-gradient(60% 80% at 50% 0%, rgba(255,207,107,.22), transparent 70%), linear-gradient(160deg, #23806A, #154F41); box-shadow: var(--shadow-lg); }
.cta-in h2 { color: #fff; }
.cta-in p { color: #D6E8E0; max-width: 34rem; margin: 0 auto 1.6rem; }
.cta-pets { display: flex; justify-content: center; margin-bottom: 1.2rem; }
.cta-pets .animal { border: 3px solid rgba(255,255,255,.9); margin: 0 -6px; }
.cta-pets .animal:nth-child(1) { transform: rotate(-8deg); } .cta-pets .animal:nth-child(3) { transform: rotate(8deg); }

/* ---------- inner pages */
.page-head { padding-top: clamp(1.5rem, 5vw, 3rem); padding-bottom: 1.2rem; }
.prose { max-width: 46rem; padding-top: 2.5rem; padding-bottom: 3.5rem; }
.prose h2 { margin-top: 1.6em; font-size: 1.2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .5em; }
.prose.lost { text-align: center; padding-top: clamp(3rem, 10vw, 6rem); }
.prose.lost .animal { margin-bottom: 1.2rem; transform: rotate(-8deg); }
.notice-box { background: var(--coral-tint); border-left: 4px solid var(--coral); border-radius: 14px; padding: 1rem 1.15rem; margin: 1.2rem 0; }
.notice-box p { margin: 0 0 .5em; } .notice-box p:last-child { margin: 0; }
.notice-box.warn { background: var(--warn-tint); border-left-color: #E0A21C; font-size: .95rem; }
.notice-box ul { margin: .3rem 0 0; padding-left: 1.2rem; }
.terms h2 { font-size: 1.1rem; }
.support { text-align: left; }
.support-pets { display: flex; margin-bottom: 1.1rem; }
.support-pets .animal { border: 3px solid var(--bg); margin-right: -8px; }
.support-pets .animal:nth-child(1) { transform: rotate(-8deg); } .support-pets .animal:nth-child(3) { transform: rotate(8deg); }
.support .btnrow { margin: 1.6rem 0 .6rem; }
.share-app .btnrow { margin: 1.4rem 0 .4rem; }
.share-ways { list-style: none; padding: 0 !important; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.share-ways li { margin: 0 !important; }
.share-msg { padding: 1rem 1.1rem; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.share-msg p { margin: 0 0 .7rem; color: var(--ink-2); }
.share-in-person { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; }
.share-in-person .share-qr { width: 180px; flex: none; }
.share-in-person p { margin: 0; flex: 1; min-width: 200px; }
.cta-share { margin: 1.2rem 0 0 !important; }
.cta-share a { color: #fff; font-weight: 700; }
.cta-share a:hover { color: var(--sun); }

/* Ad spots (src/lib/ads.js): in preview, only admins see these labelled boxes. */
.ad-spot { margin-block: 0 clamp(2.5rem, 6vw, 4rem); }
.ad-box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; min-height: 110px; padding: 1rem; border: 2px dashed #CFC8BB; border-radius: var(--radius); background: repeating-linear-gradient(-45deg, var(--line-2) 0 12px, transparent 12px 24px); color: var(--muted); text-align: center; }
.ad-box b { color: var(--ink-2); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; }
.ad-box small { font-size: .78rem; }

.draft { display: inline-block; background: var(--warn-tint); color: var(--warn); font-weight: 800; font-size: .85rem; padding: .3rem .7rem; border-radius: 8px; }

/* ---------- my pets */
.pets { padding-bottom: 3.5rem; }
.pets-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; }
.pets-head h1 { margin: 0; }
.pet-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.pet-list.dim { opacity: .75; }
.pet-card { display: flex; flex-direction: column; gap: .8rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow-sm); transition: box-shadow .25s, transform .25s var(--ease-out); }
.pet-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.pet-card-main { display: flex; align-items: center; gap: .9rem; color: inherit; text-decoration: none; }
.pet-card-main b { display: block; font-size: 1.2rem; letter-spacing: -.01em; }
.pet-card-main span { font-size: .92rem; }
.pet-card-a { display: grid; grid-template-columns: 1fr 1.4fr; gap: .5rem; }
.sub-h { font-size: 1.05rem; margin: 2rem 0 .8rem; }
.backup-notice { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; align-items: start; margin: 0 0 1.2rem; padding: 1.1rem 1.2rem; border-radius: var(--radius); background: var(--sun-soft); border: 2px solid var(--sun); box-shadow: var(--shadow-sm); }
.bn-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--sun); color: var(--ink); }
.bn-icon .ic { width: 24px; height: 24px; }
.bn-text h2 { font-size: 1.15rem; margin: .2rem 0 .35rem; }
.bn-text p { margin: 0; color: var(--ink-2); }
.bn-a { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; margin-top: .5rem; }
@media (min-width: 720px) { .bn-a { grid-column: 2; } }
@media (max-width: 719px) { .bn-text { display: contents; } .bn-text h2 { align-self: center; margin: 0; } .bn-text p { grid-column: 1 / -1; } }
.backup-quiet { display: flex; align-items: center; gap: .4rem; margin: 0 0 1rem; font-size: .92rem; color: var(--muted); }
.backup-quiet .ic { width: 18px; height: 18px; color: var(--ok); }
.empty-state { text-align: center; padding: clamp(1.6rem, 5vw, 2.6rem) 1rem; display: grid; justify-items: center; gap: .7rem; }
.empty-state h2 { font-size: 1.4rem; margin: .4rem 0 0; }
.empty-state p { max-width: 30rem; }
.tbtn { display: inline-flex; align-items: center; gap: .35rem; border: 0; background: none; padding: .45rem .55rem; border-radius: 10px; font: inherit; font-size: .9rem; font-weight: 700; color: var(--accent-dark); cursor: pointer; text-decoration: none; }
.tbtn:hover { background: var(--accent-soft); color: var(--ink); }
.tbtn.danger { color: var(--bad); }
.tbtn.danger:hover { background: var(--bad-tint); }
.tbtn .ic { width: 18px; height: 18px; }
.narrow { max-width: 760px; }
.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.plain li { display: flex; align-items: center; gap: .4rem; }
.plain .ic { width: 18px; height: 18px; color: var(--accent); }

/* a pet's photo (or its animal tile, the same sizes) */
.pet-photo { display: block; flex: none; object-fit: cover; background: var(--line-2); }
.pet-photo.sm { width: 40px; height: 40px; border-radius: 13px; }
.pet-photo.md { width: 52px; height: 52px; border-radius: 17px; }
.pet-photo.lg { width: 76px; height: 76px; border-radius: 25px; }
.pet-photo.xl, .animal.xl { width: 112px; height: 112px; border-radius: 34px; }

/* the header on every pet page */
.pet-head { padding-top: clamp(1rem, 3vw, 1.8rem); margin-bottom: 1.2rem; }
.pet-back { display: inline-flex; align-items: center; gap: .35rem; font-weight: 750; font-size: .92rem; text-decoration: none; margin-bottom: .7rem; }
.pet-back .ic { width: 18px; height: 18px; }
.pet-id { display: flex; align-items: center; gap: 1rem; }
.pet-id h1 { margin: 0; font-size: clamp(1.7rem, 4.6vw, 2.4rem); }
.pet-id p { margin: .1rem 0 0; }
.pet-id > div { flex: 1; min-width: 0; }
.pet-edit { flex: none; }
.pet-tabs { display: flex; gap: .3rem; margin-top: 1rem; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.pet-tabs a { display: inline-flex; align-items: center; gap: .35rem; flex: none; padding: .65rem .9rem; font-weight: 750; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.pet-tabs a:hover { color: var(--ink); }
.pet-tabs a.on { color: var(--accent-dark); border-color: var(--accent); }
.pet-tabs a.vet { color: var(--accent-dark); }
.pet-tabs .ic { width: 18px; height: 18px; }

/* the profile form */
.pet-form-wrap { max-width: 820px; padding-bottom: 4rem; }
.pet-form fieldset.panel { margin: 0; min-width: 0; }
.pet-form legend { font-weight: 850; font-size: 1.1rem; padding: 0 .3rem; }
.two { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); align-items: start; }
.check.end { align-self: end; min-height: 48px; align-items: center; }
.kind-pick { border: 0; margin: 0; padding: 0; min-width: 0; }
.kind-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .5rem; }
.kind-opt { position: relative; display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: .6rem .3rem; border: 2px solid var(--line); border-radius: 16px; font-size: .85rem; font-weight: 750; cursor: pointer; text-align: center; transition: border-color .2s, background-color .2s; }
.kind-opt input { position: absolute; opacity: 0; pointer-events: none; }
.kind-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.kind-opt:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.insights { border-color: var(--accent-tint); background: linear-gradient(180deg, var(--accent-soft), var(--paper)); }
.photo-form { margin-top: 1rem; }
.photo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; }
.photo-row .stack { flex: 1; min-width: 220px; }
input[type="file"] { font: inherit; font-size: .95rem; max-width: 100%; }
input[type="date"], input[type="datetime-local"], input[type="number"], input[type="tel"] { font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid #D5D2CA; border-radius: 12px; min-height: 48px; padding: .55rem .85rem; width: 100%; }
.inline-form { margin: .4rem 0 0; }
.danger-zone { margin-top: 1rem; }

/* a pet's overview */
.pet-page, .record, .vet-page, .timeline, .log-page { padding-bottom: 3.5rem; }
.pet-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
.only-phone { display: none !important; }
@media (max-width: 860px) { .pet-grid { grid-template-columns: 1fr; } .only-phone { display: flex !important; } .not-phone { display: none !important; } }
@media (max-width: 420px) { .pet-tabs { gap: 0; } .pet-tabs a { padding: .6rem .55rem; font-size: .92rem; } .pet-tabs .ic { display: none; } }
.pet-grid .panel h2 { display: flex; align-items: center; gap: .45rem; }
.pet-grid .panel h2 .ic { width: 20px; height: 20px; color: var(--accent); }
.alerts-card { border-left: 5px solid var(--coral); }
.alert-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.alert-list li { display: flex; gap: .55rem; align-items: flex-start; }
.alert-list .ic { width: 20px; height: 20px; color: var(--accent); margin-top: .15rem; }
.alert-list li.al .ic { color: var(--coral); }
.vet-card { background: linear-gradient(165deg, var(--accent-soft), var(--paper)); border-color: var(--accent-tint); }
.insight-card .ic { color: #E0A21C !important; }
.kind-grid-log { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .5rem; }
.qlog { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; min-height: 86px; padding: .6rem .3rem; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .88rem; font-weight: 750; text-align: center; transition: transform .2s var(--ease-out), background-color .2s, border-color .2s; }
.qlog .ic { width: 26px; height: 26px; color: var(--accent); }
.qlog:hover { background: var(--accent-soft); border-color: var(--accent-tint); color: var(--ink); transform: translateY(-2px); }
.qlog:active { transform: scale(.97); }

/* entries (the timeline, "recent") */
.entries { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.entries li { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: .65rem; padding: .65rem .8rem; border-radius: 12px; background: var(--bg); }
.entries .dot { margin-top: .5rem; }
.dot.ok { background: var(--accent); opacity: .55; }
.e-what { display: block; font-weight: 650; }
.e-note { display: block; color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }
.e-when { font-size: .85rem; font-weight: 750; color: var(--muted); white-space: nowrap; text-decoration: none; padding-top: .1rem; }
.e-when:hover { color: var(--accent-dark); text-decoration: underline; }
.timeline .day { margin-bottom: 1.4rem; }
.timeline .day h2 { font-size: 1.05rem; margin-bottom: .6rem; }
.timeline .day h2 span { font-weight: 600; font-size: .9rem; margin-left: .3rem; }

/* logging */
.log-form h2 { display: flex; align-items: center; gap: .5rem; margin: 0; }
.log-form h2 .ic { width: 26px; height: 26px; color: var(--accent); }
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); gap: .55rem; }
.pick { min-height: 58px; padding: .6rem .9rem; border-radius: 16px; border: 2px solid var(--line); background: var(--paper); font: inherit; font-weight: 750; color: var(--ink); cursor: pointer; text-align: left; transition: border-color .2s, background-color .2s, transform .15s; }
.pick:hover { border-color: var(--accent); background: var(--accent-soft); }
.pick:active { transform: scale(.98); }
.pick.warn { border-left: 6px solid #E8A93A; }
.pick.bad { border-left: 6px solid var(--coral); }
.pick.on { border-color: var(--accent); background: var(--accent-tint); }
.when summary { cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; font-weight: 750; color: var(--accent-dark); list-style: none; padding: .3rem 0; }
.when summary::-webkit-details-marker { display: none; }
.when summary .ic { width: 18px; height: 18px; }
.when[open] summary { margin-bottom: .6rem; }

/* the record */
.rec-jump { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.rec-jump a { padding: .4rem .8rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 750; font-size: .9rem; text-decoration: none; color: var(--ink); }
.rec-jump a:hover { border-color: var(--accent); }
.rec-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); align-items: start; }
.rec { scroll-margin-top: 90px; }
.rec h2 { display: flex; align-items: center; gap: .45rem; }
.rec h2 .ic { width: 20px; height: 20px; color: var(--accent); }
#allergies h2 .ic { color: var(--coral); }
.items { list-style: none; margin: .6rem 0 .4rem; padding: 0; display: grid; gap: .4rem; }
.items li { display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem; padding: .6rem .75rem; border-radius: 12px; background: var(--bg); }
.items li.past { opacity: .6; }
.items b { display: block; }
.items .muted { display: block; font-size: .9rem; }
.i-note { display: block; font-size: .9rem; color: var(--ink-2); margin-top: .2rem; overflow-wrap: anywhere; }
.add summary { cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; font-weight: 750; color: var(--accent-dark); padding: .4rem 0; list-style: none; }
.add summary::-webkit-details-marker { display: none; }
.add summary .ic { width: 18px; height: 18px; }
.add[open] summary { margin-bottom: .6rem; }
.item-form { padding: .9rem; border-radius: 14px; background: var(--bg); }

/* the vet summary page */
.vet-ways { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); margin-bottom: 1rem; }
.way { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .7rem; align-items: center; padding: .9rem 1rem; border-radius: var(--radius); background: var(--paper); border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none; font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, transform .2s var(--ease-out); }
.way:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-2px); }
.way .ic { grid-row: 1 / 3; width: 30px; height: 30px; padding: 5px; border-radius: 10px; background: var(--accent-tint); color: var(--accent-dark); }
.way b { font-size: 1rem; } .way span { font-size: .85rem; color: var(--muted); }
@media (max-width: 560px) {
  .vet-ways { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .way { grid-template-columns: 1fr; justify-items: center; text-align: center; row-gap: .35rem; padding: .8rem .5rem; }
  .way .ic { grid-row: auto; }
  .way b { font-size: .9rem; line-height: 1.2; }
  .way span { display: none; }
}
.vet-tools { margin-bottom: 1rem; }
.vet-tools summary { cursor: pointer; display: block; font-weight: 750; list-style: none; }
.vet-tools summary .muted { font-weight: 600; }
.vet-tools summary::-webkit-details-marker { display: none; }
.vet-tools summary .ic { width: 18px; height: 18px; color: var(--accent); vertical-align: -3px; margin-right: .35rem; }
.vet-choose { display: grid; gap: .9rem; margin-top: .9rem; }
.vet-choose .field { max-width: 280px; }
.parts { border: 0; margin: 0; padding: 0; display: grid; gap: .45rem; }
.check.fixed { color: var(--muted); }
.check.fixed .ic { width: 20px; height: 20px; color: var(--accent); }
.vet-choose .btn { justify-self: start; }
.vet-send { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); align-items: start; margin-top: 1.2rem; }
.vet-send h2 { display: flex; align-items: center; gap: .45rem; }
.vet-send h2 .ic { width: 20px; height: 20px; color: var(--accent); }
.vet-send .btn { align-self: flex-start; }
.links { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.links li { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .6rem .75rem; border-radius: 12px; background: var(--bg); }
.links b, .links .muted { display: block; } .links .muted { font-size: .85rem; }

/* the summary itself (screen, big type, paper, share link) */
.summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1rem, 3vw, 1.8rem); display: grid; gap: 1.1rem; }
.s-head { display: flex; gap: 1rem; align-items: flex-start; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.s-head h2 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.s-head p { margin: .15rem 0 0; }
.s-kicker { font-size: .78rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.summary h3 { display: flex; align-items: center; gap: .4rem; margin: 0 0 .5rem; font-size: .85rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.summary h4 { margin: .7rem 0 .3rem; font-size: .95rem; }
.summary ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .3rem; }
.s-alerts { padding: .9rem 1.1rem; border-radius: 14px; background: var(--coral-tint); border-left: 5px solid var(--coral); }
.s-alerts h3 { color: #A63A22; }
.s-alerts h3 .ic { width: 18px; height: 18px; }
.s-alerts p { margin: 0; }
.s-log { list-style: none; padding: 0 !important; }
.s-log li { display: grid; grid-template-columns: auto 1fr auto; gap: .6rem; align-items: baseline; }
.s-log small { color: var(--muted); white-space: nowrap; }
.s-log em { color: var(--ink-2); }
.s-p { margin-bottom: .4rem; } .s-p p { display: inline; margin: 0; } .s-p p + p { display: block; margin-top: .3rem; }
.s-foot { font-size: .82rem; color: var(--muted); padding-top: .8rem; border-top: 1px dashed var(--line); }
.summary.big { font-size: 1.3rem; border: 0; box-shadow: none; padding: 1rem 0; }
.summary.big .s-alerts { font-size: 1.15em; }
.big-wrap { width: 100%; max-width: 900px; margin: 0 auto; padding: 1rem 16px 3rem; }
.big-bar { display: flex; justify-content: space-between; gap: .5rem; margin: 0 0 .5rem; }
body.big-mode { background: #fff; }
body.big-mode .top, body.big-mode .foot { display: none; }

/* the weight chart */
.wfig { margin: 0; }
.wchart { display: block; width: 100%; height: auto; overflow: visible; }
.wc-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 5; }
.wc-ax { fill: var(--muted); font-size: 17px; font-family: var(--f-body); font-weight: 650; }
.wc-area { fill: rgba(31,111,92,.1); }
.wc-line { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.wc-dot { fill: #fff; stroke: var(--accent); stroke-width: 2.5; }
.wc-dot.last { fill: var(--accent); stroke: #fff; }
.wfig figcaption { margin-top: .4rem; font-size: .92rem; color: var(--ink-2); }
.wfig .down { color: #A63A22; font-weight: 750; } .wfig .up { color: var(--ok); font-weight: 750; }

/* share links */
.share-made { padding: 1.5rem 16px 4rem; }
.share-made h1 { font-size: 1.6rem; }
.share-url { font-family: var(--f-mono); font-size: .9rem; }
.share-qr { width: min(240px, 70vw); padding: 10px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.share-qr svg { display: block; width: 100%; height: auto; }
.shared { padding: 1.2rem 16px 3rem; max-width: 900px; }
.shared-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; padding: .7rem 1rem; margin-bottom: 1rem; border-radius: 14px; background: var(--accent-soft); border: 1px solid var(--accent-tint); font-size: .92rem; font-weight: 650; }
.shared-bar .ic { width: 20px; height: 20px; color: var(--accent); }
.shared-bar span { flex: 1; min-width: 200px; }

/* ---------- forms */
.field { display: flex; flex-direction: column; gap: .35rem; }
.field > span { font-weight: 700; font-size: .95rem; }
.field small { color: var(--muted); font-size: .85rem; }
input[type="text"], input[type="email"], input[type="password"], input:not([type]), textarea, select {
  font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid #D5D2CA; border-radius: 12px; min-height: 48px; padding: .55rem .85rem; width: 100%; transition: border-color .2s, box-shadow .2s; }
input:hover, textarea:hover, select:hover { border-color: #B9B5AB; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px var(--accent-tint); }
.code-input { font-family: var(--f-mono); font-size: 1.3rem; letter-spacing: .2em; }
.check { display: flex; align-items: flex-start; gap: .6rem; font-weight: 600; cursor: pointer; }
.check.consent span { font-weight: 500; font-size: .95rem; line-height: 1.45; }
.check input { width: 22px; height: 22px; margin: .1rem 0 0; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-err { background: var(--bad-tint); color: #7A2A05; border-radius: 12px; padding: .7rem .95rem; font-weight: 600; margin-bottom: 1rem; }
.form-ok { background: var(--ok-tint); color: #1F5534; border-radius: 12px; padding: .7rem .95rem; font-weight: 600; margin: 1rem 0; }

.auth-wrap { display: flex; justify-content: center; padding-top: clamp(1.5rem, 6vw, 4rem); padding-bottom: 4rem; }
.auth-card { width: 100%; max-width: 28rem; background: var(--paper); border-radius: 24px; border: 1px solid var(--line); box-shadow: var(--shadow); padding: clamp(1.4rem, 4vw, 2.2rem); }
.auth-card h1 { font-size: 1.7rem; }
.auth-card form + .fine, .auth-card form + form { margin-top: 1rem; }
.auth-pets { display: flex; margin: 0 0 1.1rem; }
.auth-pets .animal { border: 2.5px solid var(--paper); margin-right: -8px; transition: transform .5s var(--spring); }
.auth-pets .animal:hover { transform: translateY(-4px) rotate(-8deg); }

/* ---------- account page */
.acct { padding-top: 2rem; padding-bottom: 4rem; }
.acct-head { margin-bottom: 1rem; }
.acct-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); align-items: start; }
.panel { background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); padding: 1.3rem; box-shadow: var(--shadow-sm); }
.panel h2 { font-size: 1.12rem; margin: 0; }
.panel p { margin: 0; }
.panel .btn { align-self: flex-start; }
.danger-zone { border-color: #F1C7A8; }
.choice-list { display: flex; flex-direction: column; gap: .5rem; }
fieldset.choice-list { border: 0; padding: 0; margin: 0; min-width: 0; }
.field-legend { font-weight: 700; font-size: .95rem; padding: 0; margin-bottom: .45rem; }
.suggest-nudge { margin-top: 1.8rem; color: var(--muted); }
.suggest-nudge .ic { vertical-align: -4px; margin-right: .3rem; }
.suggest-nudge .ic { color: #E0A21C; }
.auth-card.wide { max-width: 34rem; }
.tips { padding-left: 1.1rem; margin: 1.2rem 0 0; }
.tips li { margin-bottom: .4rem; }
.restore-list { gap: .6rem; }
.restore-pet { padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: 14px; }
.restore-pet:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.restore-pet small { display: block; font-weight: 500; color: var(--muted); font-size: .86rem; margin-top: .15rem; }
.restore-pet .dup { color: var(--warn); }
.chip { display: inline-block; font-size: .78rem; font-weight: 800; border-radius: 999px; padding: .15rem .6rem; background: var(--line-2); color: var(--ink-2); vertical-align: middle; }
.chip.ok { background: var(--ok-tint); color: #1F5534; }
.chip.warn { background: var(--warn-tint); color: var(--warn); }

/* ---------- footer */
.foot { border-top: 1px solid var(--line); background: var(--paper); padding: 2.2rem 0 2.6rem; }
.foot-in { display: flex; flex-direction: column; gap: .9rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-weight: 700; }
.foot-links a { color: var(--ink); text-decoration: none; background: linear-gradient(var(--sun), var(--sun)) no-repeat 0 100% / 0 2px; transition: background-size .3s var(--ease-out); }
.foot-links a:hover { background-size: 100% 2px; }
.foot .fine { margin: 0; }

/* =====================================================================================================
   Motion. Everything below is decoration: pages work fully without it, and it all switches off for people
   who ask their device for reduced motion.
   ===================================================================================================== */

/* Page-to-page: a soft cross-fade with a small rise, the header staying put (Chrome, Edge, Safari 18+). */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .18s ease-in both; }
::view-transition-new(root) { animation: vt-in .32s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: no-preference) {
  /* "Take the tour" pulses: a sun-coloured ring that swells and fades every couple of seconds. */
  .hero [data-tour-play]::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; border: 3px solid #E9A21E; box-shadow: 0 0 14px 2px rgba(233,162,30,.45); pointer-events: none; animation: tour-pulse 2.2s cubic-bezier(.2,.7,.2,1) 1.4s infinite both; }
  .hero [data-tour-play]:hover::after { animation: none; opacity: 0; }
  .hero [data-tour-play] { animation: tour-beat 2.2s ease-in-out 1.4s infinite; }
  .hero [data-tour-play]:hover { animation: none; }
  /* Hero: the first screen arrives in a quick, staggered sequence. */
  .enter { animation: rise .8s var(--ease-out) both; }
  .e1 { animation-delay: .05s; } .e2 { animation-delay: .12s; } .e3 { animation-delay: .22s; } .e4 { animation-delay: .32s; } .e5 { animation-delay: .42s; }
  .hl { background-size: 0% 100%; animation: highlight .9s .7s var(--ease-out) forwards; }
  .spark-line { stroke-dashoffset: 1; animation: draw 1.6s .9s var(--ease-out) forwards; }
  .spark-dot { transform-box: fill-box; transform-origin: center; animation: pop .5s 2.3s var(--spring) both, pulse 2.4s 3s ease-in-out infinite; }
  .floater { animation: rise .9s var(--ease-out) both, bob 6s ease-in-out infinite; }
  .floater.f1 { animation-delay: .5s, 1.4s; } .floater.f2 { animation-delay: .62s, 2.4s; } .floater.f3 { animation-delay: .74s, .6s; } .floater.f4 { animation-delay: .86s, 3.2s; }
  .floater.f2 { animation-duration: .9s, 7s; } .floater.f3 { animation-duration: .9s, 6.6s; }
  .sum-log li { animation: rise .6s var(--ease-out) both; }
  .sum-log li:nth-child(1) { animation-delay: 1.2s; } .sum-log li:nth-child(2) { animation-delay: 1.35s; } .sum-log li:nth-child(3) { animation-delay: 1.5s; }

  /* Scroll reveals, driven by the scroll position itself (no JavaScript); browsers without it just show everything. */
  @supports (animation-timeline: view()) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
    .steps .step:nth-child(2) { animation-range: entry 6% cover 34%; }
    .steps .step:nth-child(3) { animation-range: entry 12% cover 38%; }
    .meter .mark { animation: slide linear both; animation-timeline: view(); animation-range: entry 10% cover 45%; }
    .top { animation: frost linear both; animation-timeline: scroll(root); animation-range: 0 120px; }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes tour-beat { 0%, 22%, 100% { scale: 1; } 8% { scale: 1.06; } 15% { scale: .99; } }
@keyframes tour-pulse { 0% { transform: scale(1); opacity: .95; } 70%, 100% { transform: scale(1.12, 1.45); opacity: 0; } }
@keyframes reveal { from { opacity: 0; transform: translateY(28px) scale(.985); } }
@keyframes highlight { to { background-size: 100% 100%; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { transform: scale(0); } }
@keyframes pulse { 0%, 100% { stroke-width: 2; } 50% { stroke-width: 6; stroke: rgba(229,102,75,.25); } }
@keyframes bob { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -10px; rotate: 3deg; } }
@keyframes slide { from { left: 50%; opacity: 0; } }
@keyframes frost { to { border-bottom-color: var(--line); box-shadow: 0 6px 24px -14px rgba(27,36,32,.3); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .phone, .paper { transform: none; }
}

/* ---------- print: the vet summary (and anything else) on paper, without the site around it. */
@media print {
  body { background: #fff; font-size: 10.5pt; }
  .top, .foot, .nudge, .skip, .btn, [data-print], .hero-glow, .floater, .ad-spot, .pet-head, .vet-ways, .vet-tools, .vet-send,
  .big-bar, .shared-bar, .suggest-nudge, .form-ok, .form-err, .promo { display: none !important; }
  .wrap, .shared, .big-wrap { max-width: none; padding: 0; }
  .summary, .summary.big { border: 0; box-shadow: none; padding: 0; font-size: 10.5pt; gap: 10pt; }
  .s-alerts { border: 1.5pt solid #E5664B; break-inside: avoid; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .s-sec { break-inside: avoid-page; }
  .wfig { max-width: 15cm; break-inside: avoid; }
  .panel, .step { border-color: #BBB; box-shadow: none; break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
  * { animation: none !important; }
}

