/* ==========================================================================
   Pangel design system
   Palette and type are taken from the brand assets: the navy is the logo
   colour, the rose is the accent used across the site's arrows and rules,
   and the blue is the section-fill colour.
   ========================================================================== */

:root {
  /* Brand */
  --navy:        #063374;
  --navy-700:    #0a2a5c;
  --navy-900:    #06204a;
  /* The brand pink #ca517f measured 4.20:1 on white and failed AA for the
     eyebrow labels and every button caption. This clears 4.5:1 against white,
     both section tints and behind white button text. */
  --rose:        #b34068;
  --rose-600:    #963459;
  --rose-100:    #f7e6ed;
  --blue:        #0076b1;
  --blue-100:    #e4f1f8;

  /* Neutrals */
  --ink:         #16202e;
  --ink-muted:   #4a5a6e;
  --line:        #dde3ec;
  --surface:     #ffffff;
  --surface-alt: #f5f8fc;
  --surface-navy: var(--navy);

  /* Type */
  --font-head: "Chivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Cabin", "Helvetica Neue", Arial, sans-serif;

  /* Scale */
  --step--1: clamp(0.86rem, 0.83rem + 0.15vw, 0.94rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
  --step-2:  clamp(1.45rem, 1.3rem + 0.75vw, 1.95rem);
  --step-3:  clamp(1.8rem, 1.5rem + 1.4vw, 2.6rem);
  --step-4:  clamp(2.2rem, 1.7rem + 2.4vw, 3.6rem);

  /* Space */
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);
  --wrap: 1200px;
  --wrap-narrow: 46rem;

  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(6, 32, 74, .06), 0 8px 24px rgba(6, 32, 74, .07);
  --shadow-lg: 0 2px 4px rgba(6, 32, 74, .06), 0 18px 48px rgba(6, 32, 74, .12);
}

/* --- base ---------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); font-weight: 800; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-2); font-weight: 700; }
h4 { font-size: var(--step-1); font-weight: 700; }

p { margin: 0 0 1.15em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy); text-decoration-color: color-mix(in srgb, var(--navy) 35%, transparent); text-underline-offset: .18em; }
a:hover { color: var(--rose-600); text-decoration-color: currentColor; }

img { max-width: 100%; height: auto; display: block; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* --- layout -------------------------------------------------------------- */

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.wrap--narrow { width: min(var(--wrap-narrow), 100% - var(--gutter) * 2); }

.section { padding-block: var(--section-y); }
.section--alt { background: var(--surface-alt); }
.section--tint { background: var(--blue-100); }
.section--navy { background: var(--navy); color: #eaf0fa; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
.section--navy a { color: #fff; }

.stack > * + * { margin-top: 1.15rem; }
.lede { font-size: var(--step-1); color: var(--ink-muted); }
.section--navy .lede { color: #c3d2ea; }

.eyebrow {
  font-family: var(--font-head);
  font-size: var(--step--1); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--rose); margin: 0 0 .75rem;
}
.section--navy .eyebrow { color: #f0a9c5; }

.center { text-align: center; }
.measure { max-width: 62ch; }
.center .measure { margin-inline: auto; }

.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }

/* Flex variant for counts that do not divide evenly into the column count:
   the remainder centres instead of hugging the left edge. */
.grid--fill {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.grid--fill > * { flex: 1 1 17rem; max-width: 24rem; }

/* --- buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-head); font-weight: 700; font-size: var(--step-0);
  line-height: 1; text-align: center; text-decoration: none;
  padding: .95em 1.75em; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: background-color .18s ease, color .18s ease,
                              border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--rose); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--rose-600); color: #fff; }

.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-700); color: #fff; }

.btn--ghost { border-color: currentColor; color: var(--navy); background: transparent; }
.btn--ghost:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

.section--navy .btn--ghost { color: #fff; }
.section--navy .btn--ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }
.center .btn-row { justify-content: center; }

/* --- header -------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 76px; padding-block: .6rem;
}
.site-logo { flex: 0 0 auto; line-height: 0; }
.site-logo img { height: 52px; width: auto; }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.1rem); list-style: none; margin: 0; padding: 0; }
.site-nav a {
  font-family: var(--font-head); font-weight: 600; font-size: var(--step--1);
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--navy); text-decoration: none; padding-block: .4rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--rose-600); border-bottom-color: var(--rose); }

/* The nav link rule is more specific than .btn--primary, so without this the
   header's call to action inherits the nav's navy text on its pink fill. */
.site-nav a.btn { color: #fff; border-bottom: 0; text-transform: none; letter-spacing: 0; }
.site-nav a.btn--primary:hover { background: var(--rose-600); color: #fff; border-bottom: 0; }

.nav-toggle {
  display: none; margin-left: auto;
  background: transparent; border: 0; padding: .55rem; cursor: pointer; color: var(--navy);
}
.nav-toggle svg { display: block; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 76px 0 auto; margin: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    max-height: calc(100dvh - 76px); overflow-y: auto;
    display: none;
  }
  .site-nav[data-open="true"] { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1.5rem; }
  .site-nav li + li { border-top: 1px solid var(--line); }
  .site-nav a { display: block; padding: 1rem 0; font-size: var(--step-0); border-bottom: 0; }
  .site-nav .btn { margin-top: 1rem; width: 100%; }
}

/* --- footer -------------------------------------------------------------- */

.site-footer { background: var(--navy-900); color: #b9c8e2; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.site-footer h2 { font-size: var(--step--1); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 1.1rem; }
.site-footer a { color: #d7e2f4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: .2rem; }
/* Keeps each target at least 24px tall (WCAG 2.5.8) without visibly
   loosening the list. */
.site-footer nav a { display: inline-block; padding-block: .3rem; }

.footer-grid { display: grid; gap: clamp(2rem, 4vw, 3rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.footer-brand img {
  height: 62px; width: auto; margin-bottom: 1rem;
  /* The logo is navy on transparent, which disappears against the navy
     footer — render it as a white knockout instead. */
  filter: brightness(0) invert(1);
}

.social { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.social a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: #fff; transition: background-color .18s ease;
}
.social a:hover { background: var(--rose); }
.social svg { width: 20px; height: 20px; fill: currentColor; }

.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.13);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center;
  font-size: var(--step--1);
}
.footer-bottom p { margin: 0; }
.footer-bottom nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* --- cards --------------------------------------------------------------- */

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.1rem); box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card h3 { font-size: var(--step-1); }
/* Standalone links need a 24px target (WCAG 2.5.8); links inside a sentence
   are exempt, so this is deliberately scoped to the card's own actions. */
.card > p:last-child > a { display: inline-block; padding-block: .35rem; }
/* Card titles are links; a little extra leading takes the target past 24px. */
.card h2 > a, .card h3 > a { display: inline-block; line-height: 1.3; }
.card__media {
  /* Declared block: this is often an <a>, and an inline box gives a
     percentage-width child nothing to resolve against. */
  display: block;
  margin: calc(-1 * clamp(1.5rem, 3vw, 2.1rem)) calc(-1 * clamp(1.5rem, 3vw, 2.1rem)) 1.5rem;
}
.card__media img { border-radius: var(--radius-lg) var(--radius-lg) 0 0; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

/* how-it-works steps
   Flex rather than grid so a row that does not divide evenly (five steps)
   centres its remainder instead of leaving a hole on the right. */
.steps {
  counter-reset: step;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(1.75rem, 3vw, 2.5rem);
  list-style: none; margin: 0; padding: 0;
}
.step { flex: 1 1 13rem; max-width: 15rem; text-align: center; }
.step__media { position: relative; margin-bottom: 1.1rem; }
.step__media img { border-radius: 50%; width: 100%; height: auto; }
.step__media::after {
  counter-increment: step; content: counter(step);
  position: absolute; right: .35rem; bottom: .35rem;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--rose); color: #fff;
  font-family: var(--font-head); font-weight: 800; font-size: var(--step-0);
  box-shadow: 0 0 0 4px #fff;
}
/* Some step artwork already carries its own numeral; suppress the badge and
   keep the mark at its intrinsic size rather than stretching it. */
.steps--art .step__media::after { content: none; }
.steps--art .step__media img { width: auto; max-width: 7rem; margin-inline: auto; }

.step h3 { font-size: var(--step-1); margin-bottom: .35rem; }
.step p { font-size: var(--step--1); color: var(--ink-muted); }

/* quotes */
.quote { border-left: 4px solid var(--rose); padding-left: 1.5rem; font-size: var(--step-1); font-style: italic; color: var(--ink); }
.quote cite { display: block; margin-top: .75rem; font-size: var(--step--1); font-style: normal; font-weight: 700; color: var(--ink-muted); font-family: var(--font-head); }

/* --- hero ---------------------------------------------------------------- */

.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.hero__inner { position: relative; padding-block: clamp(4rem, 11vw, 8rem); }
.hero h1 { color: #fff; max-width: 20ch; }
.hero .lede { color: #cfdcf1; max-width: 46ch; }

/* --- prose (blog + legal) ------------------------------------------------ */

.prose { font-size: var(--step-0); }
.prose > * + * { margin-top: 1.2em; }
.prose h2 { font-size: var(--step-2); margin-top: 2em; }
.prose h3 { font-size: var(--step-1); margin-top: 1.8em; }
.prose img { border-radius: var(--radius); margin-block: 2rem; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .5em; }
.prose a { color: var(--rose-600); }
.prose blockquote {
  margin: 2rem 0; padding: 1rem 0 1rem 1.5rem;
  border-left: 4px solid var(--rose); color: var(--ink-muted); font-style: italic;
}
.prose table { width: 100%; border-collapse: collapse; }
.prose :is(td, th) { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; }

/* wide content must scroll inside itself, never the page */
.scroll-x { overflow-x: auto; }

/* --- utilities ----------------------------------------------------------- */

.meta { font-size: var(--step--1); color: var(--ink-muted); font-family: var(--font-head); letter-spacing: .04em; }
.mt-0 { margin-top: 0; }

/* --- forms --------------------------------------------------------------- */

.form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: .4rem; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: var(--step--1); color: var(--navy); }
.field :is(input, textarea, select) {
  font: inherit; font-size: var(--step-0); color: var(--ink);
  padding: .75rem .9rem;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  width: 100%;
}
.field :is(input, textarea):focus-visible { border-color: var(--rose); }
.field textarea { resize: vertical; min-height: 8rem; }
.field__error { color: var(--rose-600); font-size: var(--step--1); }
.form .btn { justify-self: start; }

.form-note {
  padding: 1rem 1.15rem; border-radius: var(--radius);
  background: var(--rose-100); color: var(--navy-900);
  border: 1px solid color-mix(in srgb, var(--rose) 30%, transparent);
}
.form-note--ok { background: var(--blue-100); border-color: color-mix(in srgb, var(--blue) 30%, transparent); }

/* Honeypot: hidden from people, still submitted by naive bots. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- FAQ ----------------------------------------------------------------- */

.faq details {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 0 1.25rem;
}
.faq details + details { margin-top: .75rem; }
.faq summary {
  font-family: var(--font-head); font-weight: 700; font-size: var(--step-0);
  color: var(--navy); cursor: pointer; padding: 1.1rem 0; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: 0 0 auto; width: .65rem; height: .65rem;
  border-right: 2px solid var(--rose); border-bottom: 2px solid var(--rose);
  transform: rotate(45deg); transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details > :not(summary) { padding-bottom: 1.15rem; margin: 0; }

/* --- legal documents ----------------------------------------------------- */

.legal { font-size: var(--step--1); }
.legal h2 {
  font-size: var(--step-1); margin-top: 2.5em; padding-top: 1.25em;
  border-top: 1px solid var(--line);
}
.legal h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
/* The table of contents arrives as a run of paragraphs each holding a single
   link, which makes them targets in their own right rather than inline text. */
.legal a { color: var(--rose-600); }
.legal p > a:only-child { display: inline-block; padding-block: .3rem; }
.legal :target { scroll-margin-top: 6rem; }

/* --- store badges --------------------------------------------------------- */

.store-badges {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center;
  list-style: none; margin: 0; padding: 0;
}
.store-badges a { display: block; line-height: 0; }
.store-badges img { height: 54px; width: auto; }

/* --- partner enrolment ---------------------------------------------------- */

.offer { width: 100%; border-collapse: collapse; }
.offer th, .offer td { padding: .6rem 0; text-align: left; vertical-align: baseline; font-weight: 400; }
.offer td { text-align: right; }
.offer tr + tr th, .offer tr + tr td { border-top: 1px solid var(--line); }
.offer s { margin-right: .5rem; }
.offer__total th, .offer__total td { padding-top: .9rem; font-size: var(--step-1); }

.field--check label { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.field--check input { width: auto; margin-top: .25rem; flex: 0 0 auto; }

/* Stripe renders the card form in its own iframe; give it room to breathe. */
#payment-element { margin-bottom: 1.5rem; }

/* --- Our Story: the five rescue dogs ---------------------------------------- */

.dogs {
    /* margin-block only. A blanket margin:0 here would override the
       margin-inline:auto on .wrap, which is what centres the figure — that is
       exactly how this ended up pinned to the left edge. */
    margin-block: 0;
    text-align: center;
}

.dogs img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

/* It now sits directly beneath the hero, so a full section's padding on both
   sides leaves a conspicuous gap above it. */
.dogs-section { padding-block: clamp(1.5rem, 4vw, 3rem); }

/* The image carries its own transparent margin, so a full section's padding
   beneath it reads as a void before the story starts. */
.dogs-section + .section { padding-block-start: 0; }

/* Five photographs in a row across a phone leaves each about 75px wide, with the
   handwritten names unreadable. Below this width the strip keeps a legible size
   and scrolls sideways instead of shrinking to nothing. */
@media (max-width: 48rem) {
    .dogs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .dogs img {
        width: auto;
        height: 15rem;
        max-width: none;
    }
}
