/* ============================================================================
   WonderBowl — MVP landing page
   Vibrant color-field system matching the 4 test-story ad MVPs.
   Display: Ohno Blazeface (Adobe Fonts / Typekit). Body: Agrandir (local).
   Palette pulled from WonderBowl_MVP_v05_Colors.svg.
   Rule of thumb: white type on purple + pink fields; purple type on the
   lighter blue / yellow / green fields. Dog line-art has its white fills
   pre-matched to each field colour so only the purple linework reads.
   ============================================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Agrandir";
  src: url("assets/fonts/Agrandir-Regular.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Agrandir";
  src: url("assets/fonts/Agrandir-TextBold.otf") format("opentype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Agrandir";
  src: url("assets/fonts/Agrandir-GrandHeavy.otf") format("opentype");
  font-weight: 800; font-style: normal; font-display: swap;
}

:root {
  /* Brand palette (exact values from the Colors.svg) */
  --purple:      #6a05a5;   /* primary */
  --purple-line: #7400ab;   /* illustration linework */
  --purple-deep: #4a0374;   /* footer / shadows */
  --blue:        #75cfff;
  --yellow:      #ffcd50;
  --pink:        #ff77e1;
  --green:       #00d6a7;
  --white:       #ffffff;
  --cream:       #fff6e9;   /* warm card white */

  /* Type */
  --display: "ohno-blazeface", "Fraunces", Georgia, serif;
  --body: "Agrandir", "Hanken Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --maxw: 1180px;
  --wrap-pad-y: clamp(3.5rem, 8vw, 7rem);   /* .wrap vertical padding — dogs pull down by exactly this */
  --radius: 26px;
  --radius-sm: 16px;
  --shadow: 0 26px 60px -28px rgba(28, 3, 45, 0.55);
  --shadow-sm: 0 14px 30px -18px rgba(28, 3, 45, 0.5);
  --ring: 0 0 0 3px rgba(255, 255, 255, 0.55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--purple);
  background: var(--purple);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

/* ---------- Type ---------- */
h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 100;              /* Blazeface ships a single optical weight */
  line-height: 0.94;
  letter-spacing: -0.005em;
  margin: 0;
}
h1 { font-size: clamp(3rem, 7.5vw, 6.4rem); }
h2 { font-size: clamp(2.3rem, 5.2vw, 4.2rem); }
h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1; }

.eyebrow {
  font-family: var(--body);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  margin: 0 0 1.1rem;
}

.lede { font-size: 1.22rem; }
p { margin: 0 0 1rem; }

/* ---------- Color-field sections ---------- */
.field { position: relative; overflow: hidden; }
.field--purple { background: var(--purple);      color: var(--white); }
.field--blue   { background: var(--blue);        color: var(--purple); }
.field--yellow { background: var(--yellow);      color: var(--purple); }
.field--green  { background: var(--green);       color: var(--purple); }
.field--pink   { background: var(--pink);        color: var(--white); }
.field--deep   { background: var(--purple-deep); color: var(--white); }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--wrap-pad-y) clamp(1.25rem, 4vw, 3rem);
  position: relative;
  z-index: 2;
}

/* Accent (em) inside display headings pops against the field */
.field--purple :is(h1, h2) em,
.field--pink   :is(h1, h2) em { font-style: normal; color: var(--yellow); }
.field--blue   :is(h1, h2) em,
.field--yellow :is(h1, h2) em,
.field--green  :is(h1, h2) em { font-style: normal; color: var(--pink); }

/* Eyebrow accent colour per field */
.field--purple .eyebrow, .field--pink .eyebrow { color: var(--yellow); }
.field--blue .eyebrow, .field--yellow .eyebrow, .field--green .eyebrow { color: var(--purple); }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--body);
  font-weight: 800;
  font-size: 1rem;
  border: none;
  border-radius: 999px;
  padding: 0.95rem 1.7rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }

/* Cream pill — reads on every field */
.btn--primary {
  background: var(--white);
  color: var(--purple);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: var(--shadow); background: var(--yellow); }

/* Outline pill — border in current text colour */
.btn--ghost {
  background: transparent;
  color: inherit;
  box-shadow: inset 0 0 0 2.5px currentColor;
}
.btn--ghost:hover { background: currentColor; }
.btn--ghost:hover span, .btn--ghost:hover { color: inherit; }
.field--purple .btn--ghost:hover, .field--pink .btn--ghost:hover { color: var(--purple); }
.field--blue .btn--ghost:hover, .field--yellow .btn--ghost:hover, .field--green .btn--ghost:hover { color: var(--white); }

.btn--text { background: none; color: inherit; padding: 0.95rem 0.4rem; opacity: 0.92; }
.btn--text:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }

.btn--lg { font-size: 1.14rem; padding: 1.1rem 2.2rem; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.05rem clamp(1.25rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--purple) 82%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand__logo { height: 49.7px; width: auto; }          /* cropped viewBox → same glyph size, shorter header */
.site-nav { margin-left: auto; display: flex; gap: 1.7rem; }
.site-nav a {
  text-decoration: none;
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  position: relative;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 3px;
  border-radius: 3px; background: var(--yellow); transition: width 0.2s ease;
}
.site-nav a:hover::after { width: 100%; }
.header-cta {
  padding: 0.66rem 1.35rem; font-size: 0.92rem;
  background: var(--pink); color: var(--white);
  box-shadow: 0 10px 22px -12px rgba(255, 119, 225, 0.9);
}
.header-cta:hover { background: color-mix(in srgb, var(--pink) 84%, #000); transform: translateY(-2px); }

/* ---------- Decorative dogs (line-art, pre-matched to field) ---------- */
.dog {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}
.dog img { width: 100%; height: auto; }

/* Soft glow blobs for atmosphere on flat fields */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

/* ---------- Hero ---------- */
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;   /* copy left, bowl right */
  gap: clamp(1.5rem, 5vw, 3rem);
  align-items: center;
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
}
.hero__copy { animation: rise 0.7s ease both; }
.hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.9rem); margin: 0 0 1.4rem; }
.hero h1 em { color: var(--white); }
.hero__sub { font-size: 1.24rem; max-width: 34ch; color: inherit; opacity: 0.9; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; margin: 2rem 0 1.6rem; }
.hero__reassure {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: nowrap; gap: 0.4rem 0.8rem;
  font-size: 0.8rem; font-weight: 700; white-space: nowrap;
}
.hero__reassure li { display: flex; align-items: center; gap: 0.35rem; white-space: nowrap; }
.hero__reassure span { color: var(--pink); font-weight: 800; font-size: 0.95rem; }

.hero__media { position: relative; animation: rise 0.8s 0.1s ease both; }
.hero__media img { width: 100%; }

/* Scroll parallax: flying ingredients lift out of the bowl */
.parallax { position: relative; }
.parallax__bowl {
  position: relative; z-index: 2;
}
.parallax__ing {
  position: absolute; left: 50%; bottom: 32%;
  width: 92%; z-index: 1;
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  will-change: transform, opacity;
  pointer-events: none;
}
.hero__sticker { position: absolute; left: -6px; bottom: 4%; z-index: 3; max-width: 12rem; }
.hero .glow--1 { width: 460px; height: 460px; background: var(--pink); top: -120px; right: -80px; opacity: 0.4; }
.hero .glow--2 { width: 380px; height: 380px; background: var(--blue); bottom: -140px; left: -120px; opacity: 0.35; }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  padding: 0.7rem 0;
  border-top: 4px solid var(--purple);
  border-bottom: 4px solid var(--purple);
}
.marquee__track {
  display: inline-flex;
  gap: 1.2rem;
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 100;
  font-size: 1.55rem;
  color: var(--purple);
  animation: scroll-x 30s linear infinite;
  padding-left: 1.2rem;
}
/* Name and icon share one inline-flex item so the track gap falls between
   ingredients, not between a name and its own icon. */
.marquee__item { display: inline-flex; align-items: center; gap: 0.4em; }
/* color and fill both: several symbols draw detail strokes in currentColor
   (carrot top, beet and berry stems, squash stalk). */
.marquee__ico { width: 1em; height: 1em; flex: none; color: var(--green); fill: currentColor; }

/* ---------- Story ---------- */
.story .wrap {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.story__media { position: relative; }
.story__photo {
  position: relative;
  /* Explicit width: the img is absolutely positioned, so it contributes no
     intrinsic size — without this the frame collapses wherever its parent is
     sized by fit-content (e.g. the auto-margin mobile layout below). */
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: color-mix(in srgb, var(--purple) 12%, var(--blue));
  border: 4px solid var(--white);
  aspect-ratio: 4 / 5;
}
/* Pinned to the edges rather than height:100% — Safari does not treat a height
   derived from aspect-ratio as definite, so a percentage height collapses there
   and leaves the frame part-empty. inset:0 + cover fills it in every browser. */
.story__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story .dog--story { width: 190px; right: -22px; bottom: -34px; transform: rotate(6deg); }
.story h2 { margin-bottom: 1.2rem; }
.story h2 em { display: inline; }
.story__copy p { max-width: 46ch; font-size: 1.08rem; }
.story__sign { font-family: var(--display); font-weight: 100; font-size: 1.5rem; margin: 0.5rem 0 1.6rem; }

/* ---------- Recipe ---------- */
.recipe .wrap { max-width: 960px; }
.recipe__head { text-align: center; margin-bottom: 2.2rem; }
.recipe h2 { margin-bottom: 1.4rem; }
/* Full-bleed photo band between Pricing (purple) and Recipe (green). The source is
   pre-cropped wide, so object-fit only trims the edges at extreme widths. */
.ingredient-strip { margin: 0; height: clamp(110px, 15vw, 230px); overflow: hidden; background: var(--green); }
.ingredient-strip img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.trust-badges { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--white);
  color: var(--purple);
  border-radius: 999px;
  padding: 0.5rem 1.05rem;
  font-size: 0.88rem; font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.badge span { color: var(--pink); font-size: 1rem; }

.recipe__drop {
  background: color-mix(in srgb, var(--white) 22%, transparent);
  border: 3px solid var(--purple);
  border-radius: var(--radius-sm);
  padding: 0.4rem 1.4rem;
}
.recipe__drop summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 0.2rem;
  font-family: var(--display); font-weight: 100; font-size: 1.5rem;
  color: var(--purple);
}
.recipe__drop summary::-webkit-details-marker { display: none; }
.recipe__chev { transition: transform 0.25s ease; }
.recipe__drop[open] .recipe__chev { transform: rotate(180deg); }
.recipe__body { padding: 0.5rem 0.2rem 1.2rem; animation: rise 0.4s ease both; }
.recipe__blurb { max-width: 62ch; font-size: 1.05rem; }

/* The nutrient analysis is secondary to the ingredient breakdown: it drops the
   card treatment entirely and sets its label in the text face at body scale,
   so the collapsed page reads as one card followed by a plain link. */
.recipe__drop--nutrition {
  background: none;
  border: 0;
  border-radius: 0;
}
.recipe__drop--nutrition summary {
  font-family: var(--body); font-weight: 700; font-size: 1rem;
  letter-spacing: 0.01em;
}
.ingredients {
  list-style: none; padding: 0; margin: 1.4rem 0 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 2rem;
}
.ingredients li {
  display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 0.7rem;
  padding: 0.7rem 0;
  border-bottom: 2px solid color-mix(in srgb, var(--purple) 22%, transparent);
}
.ing__ico {
  width: 24px; height: 24px;
  color: var(--purple); fill: currentColor;
  flex: none;
}
.ingredients strong { font-family: var(--display); font-weight: 100; font-size: 1.25rem; letter-spacing: 0.01em; }
.ingredients em { grid-column: 3; font-style: normal; font-size: 0.92rem; text-align: right; opacity: 0.85; }

/* ---------- AAFCO nutrient table ---------- */
.recipe__drop + .recipe__drop { margin-top: 1rem; }
.nutrition__scroll { overflow-x: auto; margin-top: 1.4rem; }
.nutrition__scroll:focus-visible { outline: 3px solid var(--purple); outline-offset: 4px; }
.nutrition {
  width: 100%; min-width: 40rem;
  border-collapse: collapse;
  font-size: 0.95rem; text-align: left;
}
.nutrition__cap {
  text-align: left; max-width: 56ch;
  font-size: 0.88rem; opacity: 0.7; padding-bottom: 1rem;
}
.nutrition thead th {
  font-family: var(--body); font-weight: 800;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
  opacity: 0.65; padding: 0 0 0.6rem; vertical-align: middle;
  border-bottom: 2px solid color-mix(in srgb, var(--purple) 32%, transparent);
}
.nutrition tbody th, .nutrition tbody td {
  padding: 0.55rem 0; vertical-align: baseline;
  border-bottom: 1px solid color-mix(in srgb, var(--purple) 14%, transparent);
}
.nutrition tbody th { font-weight: 500; padding-right: 1.4rem; }
.nutrition thead th + th, .nutrition tbody td { text-align: right; padding-left: 1.4rem; }
.nutrition__group th {
  font-family: var(--display); font-weight: 100; font-size: 1.3rem;
  color: var(--purple); text-transform: none; letter-spacing: 0; opacity: 1;
  padding: 1.9rem 0 0.5rem;
  border-bottom: 2px solid color-mix(in srgb, var(--purple) 32%, transparent);
}
.nutrition tbody tr:first-child .nutrition__group th,
.nutrition tbody tr.nutrition__group:first-child th { padding-top: 0.8rem; }
.nutrition__val { font-weight: 700; }
.nutrition__req { opacity: 0.72; }
.nutrition__lim { opacity: 0.6; }
.nutrition__val, .nutrition__req, .nutrition__pct {
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.nutrition__pct { font-weight: 700; color: var(--purple); }
/* The comparison column is the answer the table exists to give, so it carries a
   tint. Group rows span all four columns, so the band breaks at each heading —
   that reads as grouping rather than as a broken fill. */
/* Specificity note: `.nutrition tbody td` (0,1,2) sets the shared right-aligned
   cell padding, so a bare `.nutrition__pct` (0,1,0) loses to it. Both selectors
   below are qualified past it — otherwise the tint keeps the wide left padding
   and zero right padding of the generic cell and the number sits flush right. */
.nutrition thead th:last-child,
.nutrition tbody td.nutrition__pct {
  background: color-mix(in srgb, var(--white) 38%, transparent);
  width: 6.5rem;
  text-align: center;
  padding-left: 0.85rem;
  padding-right: 0.85rem;
}
.nutrition thead th:last-child {
  padding-top: 0.6rem;
  border-top-left-radius: 6px; border-top-right-radius: 6px;
}

/* Hold the requirement column off the tinted column beside it. Qualified past
   `.nutrition tbody td` for the same specificity reason noted above. */
.nutrition thead th:nth-child(3),
.nutrition tbody td.nutrition__req { padding-right: 1rem; }

/* "In range" replaces the multiple wherever exceeding the floor is not itself
   good news. Set in the text face so it reads as a verdict, not a figure. */
.nutrition tbody td.nutrition__pct--range {
  font-family: var(--body); font-weight: 400; font-size: 0.68rem;
  text-transform: uppercase; letter-spacing: 0.07em;
}
/* Dry matter: the figure a reader can compare against a bag in the shop. */
.nutrition__dm { display: block; font-weight: 400; font-size: 0.82rem; opacity: 0.62; }



/* ---------- Taste Test ---------- */
.taste-test .wrap { text-align: center; }
.taste-test__intro { max-width: 60ch; margin: 0 auto; }
.taste-test h2 { margin-bottom: 1rem; }
.taste-test__grid {
  margin: 3rem 0 2rem;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem;
  text-align: left;
}
.tt-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.1rem 1.85rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-bottom: 8px solid var(--pink);
}
.tt-card:nth-child(2) { border-bottom-color: var(--green); }
.tt-card:nth-child(3) { border-bottom-color: var(--purple); }
.tt-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.tt-card__icon { font-size: 2.3rem; margin-bottom: 0.7rem; }
.tt-card h3 { margin-bottom: 0.55rem; color: var(--purple); }
.tt-card p { margin: 0; color: color-mix(in srgb, var(--purple) 88%, #000); font-size: 0.98rem; }
.taste-test__note {
  max-width: 62ch; margin: 1.4rem auto 0; text-align: center;
  padding: 0.4rem 1rem;
  color: var(--purple);
}

/* ---------- Final CTA ---------- */
.final-cta .wrap { text-align: center; }
.final-cta__inner { position: relative; z-index: 2; }
.final-cta h2 { margin-bottom: 0.6rem; }
.final-cta .lede { margin: 0 auto 1.2rem; max-width: 40ch; }
.final-cta__accent { font-family: var(--display); font-weight: 100; color: var(--yellow); font-size: 1.6rem; }
.final-cta__media { max-width: 340px; margin: 0.5rem auto 1.6rem; position: relative; }
.final-cta__media img { filter: none; }
/* Pull down by exactly the section's bottom padding so the paws land on the
   colour boundary. .field is overflow:hidden — any more and the legs get clipped. */
/* +7px offsets the extra bounding-box height the 4deg rotation adds below the paws. */
.final-cta .dog--cta { position: static; display: block; width: 178px; margin: 1.8rem auto calc(var(--wrap-pad-y) * -1 + 7px); transform: rotate(4deg); }
.final-cta__fine { font-size: 0.92rem; opacity: 0.9; margin-top: 1.25rem; }
.final-cta .glow--1 { width: 420px; height: 420px; background: var(--yellow); top: -120px; left: -60px; opacity: 0.3; }

/* ---------- Footer ---------- */
.site-footer { text-align: center; }
.site-footer .wrap { padding-top: 3rem; padding-bottom: 3rem; }
.footer__logo { height: 80px; width: auto; margin: 0 auto 1rem; }
.site-footer p { margin: 0.3rem 0; font-size: 0.96rem; color: color-mix(in srgb, var(--white) 85%, transparent); }
.site-footer__fine { font-size: 0.84rem; opacity: 0.7; margin-top: 0.7rem; }
.site-footer__contact { margin-top: 0.75rem; }
.site-footer__contact a {
  color: var(--purple); font-weight: 700; text-decoration: underline;
  text-underline-offset: 3px; text-decoration-thickness: 2px;
  transition: opacity 0.18s ease;
}
.site-footer__contact a:hover { opacity: 0.7; }
/* Footer brand row: the logo and the Instagram glyph both link to the profile. */
.footer__brand { display: flex; align-items: center; justify-content: center; gap: 0.9rem; margin: 0 0 1rem; }
.footer__brand-logo { display: inline-flex; line-height: 0; }
.footer__brand .footer__logo { margin: 0; }
.footer__ig {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--purple); text-decoration: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.footer__ig:hover { opacity: 0.75; transform: translateY(-1px); }
/* No resting border, so keyboard focus needs its own visible ring. */
.footer__ig:focus-visible { outline: 2px solid var(--purple); outline-offset: 4px; border-radius: 10px; }
.footer__brand-logo:hover { opacity: 0.85; }
.footer__ig-glyph { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.footer__ig-glyph .dot { fill: currentColor; stroke: none; }
@media (prefers-reduced-motion: reduce) { .footer__ig { transition: none; } .footer__ig:hover { transform: none; } }
.footer__mark { width: 34px; margin: 0 auto 0.4rem; opacity: 0.9; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 1.25rem; }
.modal[hidden] { display: none; }
.modal__overlay { position: absolute; inset: 0; background: color-mix(in srgb, var(--purple-deep) 68%, transparent); backdrop-filter: blur(4px); animation: fade 0.25s ease both; }
.modal__panel {
  position: relative;
  width: min(560px, 100%);
  max-height: 92vh; overflow-y: auto;
  background: var(--cream);
  color: var(--purple);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.75rem, 4vw, 2.9rem);
  border-top: 10px solid var(--pink);
  animation: pop 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.3) both;
}
/* Decorative top-down bowl, cropped by ~half off the modal's right edge */
.modal__bowl { display: none; }
@media (min-width: 680px) {
  .modal__panel { width: min(780px, 100%); padding-right: 210px; }
  .modal__bowl {
    display: block; position: absolute; top: 50%; right: 0;
    width: 320px; height: 320px; object-fit: contain;
    transform: translate(46%, -50%); z-index: 0; pointer-events: none;
    filter: drop-shadow(0 16px 26px rgba(28, 3, 45, 0.28));
  }
}
.modal__close {
  position: absolute; top: 0.9rem; right: 1rem;
  background: none; border: none; font-size: 1.9rem; line-height: 1;
  color: var(--purple); cursor: pointer; opacity: 0.6;
}
.modal__close:hover { opacity: 1; color: var(--pink); }
.modal h2 { font-size: clamp(1.9rem, 4vw, 2.5rem); margin-bottom: 0.4rem; color: var(--purple); }
.modal .eyebrow { color: var(--pink); }
.modal__sub { margin: 0 0 1.5rem; opacity: 0.85; }

.field-group { margin-bottom: 1rem; }
.field-group label { display: block; font-size: 0.85rem; font-weight: 800; margin-bottom: 0.35rem; }
.field-group input, .field-group select {
  width: 100%;
  font-family: var(--body); font-size: 1rem;
  padding: 0.82rem 0.95rem;
  border: 2.5px solid color-mix(in srgb, var(--purple) 30%, transparent);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--purple);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.field-group input:focus, .field-group select:focus {
  outline: none; border-color: var(--purple);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pink) 40%, transparent);
}
.field-hint { font-size: 0.78rem; opacity: 0.7; margin: 0.3rem 0 0; }
.field-check { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.9rem; margin: 0.2rem 0 1rem; cursor: pointer; }
.field-check input { width: 1.2rem; height: 1.2rem; margin-top: 0.1rem; accent-color: var(--purple); flex: none; }
.field-check a { color: var(--purple); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.form-error { color: #c01a4f; font-size: 0.9rem; font-weight: 700; margin: 0 0 0.75rem; }
.modal__fine { font-size: 0.8rem; text-align: center; opacity: 0.65; margin: 0.9rem 0 0; }

.modal__success { text-align: center; }
.success__mark {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--purple);
  display: grid; place-items: center;
  margin: 0 auto 1.25rem;
  box-shadow: var(--shadow-sm);
}
.success__mark img { width: 52px; }
.modal__success p { margin-bottom: 1.75rem; opacity: 0.9; }
.modal__success [data-success-name],
.modal__success [data-success-email],
.modal__success [data-success-dog] { color: var(--pink); font-weight: 800; }

/* ---------- Callout stickers ---------- */
.callout {
  display: inline-block;
  font-family: var(--display); font-weight: 100;
  font-size: 1.05rem; line-height: 1.1;
  padding: 0.5rem 0.95rem;
  border-radius: 12px;
  transform: rotate(-2.5deg);
  box-shadow: var(--shadow-sm);
  margin: 0.6rem 0;
}
.callout--yellow { background: var(--yellow); color: var(--purple); }
.callout--pink   { background: var(--pink);   color: var(--white); }
.callout--purple { background: var(--purple); color: var(--white); }

/* ---------- Fun pills (recipe) ---------- */
.funpills { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin: 1.1rem 0; }
.funpill {
  background: var(--purple); color: var(--white);
  font-weight: 800; font-size: 0.82rem;
  padding: 0.42rem 0.95rem; border-radius: 999px;
}
.recipe__sub { font-family: var(--body); font-weight: 400; font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.35; margin: 0.55rem 0 0.15rem; }
.recipe__beg { text-align: center; margin-top: 1.9rem; }
.recipe__tag { font-size: 1.15rem; margin: 0.4rem 0 0; }
.recipe__tag strong { color: var(--purple); }

/* ---------- Pricing ---------- */
.pricing__head { text-align: center; max-width: 720px; margin: 0 auto 2.6rem; }
.pricing__head h2 { margin-bottom: 0.8rem; }
.pricing__lede { color: color-mix(in srgb, var(--white) 90%, transparent); margin: 0.6rem auto 0; }
.pricing__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: stretch; }
.price-card {
  background: var(--white); color: var(--purple);
  border-radius: var(--radius); padding: 2.1rem 1.6rem 1.8rem;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; text-align: center; position: relative;
}
.price-card--featured { transform: scale(1.045); border: 4px solid var(--yellow); }
.price-card__flag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--pink); color: var(--white);
  font-family: var(--body); font-weight: 800; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.32rem 0.85rem; border-radius: 999px; white-space: nowrap;
}
.price-card__tier { font-family: var(--display); font-weight: 100; font-size: 1.8rem; margin: 0.2rem 0 0; }
.price-card__weight { font-size: 0.9rem; opacity: 0.7; margin: 0.25rem 0 1.1rem; }
.price-card__cost { margin: 0.1rem 0; }
.price-card__amt { font-family: var(--display); font-weight: 100; font-size: 2.7rem; color: var(--pink); }
.price-card__unit { font-size: 0.85rem; opacity: 0.8; }
.price-card__retail { font-size: 0.85rem; opacity: 0.55; margin: 0.15rem 0 0.7rem; }
.price-card .btn { margin-top: auto; }
.price-card .btn--primary { background: var(--purple); color: var(--white); }
.price-card .btn--primary:hover { background: var(--pink); }
.pricing__fine { text-align: center; opacity: 0.85; margin-top: 1.5rem; font-size: 0.92rem; }

/* ---------- FAQ ---------- */
.faq__head { text-align: center; max-width: 780px; margin: 0 auto 2.4rem; }
.faq__list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.85rem; }
.faq__item {
  background: color-mix(in srgb, var(--white) 55%, transparent);
  border: 3px solid var(--purple);
  border-radius: var(--radius-sm);
  padding: 0.1rem 1.3rem;
}
.faq__item summary {
  list-style: none; cursor: pointer;
  font-family: var(--display); font-weight: 100; font-size: 1.3rem; color: var(--purple);
  padding: 1rem 0; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-family: var(--body); font-weight: 800; font-size: 1.5rem; line-height: 1; }
.faq__item[open] summary::after { content: "\2013"; }
.faq__body { padding: 0 0 1.1rem; animation: rise 0.35s ease both; }
.faq__body p { margin: 0; font-size: 1.02rem; }
.faq a { color: var(--purple); font-weight: 700; }
.faq__dog { width: clamp(120px, 14vw, 155px); margin: 2.6rem auto calc(var(--wrap-pad-y) * -1); }
.faq__dog img { width: 100%; }

/* ---------- Yellow footer overrides ---------- */
.site-footer.field--yellow p { color: var(--purple); opacity: 0.9; }
.site-footer.field--yellow .site-footer__fine { opacity: 0.7; }
.legal { max-width: 760px; margin: 1.6rem auto 0; text-align: left; }
.legal > summary {
  cursor: pointer; list-style: none; text-align: center;
  font-weight: 800; color: var(--purple); padding: 0.4rem 0;
}
.legal > summary::-webkit-details-marker { display: none; }
.legal > summary::after { content: "+"; margin-left: 0.5rem; font-weight: 800; display: inline-block; }
.legal[open] > summary::after { content: "\2013"; }
.legal__body { margin-top: 1rem; }
.legal__body h4 { font-family: var(--body); font-size: 0.86rem; font-weight: 800; margin: 1.1rem 0 0.25rem; }
.legal__body h4:first-child { margin-top: 0; }
.legal__body p { font-size: 0.8rem; line-height: 1.55; opacity: 0.8; margin: 0 0 0.7rem; }

/* Component responsive */
@media (max-width: 900px) {
  .pricing__grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .price-card--featured { transform: none; }
  .hero__sticker { display: none; }
  /* The single-line trust row is ~700px of unbreakable content — it inflates the
     whole document past the viewport once the hero stacks. Let it wrap. */
  .hero__reassure { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); }
  .hero__copy { text-align: center; }
  .hero__sub { max-width: 100%; margin: 0 auto; }
  .hero__actions { justify-content: center; }
}

/* ---------- Consent banner ---------- */
.consent {
  /* Centred with auto margins, NOT translateX(-50%): the `rise` animation ends on
     `transform: none`, which would wipe out a centring transform once it finishes. */
  position: fixed; left: 0; right: 0; bottom: 1rem; margin-inline: auto;
  z-index: 2000; width: min(680px, calc(100% - 1.5rem));
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.2rem;
  background: var(--cream); color: var(--purple);
  border: 3px solid var(--purple); border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 1rem 1.2rem;
  animation: rise 0.4s ease both;
}
.consent__text { margin: 0; font-size: 0.9rem; line-height: 1.45; flex: 1 1 300px; }
.consent__actions { display: flex; gap: 0.6rem; margin-left: auto; }
.consent__btn { padding: 0.6rem 1.25rem; font-size: 0.9rem; }
.consent__yes { background: var(--pink); color: var(--white); box-shadow: var(--shadow-sm); }
.consent__yes:hover { background: color-mix(in srgb, var(--pink) 84%, #000); transform: translateY(-2px); }
.consent__no { background: transparent; color: var(--purple); box-shadow: inset 0 0 0 2px var(--purple); }
.consent__no:hover { background: var(--purple); color: var(--white); }
@media (max-width: 640px) {
  .consent {
    width: calc(100% - 1.5rem);
    padding: 0.9rem 1rem;
    gap: 0.6rem;
  }
  .consent__text { font-size: 0.85rem; flex: 1 1 100%; }
  .consent__actions { margin-left: 0; width: 100%; }
  .consent__btn { flex: 1; justify-content: center; padding: 0.6rem 1rem; font-size: 0.85rem; }
}

/* ---------- Animations ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop  { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 440px; margin: 0 auto; }
  .story .wrap { grid-template-columns: 1fr; }
  .story__media { width: 100%; max-width: 420px; margin: 0 auto; }
  .taste-test__grid { grid-template-columns: 1fr; }
  .ingredients { grid-template-columns: 1fr; }
  .ingredients em { grid-column: 2 / -1; text-align: left; }
  .dog { display: none; }
  .site-nav { display: none; }
}
@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; }
  .header-cta { display: none; }
}
