/* Marrow: the template's stylesheet, copied from index.html of the Marrow HTML release. */
/* ---------- Tokens ---------- */
:root {
  --ink: #1c2a6b;          /* navy text */
  --ink-2: #4a5590;        /* secondary text, 7:1 on white */
  --hero: #74adfd;         /* the hero card; the hero photos are cut out of this colour */
  --on-hero: var(--ink);   /* header links and icons over the hero. White needs a --hero dark enough for 4.5:1 */
  --accent: #ff6b2c;       /* pills and circles; text on it is --ink */
  --accent-dark: #c2410c;  /* prices and small accents on light backgrounds */
  --cream: #fff3e3;
  --mist: #eef2fb;
  --line: #d6dcef;
  --display: "Unbounded", "Arial Black", sans-serif;
  --sans: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1282px;
  --pad: clamp(16px, 3.5vw, 50px);
  --inset: 20px;
  --r-hero: 88px;
  --ease: cubic-bezier(.22, .9, .3, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { background: #fff; color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
main { overflow-x: clip; } /* cards that slide in or run off to the right never widen the page */
img, svg, canvas { display: block; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul { list-style: none; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--pad)); margin: 0 auto; }
.h2 { font: 500 36px/1.25 var(--display); letter-spacing: -.01em; color: var(--ink); }
.h2 b { font-weight: 700; }
.lead { font-size: 20.5px; line-height: 32.9px; color: var(--ink); }

/* Pills and round arrow buttons */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 48px; padding: 0 35px; border: 0; border-radius: 50px; background: var(--accent); color: var(--ink); font: 700 13px/1 var(--sans); letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; transition: background-color .3s, color .3s; }
.pill:hover { background: var(--ink); color: #fff; }
.pill.big { height: 56px; padding: 0 40px; }
.pill[disabled] { opacity: .6; cursor: progress; }
.circ { display: inline-grid; place-items: center; flex: none; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: var(--accent); color: var(--ink); overflow: hidden; transition: background-color .3s, color .3s; }
.circ svg { width: 14px; height: 14px; transition: transform .4s var(--ease); }
.circ:hover, a:hover .circ, button:hover > .circ { background: var(--ink); color: #fff; }
.circ:hover svg, a:hover .circ svg, button:hover > .circ svg { transform: translateX(3px); }

/* Image boxes: a fixed shape and a placeholder colour until the picture loads */
.ph { position: relative; background: var(--ph, #dfe6f7); }
.ph.ok { background: transparent; }
.ph.miss img { visibility: hidden; }
.ph img { width: 100%; height: 100%; object-fit: contain; }

/* Hand-drawn strokes that draw themselves */
.dp path { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.motion .dp path { stroke-dasharray: 1 2; stroke-dashoffset: 1; opacity: 0; }
.motion .dp.drawn path { stroke-dashoffset: 0; opacity: 1; transition: stroke-dashoffset 1s ease var(--d, 0s), opacity 0s var(--d, 0s); }
.motion .dp.one.drawn path { transition-duration: 1.5s, 0s; }

/* ---------- Page wipe ---------- */
.wipe { display: none; position: fixed; inset: 0; z-index: 100; background: var(--accent); transform-origin: left center; pointer-events: none; }
.motion .wipe { display: block; animation: wipe .65s cubic-bezier(.5, 1, .89, 1) .05s forwards; }
@keyframes sheet { from { transform: translateY(48px); opacity: 0; } }
@keyframes wipe { to { transform: scaleX(0); visibility: hidden; } }

/* ---------- Header ---------- */
.hdr { position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: 104px; padding: var(--inset) calc(var(--inset) + 46px) 0; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 20px; color: var(--on-hero); transition: height .6s var(--ease), padding .6s var(--ease), color .4s; }
.hdr::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transform: translateY(-101%); transition: transform 1s cubic-bezier(.19, 1, .22, 1); }
.solid .hdr { height: 84px; padding-top: 0; color: var(--ink); }
.solid .hdr::before { transform: none; transition-delay: .2s; }
.hnav { display: flex; gap: clamp(18px, 2.4vw, 34px); }
.hnav a, .menu-btn { font: 700 13px/1 var(--sans); letter-spacing: 1px; text-transform: uppercase; }
.hnav a { position: relative; padding: 8px 0; white-space: nowrap; }
.hnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.hnav a:hover::after { transform: scaleX(1); transform-origin: left; }
.hlogo { position: relative; display: grid; place-items: center; width: 190px; height: 72px; }
.h-mark { width: 57px; height: 72px; color: #fff; }
.h-word { position: absolute; left: 50%; top: 50%; margin-top: -.5em; transform: translateX(-50%); white-space: nowrap; font: 800 26px/1 var(--display); letter-spacing: .02em; text-align: center; color: var(--ink); }
.h-mark, .h-word { will-change: clip-path, opacity; }
.h-mark { clip-path: inset(0 0 0 0); opacity: 1; transition: clip-path .7s cubic-bezier(.65, 0, .35, 1) .3s, opacity .7s cubic-bezier(.65, 0, .35, 1) .3s; }
.h-word { clip-path: inset(0 50% 0 50%); opacity: 0; transition: clip-path .5s cubic-bezier(.32, 0, .67, 0), opacity .5s cubic-bezier(.32, 0, .67, 0); }
.solid .h-mark { clip-path: inset(0 50% 0 50%); opacity: 0; transition-delay: 0s; }
.solid .h-word { clip-path: inset(0 0 0 0); opacity: 1; transition: clip-path .7s cubic-bezier(.33, 1, .68, 1) .4s, opacity .7s cubic-bezier(.33, 1, .68, 1) .4s; }
.hact { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.ib { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; transition: background-color .3s; }
.ib:hover { background: rgba(28, 42, 107, .1); }
.ib svg { width: 22px; height: 22px; }
.hact .pill { margin-left: 10px; }
.menu-btn { position: relative; flex: none; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: var(--accent); color: var(--ink); margin-left: 4px; transition: background-color .3s, color .3s; }
.menu-btn:hover { background: var(--ink); color: #fff; }
.menu-btn i { position: absolute; left: 15px; right: 15px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-btn i:first-child { top: 19px; }
.menu-btn i:last-child { top: 27px; }
.menu-open .menu-btn i:first-child { top: 23px; transform: rotate(45deg); }
.menu-open .menu-btn i:last-child { top: 23px; transform: rotate(-45deg); }
.menu-open .hdr { color: var(--ink); }
.menu-open .hdr::before { transform: translateY(-101%); transition-delay: 0s; }
.menu-open .h-mark { color: var(--ink); }

/* Full-screen menu */
.menu { position: fixed; inset: 0; z-index: 45; display: grid; align-content: center; gap: 40px; padding: 120px var(--pad) 60px; background: var(--accent); color: var(--ink); overflow-y: auto; visibility: hidden; clip-path: circle(0 at calc(100% - 90px) 66px); transition: clip-path .7s cubic-bezier(.65, 0, .35, 1), visibility 0s .7s; }
.menu-open .menu { visibility: visible; clip-path: circle(150vmax at calc(100% - 90px) 66px); transition: clip-path .8s cubic-bezier(.65, 0, .35, 1), visibility 0s; }
.menu nav { display: grid; justify-items: start; gap: 4px; width: min(var(--wrap), 100%); margin: 0 auto; }
.menu nav a { font: 700 clamp(34px, 6vw, 72px)/1.15 var(--display); letter-spacing: -.02em; transition: transform .4s var(--ease); }
.menu nav a:hover { transform: translateX(14px); }
.menu .mc { display: flex; flex-wrap: wrap; gap: 8px 36px; width: min(var(--wrap), 100%); margin: 0 auto; font-weight: 600; }

/* ---------- Hero ---------- */
.hero-pin { position: relative; }
@media (min-width: 981px) {
  .motion .hero-pin { height: calc(100vh + 400px); margin-bottom: -400px; }
  .motion .hero { position: sticky; top: 0; }
  .motion .finder { padding-top: 400px; transform: scale(.8); opacity: .9; }
}
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; padding: var(--inset) var(--inset) 0; }
.hero-card { position: relative; height: 100%; overflow: hidden; border-radius: var(--r-hero); background: var(--hero); transform-origin: 50% 50%; will-change: transform; container-type: inline-size; }
.hero-word { position: absolute; z-index: 1; left: 0; right: 0; top: 110px; color: #fff; text-align: center; font: 800 calc(100cqw * .89 / 5.1)/.78 var(--display); letter-spacing: -.01em; white-space: nowrap; transform-origin: 50% 0; pointer-events: none; user-select: none; }
.hero-word span { display: inline-block; }
/* The hero photos are 3:2 with the animal centred; the card clips the empty sides. */
.hero-media { position: absolute; z-index: 2; left: 50%; bottom: 0; height: 76%; aspect-ratio: 3 / 2; transform: translateX(-50%); transition: opacity .4s ease, transform .4s ease; }
.hero-media.fade { opacity: 0; transform: translateX(-50%) scale(.98); }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
.hero-media [data-still] { display: none; }
.hero-media.still-dog [data-still="dog"], .hero-media.still-cat [data-still="cat"] { display: block; }
.strokes { position: absolute; z-index: 3; left: 78%; top: 15%; width: 10%; color: #fff; pointer-events: none; overflow: visible; }
.strokes path { fill: none; stroke: currentColor; stroke-linecap: round; } /* inside the media box: up and right of the head */
.strokes path { stroke-width: 7; }
.motion .strokes path { stroke-dasharray: 1 2; stroke-dashoffset: 1; opacity: 0; animation: draw 1s ease forwards; }
.motion .strokes path:first-child { animation-delay: .9s; }
.motion .strokes path:last-child { animation-delay: 1.25s; }
@keyframes draw { from { opacity: 1; } to { stroke-dashoffset: 0; opacity: 1; } }
.hero-cta { position: absolute; z-index: 4; left: 40px; bottom: 40px; display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 477px; max-width: calc(100% - 300px); height: 100px; padding: 0 30px 0 44px; border-radius: 50px; background: #fff; color: var(--ink); font: 600 18px/1.2 var(--sans); }
.hero-cta .circ { width: 40px; height: 40px; }
.pet-switch { position: absolute; z-index: 4; right: 40px; bottom: 46px; display: flex; gap: 36px; width: 180px; height: 88px; padding: 16px; border-radius: 100px; background: #fff; }
.pet-switch .hl, .seg .hl { position: absolute; z-index: 0; border-radius: 100px; background: var(--accent); transition: transform .45s var(--ease); }
.pet-switch .hl { left: 16px; top: 16px; width: 56px; height: 56px; }
.pet-cat .pet-switch .hl { transform: translateX(92px); }
.pet-switch button { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink); }
.pet-switch svg { width: 28px; height: 28px; }

/* ---------- Meal finder ---------- */
.finder { position: relative; z-index: 2; padding: 120px 0 56px; transform-origin: 50% 100%; pointer-events: none; } /* its empty top lies over the pinned hero */
.finder > .wrap { pointer-events: auto; }
.finder .h2 { text-align: center; }
.uline { position: relative; display: inline-block; }
.uline svg { position: absolute; left: -4%; right: -4%; bottom: -.22em; width: 108%; height: .42em; color: var(--accent); overflow: visible; }
.uline path { stroke-width: 5; }
.plan { width: min(1026px, 100%); margin: 50px auto 0; }
.bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 250px; height: 76px; overflow: hidden; border-radius: 25px; background: #fff; box-shadow: 0 18px 40px -24px rgba(28, 42, 107, .35); }
.fld { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; padding: 0 22px; cursor: text; }
.fld + .fld::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 1px; background: var(--line); }
.fld > span { font: 600 12px/1.2 var(--sans); letter-spacing: .6px; text-transform: uppercase; color: var(--ink-2); }
.fld input, .fld select { width: 100%; min-width: 0; padding: 2px 0; border: 0; background: transparent; font: 600 18px/1.3 var(--sans); color: var(--ink); outline: none; -moz-appearance: textfield; appearance: none; }
.fld select { padding-right: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231c2a6b' stroke-width='1.8'/%3E%3C/svg%3E") right 2px center / 12px 8px no-repeat; cursor: pointer; }
.fld input::-webkit-outer-spin-button, .fld input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fld input::placeholder { color: #9aa3c7; }
.fld:focus-within { box-shadow: inset 0 0 0 3px var(--ink); border-radius: 25px; }
.fld:focus-within::before { display: none; }
.see { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 16px 0 28px; border: 0; background: var(--accent); color: var(--ink); font: 700 16px/1.2 var(--sans); text-align: left; transition: background-color .3s, color .3s; }
.see .circ { width: 44px; height: 44px; background: #fff; }
.see:hover { background: var(--ink); color: #fff; }
.see:hover .circ { background: var(--accent); color: var(--ink); }
.see:focus-visible { outline-offset: -5px; }
.res-wrap { display: grid; grid-template-rows: 1fr; }
.js .res-wrap { grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.js .res-wrap.open { grid-template-rows: 1fr; }
.res-wrap > div { min-height: 0; overflow: hidden; }
.js .res-wrap > div { visibility: hidden; transition: visibility 0s .6s; }
.js .res-wrap.open > div { visibility: visible; transition-delay: 0s; }
.res { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px 44px; margin-top: 14px; padding: 30px 34px; border-radius: 25px; background: #fff; }
.res-txt { font: 500 22px/1.45 var(--display); letter-spacing: -.01em; }
.res-txt b { font-weight: 700; color: var(--accent-dark); }
.note { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.res-row { display: grid; align-content: center; gap: 10px; }
.res-row label > span { display: block; margin-bottom: 6px; font: 600 12px/1.2 var(--sans); letter-spacing: .6px; text-transform: uppercase; color: var(--ink-2); }
.res-row .inline { display: flex; gap: 10px; }
.res-row input { flex: 1; min-width: 0; height: 52px; padding: 0 20px; border: 2px solid var(--line); border-radius: 50px; background: #fff; font-size: 16px; outline: none; transition: border-color .2s; }
.res-row input:focus { border-color: var(--ink); }
.res-row .pill { height: 52px; padding: 0 24px; }
.plan .thanks { grid-column: 1 / -1; }
.plan .status, .plan .credit-row { grid-column: 1 / -1; }
.plan-credit { margin-top: 14px; text-align: center; font-size: 13px; color: var(--ink-2); }
.plan-credit a, .credit a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Wave dividers ---------- */
.wave { position: relative; height: 200px; background: var(--below, #fff); }
.wave canvas { width: 100%; height: 100%; }

/* ---------- Recipes ---------- */
.recipes { padding: 30px 0 80px; background: #fff; }
.rhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.rhead .lead { max-width: 491px; }
.ttl { position: relative; display: flex; align-items: flex-start; gap: 14px; }
.arrow-d { flex: none; width: 92px; height: 70px; margin-top: 18px; color: var(--accent); }
.arrow-d path { stroke-width: 4; }
.seg { position: relative; display: inline-flex; margin-top: 40px; padding: 6px; border-radius: 100px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 10px 26px -18px rgba(28, 42, 107, .4); }
.seg .hl { left: 6px; top: 6px; bottom: 6px; width: calc(50% - 6px); }
.pet-cat .seg .hl { transform: translateX(100%); }
.seg button { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 10px; width: 150px; height: 52px; border: 0; border-radius: 100px; background: none; color: var(--ink); font: 700 13px/1 var(--sans); letter-spacing: 1px; text-transform: uppercase; }
.seg svg { width: 24px; height: 24px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 50px; margin-top: 50px; }
.js [data-grid="cat"] { display: none; }
.js.pet-cat [data-grid="cat"] { display: grid; }
.js.pet-cat [data-grid="dog"] { display: none; }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; aspect-ratio: 394 / 450; padding: 0 30px 30px; overflow: hidden; border-radius: 30px; background: var(--mist); }
.pack { flex: 1; min-height: 0; margin: 24px 0 14px; background: radial-gradient(circle closest-side, var(--ph, #dbe3f6) 0 82%, transparent 84%) 50% 50% / contain no-repeat; }
.pack.ok { background: none; }
.pack img { transition: transform .8s var(--ease); }
.card:hover .pack img { transform: scale(1.05); }
.cbody { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.card h3 { font: 700 19px/1.3 var(--sans); }
.price { margin-top: 4px; font-weight: 600; color: var(--accent-dark); }
.tag { position: absolute; top: 22px; left: 22px; padding: 6px 12px; border-radius: 50px; background: #fff; font: 700 11px/1 var(--sans); letter-spacing: .8px; text-transform: uppercase; }
.motion .rv { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .9s var(--ease); }
.motion .rv.in { opacity: 1; transform: none; }

/* ---------- Why raw ---------- */
.why { position: relative; padding: 30px 0 80px; background: var(--cream); }
.why .h2, .why .intro { text-align: center; }
.why-ttl { position: relative; display: inline-block; }
.squig { position: absolute; left: 50%; bottom: -34px; width: 220px; height: 30px; transform: translateX(-50%); color: var(--accent); }
.squig path { stroke-width: 5; }
.why .intro { max-width: 900px; margin: 56px auto 0; font-size: 19px; line-height: 36px; }
.stage { position: relative; width: 100%; height: 820px; margin: 30px auto 0; }
.band { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--accent); }
.band path { fill: none; stroke: currentColor; stroke-width: 120; stroke-linecap: round; }
.bowl { position: absolute; z-index: 2; left: 50%; top: 50%; width: 560px; aspect-ratio: 1; transform: translate(-50%, -50%); }
.bowl-in { width: 100%; height: 100%; will-change: transform, opacity; }
.bowl .ph { width: 100%; height: 100%; border-radius: 50%; --ph: #ffd9bf; background: radial-gradient(circle at 50% 50%, #fff 0 46%, #ffe3cf 46.5% 64%, #ffd2b3 64.5%); }
.bowl .ph.ok { background: none; }
.fl { position: absolute; z-index: 3; width: var(--s, 140px); aspect-ratio: 1; }
.fl .ph { display: block; width: 100%; height: 100%; border-radius: 50%; will-change: transform; }
.fl .ph.ok { border-radius: 0; }
.fl-peas { left: calc(50% - 330px); top: 200px; --s: 130px; }
.fl-carrot { left: calc(50% + 200px); top: 170px; --s: 170px; }
.fl-blue { left: calc(50% - 300px); bottom: 70px; --s: 120px; }
.fl-pump { left: calc(50% + 150px); bottom: 10px; --s: 160px; }
.blurbs { position: absolute; inset: 0; }
.blurb { position: absolute; z-index: 4; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 14px; width: 300px; padding: 22px 24px; border-radius: 20px; background: #fff; box-shadow: 0 18px 40px -26px rgba(28, 42, 107, .45); }
.blurb .chk { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--ink); }
.blurb .chk svg { width: 20px; height: 20px; }
.blurb h3 { font: 700 18px/1.3 var(--sans); }
.blurb p { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.b1 { left: calc(50% - 650px); top: 110px; }
.b2 { left: calc(50% - 600px); top: 470px; }
.b3 { right: calc(50% - 640px); top: 180px; }
.b4 { right: calc(50% - 600px); top: 540px; }
.motion .blurb { opacity: 0; transform: translateY(30px) scale(.96); transition: opacity .7s ease, transform .8s var(--ease); }
.motion .blurbs.in .blurb { opacity: 1; transform: none; }
.why .cta-row { margin-top: 10px; text-align: center; }

/* ---------- Treats ---------- */
.treats { padding: 30px 0 80px; background: #fff; }
.thead { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.thead .lead { max-width: 491px; }
.car { --vis: 3.5; --gap: 50px; position: relative; margin: 56px 0 74px; }
.car-track { display: flex; gap: var(--gap); transition: transform .4s ease; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.car-track.dragging { transition: none; }
.car .card { flex: 0 0 calc((100% - 3 * var(--gap)) / var(--vis)); transition: opacity .5s ease, transform .9s var(--ease); }
.car .card.gone { opacity: 0; pointer-events: none; }
.car .pack img { pointer-events: none; -webkit-user-drag: none; }
.car .cbody { flex-direction: column; align-items: flex-start; gap: 14px; }
.car .pill { height: 42px; padding: 0 22px; font-size: 12px; }
.car-next { position: absolute; z-index: 5; right: 0; bottom: -74px; box-shadow: 0 10px 24px -12px rgba(28, 42, 107, .5); } /* under the row, never over a pouch */
.has-cursor .car-track { cursor: none; }
.has-cursor .car-track button { cursor: pointer; }
.cursor { position: fixed; z-index: 90; left: 0; top: 0; width: 0; height: 0; pointer-events: none; }
.cursor b { position: absolute; left: -40px; top: -40px; display: grid; place-items: center; width: 80px; height: 80px; border-radius: 50%; background: var(--accent); color: var(--ink); font: 700 14px/1 var(--sans); letter-spacing: .5px; transform: scale(0); transition: transform .3s var(--ease); }
.cursor.on b { transform: scale(1); }

/* ---------- Reviews ---------- */
.reviews { position: relative; padding: 30px 0 90px; background: var(--cream); }
.reviews .top { text-align: center; }
.label { display: inline-block; margin-bottom: 18px; font: 700 13px/1 var(--sans); letter-spacing: 1.6px; text-transform: uppercase; color: var(--accent-dark); }
.reviews .h2 { font-size: 44px; line-height: 1.2; }
.reviews .h2 span { display: block; }
.ribbon { width: 100%; height: auto; margin-top: -10px; aspect-ratio: 1440 / 360; color: var(--accent); }
.ribbon path { fill: none; stroke: currentColor; stroke-width: 96; stroke-linecap: round; }
.ribbon text { font: 700 34px var(--display); fill: var(--ink); letter-spacing: 1px; }
.down { width: 28px; height: 70px; margin: 0 auto; color: var(--ink); }
.down path { stroke-width: 2.5; }
.rv-wrap { position: relative; margin-top: 40px; }
.rv-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 2px 24px; }
.rv-track::-webkit-scrollbar { display: none; }
.rcard { flex: 0 0 calc((100% - 48px) / 3); display: flex; flex-direction: column; gap: 18px; min-height: 290px; padding: 30px 30px 28px; border-radius: 20px; background: #fff; scroll-snap-align: start; box-shadow: 0 14px 34px -26px rgba(28, 42, 107, .45); }
.stars { display: flex; gap: 3px; color: var(--accent); }
.stars svg { width: 20px; height: 20px; }
.rcard p { flex: 1; font-size: 16.5px; line-height: 1.6; }
.who { display: flex; align-items: center; gap: 14px; }
.av { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--mist); font: 700 15px/1 var(--display); color: var(--ink); }
.who b { display: block; font-weight: 700; }
.who span { font-size: 14px; color: var(--ink-2); }
.rv-ctl { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; }
.rv-ctl .arrows { display: flex; gap: 12px; }
.rv-ctl .circ.prev svg { transform: rotate(180deg); }
.rv-ctl .circ.prev:hover svg { transform: rotate(180deg) translateX(3px); }
.rv-note { font-size: 14px; color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq { padding: 60px 0 96px; background: #fff; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; align-items: start; }
.faq-side p { max-width: 420px; margin: 22px 0 30px; }
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item h3 { font: inherit; }
.acc-btn { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; padding: 26px 0; border: 0; background: none; color: var(--ink); font: 600 19px/1.35 var(--sans); text-align: left; }
.pm { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--mist); transition: background-color .3s; }
.pm::before, .pm::after { content: ""; position: absolute; left: 13px; right: 13px; top: 19px; height: 2px; background: var(--ink); transition: transform .35s var(--ease); }
.pm::after { transform: rotate(90deg); }
.open .pm { background: var(--accent); }
.open .pm::after { transform: rotate(0deg); }
.acc-panel { display: grid; grid-template-rows: 1fr; }
.js .acc-panel { grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.js .open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { min-height: 0; overflow: hidden; }
.js .acc-panel > div { visibility: hidden; transition: visibility 0s .4s; }
.js .open .acc-panel > div { visibility: visible; transition-delay: 0s; }
.acc-panel p { max-width: 640px; padding: 0 60px 26px 0; color: var(--ink-2); }

/* ---------- Footer CTA ---------- */
.cta-shell { background: #fff; }
.cta { position: relative; display: grid; align-items: end; min-height: 760px; padding: 0 var(--pad) 90px; overflow: hidden; border-radius: var(--r-hero) var(--r-hero) 0 0; background: #6d7fbf url("../img/cta-dog.webp") 50% 0 / cover no-repeat; color: #fff; }
.js .cta:not(.near) { background-image: none; } /* the photo loads when the section gets close */
.cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28, 42, 107, 0) 30%, rgba(28, 42, 107, .55) 62%, var(--ink) 100%); }
.cta-in { position: relative; z-index: 1; width: min(var(--wrap), 100%); margin: 0 auto; }
.cta h2 { max-width: 860px; font: 600 46px/1.2 var(--display); letter-spacing: -.01em; }
.cta .pill { margin-top: 34px; }
.cta .pill:hover { background: #fff; color: var(--ink); }

/* ---------- Footer ---------- */
footer { background: var(--ink); color: #dfe4f7; padding: 70px 0 30px; }
footer :focus-visible { outline-color: #fff; }
.f-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
.f-logo { display: flex; align-items: center; gap: 14px; font: 800 24px/1 var(--display); color: #fff; }
.f-logo svg { width: 34px; height: 43px; color: #fff; }
footer h3 { margin-bottom: 14px; font: 700 13px/1 var(--sans); letter-spacing: 1px; text-transform: uppercase; color: #fff; }
footer li { margin: 6px 0; }
footer a:hover, footer .linkbtn:hover { color: var(--accent); }
.linkbtn { padding: 0; border: 0; background: none; color: inherit; text-align: left; }
.f-contact p { margin: 6px 0; }
.f-contact .tel { display: inline-block; margin-top: 18px; font: 600 20px/1.3 var(--display); color: #fff; }
.social { display: flex; gap: 10px; margin-top: 22px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--ink); transition: transform .3s var(--ease); }
.social a:hover { color: var(--ink); transform: translateY(-3px); }
.social svg { width: 20px; height: 20px; }
.f-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: 14px; color: #b7bfe2; }
.f-bottom a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Dialogs and forms ---------- */
html:has(dialog[open]) { overflow: hidden; }
dialog { width: min(600px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: 0; overflow: hidden; border: 0; border-radius: 28px; background: #fff; color: var(--ink); box-shadow: 0 30px 80px -30px rgba(28, 42, 107, .55); }
dialog::backdrop { background: rgba(238, 242, 251, .62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.dlg { position: relative; max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; padding: 36px 40px 28px; scrollbar-width: thin; scrollbar-color: rgba(28, 42, 107, .22) transparent; }
.dlg::-webkit-scrollbar { width: 12px; }
.dlg::-webkit-scrollbar-thumb { border: 4px solid #fff; border-radius: 12px; background: rgba(28, 42, 107, .22); }
.dlg::-webkit-scrollbar-track { margin: 26px 0; background: transparent; }
.dlg:focus { outline: none; } /* the dialog opens focused on itself, not on the close button */
.dlg h2 { padding-right: 40px; font: 600 28px/1.2 var(--display); letter-spacing: -.01em; }
.dlg .intro { margin: 8px 0 20px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.x { position: sticky; z-index: 2; top: 0; float: right; margin: -18px -22px 0 12px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--mist); color: var(--ink); font-size: 26px; line-height: 1; }
.x:hover { background: var(--accent); }
.form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 12px; }
.form > .chips.half { grid-column: auto; }
.form > .full, .form > .chips:not(.half), .form > .rate, .form > .pill, .form > .status, .form > .credit, .form > .thanks { grid-column: 1 / -1; }
.f { display: grid; gap: 6px; min-width: 0; }
.f > span, .chips legend, .rate legend { font: 600 12px/1.2 var(--sans); letter-spacing: .6px; text-transform: uppercase; color: var(--ink-2); }
.f input, .f select, .f textarea { width: 100%; min-width: 0; height: 48px; padding: 0 16px; border: 2px solid var(--line); border-radius: 16px; background: #fff; font-size: 16px; color: var(--ink); outline: none; transition: border-color .2s; }
.f select { padding-right: 40px; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231c2a6b' stroke-width='1.8'/%3E%3C/svg%3E") right 16px center / 12px 8px no-repeat; }
.f textarea { height: auto; min-height: 84px; padding: 12px 18px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--ink); }
.chips { min-width: 0; border: 0; }
.chips legend { margin-bottom: 8px; padding: 0; }
.chips .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input, .rate input { position: absolute; width: 1px; height: 1px; padding: 0; opacity: 0; pointer-events: none; } /* never the 100% width of the text fields */
.chips span { display: inline-block; padding: 9px 16px; border: 2px solid var(--line); border-radius: 50px; font-size: 15px; font-weight: 600; line-height: 1.2; transition: background-color .2s, border-color .2s; }
.chips label:hover span { border-color: var(--ink); }
.chips input:checked + span { background: var(--accent); border-color: var(--accent); }
.chips input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.chips label[hidden] { display: none; }
.rate { min-width: 0; border: 0; }
.rate legend { margin-bottom: 6px; padding: 0; }
.pick { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rate label { color: #d3d9ee; cursor: pointer; transition: color .15s, transform .15s; }
.rate label svg { width: 36px; height: 36px; }
.rate label:hover, .rate label:hover ~ label, .rate input:checked ~ label { color: var(--accent); }
.rate input:focus-visible + label { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.form > .pill { justify-self: start; margin-top: 6px; }
.hp { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.status { font-size: 15px; font-weight: 600; }
.status:empty { display: none; }
.status.err { color: #b42318; }
.credit { font-size: 13px; color: var(--ink-2); }
.thanks { display: none; padding: 10px 0 4px; font-size: 16px; }
.thanks strong { display: block; margin-bottom: 6px; font: 600 24px/1.25 var(--display); }
.thanks button { display: inline-block; margin-top: 16px; padding: 10px 20px; border: 2px solid var(--ink); border-radius: 50px; background: none; font-weight: 700; }
.thanks button:hover { background: var(--ink); color: #fff; }
.thanks:focus { outline: none; }
.form.is-sent > :not(.thanks) { display: none !important; }
.form.is-sent > .thanks { display: block; animation: rise .5s ease both; }
.plan.is-sent .res-row, .plan.is-sent .status { display: none; }
.plan.is-sent .thanks { display: block; animation: rise .5s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Up to 1200 ---------- */
@media (max-width: 1240px) {
  .hdr { padding-left: calc(var(--inset) + 34px); padding-right: calc(var(--inset) + 34px); gap: 14px; }
  .hact .pill { padding: 0 24px; }
  .b1 { left: 24px; } .b2 { left: 40px; } .b3 { right: 24px; } .b4 { right: 40px; }
  .bowl { width: 480px; }
  .fl-peas { left: calc(50% - 290px); } .fl-blue { left: calc(50% - 270px); }
  .fl-carrot { left: calc(50% + 160px); } .fl-pump { left: calc(50% + 120px); }
}
@media (max-width: 1100px) {
  .hnav { gap: 18px; }
  .ib.opt { display: none; }
  .blurb { width: 260px; }
  .bowl { width: 420px; }
  .stage { height: 760px; }
}

/* ---------- Tablet and phone ---------- */
@media (max-width: 980px) {
  :root { --inset: 10px; --r-hero: 40px; }
  html { scroll-padding-top: 76px; }
  .hdr { height: 84px; padding: var(--inset) calc(var(--inset) + 14px) 0; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .solid .hdr { height: 70px; }
  .hnav, .hact .pill, .ib.opt { display: none; }
  .hdr { gap: 8px; }
  .hlogo { width: 150px; height: 60px; }
  .h-mark { width: 46px; height: 58px; }
  .h-word { font-size: 21px; }
  .hlogo { grid-column: 2; }
  .hact { grid-column: 3; }
  .menu { clip-path: circle(0 at calc(100% - 48px) 47px); }
  .menu-open .menu { clip-path: circle(150vmax at calc(100% - 48px) 47px); }
  .hero-card { transform-origin: 50% 0; }
  .hero-card { --mw: 1.3; }
  .hero-media { height: auto; width: calc(var(--mw) * 100%); }
  .hero-word { top: auto; bottom: calc(100cqw * var(--mw) / 1.5 - .4em); } /* the head overlaps the lower half of the letters */
  .hero-cta { left: 14px; bottom: 14px; width: min(477px, calc(100% - 168px)); max-width: none; height: 72px; padding: 0 12px 0 22px; font-size: 16px; }
  .hero-cta .circ { width: 40px; height: 40px; }
  .pet-switch { right: 14px; bottom: 14px; width: 130px; height: 72px; gap: 14px; padding: 12px; }
  .pet-switch .hl { left: 12px; top: 12px; width: 48px; height: 48px; }
  .pet-cat .pet-switch .hl { transform: translateX(62px); }
  .pet-switch button { width: 48px; height: 48px; }
  .pet-switch svg { width: 24px; height: 24px; }
  .finder { padding: 90px 0 48px; }
  .h2 { font-size: 30px; }
  .bar { grid-template-columns: 1fr 1fr; height: auto; }
  .fld { min-height: 74px; border-bottom: 1px solid var(--line); }
  .fld + .fld::before { display: none; }
  .fld:nth-child(even) { border-left: 1px solid var(--line); }
  .fld:nth-child(3), .fld:nth-child(4) { border-bottom: 0; }
  .see { grid-column: 1 / -1; min-height: 66px; }
  .res { grid-template-columns: 1fr; padding: 26px 24px; }
  .res-txt { font-size: 19px; }
  .wave { height: 120px; }
  .recipes, .treats { padding-bottom: 64px; }
  .rhead, .thead { flex-direction: column; align-items: flex-start; gap: 18px; }
  .lead { font-size: 18px; line-height: 29px; }
  .grid { grid-template-columns: minmax(0, 460px); justify-content: center; gap: 24px; }
  .card { aspect-ratio: auto; }
  .pack { flex: none; aspect-ratio: 1.1; }
  .stage { display: grid; justify-items: center; height: auto; margin-top: 40px; padding-top: 10px; }
  .band { inset: 0 0 auto; height: 460px; }
  .bowl { position: relative; left: auto; top: auto; width: min(420px, 82vw); transform: none; }
  .fl-peas { left: 4%; top: 0; --s: 96px; }
  .fl-carrot { left: auto; right: 4%; top: 10px; --s: 110px; }
  .fl-blue { left: 6%; top: 330px; bottom: auto; --s: 84px; }
  .fl-pump { left: auto; right: 6%; top: 320px; bottom: auto; --s: 104px; }
  .blurbs { position: relative; inset: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: min(var(--wrap), 100% - 2 * var(--pad)); margin-top: 30px; }
  .blurb { position: relative; left: auto; right: auto; top: auto; width: auto; }
  .why .cta-row { margin-top: 40px; }
  .car { --vis: 2.2; --gap: 24px; }
  .reviews .h2 { font-size: 32px; }
  .ribbon { width: 180%; margin-left: -40%; }
  .rcard { flex-basis: calc((100% - 24px) / 2); }
  .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .cta { min-height: 600px; padding-bottom: 60px; }
  .cta h2 { font-size: 32px; }
  .f-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 669px) {
  .car { --vis: 1.15; --gap: 16px; }
  .car .card { flex-basis: calc((100% - var(--gap)) / var(--vis)); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .h2, .reviews .h2 { font-size: 26px; }
  .hero-card { --mw: 1.75; }
  .strokes { left: 64%; top: -25%; width: 9%; } /* in the sky above the letters: no room beside the ears */
  .reviews .h2 span { display: inline; }
  .hero { height: min(100svh, (100vw - 20px) * 1.68 + 10px); min-height: 520px; }
  .hero-cta { width: calc(100% - 148px); height: 64px; padding-left: 18px; font-size: 15px; gap: 8px; }
  .pet-switch { width: 112px; height: 64px; gap: 8px; padding: 10px; }
  .pet-switch .hl { left: 10px; top: 10px; width: 44px; height: 44px; }
  .pet-cat .pet-switch .hl { transform: translateX(52px); }
  .pet-switch button { width: 44px; height: 44px; }
  .finder { padding-top: 70px; }
  .fld { padding: 0 16px; }
  .res { padding: 22px 18px; }
  .res-row .inline { flex-direction: column; }
  .res-row .pill { width: 100%; }
  .seg { margin-top: 26px; }
  .seg button { width: 128px; }
  .arrow-d { width: 64px; height: 50px; margin-top: 10px; }
  .why .intro { font-size: 17px; line-height: 30px; margin-top: 50px; }
  .band { height: 360px; }
  .blurbs { grid-template-columns: 1fr; }
  .fl-blue { top: 250px; } .fl-pump { top: 240px; }
  .ribbon { width: 280%; margin-left: -90%; }
  .rcard { flex-basis: 86%; padding: 26px 22px 24px; }
  .rv-ctl { flex-direction: column-reverse; align-items: flex-start; }
  .acc-btn { font-size: 17px; padding: 22px 0; }
  .acc-panel p { padding-right: 0; }
  .cta { min-height: 520px; }
  .cta h2 { font-size: 26px; }
  .f-grid { grid-template-columns: 1fr; gap: 30px; }
  dialog { width: 100%; max-width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  dialog[open] { animation: sheet .35s var(--ease); }
  .dlg { max-height: 92dvh; padding: 28px 20px calc(22px + env(safe-area-inset-bottom)); }
  .dlg h2 { font-size: 24px; }
  .x { margin: -12px -8px 0 10px; }
  .form > .chips.half { grid-column: 1 / -1; }
  .form > .f.qty { grid-column: 1 / -1; }
  .form > .f.qty input { max-width: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .wipe { display: none !important; }
  .hero-media [data-still="dog"] { display: block; }
  .hero-media.still-cat [data-still="dog"] { display: none; }
}
