/* ==========================================================================
   Snaffle
   One food, five recipes, for dogs and cats.

   The system: a contained, rounded card layout. Nothing is full bleed.
   Everything sits inside one container on a powder blue ground and is built
   from white cards with big radii, pill buttons and an 8px spacing scale.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Ground and surfaces */
  --sky: #eaf2f8;
  --sky-deep: #dbe8f2;
  --white: #ffffff;
  --cream: #fdf9f3;

  /* Ink */
  --ink: #132a43;
  --ink-soft: #5a7391;
  --ink-faint: #8ba0b8;

  /* The single site accent */
  --tang: #f26b21;
  --tang-dark: #d95a13;
  --tang-tint: #fdece1;

  /* Recipe colours. Scoped to their own recipe, never page chrome. */
  --r-chicken: #f5c242;
  --r-beef: #dc5b3c;
  --r-salmon: #ee7e86;
  --r-turkey: #4fa05f;
  --r-fish: #6c8fd6;

  /* Set per recipe context, defaults to the accent */
  --theme: var(--tang);
  --theme-tint: var(--tang-tint);

  /* Spacing: strict 8px scale. No arbitrary values anywhere. */
  --s1: 0.5rem;    /* 8  */
  --s2: 1rem;      /* 16 */
  --s3: 1.5rem;    /* 24 */
  --s4: 2rem;      /* 32 */
  --s5: 2.5rem;    /* 40 */
  --s6: 3rem;      /* 48 */
  --s7: 4rem;      /* 64 */
  --s8: 5rem;      /* 80 */
  --s9: 6rem;      /* 96 */
  --s10: 8rem;     /* 128 */

  /* One container, one gutter */
  --container: 1200px;
  --gutter: 1.5rem;

  /* Rounded system */
  --r-card: 28px;
  --r-inner: 20px;
  --r-small: 14px;
  --r-pill: 999px;

  /* Soft navy tinted shadows, never black */
  --shadow-sm: 0 2px 8px rgba(19, 42, 67, 0.06);
  --shadow: 0 8px 24px rgba(19, 42, 67, 0.08);
  --shadow-lg: 0 18px 44px rgba(19, 42, 67, 0.12);
  --shadow-pop: 0 10px 0 rgba(19, 42, 67, 0.08);

  --line: #d7e4ef;
  --line-strong: #132a43;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --header-h: 76px;

  --sans: "Nunito Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --display: "Fredoka", ui-rounded, "Nunito Sans", sans-serif;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--s3));
}

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sky);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }

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

.skip-link {
  position: absolute;
  left: var(--s2);
  top: -100px;
  z-index: 300;
  padding: var(--s2) var(--s3);
  background: var(--ink);
  color: var(--white);
  border-radius: var(--r-pill);
  font-family: var(--display);
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: var(--s2); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.875rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.625rem); }
h4 { font-size: 1.125rem; }

p { max-width: 62ch; }
strong { font-weight: 700; }

.lede {
  font-size: clamp(1.125rem, 1.7vw, 1.3125rem);
  line-height: 1.6;
  color: var(--ink-soft);
}

.muted { color: var(--ink-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--tang);
  background: var(--tang-tint);
  padding: var(--s1) var(--s2);
  border-radius: var(--r-pill);
}

.big-num {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* These pairs are marked up as spans, so they need blockifying to stack.
   Without it the label runs on inline after the number. */
.hero-trust .n, .hero-trust .l,
.stat .l,
.result-cell .n, .result-cell .l,
.build-row .name, .build-row .for,
.review .who .n, .review .who .p { display: block; }

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--s8); }
.section-sm { padding-block: var(--s6); }
.section-lg { padding-block: var(--s9); }

.stack > * + * { margin-top: var(--s3); }
.stack-sm > * + * { margin-top: var(--s2); }
.stack-lg > * + * { margin-top: var(--s4); }

.section-head {
  max-width: 46rem;
  margin-bottom: var(--s6);
}
.section-head > * + * { margin-top: var(--s2); }
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-head.center p { margin-inline: auto; }

/* The card is the whole system */
.card {
  background: var(--white);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  padding: var(--s5);
}
.card-flush { padding: 0; overflow: hidden; }
.card-tint { background: var(--theme-tint); box-shadow: none; }
.card-sky { background: var(--sky-deep); box-shadow: none; }
.card-ink { background: var(--ink); color: var(--white); }
.card-ink h2, .card-ink h3 { color: var(--white); }
.card-ink .muted { color: #a9bfd6; }
.card-outline {
  background: var(--white);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-pop);
}

/* Grids. Every text bearing column gets min-width 0. */
.grid { display: grid; gap: var(--s4); }
.grid > * { min-width: 0; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.g-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.g-split-wide { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; }
.g-aside { grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); align-items: start; }

/* Equal height cards in a row: content column pushes its footer down */
.fill { display: flex; flex-direction: column; height: 100%; }
.fill > .fill-end { margin-top: auto; padding-top: var(--s3); }

.media {
  border-radius: var(--r-inner);
  overflow: hidden;
  background: var(--sky-deep);
  position: relative;
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media-4x5 { aspect-ratio: 4 / 5; }
.media-3x2 { aspect-ratio: 3 / 2; }
.media-1x1 { aspect-ratio: 1 / 1; }
.media-16x9 { aspect-ratio: 16 / 9; }

/* --------------------------------------------------------------------------
   Buttons and chips
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  min-height: 52px;
  padding: 0 var(--s4);
  border-radius: var(--r-pill);
  background: var(--tang);
  color: var(--white);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 4px 0 var(--tang-dark);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.2s var(--ease);
}
.btn:hover { background: var(--tang-dark); transform: translateY(-2px); box-shadow: 0 6px 0 var(--tang-dark); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--tang-dark); }

.btn-ghost {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 4px 0 var(--line);
}
.btn-ghost:hover { background: var(--white); box-shadow: 0 6px 0 var(--line); }
.btn-ghost:active { box-shadow: 0 2px 0 var(--line); }

.btn-ink {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 4px 0 #0b1c2e;
}
.btn-ink:hover { background: #0b1c2e; box-shadow: 0 6px 0 #0b1c2e; }

.btn-sm { min-height: 42px; padding: 0 var(--s3); font-size: 0.9375rem; }
.btn-block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  align-items: center;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  font-family: var(--display);
  font-weight: 600;
  color: var(--tang);
}
.link-arrow svg { transition: transform 0.2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  padding: var(--s1) var(--s2);
  border-radius: var(--r-pill);
  background: var(--sky-deep);
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--ink);
}
.chip .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--theme);
  flex: none;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
}

/* --------------------------------------------------------------------------
   Header, floating rounded bar
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-block: var(--s2);
  background: var(--sky);
  transition: box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.site-header.stuck {
  box-shadow: 0 4px 20px rgba(19, 42, 67, 0.08);
  background: rgba(234, 242, 248, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-bar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  background: var(--white);
  border-radius: var(--r-pill);
  padding-inline: var(--s3);
  box-shadow: var(--shadow-sm);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  flex: none;
}
.brand svg { flex: none; }
.brand-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.4375rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}

.nav { display: flex; align-items: center; gap: var(--s1); }
.nav > li { position: relative; display: flex; }

.nav-link,
.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding-inline: var(--s2);
  border-radius: var(--r-pill);
  font-family: var(--display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.nav-link:hover,
.nav-trigger:hover { background: var(--sky); color: var(--tang); }
.nav-link[aria-current="page"] { color: var(--tang); background: var(--tang-tint); }

.nav-trigger .caret {
  width: 9px; height: 9px;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  border-radius: 1px;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform 0.25s var(--ease);
}
.nav-item.open .nav-trigger { background: var(--sky); color: var(--tang); }
.nav-item.open .nav-trigger .caret { transform: rotate(225deg) translate(-2px, -2px); }

.header-actions { display: flex; align-items: center; gap: var(--s2); flex: none; }

/* --------------------------------------------------------------------------
   Mega menu: the "who are you feeding" split panel
   -------------------------------------------------------------------------- */
.mega {
  position: absolute;
  top: calc(100% + var(--s2));
  left: 50%;
  width: min(920px, calc(100vw - var(--s4)));
  transform: translate(-50%, -10px);
  background: var(--white);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lg);
  padding: var(--s4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease), visibility 0s linear 0.24s;
}
.nav-item.open .mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}

.mega-halves {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s3);
}

.mega-half {
  display: block;
  background: var(--sky);
  border-radius: var(--r-inner);
  padding: var(--s3);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), background 0.28s var(--ease);
}
.mega-half:hover,
.mega-half:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  background: var(--tang-tint);
}

.mega-photo {
  /* A span is inline by default and would ignore aspect-ratio, letting the
     photograph run past the card and collide with the strip below. */
  display: block;
  aspect-ratio: 3 / 2;
  border-radius: var(--r-small);
  overflow: hidden;
  background: var(--sky-deep);
  margin-bottom: var(--s2);
}
.mega-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.mega-half:hover .mega-photo img,
.mega-half:focus-within .mega-photo img { transform: scale(1.05); }

.mega-half h3 {
  font-size: 1.375rem;
  margin-bottom: 2px;
}
.mega-half > p {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  margin-bottom: var(--s2);
}

.mega-links { display: flex; flex-wrap: wrap; gap: var(--s1); }
.mega-links a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding-inline: var(--s2);
  border-radius: var(--r-pill);
  background: var(--white);
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: color 0.18s var(--ease), transform 0.18s var(--ease);
}
.mega-links a:hover { color: var(--tang); transform: translateY(-2px); }

/* The recipe chip strip along the bottom */
.mega-strip {
  margin-top: var(--s3);
  padding-top: var(--s3);
  border-top: 2px solid var(--line);
}
.mega-strip-label {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--ink-soft);
  margin-bottom: var(--s2);
}
.mega-chips {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--s2);
}
.mega-chip {
  display: flex;
  align-items: center;
  gap: var(--s1);
  padding: var(--s1);
  padding-right: var(--s2);
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--theme) 14%, white);
  transition: transform 0.2s var(--ease-bounce), background 0.2s var(--ease);
  min-width: 0;
}
.mega-chip:hover { transform: translateY(-3px); background: color-mix(in srgb, var(--theme) 26%, white); }
.mega-chip img {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: var(--white);
}
.mega-chip span {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.8125rem;
  line-height: 1.15;
  color: var(--ink);
  min-width: 0;
}

/* --------------------------------------------------------------------------
   Mobile drawer
   -------------------------------------------------------------------------- */
.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border-radius: var(--r-pill);
  background: var(--sky);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
body.drawer-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
body.drawer-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.drawer-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.drawer {
  position: fixed;
  inset: calc(var(--header-h) + var(--s4)) var(--s3) var(--s3);
  z-index: 95;
  background: var(--white);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lg);
  padding: var(--s3);
  overflow-y: auto;
  display: none;
}
body.drawer-open .drawer { display: block; }
body.drawer-open { overflow: hidden; }

.drawer-group + .drawer-group { margin-top: var(--s1); }
.drawer-group > button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  min-height: 56px;
  padding-inline: var(--s3);
  border-radius: var(--r-pill);
  background: var(--sky);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--ink);
}
.drawer-group > button .caret {
  width: 9px; height: 9px;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
  flex: none;
}
.drawer-group.open > button { background: var(--tang-tint); color: var(--tang); }
.drawer-group.open > button .caret { transform: rotate(225deg); }

.drawer-sub { display: none; padding: var(--s2) var(--s2) var(--s2); }
.drawer-group.open .drawer-sub { display: block; }
.drawer-sub a {
  display: block;
  padding: var(--s1) var(--s2);
  border-radius: var(--r-small);
  font-weight: 600;
  color: var(--ink);
}
.drawer-sub a:hover { background: var(--sky); color: var(--tang); }
.drawer-sub a span {
  display: block;
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.drawer-link {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding-inline: var(--s3);
  border-radius: var(--r-pill);
  background: var(--sky);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.125rem;
  margin-top: var(--s1);
}
.drawer .btn { margin-top: var(--s3); }

/* --------------------------------------------------------------------------
   Hero, a contained card with canvas behind
   -------------------------------------------------------------------------- */
.hero { padding-block: var(--s4) var(--s6); }

.hero-card {
  position: relative;
  background: var(--white);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  isolation: isolate;
}

/* A canvas is a replaced element, so inset alone will not stretch it: without
   an explicit width and height it keeps its intrinsic 300 by 150. */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--s6);
  align-items: center;
  padding: var(--s7) var(--s6);
}

.hero-copy > * + * { margin-top: var(--s3); }
.hero-copy h1 { max-width: 12ch; }
.hero-copy .lede { max-width: 34ch; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3);
  margin-top: var(--s4);
  padding-top: var(--s3);
  border-top: 2px solid var(--line);
}
.hero-trust div { min-width: 0; }
.hero-trust .n {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1.1;
  color: var(--ink);
}
.hero-trust .l {
  font-size: 0.8125rem;
  color: var(--ink-soft);
  line-height: 1.3;
}

.hero-media {
  position: relative;
  border-radius: var(--r-inner);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--sky-deep);
  box-shadow: var(--shadow);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.hero-badge {
  position: absolute;
  right: calc(var(--s3) * -1);
  bottom: var(--s4);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 112px; height: 112px;
  border-radius: 50%;
  background: var(--tang);
  color: var(--white);
  text-align: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  box-shadow: var(--shadow);
}

/* --------------------------------------------------------------------------
   Wavy canvas dividers
   -------------------------------------------------------------------------- */
.wave {
  display: block;
  width: 100%;
  height: 72px;
}
.wave-holder { line-height: 0; }

/* --------------------------------------------------------------------------
   Recipe cards and theming
   -------------------------------------------------------------------------- */
[data-recipe="chicken-oats"] { --theme: var(--r-chicken); --theme-tint: #fdf3dd; }
[data-recipe="beef-barley"] { --theme: var(--r-beef); --theme-tint: #fbe6e0; }
[data-recipe="salmon-peas"] { --theme: var(--r-salmon); --theme-tint: #fdeaec; }
[data-recipe="turkey-pumpkin"] { --theme: var(--r-turkey); --theme-tint: #e4f2e7; }
[data-recipe="whitefish-rice"] { --theme: var(--r-fish); --theme-tint: #e6ecf9; }

.recipe-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.recipe-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.recipe-card .tin {
  aspect-ratio: 1 / 1;
  background: var(--theme-tint);
  display: grid;
  place-items: center;
  padding: var(--s3);
}
.recipe-card .tin img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform 0.4s var(--ease-bounce);
}
.recipe-card:hover .tin img { transform: scale(1.06) rotate(-2deg); }

.recipe-card .body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--s3);
  gap: var(--s1);
}
.recipe-card .body h3 { font-size: 1.25rem; }
.recipe-card .body p { font-size: 0.9375rem; color: var(--ink-soft); }
.recipe-card .body .fill-end { margin-top: auto; padding-top: var(--s2); }

.for-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 4px var(--s2);
  border-radius: var(--r-pill);
  background: var(--theme-tint);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.75rem;
}
.for-tag::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--theme);
}

/* Recipe page hero */
.recipe-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s6);
  align-items: center;
  background: var(--theme-tint);
  border-radius: var(--r-card);
  padding: var(--s6);
}
.recipe-hero .tin-shot {
  border-radius: var(--r-inner);
  overflow: hidden;
  background: var(--white);
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow);
}
.recipe-hero .tin-shot img { width: 100%; height: 100%; object-fit: cover; }

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s2);
}
.spec {
  background: var(--sky);
  border-radius: var(--r-inner);
  padding: var(--s3);
}
.spec dt {
  font-size: 0.8125rem;
  color: var(--ink-soft);
  margin-bottom: 2px;
}
.spec dd {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1.1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.ing-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
}
.ing-list li {
  padding: var(--s1) var(--s2);
  border-radius: var(--r-pill);
  background: var(--sky);
  font-size: 0.9375rem;
}
/* Stronger than the panel tint it may sit on, so the headline ingredients
   still read as pills rather than dissolving into the background. */
.ing-list li.lead {
  background: color-mix(in srgb, var(--theme) 32%, white);
  font-weight: 700;
}

.tick-list > li,
.cross-list > li {
  display: flex;
  gap: var(--s2);
  align-items: flex-start;
  padding-block: var(--s1);
}
.tick-list > li + li,
.cross-list > li + li { border-top: 1px solid var(--line); }
.tick-list svg, .cross-list svg { flex: none; margin-top: 3px; }

/* --------------------------------------------------------------------------
   Portion calculator
   -------------------------------------------------------------------------- */
.card[data-calc],
.card[data-builder] { position: relative; }

.calc {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s5);
  align-items: start;
}
.calc-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

.field { display: block; }
.field + .field { margin-top: var(--s3); }
.field > label,
.fieldset-label {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
  margin-bottom: var(--s1);
}
.field .hint {
  display: block;
  font-size: 0.8125rem;
  color: var(--ink-soft);
  margin-top: 6px;
}
.field .error {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: #c23b1e;
  margin-top: 6px;
}
.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-color: #c23b1e; }

input[type="text"],
input[type="email"],
input[type="number"],
input[type="tel"],
select,
textarea {
  width: 100%;
  min-height: 52px;
  padding: var(--s1) var(--s2);
  border: 2px solid var(--line);
  border-radius: var(--r-small);
  background: var(--white);
  color: var(--ink);
  font-size: 1rem;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
textarea { min-height: 140px; padding: var(--s2); resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--ink-faint); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--tang);
  box-shadow: 0 0 0 4px var(--tang-tint);
}
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: var(--s5);
}

/* Segmented pet picker */
.seg {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s1);
  padding: 6px;
  background: var(--sky);
  border-radius: var(--r-pill);
}
.seg button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  min-height: 46px;
  border-radius: var(--r-pill);
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink-soft);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.seg button[aria-pressed="true"] {
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.calc-result {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--r-card);
  padding: var(--s5);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.calc-result.show { opacity: 1; transform: none; }
.calc-result h3 { color: var(--white); }
.calc-result .muted { color: #a9bfd6; }

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s2);
  margin-block: var(--s3);
}
.result-cell {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--r-inner);
  padding: var(--s3);
}
.result-cell .n {
  font-family: var(--display);
  font-weight: 600;
  font-size: 2rem;
  line-height: 1;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.result-cell .l {
  font-size: 0.8125rem;
  color: #a9bfd6;
  margin-top: 4px;
}

.calc-empty {
  display: grid;
  place-items: center;
  text-align: center;
  gap: var(--s2);
  background: var(--sky-deep);
  border-radius: var(--r-card);
  padding: var(--s6) var(--s4);
  min-height: 320px;
}

/* --------------------------------------------------------------------------
   Box builder
   -------------------------------------------------------------------------- */
.builder {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--s4);
  align-items: start;
  position: relative;
}
.builder-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

.build-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: var(--s3);
  align-items: center;
  padding: var(--s2);
  border-radius: var(--r-inner);
  background: var(--white);
  transition: background 0.2s var(--ease);
}
.build-row + .build-row { margin-top: var(--s2); }
.build-row.has-qty { background: var(--theme-tint); }
.build-row .thumb {
  width: 64px; height: 64px;
  border-radius: var(--r-small);
  overflow: hidden;
  background: var(--theme-tint);
  flex: none;
}
.build-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.build-row .name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.2;
}
.build-row .for { font-size: 0.8125rem; color: var(--ink-soft); }

.stepper {
  display: flex;
  align-items: center;
  gap: var(--s1);
  background: var(--sky);
  border-radius: var(--r-pill);
  padding: 4px;
}
.stepper button {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--white);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s var(--ease-bounce), color 0.15s var(--ease);
}
.stepper button:hover { color: var(--tang); transform: scale(1.08); }
.stepper button:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }
.stepper .qty {
  min-width: 32px;
  text-align: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.0625rem;
  font-variant-numeric: tabular-nums;
}

.summary { position: sticky; top: calc(var(--header-h) + var(--s4)); }
.summary-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s2);
  padding-block: var(--s1);
}
.summary-line + .summary-line { border-top: 1px solid var(--line); }
.summary-line dt { color: var(--ink-soft); font-size: 0.9375rem; }
.summary-line dd {
  font-family: var(--display);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.summary-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s2);
  margin-top: var(--s2);
  padding-top: var(--s2);
  border-top: 2px solid var(--ink);
}
.summary-total .big-num { font-size: 2rem; }

.notice {
  display: flex;
  gap: var(--s2);
  align-items: flex-start;
  padding: var(--s2);
  border-radius: var(--r-inner);
  background: var(--tang-tint);
  font-size: 0.9375rem;
  margin-top: var(--s2);
}
.notice svg { flex: none; margin-top: 2px; }
.notice.ok { background: #e4f2e7; }

.progress-track {
  height: 12px;
  border-radius: var(--r-pill);
  background: var(--sky);
  overflow: hidden;
  margin-top: var(--s2);
}
.progress-fill {
  height: 100%;
  border-radius: var(--r-pill);
  background: var(--tang);
  width: 0;
  transition: width 0.4s var(--ease);
}

/* --------------------------------------------------------------------------
   Steps, stats, reviews, accordion, table
   -------------------------------------------------------------------------- */
.step {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: var(--s2);
  background: var(--white);
  border-radius: var(--r-card);
  padding: var(--s4);
  box-shadow: var(--shadow);
}
.step-num {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--tang-tint);
  color: var(--tang);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.25rem;
  flex: none;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s3);
  background: var(--white);
  border-radius: var(--r-card);
  padding: var(--s5);
  box-shadow: var(--shadow);
}
.stat { text-align: center; min-width: 0; }
.stat .l { font-size: 0.875rem; color: var(--ink-soft); margin-top: 4px; }

.review {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: var(--s2);
  background: var(--white);
  border-radius: var(--r-card);
  padding: var(--s4);
  box-shadow: var(--shadow);
}
.review blockquote { font-size: 1.0625rem; }
.review .who {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-top: auto;
  padding-top: var(--s2);
}
.review .who img {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: var(--sky-deep);
}
.review .who .n { font-family: var(--display); font-weight: 600; line-height: 1.2; }
.review .who .p { font-size: 0.875rem; color: var(--ink-soft); }
.stars { color: var(--tang); letter-spacing: 2px; font-size: 1rem; }

.acc { border-radius: var(--r-card); overflow: hidden; background: var(--white); box-shadow: var(--shadow); }
.acc-item + .acc-item { border-top: 2px solid var(--sky); }
.acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  text-align: left;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--ink);
  transition: background 0.18s var(--ease);
}
.acc-head:hover { background: var(--sky); }
.acc-icon {
  position: relative;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--sky);
  flex: none;
  transition: background 0.2s var(--ease);
}
.acc-icon::before, .acc-icon::after {
  content: "";
  position: absolute;
  inset: 50% 8px auto;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transform: translateY(-50%);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.acc-icon::after { transform: translateY(-50%) rotate(90deg); }
.acc-item.open .acc-icon { background: var(--tang-tint); }
.acc-item.open .acc-icon::after { transform: translateY(-50%) rotate(0deg); opacity: 0; }
.acc-body { display: none; padding: 0 var(--s4) var(--s4); }
.acc-item.open .acc-body { display: block; }

/* Bare spec tables sitting inside a card, e.g. analytical constituents */
.card table th {
  text-align: left;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink-soft);
  padding: 7px 0;
}
.card table td {
  text-align: right;
  font-family: var(--display);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding: 7px 0;
}
.card table tr + tr th,
.card table tr + tr td { border-top: 1px solid var(--line); }

.table-card { overflow-x: auto; border-radius: var(--r-card); background: var(--white); box-shadow: var(--shadow); }
.table-card table { min-width: 480px; }
.table-card th, .table-card td {
  padding: var(--s2) var(--s3);
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.table-card thead th {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--ink-soft);
  background: var(--sky);
}
.table-card tbody tr:last-child td { border-bottom: 0; }
.table-card td { font-variant-numeric: tabular-nums; }

/* Split feature rows */
.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s6);
  align-items: center;
}
.feature-row.flip .feature-media { order: -1; }

/* CTA card */
.cta-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--r-card);
  padding: var(--s8) var(--s5);
}
.cta-card h2 { color: var(--white); max-width: 20ch; margin-inline: auto; }
.cta-card p { color: #a9bfd6; margin-inline: auto; }
.cta-card .btn-row { justify-content: center; }
.cta-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
/* Lift the real content above the canvas, but leave the canvas absolute:
   including it here would drop it back into the flow and inflate the card. */
.cta-card > :not(.cta-canvas) { position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: var(--s8);
  padding-bottom: var(--s4);
}
.footer-card {
  background: var(--white);
  border-radius: var(--r-card);
  padding: var(--s6);
  box-shadow: var(--shadow);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: var(--s5);
}
.footer-grid h4 {
  font-size: 0.9375rem;
  margin-bottom: var(--s2);
}
.footer-grid li + li { margin-top: var(--s1); }
.footer-grid a { color: var(--ink-soft); }
.footer-grid a:hover { color: var(--tang); }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s3);
  justify-content: space-between;
  align-items: center;
  margin-top: var(--s5);
  padding-top: var(--s3);
  border-top: 2px solid var(--sky);
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.footer-base a { color: var(--ink); font-weight: 700; }
.footer-base a:hover { color: var(--tang); }

/* --------------------------------------------------------------------------
   Reveal motion
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: var(--s5); padding: var(--s6) var(--s4); }
  .hero-copy h1, .hero-copy .lede { max-width: none; }
  .hero-badge { width: 92px; height: 92px; right: var(--s2); font-size: 0.8125rem; }
  .g-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .builder { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  :root { --gutter: 1.25rem; }
  .calc { grid-template-columns: minmax(0, 1fr); }
  .feature-row, .g-split, .g-split-wide, .g-aside, .recipe-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s4);
  }
  .feature-row.flip .feature-media { order: 0; }
  .recipe-hero { padding: var(--s4); }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
  .section { padding-block: var(--s6); }
  .section-lg { padding-block: var(--s7); }
  .card { padding: var(--s4); }
}

@media (max-width: 620px) {
  body { font-size: 1rem; }
  .g-2, .g-3, .g-4, .g-5 { grid-template-columns: minmax(0, 1fr); }
  .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .cta-card { padding: var(--s6) var(--s3); }
  .hero-inner { padding: var(--s5) var(--s3); }
  .card { padding: var(--s3); }
  .build-row { grid-template-columns: 48px minmax(0, 1fr); gap: var(--s2); }
  .build-row .thumb { width: 48px; height: 48px; }
  .build-row .stepper { grid-column: 1 / -1; justify-content: space-between; }
  /* Full width buttons in content, but never in the header bar, which has to
     stay on one line beside the logo and the menu toggle. */
  main .btn-row { width: 100%; }
  main .btn-row > .btn { flex: 1 1 100%; }
  .header-actions .btn { display: none; }
}

/* --------------------------------------------------------------------------
   Reduced motion: everything decorative stops
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero-canvas, .calc-canvas, .builder-canvas, .cta-canvas, .wave { display: none; }
}
