/* Pet Price Checker — own brand. Grown-up look (15 Oct 2026, second pass):
   paper + deep navy action colour, a separate forest green used ONLY for "Cheapest",
   Newsreader (display serif) + Public Sans (body, tabular figures). No borrowed palettes. */
:root {
  --bg: #f7f6f2;           /* paper */
  --surface: #ffffff;
  --surface-2: #efede7;    /* stone band */
  --ink: #14212b;          /* blue-black text */
  --muted: #4f5b64;        /* 6.6:1 on paper */
  --line: #dfdbd2;
  --line-strong: #c4beb2;
  --action: #1c3d63;       /* the ONE action colour: deep navy (10.9:1 with white) */
  --action-hover: #122b48;
  --action-ink: #ffffff;
  --action-tint: #eaf0f6;
  --deal: #1b6a44;         /* "Cheapest" only: forest green (6.4:1 on white) */
  --deal-tint: #ecf5ef;
  --warn-soft: #f7efda;
  --warn-ink: #5c4200;
  --foot-bg: #121c23; --foot-ink: #eef1f3; --foot-muted: #b3bdc4; --foot-line: rgba(255,255,255,.14);
  --radius: 8px;
  --radius-sm: 6px;
  --tap: 48px;
  --head: "Newsreader", "Iowan Old Style", Georgia, serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* pack colours (as printed on the boxes) */
  --pk-orange: #ee7d1e; --pk-yellow: #f0c419; --pk-green: #2e9a4e; --pk-purple: #7a40ad;
  --pk-red: #d22a31; --pk-blue: #1f6fc6;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1418; --surface: #161d22; --surface-2: #121a1f; --ink: #e9edf0; --muted: #a9b3ba;
    --line: #2a343b; --line-strong: #3d4a53;
    --action: #a9c6ec; --action-hover: #c4d9f4; --action-ink: #0f1418; --action-tint: #1a2737;
    --deal: #7dd3a4; --deal-tint: #14281e; --warn-soft: #2d2512; --warn-ink: #ecd69c;
    --foot-bg: #0a0e11; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1418; --surface: #161d22; --surface-2: #121a1f; --ink: #e9edf0; --muted: #a9b3ba;
  --line: #2a343b; --line-strong: #3d4a53;
  --action: #a9c6ec; --action-hover: #c4d9f4; --action-ink: #0f1418; --action-tint: #1a2737;
  --deal: #7dd3a4; --deal-tint: #14281e; --warn-soft: #2d2512; --warn-ink: #ecd69c;
  --foot-bg: #0a0e11; color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16.5px/1.6 var(--body); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: var(--action); text-underline-offset: 3px; text-decoration-thickness: 1px; }
img, svg { max-width: 100%; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 900px) { .wrap { padding: 0 40px; } }
h1, h2, h3 { text-wrap: balance; font-family: var(--head); font-weight: 500; line-height: 1.12; letter-spacing: -.012em; font-optical-sizing: auto; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 4px; z-index: 9; }
.skip:focus { left: 8px; }
.eyebrow { margin: 0 0 14px; font-weight: 600; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* Header + wordmark */
.site-head { border-bottom: 1px solid var(--line); background: var(--bg); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand-mark { width: 28px; height: 28px; flex: 0 0 auto; color: var(--action); }
.brand-word { font-family: var(--head); font-weight: 600; font-size: 1.32rem; letter-spacing: -.01em; }
.head-tag { font-size: .8rem; font-weight: 500; color: var(--muted); letter-spacing: .01em; }
.head-tag .dot { margin: 0 4px; }
@media (max-width: 520px) { .head-tag { display: none; } }

/* Hero */
.hero { padding: 28px 0 28px; }
.hero-grid { display: grid; gap: 24px; align-items: center; }
.hero h1 { font-size: clamp(2.05rem, 7vw, 3.5rem); margin: 0 0 18px; max-width: 15em; }
.hero h1 .hl { font-style: italic; color: var(--action); white-space: nowrap; }
.lead { font-size: 1.06rem; color: var(--muted); margin: 0 0 24px; max-width: 34em; }
.lead strong { color: var(--ink); font-weight: 600; }
.trust { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 22px; max-width: 40em; }
.trust li { display: inline-flex; align-items: center; gap: 7px; font-size: .88rem; font-weight: 500; color: var(--ink); }
.trust svg { width: 17px; height: 17px; color: var(--deal); flex: 0 0 auto; }
.hero-art { display: block; margin: 0; order: -1; }
.hero-art img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: 28% 70%; border-radius: var(--radius); background: var(--surface-2); }
@media (min-width: 900px) {
  .hero { padding: 56px 0 52px; }
  .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 64px; }
  .hero-art { order: 0; }
  .hero-art img { aspect-ratio: 5 / 4; object-fit: cover; object-position: 28% 70%; border-radius: var(--radius); background: var(--surface-2); }
}

/* Layout: picker + results */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 8px 16px 48px; }
.layout > * { min-width: 0; }
@media (min-width: 900px) {
  .layout { grid-template-columns: 380px minmax(0, 1fr); gap: 48px; align-items: start; padding-top: 8px; padding-bottom: 72px; padding-left: 40px; padding-right: 40px; }
  .picker { position: sticky; top: 20px; }
}
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.panel + .panel { margin-top: 12px; }
.step { font-size: 1.22rem; font-weight: 500; margin: 0 0 14px; display: flex; align-items: center; gap: 12px; }
.num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 4px; border: 1px solid var(--line-strong); color: var(--muted); font: 600 .78rem/1 var(--body); font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.hint { font-size: .85rem; color: var(--muted); margin: 14px 0 0; }

/* Tiles */
.tiles { display: grid; gap: 8px; }
.tiles.prod { grid-template-columns: 1fr 1fr; }
.tiles.bands { grid-template-columns: 1fr 1fr; }
.tile {
  appearance: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer;
  min-height: 56px; width: 100%; padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line-strong);
  display: flex; align-items: center; gap: 10px; position: relative;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.tile:hover { border-color: var(--action); }
.tile[aria-pressed="true"] { border-color: var(--action); background: var(--action-tint); box-shadow: inset 0 0 0 1px var(--action); }
.tile[aria-pressed="true"]::after {
  content: ""; position: absolute; top: 7px; right: 7px; width: 14px; height: 14px;
  background: var(--action);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.tile .t-main { display: block; font-weight: 600; line-height: 1.25; }
.tile .t-sub { display: block; font-size: .78rem; color: var(--muted); font-weight: 400; margin-top: 2px; }
.prod .tile { flex-direction: column; align-items: flex-start; justify-content: center; min-height: 76px; padding: 12px 26px 12px 14px; }
.prod .tile .t-main { font-family: var(--head); font-size: 1.1rem; font-weight: 600; letter-spacing: -.005em; }
.swatch { width: 14px; height: 14px; border-radius: 3px; flex: 0 0 auto; box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); }
.sw-orange { background: var(--pk-orange); } .sw-yellow { background: var(--pk-yellow); } .sw-green { background: var(--pk-green); }
.sw-purple { background: var(--pk-purple); } .sw-red { background: var(--pk-red); } .sw-blue { background: var(--pk-blue); }
.bands .tile { padding: 10px 26px 10px 12px; align-items: flex-start; }
.bands .tile .swatch { margin-top: 4px; }
.bands .tile .t-main { font-size: .95rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .panel { padding: 18px 14px; } }
.empty-inline { color: var(--muted); margin: 0; grid-column: 1 / -1; font-size: .92rem; }

/* Results */
.empty-state { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 40px 20px; text-align: center; color: var(--muted); }
.empty-state svg { width: 40px; height: 40px; color: var(--line-strong); }
.empty-state strong { color: var(--ink); font-weight: 600; }
.res-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin: 0 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.res-head h2 { margin: 0; font-size: clamp(1.5rem, 4.6vw, 2rem); font-variant-numeric: lining-nums; }
.res-head .band-chip { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 500; color: var(--muted); }
.saving { background: var(--deal-tint); color: var(--ink); border-left: 3px solid var(--deal); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 12px 16px; margin: 0 0 16px; font-size: .94rem; font-variant-numeric: tabular-nums; }
.saving strong { color: var(--deal); font-weight: 700; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 3px; gap: 2px; margin: 0 0 16px; background: var(--surface); }
.seg button { appearance: none; border: 0; background: transparent; font: inherit; font-weight: 500; font-size: .9rem; color: var(--muted); min-height: 44px; padding: 0 16px; border-radius: 4px; cursor: pointer; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); font-weight: 600; }

/* Results list: a ruled comparison table, finance-site style */
.offers-head { display: none; }
ol.offers { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.offer {
  padding: 16px; display: grid; gap: 8px 16px; grid-template-columns: minmax(0, 1fr) auto; align-items: start;
  border-top: 1px solid var(--line);
}
.offer:first-child { border-top: 0; }
.offer.best { background: var(--deal-tint); box-shadow: inset 3px 0 0 var(--deal); }
.badge-best { display: flex; gap: 6px; align-items: center; color: var(--deal); font-weight: 700; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 6px; }
.badge-best svg { width: 14px; height: 14px; }
.o-shop { min-width: 0; }
.o-rank { display: inline-block; min-width: 1.6em; color: var(--muted); font-weight: 500; font-size: .9rem; font-variant-numeric: tabular-nums; }
.o-name { font-weight: 600; font-size: 1.04rem; }
.o-seller { display: block; font-size: .84rem; color: var(--muted); margin: 2px 0 0 1.6em; }
.o-price { text-align: right; }
.o-per { font-weight: 600; font-size: 1.6rem; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.offer.best .o-per { color: var(--deal); font-weight: 700; }
.o-per-lbl { display: block; font-size: .74rem; font-weight: 500; color: var(--muted); margin-top: 5px; }
.o-meta { grid-column: 1 / -1; color: var(--muted); font-size: .88rem; margin: 0; font-variant-numeric: tabular-nums; padding-left: 1.6em; }
.o-meta b { color: var(--ink); font-weight: 600; }
.o-flags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; padding-left: 1.6em; }
.flag { font-size: .74rem; font-weight: 600; padding: 2px 8px; border-radius: 3px; background: var(--warn-soft); color: var(--warn-ink); }
.o-note { grid-column: 1 / -1; font-size: .8rem; line-height: 1.5; color: var(--muted); margin: 0; padding-left: 1.6em; }
.o-go { grid-column: 1 / -1; }
.btn-go {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; padding: 10px 18px;
  border: 1px solid var(--action); border-radius: var(--radius-sm); background: var(--action); color: var(--action-ink); font: inherit; font-weight: 600; font-size: .95rem;
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s;
}
.btn-go:hover { background: var(--action-hover); border-color: var(--action-hover); }
.btn-go.ghost { background: var(--surface); color: var(--action); border-color: var(--line-strong); }
.btn-go.ghost:hover { border-color: var(--action); background: var(--action-tint); }
.btn-go svg { width: 18px; height: 18px; flex: 0 0 auto; }
.o-go .btn-go { white-space: nowrap; }
@media (min-width: 640px) {
  .offers-head { display: grid; grid-template-columns: minmax(0, 1fr) 120px 140px; column-gap: 20px; padding: 0 17px 8px; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
  .offers-head span:nth-child(2) { text-align: right; }
  .offer { grid-template-columns: minmax(0, 1fr) 120px 140px; column-gap: 20px; row-gap: 6px; padding: 18px 16px 18px 16px; }
  .o-shop { grid-column: 1; grid-row: 1; }
  .o-price { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .o-go { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
  .o-meta { grid-column: 1; grid-row: 2; }
  .o-flags, .o-note { grid-column: 1 / -1; }
}
.sub-p { font-size: .88rem; color: var(--muted); margin: 0 0 12px; }
.res-foot { font-size: .8rem; color: var(--muted); margin: 16px 0 0; }

/* Show-more + collapsed "delivery at checkout" group */
.more { margin: 12px 0 0; }
.btn-more { appearance: none; width: 100%; min-height: 48px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font: inherit; font-weight: 600; font-size: .93rem; cursor: pointer; }
.btn-more:hover { border-color: var(--action); color: var(--action); }
.later { background: transparent; border: 0; border-top: 0; margin: 20px 0 0; }
.later > summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .93rem; }
.later[open] > summary { margin-bottom: 10px; }
.later > :not(summary) { margin: 0 0 12px; }
.later .sub-p { margin: 0 0 12px; }

/* Reminder band */
.remind-wrap { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 40px 0; }
.remind { display: grid; gap: 24px; }
.remind h2 { font-size: clamp(1.6rem, 5vw, 2.3rem); margin: 0 0 12px; max-width: 14em; }
.remind p { margin: 0; }
.remind-copy p:not(.eyebrow) { color: var(--muted); max-width: 30em; }
.remind-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
@media (min-width: 900px) { .remind-wrap { padding: 72px 0; } .remind { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; } .remind-form { padding: 28px; } }
.field { margin: 0 0 14px; }
label { display: block; font-weight: 600; margin: 0 0 6px; font-size: .88rem; }
input[type="email"], input[type="date"] {
  width: 100%; min-height: var(--tap); padding: 10px 12px; font: inherit; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface);
}
input[type="email"]:focus, input[type="date"]:focus { border-color: var(--action); outline: none; box-shadow: 0 0 0 3px var(--action-tint); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .86rem; line-height: 1.5; margin: 4px 0 14px; cursor: pointer; color: var(--ink); }
.check input { width: 22px; height: 22px; margin: 0; flex: 0 0 auto; accent-color: var(--action); }
.remind-form .btn-go { margin-top: 4px; }
.formmsg { margin: 10px 0 0; font-weight: 600; font-size: .9rem; }
.formmsg:empty { display: none; }
.test-banner { background: var(--warn-soft); color: var(--warn-ink); border-radius: 4px; padding: 8px 12px; font-size: .8rem; margin: 14px 0 0; }

/* FAQ: ruled rows, no boxes */
.faq { padding-top: 48px; padding-bottom: 56px; }
.faq > * { max-width: 820px; }
.faq h2 { font-size: clamp(1.5rem, 4.6vw, 2rem); margin: 0 0 18px; }
details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
summary { font-weight: 600; cursor: pointer; padding: 16px 44px 16px 0; min-height: 48px; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
details[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
details > :not(summary) { margin: 0 0 14px; color: var(--muted); }
details li { margin-bottom: 6px; }
details strong { color: var(--ink); font-weight: 600; }
details ul { padding-left: 20px; }
.later > summary { padding-left: 16px; }
.later > summary::after { right: 18px; }

/* Footer */
.site-foot { background: var(--foot-bg); color: var(--foot-ink); padding: 44px 0 24px; }
.site-foot a { color: var(--foot-ink); }
.brand-foot { color: var(--foot-ink); }
.brand-foot .brand-mark { color: var(--foot-ink); }
.foot-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1fr 2fr; gap: 64px; } }
.foot-small { color: var(--foot-muted); font-size: .86rem; margin: 8px 0 0; }
.disclosure h2 { font-family: var(--body); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--foot-muted); margin: 6px 0 10px; }
.disclosure p { color: var(--foot-muted); font-size: .88rem; margin: 0 0 10px; }
.foot-base { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--foot-line); display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: .82rem; color: var(--foot-muted); }
.foot-base a { min-height: 24px; }

/* Privacy page (shares this stylesheet) */
.doc { max-width: 760px; padding-top: 24px; padding-bottom: 56px; }
.doc h1 { font-size: clamp(2rem, 5.5vw, 2.8rem); margin: 12px 0 8px; }
.doc h2 { font-size: 1.35rem; margin: 30px 0 8px; }
.doc .btn-go { min-height: 46px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* City picker */
.tiles.locs { grid-template-columns: 1fr 1fr; gap: 8px; }
@media (min-width: 420px) and (max-width: 899px) { .tiles.locs { grid-template-columns: 1fr 1fr 1fr 1fr; } }
.locs .tile { min-height: 50px; padding: 8px 24px 8px 12px; }
.locs .tile .t-main { font-size: .95rem; }
.locs .tile .t-sub { font-size: .74rem; }
.locs .tile.wide { grid-column: span 2; }
.picked { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--action-tint); border: 1px solid var(--action); border-radius: var(--radius-sm); padding: 8px 8px 8px 12px; }
.picked .t-main { display: block; font-weight: 600; font-size: 1.02rem; line-height: 1.25; }
.picked .t-sub { display: block; font-size: .78rem; color: var(--muted); }
.picked > span { flex: 1 1 auto; min-width: 0; }
.pin { width: 20px; height: 20px; flex: 0 0 auto; color: var(--action); }
.btn-change { appearance: none; font: inherit; font-weight: 600; font-size: .88rem; min-height: 44px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--action); cursor: pointer; }
.btn-change:hover { border-color: var(--action); }
.pc-note { flex: 1 0 100%; font-size: .78rem; color: var(--muted); }
.pc { margin: 16px 0 0; }
.pc label { font-size: .86rem; }
.pc-approx { font-weight: 400; color: var(--muted); }
.pc-row { display: flex; gap: 8px; }
.pc-row input { flex: 1 1 auto; min-width: 0; min-height: var(--tap); padding: 10px 12px; font: inherit; color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); font-variant-numeric: tabular-nums; }
.pc-row input:focus { border-color: var(--action); outline: none; box-shadow: 0 0 0 3px var(--action-tint); }
.btn-pc { appearance: none; flex: 0 0 auto; font: inherit; font-weight: 600; font-size: .9rem; min-height: var(--tap); padding: 0 16px; border-radius: var(--radius-sm); border: 1px solid var(--ink); background: var(--ink); color: var(--bg); cursor: pointer; }
.pc-msg { margin: 8px 0 0; font-size: .84rem; font-weight: 600; color: var(--warn-ink); }
.pc-msg:empty { display: none; }
.place-line { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 14px; font-size: .92rem; }
.place-line .pin { width: 18px; height: 18px; }
.place-line > span { flex: 1 1 12em; min-width: 0; }
.place-line strong { font-weight: 600; }
.place-line.ask { background: var(--warn-soft); color: var(--warn-ink); border-radius: var(--radius-sm); padding: 6px 12px; }
.place-line.ask .pin { color: var(--warn-ink); }
.place-line.ask strong { color: inherit; }
.place-change { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.place-line.ask .place-change { color: var(--warn-ink); }
