/* BUPO — bupoapp.com
   Tokens are the application palette, derived from the brand artwork and
   contrast-checked. Keep them in step with bupo_theme.dart in both apps.
   Do not write a glob containing a star-slash in a CSS comment: it closes
   the comment early and silently discards everything after it, including
   this file's :root block. */

:root {
  --ink: #132D36;
  --ink-soft: #425A62;
  --canvas: #F6F7F4;
  --surface: #FFFFFF;
  --outline: #D8E0DD;

  --vet: #1D5962;
  --vet-deep: #16444A;
  --vet-accent: #4F93AF;
  --vet-wash: #E4EBEC;

  --pet: #A74D63;
  --pet-deep: #783747;
  --pet-accent: #E2A14D;
  --pet-wash: #F4EAEC;

  --measure: 68ch;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --rhythm: clamp(3.5rem, 9vw, 7rem);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.25rem, 1.6rem + 3.2vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.5vw, 2.4rem); font-weight: 650; }
h3 { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem); font-weight: 650; }
p  { margin: 0 0 1.1em; max-width: var(--measure); }

a { color: var(--vet); text-underline-offset: 0.2em; }
a:hover { color: var(--vet-deep); }

.wrap { width: min(72rem, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { width: min(44rem, 100%); margin-inline: auto; padding-inline: var(--gutter); }

/* ---- header ---- */
.site-head {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--outline);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.25rem;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 1.9rem; width: auto; display: block; }
.site-nav { display: flex; gap: clamp(0.75rem, 2vw, 1.75rem); flex-wrap: wrap; }
.site-nav a { color: var(--ink-soft); text-decoration: none; font-weight: 550; font-size: 0.95rem; }
.site-nav a:hover { color: var(--ink); text-decoration: underline; }

/* ---- hero ---- */
.hero { padding-block: var(--rhythm) calc(var(--rhythm) * 0.7); text-align: center; }
.hero img.lockup { width: clamp(8rem, 20vw, 12rem); height: auto; margin-bottom: 2.25rem; }
.hero p.lede {
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.4rem);
  color: var(--ink-soft); max-width: 46ch; margin-inline: auto;
}

.actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; margin-top: 2.25rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.6rem; border-radius: 999px;
  font-weight: 600; text-decoration: none; border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-vet { background: var(--vet); color: #fff; box-shadow: 0 1px 2px rgba(19,45,54,.18); }
.btn-vet:hover { background: var(--vet-deep); color: #fff; }
.btn-pet { background: var(--pet); color: #fff; box-shadow: 0 1px 2px rgba(19,45,54,.18); }
.btn-pet:hover { background: var(--pet-deep); color: #fff; }
.btn-quiet { border-color: var(--outline); color: var(--ink); background: var(--surface); }
.btn-quiet:hover { border-color: var(--ink-soft); color: var(--ink); }
.btn img { height: 1.4rem; width: auto; }

/* ---- product cards ---- */
.products { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
            padding-block: calc(var(--rhythm) * 0.4); }
.card {
  background: var(--surface); border: 1px solid var(--outline);
  border-radius: 1.25rem; padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex; flex-direction: column; gap: 0.35rem;
}
.card img.lockup { width: clamp(9rem, 22vw, 11.5rem); height: auto; margin-bottom: 1.25rem; }
.card ul { margin: 0.25rem 0 1.5rem; padding-left: 1.1rem; color: var(--ink-soft); }
.card li { margin-bottom: 0.4rem; }
.card .btn { align-self: flex-start; margin-top: auto; }
.card-vet { background: linear-gradient(180deg, var(--vet-wash) 0%, var(--surface) 55%); }
.card-pet { background: linear-gradient(180deg, var(--pet-wash) 0%, var(--surface) 55%); }
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
           text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.35rem; }

/* ---- trust band ---- */
.band { background: var(--vet-deep); color: #fff; padding-block: var(--rhythm); }
.band h2 { color: #fff; }
.band p { color: #D7E3E6; }
.band .grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin-top: 2.5rem; }
.band h3 { color: #fff; font-size: 1.05rem; }
.band .grid p { margin: 0; font-size: 0.97rem; }

/* ---- long-form legal pages ---- */
.doc { padding-block: calc(var(--rhythm) * 0.8); }
.doc h1 { font-size: clamp(1.8rem, 1.4rem + 1.8vw, 2.6rem); }
.doc .meta { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 2.5rem; }
.doc h2 { margin-top: 2.5em; font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem); }
.doc h3 { margin-top: 1.8em; }
.doc ul, .doc ol { max-width: var(--measure); color: var(--ink); }
.doc li { margin-bottom: 0.45em; }
.doc table { border-collapse: collapse; width: 100%; max-width: var(--measure); margin: 1.5em 0; font-size: 0.95rem; }
.doc th, .doc td { text-align: start; padding: 0.7em 0.9em; border-bottom: 1px solid var(--outline); vertical-align: top; }
.doc th { background: var(--vet-wash); font-weight: 650; }
.doc blockquote {
  margin: 1.5em 0; padding: 1.1em 1.4em; max-width: var(--measure);
  background: var(--surface); border-inline-start: 3px solid var(--vet-accent);
  border-radius: 0 0.6rem 0.6rem 0;
}
.doc blockquote p:last-child { margin-bottom: 0; }

.callout {
  background: var(--surface); border: 1px solid var(--outline);
  border-inline-start: 3px solid var(--pet); border-radius: 0 0.75rem 0.75rem 0;
  padding: 1.1rem 1.35rem; margin: 1.75em 0; max-width: var(--measure);
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--pet-deep); }

/* ---- footer ---- */
.site-foot { background: var(--surface); border-top: 1px solid var(--outline);
             padding-block: calc(var(--rhythm) * 0.6); font-size: 0.93rem; color: var(--ink-soft); }
.site-foot .cols { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.site-foot h4 { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
                color: var(--ink); margin: 0 0 0.75rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 0.45rem; }
.site-foot a { color: var(--ink-soft); text-decoration: none; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }
.legal-identity { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--outline);
                  font-size: 0.86rem; line-height: 1.7; }

:focus-visible { outline: 3px solid var(--vet-accent); outline-offset: 2px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

/* ---- how it works ---- */
.center { text-align: center; }
.eyebrow.center { margin-inline: auto; }
.steps { padding-block: calc(var(--rhythm) * 0.75); }
.steps h2 { margin-bottom: 2.75rem; }
.step-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  counter-reset: step;
}
.step-grid li {
  background: var(--surface); border: 1px solid var(--outline);
  border-radius: 1.1rem; padding: 1.75rem 1.6rem;
  position: relative;
}
.step-no {
  display: inline-grid; place-items: center;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--vet-wash); color: var(--vet-deep);
  font-weight: 700; font-size: 0.95rem; margin-bottom: 0.9rem;
}
.step-grid h3 { margin-bottom: 0.4rem; }
.step-grid p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }

/* the middle step is the hinge of the product: the two sides meeting */
.step-grid li:nth-child(2) .step-no { background: var(--pet-wash); color: var(--pet-deep); }

.band-lede { max-width: 54ch; }
.band-foot { margin: 2.75rem 0 0; font-size: 0.95rem; }
.band-foot a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.45); }
.band-foot a:hover { text-decoration-color: #fff; }

/* ---- product pages ---- */
.hero-vet, .hero-pet { padding-block: calc(var(--rhythm) * 0.85) calc(var(--rhythm) * 0.5); }
.hero-vet { background: linear-gradient(180deg, var(--vet-wash) 0%, var(--canvas) 100%); }
.hero-pet { background: linear-gradient(180deg, var(--pet-wash) 0%, var(--canvas) 100%); }
.hero-vet img.lockup, .hero-pet img.lockup { width: clamp(11rem, 26vw, 15rem); margin-bottom: 1.75rem; }

.feature-section { padding-block: calc(var(--rhythm) * 0.7); }
.feature-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}
.feature-grid li {
  background: var(--surface); border: 1px solid var(--outline);
  border-radius: 1rem; padding: 1.4rem 1.5rem;
  border-top: 3px solid var(--vet-accent);
}
.feature-grid-pet li { border-top-color: var(--pet-accent); }
.feature-grid h3 { margin-bottom: 0.35rem; font-size: 1.05rem; }
.feature-grid p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

.band-pet { background: var(--pet-deep); }
.band-pet p { color: #F2E2E5; }

/* ---- mission ---- */
.mission {
  padding-block: calc(var(--rhythm) * 0.75);
  background: var(--surface);
  border-block: 1px solid var(--outline);
}
.mission h2 {
  font-size: clamp(1.45rem, 1.2rem + 1.3vw, 2.1rem);
  max-width: 22ch;
  margin-bottom: 1.1em;
}
.mission p { color: var(--ink-soft); font-size: clamp(1rem, 0.97rem + 0.25vw, 1.12rem); }
.mission p:last-child { color: var(--ink); font-weight: 550; margin-bottom: 0; }

/* ---- closing ---- */
.closing {
  padding-block: var(--rhythm);
  text-align: center;
  background:
    radial-gradient(70ch 40ch at 50% 0%, var(--vet-wash) 0%, transparent 70%),
    var(--canvas);
}
.closing h2 { margin-bottom: 0.6em; }
.closing p { margin-inline: auto; color: var(--ink-soft); max-width: 48ch; }
.closing .actions { margin-top: 2rem; }

/* the hero mark carries both palettes; let the page breathe around it */
.hero { position: relative; }
.hero::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--outline) 20%, var(--outline) 80%, transparent);
}
