/* PetNFO marketing site — design system.
   Tokens come from docs/brand/tokens.json (brand v1.1). Do not add colours here
   without a brand change. Documented in website/docs/design-system.md. */

@font-face {
  font-family: "Nunito Sans";
  src: url("/assets/fonts/nunito-sans-latin-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --teal: #145e59;
  --clay: #b65042;
  --cream: #fbf7ef;
  --sage: #e4eee7;
  --ink: #203734;
  --muted: #536661;
  --white: #fff;
  --border: #758780;
  --success: #256246;
  --info: #245c86;
  --warning: #805600;

  --r-input: 8px;
  --r-btn: 12px;
  --r-card: 16px;
  --r-big: 28px;

  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem;
  --s6: 1.5rem; --s8: 2rem; --s12: 3rem; --s16: 4rem;

  --gutter: max(1rem, env(safe-area-inset-left), env(safe-area-inset-right));
  --measure: 68ch;
  --container: 72rem;
  --section: clamp(3rem, 2rem + 5vw, 6.5rem);

  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.1875rem);
  --fs-h1: clamp(2.125rem, 1.4rem + 3.6vw, 4rem);
  --fs-h2: clamp(1.625rem, 1.2rem + 2vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --fs-small: 0.9375rem;

  color-scheme: light;
}

/* Scale the whole layout up on large and ultra-wide displays (rem-based). */
@media (min-width: 100rem) { html { font-size: 112.5%; } }
@media (min-width: 140rem) { html { font-size: 137.5%; } }
@media (min-width: 200rem) { html { font-size: 175%; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Nunito Sans", system-ui, "Segoe UI", Arial, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.6;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
  min-width: 0;
}

img, svg, picture { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 var(--s4); color: var(--teal); text-wrap: balance; font-weight: 700; }
h1 { font-size: var(--fs-h1); letter-spacing: -0.015em; font-weight: 800; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.01em; }
h3 { font-size: var(--fs-h3); line-height: 1.28; }
h4 { font-size: 1.0625rem; }
p { margin: 0 0 var(--s4); text-wrap: pretty; max-width: var(--measure); }
ul, ol { margin: 0 0 var(--s4); padding-left: 1.25rem; max-width: var(--measure); }
li + li { margin-top: var(--s2); }
a { color: var(--teal); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { text-decoration-thickness: 0.14em; }
strong { font-weight: 700; }
small, .small { font-size: var(--fs-small); }
hr { border: 0; border-top: 1px solid var(--sage); margin: var(--s8) 0; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--white);
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: var(--s4); top: -4rem; z-index: 100;
  background: var(--teal); color: var(--white); padding: var(--s3) var(--s4);
  border-radius: var(--r-btn); font-weight: 700;
}
.skip-link:focus { top: var(--s4); }

.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 50rem; }
.stack > * + * { margin-top: var(--s4); }
.center { text-align: center; }
.center p, .center ul { margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Status strip ---------- */
.status-strip {
  background: var(--teal); color: var(--white); font-size: var(--fs-small);
  padding-block: var(--s2); text-align: center;
}
.status-strip p { margin: 0 auto; max-width: none; }
.status-strip a { color: var(--white); font-weight: 700; }

/* ---------- Header / nav ---------- */
.site-header { background: var(--cream); border-bottom: 1px solid var(--sage); }
@media (min-height: 40rem) { .site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.2); } }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s6); padding-block: var(--s3); }
.brand { display: inline-flex; align-items: center; min-height: 2.75rem; }
.brand img { height: clamp(2rem, 1.7rem + 1vw, 2.6rem); width: auto; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); max-width: none; align-items: center; }
.primary-nav li + li { margin-top: 0; }
.primary-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: var(--s2); text-decoration: none; font-weight: 600; color: var(--ink); border-radius: var(--r-btn); }
.primary-nav a:hover { color: var(--teal); text-decoration: underline; }
.primary-nav a[aria-current="page"] { color: var(--teal); text-decoration: underline; text-decoration-thickness: 0.14em; }
.nav-toggle { display: none; }

.js .nav-toggle {
  display: inline-flex; align-items: center; gap: var(--s2); min-height: 2.75rem;
  padding: 0 var(--s4); background: var(--white); color: var(--teal);
  border: 2px solid var(--teal); border-radius: var(--r-btn); font: inherit; font-weight: 700; cursor: pointer;
}
@media (max-width: 62rem) {
  .js .primary-nav { flex-basis: 100%; }
  .js .primary-nav[hidden] { display: none; }
  .js .primary-nav ul { flex-direction: column; align-items: stretch; padding-bottom: var(--s2); }
  .js .primary-nav a { width: 100%; }
}
@media (min-width: 62.01rem) { .js .nav-toggle { display: none; } .js .primary-nav[hidden] { display: block; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 3rem; padding: 0.7rem 1.4rem; border-radius: var(--r-btn);
  border: 2px solid var(--teal); background: var(--teal); color: var(--white);
  font: inherit; font-weight: 700; text-decoration: none; text-align: center; line-height: 1.25;
  transition: background-color 0.15s, color 0.15s, transform 0.15s;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--white); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--teal); }
.btn--ghost:hover { background: var(--teal); border-color: var(--teal); }
.btn--light { background: var(--white); color: var(--teal); border-color: var(--white); }
.btn--light:hover { background: var(--sage); color: var(--ink); border-color: var(--sage); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.btn-row--center { justify-content: center; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
@media (prefers-reduced-motion: no-preference) { .btn:active { transform: translateY(1px); } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--sage { background: var(--sage); }
.section--white { background: var(--white); }
.section--teal { background: var(--teal); color: var(--white); }
.section--teal h2, .section--teal h3 { color: var(--white); }
.section--teal a:not(.btn) { color: var(--white); }
.section-head { max-width: 46rem; margin-bottom: var(--s8); }
.section-head.center { margin-inline: auto; }
.section-head p { font-size: 1.0625em; }
.eyebrow { display: block; margin-bottom: var(--s3); font-size: var(--fs-small); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--clay); }
.section--sage .eyebrow { color: var(--teal); }
.section--teal .eyebrow { color: var(--white); }
.lede { font-size: clamp(1.125rem, 1.02rem + 0.5vw, 1.375rem); line-height: 1.55; color: var(--ink); max-width: 44rem; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2rem, 1rem + 5vw, 5.5rem) var(--section); background:
  radial-gradient(60rem 30rem at 100% 0%, var(--sage), transparent 70%), var(--cream); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s8); align-items: center; }
.hero-grid > *, .two-col > * { min-width: 0; }
@media (min-width: 56rem) { .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 5vw, 5rem); } }
.hero h1 { margin-bottom: var(--s4); }
.hero-figure { margin: 0; position: relative; }
.hero-figure img { border-radius: var(--r-big); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; box-shadow: 0 1.5rem 3rem -1.5rem rgb(32 55 52 / 0.35); }
.hero-figure figcaption { font-size: 0.8125rem; color: var(--muted); margin-top: var(--s2); }
.page-hero { padding-block: clamp(2.25rem, 1.2rem + 4vw, 4.75rem) clamp(1.5rem, 1rem + 2vw, 3rem); background: var(--cream); }
.page-hero h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem); }
.breadcrumbs { font-size: var(--fs-small); margin-bottom: var(--s6); color: var(--muted); }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s1) var(--s2); max-width: none; }
.breadcrumbs li + li { margin-top: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: var(--s2); color: var(--border); }
.breadcrumbs a { color: var(--muted); }

/* ---------- Pills, tags ---------- */
.pill { display: inline-flex; align-items: center; gap: 0.4em; padding: 0.2rem 0.75rem; border-radius: 999px; background: var(--sage); color: var(--ink); font-size: 0.8125rem; font-weight: 700; line-height: 1.4; border: 1px solid transparent; }
.pill--outline { background: var(--white); border-color: var(--border); }
.pill--planned { background: var(--white); border-color: var(--teal); color: var(--teal); }
.pill--sponsored { background: var(--white); border-color: var(--warning); color: var(--warning); }
.pill--owner { background: var(--white); border-color: var(--info); color: var(--info); }
.pill--vet { background: var(--white); border-color: var(--success); color: var(--success); }
.card > .pill, .mock-listing > .pill { align-self: flex-start; justify-self: start; }
.pill-row { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s4); }
.btn-row + .pill-row { margin-top: var(--s6); }

.icon { width: 1.5rem; height: 1.5rem; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon--lg { width: 2rem; height: 2rem; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: clamp(1rem, 0.6rem + 1.4vw, 1.75rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.card { container-type: inline-size; background: var(--white); border-radius: var(--r-card); padding: clamp(1.25rem, 1rem + 1vw, 2rem); border: 1px solid rgb(117 135 128 / 0.28); display: flex; flex-direction: column; gap: var(--s3); }
.card > * { margin: 0; }
.card h3 { margin-bottom: 0; }
.card .icon { color: var(--teal); }
.card--sage { background: var(--sage); border-color: transparent; }
.card--link { text-decoration: none; color: inherit; transition: transform 0.18s, box-shadow 0.18s; }
.card--link:hover { box-shadow: 0 1rem 2rem -1.25rem rgb(32 55 52 / 0.45); }
@media (prefers-reduced-motion: no-preference) { .card--link:hover { transform: translateY(-3px); } }
.card--link h3 { text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.2em; }
.card .more { margin-top: auto; font-weight: 700; color: var(--teal); }
.card-icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 14px; background: var(--sage); color: var(--teal); }
.card--sage .card-icon { background: var(--white); }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: center; }
@media (min-width: 56rem) { .two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); } .two-col--flip > :first-child { order: 2; } }
.media { margin: 0; }
.media img { border-radius: var(--r-big); width: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.media figcaption { font-size: 0.8125rem; color: var(--muted); margin-top: var(--s2); }

/* ---------- Facts, steps, checklists ---------- */
.facts { display: grid; gap: 0; margin: 0; border-radius: var(--r-card); overflow: hidden; border: 1px solid rgb(117 135 128 / 0.28); background: var(--white); max-width: 54rem; }
.facts div { display: grid; gap: var(--s1) var(--s6); padding: var(--s4) var(--s6); }
.facts div + div { border-top: 1px solid var(--sage); }
@media (min-width: 40rem) { .facts div { grid-template-columns: 11rem minmax(0, 1fr); } }
.facts dt { font-weight: 700; color: var(--teal); }
.facts dd { margin: 0; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: var(--s4); max-width: none; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: var(--s4); align-items: start; background: var(--white); padding: var(--s6); border-radius: var(--r-card); border: 1px solid rgb(117 135 128 / 0.28); margin: 0; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--teal); color: var(--white); font-weight: 800; font-size: 1.25rem; }
.steps h3 { margin-bottom: var(--s1); }
.steps p { margin-bottom: 0; }

.ticks, .crosses { list-style: none; padding: 0; }
.ticks li, .crosses li { position: relative; padding-left: 2rem; }
.ticks li::before, .crosses li::before { position: absolute; left: 0; top: 0.15em; width: 1.25rem; height: 1.25rem; display: grid; place-items: center; border-radius: 50%; font-size: 0.8rem; font-weight: 800; line-height: 1; }
.ticks li::before { content: "\2713"; background: var(--success); color: var(--white); }
.crosses li::before { content: "\2715"; background: var(--ink); color: var(--white); }

/* ---------- Callouts ---------- */
.callout { border-left: 6px solid var(--teal); background: var(--white); border-radius: 0 var(--r-card) var(--r-card) 0; padding: var(--s4) var(--s6); max-width: 54rem; }
.callout > :last-child { margin-bottom: 0; }
.callout strong:first-child { color: var(--teal); }
.callout--note { border-color: var(--info); }
.section--sage .callout { background: var(--white); }

/* ---------- Illustrative UI mock-ups (not real screens) ---------- */
.mock { background: var(--white); border-radius: var(--r-card); border: 1px solid rgb(117 135 128 / 0.35); box-shadow: 0 1.5rem 3rem -1.75rem rgb(32 55 52 / 0.5); padding: var(--s6); max-width: 28rem; width: 100%; margin-inline: auto; }
.mock-label { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s3); }
.mock h3 { font-size: 1.25rem; margin-bottom: var(--s3); }
.mock-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s4); padding: var(--s3) 0; border-top: 1px solid var(--sage); }
.mock-row strong { display: block; }
.mock-row small { color: var(--muted); display: block; }
.mock-foot { margin: var(--s4) 0 0; font-size: 0.8125rem; color: var(--muted); }
.mock--wide { max-width: 34rem; }
.mock-listing { padding: var(--s4); border: 1px solid rgb(117 135 128 / 0.35); border-radius: 12px; margin-top: var(--s3); display: grid; gap: var(--s1); }
.mock-listing--sponsored { background: var(--cream); }
.mock-listing .mock-name { color: var(--ink); }
.mock-listing p { margin: 0; color: var(--muted); font-size: var(--fs-small); }

/* ---------- FAQ ---------- */
.faq { background: var(--white); border: 1px solid rgb(117 135 128 / 0.28); border-radius: var(--r-card); max-width: 54rem; }
.faq + .faq { margin-top: var(--s3); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--teal); padding: var(--s4) 3.25rem var(--s4) var(--s6); min-height: 3.25rem; list-style: none; position: relative; overflow-wrap: anywhere; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; position: absolute; right: var(--s6); top: 0.85rem; }
.faq[open] summary::after { content: "\2212"; }
.faq .faq-a { padding: 0 var(--s6) var(--s4); }
.faq .faq-a > :last-child { margin-bottom: 0; }

/* ---------- Article / prose ---------- */
.prose { max-width: 46rem; }
.prose h2 { margin-top: var(--s12); font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); }
.prose h3 { margin-top: var(--s8); }
.prose .meta { color: var(--muted); font-size: var(--fs-small); }
.toc { background: var(--sage); border-radius: var(--r-card); padding: var(--s4) var(--s6); margin-bottom: var(--s8); max-width: 46rem; }
.toc h2 { font-size: 1.125rem; margin: 0 0 var(--s2); }
.toc ol { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal); color: var(--white); padding-block: var(--s12) var(--s8); font-size: var(--fs-small); }
.site-footer a { color: var(--white); }
.site-footer h2 { color: var(--white); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--s3); }
.footer-grid { display: grid; gap: var(--s8); grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li + li { margin-top: var(--s2); }
.footer-brand img { height: 2.5rem; width: auto; margin-bottom: var(--s4); }
.footer-brand p { color: var(--white); max-width: 26rem; }
.footer-legal { margin-top: var(--s8); padding-top: var(--s6); border-top: 1px solid rgb(255 255 255 / 0.3); display: flex; flex-wrap: wrap; gap: var(--s2) var(--s6); justify-content: space-between; }
.footer-legal p { margin: 0; max-width: none; }

/* ---------- Adaptive tweaks ---------- */
@media (max-width: 24rem) { /* very narrow phones, folded foldables */
  :root { --section: 2.5rem; }
  .btn { width: 100%; }
  .steps li { grid-template-columns: minmax(0, 1fr); }
  .facts div { padding-inline: var(--s4); }
}
@media (max-height: 30rem) and (orientation: landscape) { /* short landscape phones */
  .hero, .page-hero { padding-block: var(--s6); }
  .section { padding-block: var(--s8); }
}
@media (min-width: 120rem) { .hero-grid { max-width: 110rem; } }
@media (pointer: coarse) { .primary-nav a, .btn, .faq summary { min-height: 3rem; } }

/* ---------- Preferences ---------- */
@media (prefers-contrast: more) {
  :root { --border: #4a5a55; }
  .card, .facts, .faq, .mock, .steps li { border-color: var(--ink); }
}
@media (forced-colors: active) {
  .btn, .pill, .card, .faq, .mock, .callout { border: 1px solid CanvasText; }
  .steps li::before, .ticks li::before, .crosses li::before { border: 1px solid CanvasText; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Print ---------- */
@media print {
  :root { --fs-body: 11pt; }
  body { background: #fff; color: #000; }
  .status-strip, .site-header .primary-nav, .nav-toggle, .btn-row, .skip-link, .site-footer .footer-grid { display: none !important; }
  .section, .hero, .page-hero { padding-block: 1rem; background: #fff !important; }
  .site-footer { background: #fff; color: #000; padding: 1rem 0 0; }
  .site-footer a, .site-footer h2 { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
  .card, .facts, .faq, .mock, .callout { break-inside: avoid; box-shadow: none; }
  details.faq:not([open]) .faq-a { display: block; }
}
