/* Vetstak — site styles */
:root {
  --bg: #EEF1F5;
  --paper: #FFFFFF;
  --ink: #18202E;
  --muted: #566070;
  --line: #D6DCE5;
  --cobalt: #2B44E0;
  --cobalt-deep: #1D2F9E;
  --cobalt-wash: #E4E8FD;
  --agree: #146B50;
  --agree-wash: #E2F2EB;
  --caution: #8A5208;
  --caution-wash: #FBEFD9;
  --radius-lg: 18px;
  --radius-sm: 8px;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Public Sans", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121722;
    --paper: #1B2230;
    --ink: #E9EDF4;
    --muted: #A3ADBD;
    --line: #2E3747;
    --cobalt: #7D8FFF;
    --cobalt-deep: #A9B5FF;
    --cobalt-wash: #232C4D;
    --agree: #6CD0A6;
    --agree-wash: #17332A;
    --caution: #F0B865;
    --caution-wash: #3A2A12;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121722; --paper: #1B2230; --ink: #E9EDF4; --muted: #A3ADBD; --line: #2E3747;
  --cobalt: #7D8FFF; --cobalt-deep: #A9B5FF; --cobalt-wash: #232C4D;
  --agree: #6CD0A6; --agree-wash: #17332A; --caution: #F0B865; --caution-wash: #3A2A12;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
}
img, svg { max-width: 100%; }
a { color: var(--cobalt); text-underline-offset: 3px; }
a:hover { color: var(--cobalt-deep); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 6vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.prose { max-width: 68ch; }

/* Header */
.site-head { padding: 18px 0; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 1.45rem/1 var(--display); letter-spacing: -0.03em; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--cobalt); }

/* Hero */
.hero { padding: 28px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: start; }
@media (min-width: 940px) { .hero .wrap { grid-template-columns: 1.02fr 1fr; gap: 56px; } .hero-copy { padding-top: 34px; } }
.hero-copy p.lede { font-size: 1.15rem; color: var(--muted); max-width: 46ch; }
.hero-facts { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.hero-facts li { display: flex; gap: 10px; align-items: baseline; }
.hero-facts svg { flex: none; width: 18px; height: 18px; color: var(--agree); transform: translateY(3px); }

/* Matcher panel */
.matcher {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(24, 32, 46, .35);
}
.matcher-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.matcher-top strong { font-family: var(--display); font-size: 1.1rem; }
.step-count { color: var(--muted); font-size: .9rem; }
.progress { height: 6px; background: var(--cobalt-wash); border-radius: 99px; overflow: hidden; margin-bottom: 22px; }
.progress span { display: block; height: 100%; width: 0; background: var(--cobalt); border-radius: 99px; transition: width .3s ease; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font: 700 1.3rem/1.25 var(--display); margin-bottom: 6px; padding: 0; letter-spacing: -0.01em; }
.hint { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.options { display: grid; gap: 10px; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.option label {
  display: flex; gap: 12px; align-items: center;
  padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  cursor: pointer; font-weight: 600; background: var(--paper);
}
.option label small { display: block; font-weight: 400; color: var(--muted); font-size: .86rem; }
.option .tick { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; }
.option input[type="checkbox"] + label .tick { border-radius: 6px; }
.option input:checked + label { border-color: var(--cobalt); background: var(--cobalt-wash); }
.option input:checked + label .tick { background: var(--cobalt); border-color: var(--cobalt); }
.option input:checked + label .tick::after { content: ""; width: 10px; height: 6px; border: 2.5px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.option input:focus-visible + label { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.matcher-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.error-msg { color: var(--caution); font-weight: 600; font-size: .92rem; margin: 12px 0 0; min-height: 1.2em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 1rem/1 var(--body); padding: 14px 20px; border-radius: 12px;
  border: 1.5px solid var(--cobalt); background: var(--cobalt); color: #fff;
  cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--cobalt-deep); border-color: var(--cobalt-deep); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn[hidden] { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn:not(.ghost) { color: #10162A; } }
:root[data-theme="dark"] .btn:not(.ghost) { color: #10162A; }

/* Results: the vetting slip */
.results { padding: 8px 0 70px; }
.results[hidden] { display: none; }
.results-head { margin-bottom: 22px; }
.results-head p { color: var(--muted); max-width: 62ch; }
.slip {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 34px 28px 28px;
  border: 1px solid var(--line);
  margin-bottom: 22px;
}
.slip::before {
  content: ""; position: absolute; left: 18px; right: 18px; top: -1px; height: 10px;
  background: radial-gradient(circle at 6px 0, var(--bg) 5px, transparent 5.5px) 0 0 / 18px 10px repeat-x;
}
.slip.top { border: 2px solid var(--cobalt); box-shadow: 0 24px 50px -30px rgba(43, 68, 224, .55); }
.slip-grid { display: grid; gap: 24px; }
@media (min-width: 820px) { .slip-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.slip-head { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.slip-rank { color: var(--muted); font-weight: 600; font-size: .95rem; margin: 0 0 4px; }
.slip h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0; }
.slip .one-liner { color: var(--muted); margin: 8px 0 0; }
.stamp {
  flex: none; width: 104px; height: 104px; border-radius: 50%;
  border: 3px solid var(--cobalt); color: var(--cobalt);
  display: grid; place-content: center; text-align: center;
  transform: rotate(-8deg); font-family: var(--display);
  box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 6px var(--cobalt);
}
.stamp b { font-size: 1.9rem; line-height: 1; font-weight: 800; }
.stamp span { font-size: .72rem; font-weight: 700; margin-top: 3px; }
.slip.top .stamp { animation: stamp .45s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes stamp { from { transform: rotate(-20deg) scale(1.6); opacity: 0; } to { transform: rotate(-8deg) scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .slip.top .stamp { animation: none; } .progress span { transition: none; } }

.list-title { font: 700 1rem/1.3 var(--display); margin: 0 0 10px; display: flex; gap: 8px; align-items: center; }
.list-title svg { width: 18px; height: 18px; }
.why, .says, .warns { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.why li, .says li, .warns li { padding-left: 22px; position: relative; }
.why li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--cobalt); }
.says li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--agree); }
.warns li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 9px; border-radius: 2px; background: var(--caution); }
.cost-box { background: var(--cobalt-wash); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; }
.cost-box b { font: 800 1.5rem/1.1 var(--display); display: block; }
.cost-box small { color: var(--muted); }
.evidence { font-size: .9rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 14px; margin-top: 6px; }
.evidence a { color: var(--muted); }
.slip-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.runners { display: grid; gap: 22px; }
@media (min-width: 820px) { .runners { grid-template-columns: 1fr 1fr; } .runners .slip-grid { grid-template-columns: 1fr; gap: 0; } }
.results-foot { color: var(--muted); font-size: .92rem; max-width: 70ch; }

/* Sections */
.band { padding: 72px 0; border-top: 1px solid var(--line); }
.band.paper { background: var(--paper); }
.section-intro { max-width: 60ch; margin-bottom: 36px; }
.section-intro p { color: var(--muted); }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 28px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.steps li { counter-increment: s; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: var(--paper); font: 800 1.1rem/1 var(--display); margin-bottom: 14px;
}
.steps p { color: var(--muted); }

/* Tool table */
.tool-table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.tool-table th, .tool-table td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tool-table th { font-size: .88rem; color: var(--muted); font-weight: 600; background: var(--bg); }
.tool-table tr:last-child td { border-bottom: 0; }
.tool-table td a.tool-name { font: 700 1.1rem/1.2 var(--display); color: var(--ink); text-decoration: none; }
.tool-table td a.tool-name:hover { color: var(--cobalt); }
.tool-table .sub { color: var(--muted); font-size: .92rem; margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: .8rem; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); white-space: nowrap; }
.chip.on { background: var(--agree-wash); border-color: transparent; color: var(--agree); }
.chip.part { background: var(--caution-wash); border-color: transparent; color: var(--caution); }
.score { font: 800 1.2rem/1 var(--display); }
@media (max-width: 760px) {
  .tool-table thead { display: none; }
  .tool-table, .tool-table tbody, .tool-table tr, .tool-table td { display: block; width: 100%; }
  .tool-table tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .tool-table td { border: 0; padding: 6px 16px; }
  .tool-table td[data-label]::before { content: attr(data-label); display: block; font-size: .8rem; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
}

/* Pledge */
.pledge { display: grid; gap: 28px; }
@media (min-width: 820px) { .pledge { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; } }
.pledge ul { padding-left: 1.1em; margin: 0; display: grid; gap: 10px; }

/* Blog list */
.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.post-list li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 24px; }
.post-list a { font: 700 1.3rem/1.25 var(--display); color: var(--ink); text-decoration: none; }
.post-list a:hover { color: var(--cobalt); }
.post-list p { color: var(--muted); margin: 8px 0 0; }
.meta { color: var(--muted); font-size: .9rem; }

/* Article / tool page */
.page { padding: 34px 0 80px; }
.page header { margin-bottom: 30px; }
.page header p { color: var(--muted); font-size: 1.1rem; max-width: 60ch; }
.article h2 { margin-top: 1.6em; font-size: 1.7rem; }
.article h3 { margin-top: 1.4em; }
.article ul, .article ol { padding-left: 1.2em; }
.article li { margin-bottom: .4em; }
.callout { background: var(--cobalt-wash); border-radius: 14px; padding: 18px 20px; margin: 1.6em 0; }
.callout p:last-child { margin-bottom: 0; }
.facts { display: grid; gap: 16px; margin: 0 0 30px; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.fact { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.fact dt { color: var(--muted); font-size: .88rem; font-weight: 600; }
.fact dd { margin: 4px 0 0; font-weight: 600; }
.two-col { display: grid; gap: 28px; }
@media (min-width: 820px) { .two-col { grid-template-columns: 1fr 1fr; gap: 40px; } }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.panel.agree { border-top: 4px solid var(--agree); }
.panel.caution { border-top: 4px solid var(--caution); }
.panel ul { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; }
.sources { font-size: .92rem; }
.sources li { margin-bottom: 4px; }
.disclosure { font-size: .9rem; color: var(--muted); }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 40px 0 50px; color: var(--muted); font-size: .92rem; }
.site-foot .wrap { display: grid; gap: 18px; }
@media (min-width: 820px) { .site-foot .wrap { grid-template-columns: 1.4fr 1fr; } }
.site-foot nav { display: flex; gap: 18px; flex-wrap: wrap; justify-content: flex-start; }
@media (min-width: 820px) { .site-foot nav { justify-content: flex-end; } }
.site-foot a { color: var(--muted); }
.theme-toggle { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 8px; padding: 6px 10px; font: inherit; cursor: pointer; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- v2 additions ---- */
.list-title.agree { color: var(--agree); }
.list-title.caution { color: var(--caution); }
.explain { margin-top: 10px; max-width: 62ch; }
.explain summary { cursor: pointer; color: var(--cobalt); font-weight: 600; }
.explain p { color: var(--muted); margin: 8px 0 0; }
.results-foot p { margin-bottom: 12px; }
.results-foot .btn { margin: 4px 8px 4px 0; }

/* Hero: on phones the matcher comes right after the headline */
.hero .wrap { grid-template-areas: "copy" "matcher" "extra"; }
.hero-copy { grid-area: copy; }
.matcher { grid-area: matcher; min-width: 0; }
.hero-extra { grid-area: extra; }
@media (min-width: 940px) {
  .hero .wrap { grid-template-areas: "copy matcher" "extra matcher"; grid-template-rows: auto 1fr; row-gap: 28px; }
}
.audience-line { font-weight: 600; color: var(--ink); margin-top: -4px; }
.example {
  margin-top: 26px; background: var(--paper); border: 1px dashed var(--line); border-radius: 14px; padding: 16px 18px;
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; max-width: 440px;
}
.example .ex-label { grid-column: 1 / -1; color: var(--muted); font-size: .85rem; font-weight: 600; }
.example strong { font: 700 1.15rem/1.2 var(--display); }
.example p { margin: 0; color: var(--muted); font-size: .92rem; }
.example .mini-stamp { grid-row: 2 / span 2; grid-column: 2; width: 62px; height: 62px; border-radius: 50%; border: 2px solid var(--cobalt); color: var(--cobalt); display: grid; place-items: center; font: 800 1.05rem/1 var(--display); transform: rotate(-8deg); }

/* Business problems */
.problems { display: grid; gap: 18px; }
@media (min-width: 820px) { .problems { grid-template-columns: repeat(3, 1fr); } }
.problem { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.problem h3 { margin: 0; }
.problem p { color: var(--muted); margin: 0 0 6px; flex: 1; }
.problem a { font-weight: 700; }

/* Category list */
.cat-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.cat-list li { display: grid; gap: 4px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 820px) { .cat-list li { grid-template-columns: 280px 1fr auto; align-items: baseline; } }
.cat-list a.cat-name { font: 700 1.2rem/1.2 var(--display); color: var(--ink); text-decoration: none; }
.cat-list a.cat-name:hover { color: var(--cobalt); }
.cat-list .names { color: var(--muted); }
.cat-list .find { font-weight: 700; white-space: nowrap; }

.legend { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: .9rem; margin: -18px 0 18px; }
.cat-block { margin-bottom: 56px; scroll-margin-top: 20px; }
.cat-block > p { color: var(--muted); max-width: 62ch; }
.table-scroll { overflow-x: auto; }

/* Sign-up */
.signup { display: grid; gap: 20px; align-items: center; }
@media (min-width: 820px) { .signup { grid-template-columns: 1fr 1fr; gap: 48px; } }
.signup p { color: var(--muted); }
.signup form { display: flex; flex-wrap: wrap; gap: 10px; }
.signup input[type="email"] { flex: 1 1 220px; min-width: 0; font: inherit; padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); }
.signup input[type="email"]:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 1px; }
.signup [data-msg] { flex-basis: 100%; margin: 0; font-weight: 600; color: var(--ink); min-height: 1.4em; }
.cat-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.cat-chips a { text-decoration: none; }
