/* ============================================================
   CLUB HACHIKO DESIGN SYSTEM — design.css
   Single source of truth. Replaces per-page <style> blocks,
   mascot.css, and all patch layers as pages migrate.
   Tokens follow DESIGN_SYSTEM.md.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700;9..144,800&display=swap');

/* ---------- Tokens ---------- */
:root {
  --blue: #3939FF;
  --blue-dark: #2929DD;
  --blue-soft: #EEF0FF;
  --ink: #1A1A2E;
  --muted: #5A5A78;
  --line: #E8EAFF;
  --bg: #F8F9FF;
  --sand: #FFF7E8;
  --sand-line: #F2E5C4;
  --white: #FFFFFF;

  --shadow-sm: 0 8px 18px rgba(57, 57, 255, .06);
  --shadow-md: 0 12px 28px rgba(57, 57, 255, .08);
  --shadow-lg: 0 16px 36px rgba(57, 57, 255, .10);

  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --space-1: 8px;  --space-2: 12px; --space-3: 16px; --space-4: 24px;
  --space-5: 32px; --space-6: 40px; --space-7: 56px; --space-8: 72px;

  --container: 1160px;
  --reading: 900px;

  --font-head: 'Nunito', sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Poppins', sans-serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: linear-gradient(180deg, #fff 0%, #f6f8ff 100%);
  color: var(--ink);
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

h1, h2 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; color: var(--ink); }
h3 { font-family: var(--font-head); line-height: 1.12; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 4.6vw, 4rem); letter-spacing: -1px; margin-bottom: 18px; }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.6rem); letter-spacing: -.4px; margin-bottom: 12px; }
h3 { font-size: 1.18rem; margin-bottom: 10px; }
p, li { color: var(--muted); }
.section-head p, .hero-copy, .subtitle, .card p, .panel p { max-width: 62ch; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--container); margin: 0 auto; min-height: 80px;
  padding: 14px 24px; display: flex; align-items: center;
  justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.logo, .nav-logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-head); font-weight: 900; color: var(--blue);
}
.logo img, .nav-logo img {
  width: 52px; height: 52px; border-radius: 14px; object-fit: contain;
  background: #fff; padding: 4px; box-shadow: var(--shadow-sm);
}
.logo span, .nav-logo span { font-size: 1.2rem; letter-spacing: -.3px; }
.nav-links { display: flex; align-items: center; gap: 20px; list-style: none; flex-wrap: wrap; }
.nav-links a { font-size: .95rem; font-weight: 600; color: var(--muted); }
.nav-links a:hover { color: var(--blue); }
.nav-cta {
  background: var(--blue); padding: 12px 18px;
  border-radius: var(--radius-pill); font-weight: 800; box-shadow: var(--shadow-lg);
}
.nav-cta, .nav-cta:link, .nav-cta:visited, .nav-cta:hover, .nav-cta:active {
  color: #fff !important; -webkit-text-fill-color: #fff !important;
}

/* ---------- Buttons ---------- */
.btn, .cta-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 13px 20px;
  border-radius: var(--radius-pill); font-weight: 800;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover, .cta-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary { background: var(--blue); }
.btn-primary, .btn-primary:link, .btn-primary:visited, .btn-primary:hover, .btn-primary:active {
  color: #fff !important; -webkit-text-fill-color: #fff !important;
}
.btn-primary *, .nav-cta * { color: inherit !important; -webkit-text-fill-color: currentColor !important; }
.btn-secondary { background: #fff; color: var(--blue); border: 1px solid var(--line); }

/* ---------- Sections & bands ---------- */
.section { padding: var(--space-8) 0; }
.hero { padding: 72px 0 56px; background: radial-gradient(circle at top left, rgba(57,57,255,.10), transparent 30%), linear-gradient(180deg, #fff 0%, #f6f8ff 100%); }
.hero h1 {
  font-weight: 800;
  font-size: clamp(2.5rem, 4.8vw, 4.3rem);
  line-height: 1.04;
  letter-spacing: -1.2px;
}
.hero h1 .accent { color: var(--blue); }
@keyframes hero-float { from { transform: translateY(0); } to { transform: translateY(-8px); } }
.hero-card--float { animation: hero-float 5s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) { .hero-card--float { animation: none; } }
.section-head { max-width: 760px; margin-bottom: var(--space-5); }
.eyebrow, .kicker {
  display: inline-block; background: var(--blue-soft); color: var(--blue-dark);
  border: 1px solid #dcdcff;
  padding: 7px 14px; border-radius: var(--radius-pill);
  font-size: .84rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .6px; margin-bottom: var(--space-3);
}
.band-tint { background: linear-gradient(180deg, #F8F9FF 0%, #EEF0FF 100%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-sand { background: linear-gradient(180deg, #FFF7E8 0%, #FFFDF8 100%); border-top: 1px solid var(--sand-line); border-bottom: 1px solid var(--sand-line); }
.band-blue { background: linear-gradient(135deg, #3939FF 0%, #5555FF 100%); color: #fff; }
.band-blue h2, .band-blue h3, .band-blue .kicker { color: #fff; }
.band-blue .kicker { background: rgba(255, 255, 255, .16); }
.band-blue p, .band-blue li { color: rgba(255, 255, 255, .92); }
.band-blue .panel, .band-blue .card { background: rgba(255, 255, 255, .10); border-color: rgba(255, 255, 255, .18); box-shadow: none; }

/* ---------- Grids, cards, panels ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card, .panel {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--space-4);
  box-shadow: var(--shadow-md); position: relative;
}
.card { transition: transform .15s ease, box-shadow .15s ease; }
a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card p, .panel p { margin-bottom: var(--space-2); }
.jump, .card-link { font-weight: 800; color: var(--blue); }

/* ---------- Hero layout ---------- */
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 30px; align-items: center; }
.hero-copy { font-size: 1.08rem; margin-bottom: var(--space-4); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: var(--space-4); }
.hero-path {
  background: #fff; border: 1px solid var(--line);
  border-radius: 20px; padding: 16px 18px; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.hero-path:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.hero-path strong { display: block; font-family: var(--font-head); font-size: 1.02rem; color: var(--ink); margin-bottom: 6px; }
.hero-path span { display: block; color: var(--muted); font-size: .93rem; margin-bottom: 10px; }
.hero-path em { font-style: normal; font-weight: 800; color: var(--blue); }
.hero-card { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 18px; box-shadow: var(--shadow-lg); }
.hero-main { border-radius: var(--radius-lg); overflow: hidden; }
.hero-main img { width: 100%; aspect-ratio: 3/2; object-fit: contain; background: #fff; }

/* ---------- Spotlight (featured product) ---------- */
.spotlight { display: grid; grid-template-columns: .72fr 1.28fr; gap: 22px; align-items: center; }
.spotlight .image-wrap {
  background: linear-gradient(180deg, #EEF0FF 0%, #fff 100%);
  border: 1px solid var(--line); border-radius: 26px; padding: 18px;
}
.spotlight .image-wrap img { max-height: 320px; object-fit: contain; margin: 0 auto; }
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; margin: var(--space-3) 0 20px; }
.pill { background: var(--blue-soft); color: var(--blue); padding: 8px 12px; border-radius: var(--radius-pill); font-weight: 700; font-size: .9rem; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.stat strong { display: block; color: var(--blue); font-family: var(--font-head); font-size: 1.3rem; }
.stat span { color: var(--muted); font-size: .92rem; }

/* ---------- Mascot system (dogs live in the typography) ---------- */
.mascot { height: 1.25em; width: auto; vertical-align: -0.28em; margin: 0 0.3em 0 0; display: inline-block; }
.mascot--after { margin: 0 0 0 0.35em; }
.mascot--lg { height: 1.6em; vertical-align: -0.45em; }
h1:has(> .mascot), h2:has(> .mascot), h3:has(> .mascot) { display: flex; align-items: center; gap: .35em; }
h1:has(> .mascot) .mascot, h2:has(> .mascot) .mascot, h3:has(> .mascot) .mascot { margin: 0; flex: 0 0 auto; }
.btn .mascot, .cta-btn .mascot { height: 1.3em; vertical-align: -0.35em; }
.btn-primary .mascot, .nav-cta .mascot { filter: brightness(0) invert(1); }
.btn:hover .mascot--after, .cta-btn:hover .mascot--after { animation: mascot-wag .5s ease; }
@keyframes mascot-wag { 0%,100% { transform: rotate(0); } 30% { transform: rotate(-8deg); } 60% { transform: rotate(8deg); } }
@media (prefers-reduced-motion: reduce) {
  .btn:hover .mascot--after, .cta-btn:hover .mascot--after { animation: none; }
  .btn, .cta-btn, .card, .hero-path { transition: none; }
}

/* Badge icons — uniform card icon system (icons/badge-*.png) */
.badge-icon { width: 64px; height: 64px; object-fit: contain; margin-bottom: 12px; }
.card img.badge-icon, .panel img.badge-icon, .hero-path img.badge-icon {
  width: 64px; height: 64px; aspect-ratio: 1/1;
  border-radius: 0; box-shadow: none; background: none; padding: 0;
}
.hero-path img.badge-icon { width: 48px; height: 48px; margin-bottom: 8px; }

/* Hachiko note chip */
.mascot-note {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255, 247, 232, .92); border: 1px solid var(--sand-line);
  border-radius: var(--radius-lg); padding: 14px 16px; margin: 18px 0 20px;
  box-shadow: var(--shadow-sm); max-width: 660px;
}
.mascot-note img { width: 58px; height: 58px; flex: 0 0 auto; }
.mascot-note strong { display: block; color: var(--ink); font-family: var(--font-head); font-size: 1rem; line-height: 1.15; }
.mascot-note span { display: block; color: var(--muted); font-size: .94rem; line-height: 1.45; margin-top: 3px; }

/* Paw bullets */
ul.paw-list { list-style: none; padding-left: 0; margin: 0; }
ul.paw-list li { position: relative; padding-left: 26px; margin-bottom: 8px; }
ul.paw-list li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 15px; height: 15px;
  background: url("/paw-doodle.svg") no-repeat center / contain; opacity: .85;
}

/* Card label chip */
.tiny-path {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 9px;
  color: var(--blue); font-weight: 900; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .6px;
}
/* tiny-path icon retired: sub-16px icons read as noise */

/* Article sign-off stamp */
.hachiko-signoff { text-align: center; margin: var(--space-6) 0 8px; font-size: .875rem; color: #8a8aa3; }
.hachiko-signoff img { height: 44px; display: block; margin: 0 auto 6px; }

/* ---------- Footer ---------- */
footer { background: var(--ink); color: rgba(255, 255, 255, .86); padding: 46px 24px; }
.footer-inner { max-width: var(--container); margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a, footer a { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .grid-2, .grid-3, .spotlight, .stats, .hero-paths { grid-template-columns: 1fr 1fr; }
  .spotlight .image-wrap { order: -1; }
}
@media (max-width: 720px) {
  .nav-inner, .container { padding-left: 18px; padding-right: 18px; }
  .hero { padding: 60px 0 44px; }
  .section { padding: var(--space-7) 0; }
  .hero-grid, .grid-2, .grid-3, .spotlight, .stats, .hero-paths { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; width: 100%; }
  h1 { font-size: 2.6rem; }
  .mascot-note { align-items: flex-start; }
  .mascot-note img { width: 48px; height: 48px; }
}

/* ============================================================
   ARTICLE TEMPLATE COMPONENTS
   ============================================================ */
.container--reading { max-width: var(--reading); }
.article-hero { padding: 72px 0 40px; }
.article-hero h1 { font-size: clamp(2rem, 3.4vw, 2.9rem); letter-spacing: -.8px; line-height: 1.15; }
.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: var(--space-4); }
.breadcrumb a { color: var(--blue); }
.subtitle { font-size: 1.05rem; color: var(--muted); margin-bottom: 20px; }
article h2 { margin: var(--space-7) 0 var(--space-3); }
article h3 { margin: 24px 0 10px; }
article > p, article li { font-size: 1rem; }
article p { margin-bottom: 20px; line-height: 1.75; }
article { padding-bottom: var(--space-6); }

/* Content blocks — quiet by design.
   Rule: prose is the default; a block is an interruption and must earn it.
   Only the CTA box and signup block get weight. Everything else is a
   left-accent strip that stays inside the reading rhythm. */
.lead-card, .callout, .checklist {
  background: var(--bg);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 22px 26px;
  margin: var(--space-5) 0;
}
.lead-card h3 {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .8px;
  color: var(--blue); margin-bottom: 6px;
}
.callout h3, .checklist h3 { font-size: 1.05rem; margin: 16px 0 4px; }
.callout h3:first-child, .checklist h3:first-child { margin-top: 0; }
.lead-card p { color: var(--ink); font-size: 1.02rem; }
.lead-card p:last-child, .callout p:last-child, .checklist p:last-child { margin-bottom: 0; }
.checklist ol, .callout ol { margin: 0 0 0 20px; }
.checklist li, .callout li { margin-bottom: 8px; }
.checklist li:last-child, .callout li:last-child { margin-bottom: 0; }
.next-steps {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: var(--space-4);
  margin: var(--space-6) 0;
}
.next-steps ul { list-style: none; margin: 0; }
.next-steps li { margin-bottom: 8px; }
/* quick-grid retired: single-sentence cards scatter the eye (kept minimal for unmigrated pages) */
.quick-grid { display: none; }

/* Safety blocks */
.danger, .warning-box {
  background: #FFF3F0; border: 1px solid #F5CDC2;
  border-radius: var(--radius-md); padding: 18px 20px; margin: var(--space-4) 0;
}
.danger strong, .warning-box strong { color: #B03A2E; }

/* Vet message template block */
.template {
  background: var(--bg); border: 1px dashed var(--line);
  border-radius: var(--radius-md); padding: 20px;
  white-space: pre-line; color: var(--muted); margin: var(--space-3) 0 var(--space-4);
}

/* Blue CTA box */
.cta-box {
  background: linear-gradient(135deg, #3939FF 0%, #5555FF 100%); color: #fff;
  border-radius: var(--radius-lg); padding: var(--space-5);
  margin: var(--space-7) 0; box-shadow: var(--shadow-lg);
}
.cta-box h3, .cta-box p { color: #fff !important; }
.cta-box p { opacity: .92; }
.cta-btn, .cta-btn:link, .cta-btn:visited, .cta-btn:hover, .cta-btn:active,
.cta-box a.cta-btn {
  background: #fff !important; color: var(--blue) !important;
  -webkit-text-fill-color: var(--blue) !important;
  margin-top: 12px;
}
.button-row { display: flex; gap: 12px; flex-wrap: wrap; }
.secondary-btn {
  display: inline-flex; align-items: center; min-height: 46px;
  padding: 12px 18px; border-radius: var(--radius-pill); font-weight: 800;
  background: rgba(255,255,255,.14); color: #fff !important; border: 1px solid rgba(255,255,255,.4);
  margin-top: 12px;
}

/* Links inside prose */
.internal-link { color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* Comparison table */
table.compare { width: 100%; border-collapse: collapse; margin: var(--space-4) 0; background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
table.compare th, table.compare td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
table.compare th { background: var(--blue-soft); color: var(--ink); font-family: var(--font-head); }
table.compare tr:last-child td { border-bottom: none; }

/* Email capture / lead magnet block */
.hachiko-signup {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--blue-soft); border: 1px solid #dcdcff;
  border-radius: var(--radius-lg); padding: var(--space-4) 28px; margin: var(--space-6) 0;
}
.hachiko-signup img { height: 64px; flex: 0 0 auto; }
.hachiko-signup strong { display: block; font-family: var(--font-head); font-size: 1.15rem; color: var(--ink); margin-bottom: 4px; }
.hachiko-signup p { font-size: .95rem; margin-bottom: 12px; }
.hachiko-signup .btn { min-height: 42px; }
@media (max-width: 560px) { .hachiko-signup { flex-direction: column; } }

/* Legacy article classes (page-wrap family) */
.intro { font-size: 1.05rem; color: var(--muted); margin-bottom: 20px; max-width: 62ch; }
.small { font-size: .85rem; color: #8a8aa3; margin: var(--space-5) 0 0; }
.related {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: var(--space-4); margin: var(--space-6) 0;
  display: flex; flex-direction: column; gap: 8px;
}
.related strong { font-family: var(--font-head); color: var(--ink); }
.related a { color: var(--blue); font-weight: 700; }

/* ============================================================
   PRODUCT / COMPARISON PAGE COMPONENTS
   ============================================================ */
.hero--sub { padding: 64px 0 48px; }
.hero--sub h1 { font-size: clamp(2rem, 3.4vw, 3rem); letter-spacing: -.8px; line-height: 1.12; }
.badge {
  display: inline-block; background: var(--blue); color: #fff;
  padding: 6px 14px; border-radius: var(--radius-pill);
  font-size: .78rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .8px; margin-bottom: var(--space-3);
}
.disclosure, .soft-disclosure {
  font-size: .85rem; color: #8a8aa3; margin-top: var(--space-3); max-width: 62ch;
}
.shop-intro { max-width: 62ch; margin-bottom: var(--space-4); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.shop-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.shop-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.shop-image { display: block; background: #fff; padding: 18px; }
.shop-image img { width: 100%; max-height: 200px; aspect-ratio: 1/1; object-fit: contain; margin: 0 auto; }
.shop-body { display: flex; flex-direction: column; gap: 6px; padding: 4px 18px 18px; }
.shop-body h3 { font-size: 1.05rem; margin: 0; }
.shop-body p { font-size: .92rem; color: var(--muted); margin: 0; }
.shop-action { font-weight: 800; color: var(--blue); margin-top: 6px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.review-pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.pillar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px; }
.pillar strong { display: block; font-family: var(--font-head); color: var(--ink); margin-bottom: 4px; }
.pillar span { font-size: .92rem; color: var(--muted); }
@media (max-width: 720px) { .grid, .cards { grid-template-columns: 1fr; } }

/* ============================================================
   MIGRATED-PAGE COMPONENTS (former inline styles)
   ============================================================ */
/* verdicts, callouts, disclaimers */
.verdict-box {
  background: var(--blue-soft); border: 1px solid #dcdcff;
  border-radius: var(--radius-lg); padding: var(--space-4) 28px; margin: var(--space-5) 0;
}
.verdict-box h3 { margin-top: 0; }
.warning-callout { background: #FFF3F0; border: 1px solid #F5CDC2; border-radius: var(--radius-md); padding: 18px 20px; margin: var(--space-4) 0; }
.warning-callout strong { color: #B03A2E; }
.troubleshoot-box { background: var(--bg); border-left: 4px solid var(--blue); border-radius: 0 var(--radius-md) var(--radius-md) 0; padding: 22px 26px; margin: var(--space-5) 0; }
.footer-disclaimer { font-size: .85rem; color: rgba(255,255,255,.7); }
.cta { background: linear-gradient(135deg, #3939FF 0%, #5555FF 100%); color: #fff; border-radius: var(--radius-lg); padding: var(--space-5); margin: var(--space-7) 0; box-shadow: var(--shadow-lg); }
.cta h2, .cta p { color: #fff; }
.cta .btn { background: #fff !important; color: var(--blue) !important; -webkit-text-fill-color: var(--blue) !important; margin-top: 10px; }
.small-link { font-weight: 700; color: var(--blue); }
.badge-good, .badge-ok { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.badge-good { background: #ECFDF3; color: #147A4A; }
.badge-ok { background: var(--sand); color: #7B5721; }
.comparison-wrap { overflow-x: auto; margin: var(--space-4) 0; }

/* results timeline (how-long article) */
.timeline { margin: var(--space-5) 0; }
.timeline-item { display: flex; gap: 18px; }
.timeline-left { display: flex; flex-direction: column; align-items: center; }
.timeline-dot {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto;
  background: var(--blue); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-head);
}
.timeline-line { width: 3px; flex: 1; background: var(--line); margin: 6px 0; border-radius: 3px; }
.timeline-item:last-child .timeline-line { display: none; }
.timeline-content { padding-bottom: var(--space-5); }
.timeline-content h3 { margin-top: 4px; }

/* product-page extras */
.comparison-upgrade, .related-upgrade { padding: var(--space-8) 0; }
.decision-table-wrap { overflow-x: auto; margin: var(--space-4) 0; }
table.decision-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
table.decision-table th, table.decision-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
table.decision-table th { background: var(--blue-soft); color: var(--ink); font-family: var(--font-head); }
table.decision-table tr:last-child td { border-bottom: none; }
.buyer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: var(--space-5) 0; }
.buyer-note { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-4); box-shadow: var(--shadow-sm); }
.buyer-note ul { margin: 0 0 0 20px; }
.buyer-note li { margin-bottom: 8px; }
.related-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow-sm); }
.related-pill-list { display: flex; gap: 10px; flex-wrap: wrap; margin-top: var(--space-3); }
.related-pill {
  background: var(--blue-soft); color: var(--blue); padding: 9px 14px;
  border-radius: var(--radius-pill); font-weight: 700; font-size: .9rem;
}
.related-pill:hover { background: var(--blue); color: #fff; }
@media (max-width: 720px) { .buyer-grid { grid-template-columns: 1fr; } }

/* Product label figure (dosage chart etc.) */
.label-figure {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--space-4);
  box-shadow: var(--shadow-sm); margin: var(--space-5) auto;
  max-width: 560px; text-align: center;
}
.label-figure img { width: 100%; max-width: 480px; margin: 0 auto; }
.label-figure figcaption { font-size: .88rem; color: var(--muted); margin-top: 12px; text-align: left; }

/* ============================================================
   TOOL / QUIZ COMPONENTS (shared by all interactive tools)
   ============================================================ */
.quiz-shell { max-width: 720px; margin: 0 auto; }
.quiz-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.quiz-progress .bar { flex: 1; height: 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.quiz-progress .bar i { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 999px; transition: width .3s ease; }
.quiz-progress .label { font-size: .85rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.quiz-step { display: none; }
.quiz-step.active { display: block; animation: step-in .25s ease; }
@keyframes step-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.quiz-step h3 { font-size: 1.35rem; margin-bottom: 4px; }
.quiz-hint { font-size: .9rem; color: var(--muted); margin-bottom: 16px; }
.options { display: grid; gap: 10px; }
.option { display: flex; align-items: center; gap: 12px; background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 14px 16px; cursor: pointer; font-weight: 600; color: var(--ink); transition: border-color .12s ease, background .12s ease; }
.option:hover { border-color: var(--blue); }
.option:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.option input { accent-color: var(--blue); width: 18px; height: 18px; flex: 0 0 auto; }
.quiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.quiz-nav .btn-back { background: none; border: none; color: var(--muted); font-weight: 700; cursor: pointer; font-family: inherit; font-size: .95rem; }
.quiz-nav .btn-back:hover { color: var(--blue); }
button.btn.btn-primary { border: none; cursor: pointer; font-family: inherit; font-size: 1rem; }
#result { display: none; }
#result.show { display: block; animation: step-in .35s ease; }
.verdict { background: #fff; border: 2px solid var(--blue); border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow-lg); }
.verdict-head { display: flex; align-items: center; gap: 18px; margin-bottom: 12px; }
.verdict-head img { width: 84px; height: 84px; flex: 0 0 auto; }
.verdict-head .confidence { display: inline-block; background: var(--blue-soft); color: var(--blue-dark); border-radius: 999px; padding: 5px 12px; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 6px; }
.verdict-head h2 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.verdict .because { background: var(--bg); border-left: 4px solid var(--blue); border-radius: 0 var(--radius-md) var(--radius-md) 0; padding: 16px 20px; margin: 18px 0; }
.verdict .because strong { font-family: var(--font-head); color: var(--ink); display: block; margin-bottom: 6px; }
.verdict .because ul { list-style: none; margin: 0; }
.verdict .because li { margin-bottom: 6px; }
.product-path { margin-top: 18px; }
.product-path h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .8px; color: var(--blue); margin-bottom: 10px; }
.pp-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px 18px; margin-bottom: 10px; }
.pp-row .pp-name { font-weight: 700; color: var(--ink); }
.pp-row .pp-tag { display: block; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--blue); }
.pp-row .btn { min-height: 40px; padding: 9px 16px; font-size: .92rem; white-space: nowrap; }
.pp-row--top { border: 2px solid var(--blue); background: #fff; }
.vet-first { background: #FFF3F0; border: 2px solid #E8998A; border-radius: var(--radius-lg); padding: var(--space-4); margin-bottom: 20px; }
.vet-first strong { color: #B03A2E; font-family: var(--font-head); font-size: 1.1rem; }
.vet-first ul { margin: 8px 0 0 18px; }
.vet-first li { margin-bottom: 6px; }
.vet-first p { margin: 6px 0 0; }
.runners { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.runner { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px; }
.runner img { width: 44px; height: 44px; margin-bottom: 8px; }
.runner strong { font-family: var(--font-head); color: var(--ink); display: block; margin-bottom: 4px; }
.runner p { font-size: .92rem; margin-bottom: 8px; }
.result-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 22px; }
.restart { background: none; border: none; color: var(--muted); font-weight: 700; cursor: pointer; font-family: inherit; font-size: .95rem; text-decoration: underline; text-underline-offset: 3px; }
.restart:hover { color: var(--blue); }
@media (prefers-reduced-motion: reduce) { .quiz-step.active, #result.show { animation: none; } }
@media (max-width: 720px) { .runners { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .pp-row { flex-direction: column; align-items: flex-start; } }
