/* ================================================
   Evrpaw MVP — site-specific styles
   Tokens come from colors_and_type.css; everything
   here is composition + components-on-top.
   ================================================ */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #ECF1EC;
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--container-pad);
}

/* ── Eyebrows ── */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--fg-muted);
}
.eyebrow--gold { color: var(--gold-600); }
.eyebrow--cream { color: var(--gold-300); }

/* ── Display ── */
.display {
  font-family: var(--font-display);
  color: var(--forest-900);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  text-wrap: balance;
  margin: 0;
}
.display em, .accent-italic {
  font-style: italic;
  color: var(--gold-600);
  font-weight: 600;
}

/* ── Buttons (extending tokens) ── */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 16px 28px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
  white-space: nowrap;
}
.btn--primary   { background: var(--forest-800); color: var(--cream); }
.btn--primary:hover { background: var(--forest-700); }
.btn--secondary { background: transparent; color: var(--forest-800); border-color: var(--forest-800); }
.btn--secondary:hover { background: var(--forest-800); color: var(--cream); }
.btn--ghost     { background: transparent; color: var(--forest-800); }
.btn--ghost:hover { background: var(--cream-deep); }
.btn--sm { padding: 10px 18px; font-size: 12px; }
.btn--lg { padding: 18px 32px; font-size: 15px; }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn--block { width: 100%; justify-content: center; }

/* Pill button (link-style with arrow) */
.btn--inverse { background: var(--cream); color: var(--forest-900); }
.btn--inverse:hover { background: #fff; }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 241, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex; align-items: center; gap: var(--space-8);
  height: 76px;
}
.nav__brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--forest-900); text-decoration: none;
}
.nav__brand-mark { height: 34px; width: auto; display: block; }
.nav__brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.16em;
  color: var(--forest-900);
}
.nav__links {
  display: flex; align-items: center; gap: var(--space-8);
  margin-left: var(--space-8);
}
.nav__link {
  font-size: 12px; font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--forest-900);
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav__link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1.5px; background: var(--gold-500);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__spacer { flex: 1; }
.nav__icons {
  display: flex; align-items: center; gap: var(--space-3);
}
.nav__icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: transparent; border: 1px solid transparent;
  border-radius: 999px;
  color: var(--forest-900);
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.nav__icon-btn:hover { background: var(--cream-deep); }
.nav__cart {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px 10px 14px;
  background: var(--forest-800);
  color: var(--cream);
  border: none;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  transition: background var(--dur-fast) var(--ease-out);
}
.nav__cart:hover { background: var(--forest-700); }
.nav__cart .count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--gold-500);
  color: var(--forest-900);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

/* ── Sections ── */
.section { padding-block: var(--section-y); }
.section--sunken { background: #ECF1EC; }
.section--sage { background: #ECF1EC; }
.section--paper { background: #ECF1EC; }
.section--forest {
  background: var(--forest-800);
  color: var(--cream);
}
.section--forest .display { color: var(--cream); }
.section--forest .eyebrow { color: var(--gold-300); }
.section--forest p { color: rgba(245, 242, 235, 0.82); }

/* Section header (centered) */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-12);
}
.section-head .display { margin-block: var(--space-3) 0; }
.section-head p {
  margin: var(--space-4) auto 0;
  color: var(--fg-muted);
  font-size: 1.0625rem;
  max-width: 56ch;
}

/* Tiny gold divider */
.divider-paw {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--gold-500);
}
.divider-paw::before, .divider-paw::after {
  content: ''; height: 1px; width: 36px; background: currentColor;
}

/* ── Cards (generic) ── */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

/* ── Photo placeholder fallback (in case Unsplash fails) ── */
.photo {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #c8a96b 0%, #a87a3e 50%, #6d4521 100%);
  border-radius: var(--radius-xl);
}
.photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.photo--circle { border-radius: 999px; }
.photo--rounded { border-radius: var(--radius-lg); }

/* ─────────────────────────────────────────────────
   HOMEPAGE
   ───────────────────────────────────────────────── */

/* Hero */
.hero {
  padding-block: clamp(48px, 7vw, 96px) clamp(64px, 9vw, 128px);
}
.hero--bleed {
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
}
.hero--bleed .hero__grid {
  align-items: stretch;
  /* Let the right column escape the container to the viewport edge */
  margin-right: calc((100vw - 100% - var(--scrollbar-w, 0px)) / -2);
  min-height: clamp(560px, 56vh, 640px);
}
.hero--bleed .hero__visual {
  align-self: stretch;
  aspect-ratio: auto;
  height: 100%;
  margin-bottom: 0;
}
.hero--bleed .hero__copy {
  /* Vertically center the copy in the stretched column */
  align-self: center;
  padding-block: clamp(48px, 5vw, 72px);
}
.hero--bleed .hero__photo {
  /* Big top-left curve, flush to viewport edge on the right */
  border-radius: 150px 0 0 0;
  margin-bottom: 0;
  height: 100%;
}
.hero--bleed .hero__photo img {
  border-radius: 150px 0 0 0;
}
.hero__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-12);
  align-items: center;
}
.hero__copy { max-width: 540px; }
.hero__display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.75rem, 5.6vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: var(--tracking-tight);
  color: var(--forest-900);
  margin: var(--space-5) 0 var(--space-6);
  text-wrap: balance;
}
.hero__display em { font-style: italic; color: var(--gold-600); font-weight: 600; }
.hero__lead {
  font-size: 1.0625rem;
  line-height: var(--leading-body);
  color: var(--ink-700);
  max-width: 46ch;
  margin-bottom: var(--space-8);
}
.hero__cta { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.hero__rating {
  display: flex; align-items: center; gap: var(--space-3);
  margin-top: var(--space-8);
  font-size: 13px; color: var(--ink-500);
}
.hero__stars { color: var(--gold-500); letter-spacing: 2px; font-size: 14px; }

.hero__visual {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-2xl);
  overflow: visible;
}
.hero__photo {
  width: 100%; height: 100%;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: linear-gradient(135deg, #d4a76a 0%, #a87a3e 60%, #6d4521 100%);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }

/* Floating fact card overlay */
.fact-card {
  position: absolute;
  display: flex; align-items: center; gap: var(--space-3);
  background: var(--bg-elevated);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.fact-card__icon {
  width: 40px; height: 40px;
  border-radius: 999px;
  background: var(--gold-100);
  color: var(--gold-600);
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
}
.fact-card__label {
  font-size: 10px; font-weight: 600; letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase; color: var(--gold-600);
  display: block; margin-bottom: 2px;
}
.fact-card__value {
  font-family: var(--font-display); font-weight: 500;
  font-size: 16px; color: var(--forest-900);
  line-height: 1.15;
}
.fact-card--top { bottom: 248px; left: -28px; }
.fact-card--tl  { bottom: 140px; left: -28px; }
.fact-card--br  { bottom:  32px; left: -28px; }

/* Marquee strip */
.marquee {
  border-block: 1px solid rgba(245, 242, 235, 0.12);
  background: var(--forest-800);
  padding-block: var(--space-6);
  overflow: hidden;
}
.marquee__track {
  display: flex; gap: var(--space-12);
  align-items: center;
  animation: marquee 38s linear infinite;
  width: max-content;
}
.marquee__item {
  font-size: 12px; font-weight: 600; letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase; color: var(--gold-300);
  display: inline-flex; align-items: center; gap: var(--space-3);
  white-space: nowrap;
}
.marquee__item .dot {
  display: inline-block; width: 6px; height: 6px;
  background: var(--gold-500); border-radius: 999px;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* Recipes block */
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.recipe-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
  text-decoration: none; color: inherit;
  cursor: pointer;
}
.recipe-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.recipe-card:hover .recipe-card__img img { transform: scale(1.04); }
.recipe-card__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream);
}
.recipe-card__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 420ms var(--ease-out);
}
.recipe-card__body {
  padding: var(--space-8) var(--space-8) var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-3);
  flex: 1;
}
.recipe-card__tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--forest-900);
}
.recipe-card__tag .swatch {
  width: 9px; height: 9px; border-radius: 999px;
  background: var(--recipe-chicken);
}
.recipe-card__title {
  font-family: var(--font-display);
  font-size: 1.875rem; font-weight: 600;
  color: var(--forest-900);
  letter-spacing: var(--tracking-tight);
  line-height: 1.1;
  margin: 4px 0 0;
}
.recipe-card__sub {
  color: var(--ink-500);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.recipe-card__meta {
  margin-top: auto;
  padding-top: var(--space-6);
  display: flex; align-items: baseline; justify-content: space-between;
  border-top: 1px solid var(--border);
}
.recipe-card__price {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--forest-900);
}
.recipe-card__price small {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--ink-500);
  font-weight: 500;
  margin-left: 4px;
}
.recipe-card__link {
  font-size: 12px; font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--forest-800);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.recipe-card__link::after { content: '→'; transition: transform var(--dur-fast) var(--ease-out); }
.recipe-card:hover .recipe-card__link::after { transform: translateX(4px); }

/* Benefits */
.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-10) var(--space-8);
}
.benefit {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  gap: var(--space-3);
}
.benefit__img {
  width: 160px; height: 160px;
  display: flex; align-items: center; justify-content: center;
}
.benefit__img img {
  width: 100%; height: 100%; object-fit: contain;
}
.benefit__label {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--forest-900);
  letter-spacing: var(--tracking-tight);
  line-height: 1.2;
  margin-top: 8px;
  transition: color var(--dur-base) var(--ease-out);
}
/* Hover: interactive benefit cards (gif-enabled) lift the label to forest-700 */
.benefit--interactive { cursor: pointer; }
.benefit--interactive:hover .benefit__label { color: #2A523F; }
/* The gif's dog fills more of its canvas than the static PNG, so scale it
   down on hover to keep the dog roughly the same size. 0.94 is the minimax
   match between the two visible bounding boxes (~5px off on either axis).
   transition:none so the gif appears instantly at the matched size rather
   than popping in at full scale and animating down (which read as a "grow"). */
.benefit__img img.is-gif { transform: scale(0.94); transition: none; }
.benefit__copy {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-500);
  max-width: 26ch;
}

/* Floating whole-food decorations across the top of the Benefits section.
   Real cut-out PNG assets — alpha channel handles isolation. Items are
   sized larger and intentionally bleed off the top + side edges of the
   section (overflow: hidden clips them) for the editorial scatter look. */
.benefits-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.benefits-deco {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 540px;
  pointer-events: none;
  z-index: 0;
}
.benefits-deco .food {
  position: absolute;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(30, 61, 47, 0.18));
  will-change: transform;
}

/* LEFT side */
.food--eggs     { top:    8px; left:   16px; width: 240px; height: 240px; transform: translate3d(0, var(--ty, 0px), 0) rotate(-8deg); }
.food--broccoli { top: -120px; left:  12%;   width: 300px; height: 300px; transform: translate3d(0, var(--ty, 0px), 0) rotate(180deg); }
.food--steak    { top:  200px; left:  -24px; width: 200px; height: 150px; transform: translate3d(0, var(--ty, 0px), 0) rotate(-10deg); }
.food--tomato   { top:  380px; left:  -24px; width: 150px; height: 150px; transform: translate3d(0, var(--ty, 0px), 0) rotate(6deg); }

/* RIGHT side */
.food--chicken  { top:  -40px; right: 16%;   width: 280px; height: 240px; transform: translate3d(0, var(--ty, 0px), 0) rotate(28deg); }
.food--tomato2  { top:   24px; right: -32px; width: 180px; height: 180px; transform: translate3d(0, var(--ty, 0px), 0) rotate(-6deg); }
.food--kale     { top:  140px; right: -60px; width: 280px; height: 280px; transform: translate3d(0, var(--ty, 0px), 0) rotate(-40deg); }
.food--meat     { top:  320px; right: -56px; width: 240px; height: 180px; transform: translate3d(0, var(--ty, 0px), 0) rotate(-18deg); }

@media (prefers-reduced-motion: reduce) {
  .benefits-deco .food { --ty: 0px !important; }
}

@media (max-width: 980px) {
  .benefits-deco { height: 320px; }
  .food--steak, .food--tomato, .food--meat, .food--tomato2 { display: none; }
  .food--eggs     { width: 110px; height: 110px; }
  .food--broccoli { top: -70px; width: 180px; height: 180px; }
  .food--chicken  { width: 160px; height: 140px; }
  .food--kale     { width: 170px; height: 170px; }
}
@media (max-width: 640px) {
  .food--broccoli, .food--chicken { display: none; }
}

/* Ingredients spotlight */
.ingredients {
  display: grid;
  grid-template-columns: 6fr 6fr;
  gap: var(--space-16);
  align-items: start;
}
.ingredients__media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-2xl);
  background: linear-gradient(135deg, #d4a76a 0%, #6d4521 100%);
  box-shadow: var(--shadow-md);
  overflow: visible;
}
.ingredients__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-2xl);
  opacity: 0;
  transition: opacity 480ms var(--ease-out);
  z-index: 1;
}
.ingredients__photo.is-active {
  opacity: 1;
  z-index: 2;
}

/* Floating ingredient chips on the right edge of the photo */
.ingredients__overlay {
  position: absolute;
  top: 38%;
  right: -28px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  z-index: 3;
  pointer-events: none;
}
.ingredients__overlay-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-900);
  box-shadow: 0 6px 18px rgba(30, 61, 47, 0.10), 0 1px 2px rgba(30, 61, 47, 0.06);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(12px);
  animation: overlayChipIn 420ms var(--ease-out) forwards;
}
@keyframes overlayChipIn {
  to { opacity: 1; transform: translateX(0); }
}
.ingredients__overlay-chip .chip__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold-500);
  flex: none;
}

/* Right column heading + cutout */
.ingredients__body {
  position: relative;
}
.ingredients__heading {
  position: relative;
  padding-right: 140px; /* room for the floating cutout */
}
.ingredients__title {
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  margin: var(--space-3) 0 var(--space-5);
  line-height: 1.05;
}
.ingredients__cutout {
  position: absolute;
  top: -8px;
  right: 0;
  width: 130px;
  height: 160px;
  pointer-events: none;
}
.ingredients__cutout img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(30, 61, 47, 0.18));
  animation: cutoutIn 520ms var(--ease-out);
}
@keyframes cutoutIn {
  from { opacity: 0; transform: translateY(-10px) rotate(-4deg); }
  to   { opacity: 1; transform: translateY(0) rotate(0); }
}
.ingredients__lead {
  color: var(--ink-700);
  font-size: 1.0625rem;
  line-height: 1.55;
  max-width: 50ch;
}

/* Health-concern selector pills */
.concern-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: var(--space-7, var(--space-6));
}
.concern-pill {
  appearance: none;
  border: 1px solid transparent;
  background: var(--gold-100);
  color: var(--forest-900);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  padding: 18px 20px;
  border-radius: 14px;
  cursor: pointer;
  text-align: center;
  transition:
    background var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    transform 80ms var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}
.concern-pill:hover {
  background: #f1e6c5;
}
.concern-pill:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(200, 169, 107, 0.45);
}
.concern-pill:active {
  transform: translateY(1px) scale(0.985);
}
.concern-pill.is-active {
  background: var(--forest-800, #1e3d2f);
  color: var(--cream, #fbf8f1);
  box-shadow: var(--shadow-sm);
}
.concern-pill.is-active:hover {
  background: var(--forest-900, #163024);
}

.not-list {
  margin-top: var(--space-8);
  padding: var(--space-5) var(--space-6);
  background: var(--bg-elevated);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}
.not-list__label {
  font-size: 11px; font-weight: 600; letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase; color: var(--danger);
  margin-bottom: 8px;
}
.not-list__items {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  font-size: 14px; color: var(--ink-700);
}
.not-list__items span { position: relative; padding-left: 18px; }
.not-list__items span::before {
  content: '✕'; position: absolute; left: 0; top: 0;
  color: var(--danger); font-weight: 700; font-size: 12px;
}

/* Built for your dog */
.needs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
.need-tile {
  padding: var(--space-6) var(--space-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column; gap: var(--space-3);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.need-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-500);
}
.need-tile__icon {
  width: 40px; height: 40px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: var(--sage-50); color: var(--forest-800);
}
.need-tile__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--forest-900);
  line-height: 1.2;
}
.need-tile__copy {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-500);
}

/* Vet endorsement strip */
.vet-strip {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: var(--space-12);
  align-items: center;
  padding: var(--space-12);
  background: var(--forest-800);
  color: var(--cream);
  border-radius: var(--radius-xl);
}
.vet-strip__photo {
  aspect-ratio: 1;
  border-radius: 999px;
  overflow: hidden;
  background: var(--forest-700);
  max-width: 220px;
}
.vet-strip__photo img { width: 100%; height: 100%; object-fit: cover; }
.vet-strip__quote {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.2vw, 1.875rem);
  line-height: 1.3;
  color: var(--cream);
  font-style: italic;
  margin-bottom: var(--space-5);
}
.vet-strip__byline {
  font-size: 12px; font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--gold-300);
}
.vet-strip__byline-name { color: var(--cream); display: block; margin-bottom: 4px; }

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.review {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex; flex-direction: column; gap: var(--space-4);
}
.review__stars { color: var(--gold-500); letter-spacing: 2px; font-size: 14px; }
.review__quote {
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.45;
  color: var(--forest-900);
}
.review__attr {
  display: flex; align-items: center; gap: 12px;
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}
.review__avatar {
  width: 40px; height: 40px; border-radius: 999px;
  background: var(--gold-300); overflow: hidden; flex: none;
}
.review__avatar img { width: 100%; height: 100%; object-fit: cover; }
.review__person {
  font-size: 13px; font-weight: 600; color: var(--forest-900);
  line-height: 1.3;
}
.review__person small {
  display: block; font-weight: 400; color: var(--ink-500); font-size: 12px;
}
.review__tag {
  margin-left: auto;
  font-size: 10px; font-weight: 600; letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase; color: var(--gold-600);
}

/* Founder story */
.story {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--space-12);
  align-items: center;
}
.story__media {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, #6b8a7a 0%, #2a523f 100%);
  box-shadow: var(--shadow-md);
}
.story__media img { width: 100%; height: 100%; object-fit: cover; }
.story__sig {
  margin-top: var(--space-6);
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold-600);
  font-size: 1.125rem;
}

/* FAQ */
.faq {
  max-width: 760px;
  margin: 0 auto;
}
.faq__item {
  border-top: 1px solid var(--border);
}
.faq__item:last-child { border-bottom: 1px solid var(--border); }
.faq__btn {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-6) 0;
  background: transparent; border: none;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--forest-900);
  cursor: pointer;
}
.faq__btn .plus {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  color: var(--gold-600);
  transition: transform var(--dur-base) var(--ease-out), background var(--dur-fast) var(--ease-out);
  flex: none;
}
.faq__item.is-open .faq__btn .plus { transform: rotate(45deg); background: var(--gold-100); }
.faq__panel {
  max-height: 0; overflow: hidden;
  transition: max-height var(--dur-base) var(--ease-out);
  color: var(--ink-700);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.faq__panel-inner { padding: 0 0 var(--space-6); max-width: 64ch; }
.faq__item.is-open .faq__panel { max-height: 320px; }

/* Footer CTA */
.footer-cta {
  text-align: center;
}
.footer-cta .display {
  color: var(--cream);
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin: var(--space-3) 0 var(--space-6);
}
.footer-cta p {
  color: rgba(245, 242, 235, 0.78);
  margin: 0 auto var(--space-8);
  max-width: 56ch;
  font-size: 1.0625rem;
}

/* Footer */
.footer {
  background: var(--forest-900);
  color: var(--cream);
  padding-block: var(--space-16) var(--space-8);
}
.footer__grid {
  display: grid;
  grid-template-columns: 4fr 3fr 3fr 2fr;
  gap: var(--space-10);
  margin-bottom: var(--space-16);
}
.footer__brand-mark { width: auto; height: 44px; display: block; }
.footer__brand-text {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.16em;
  margin-top: 14px;
  color: var(--cream);
}
.footer__brand p {
  color: rgba(245, 242, 235, 0.72);
  font-size: 14px;
  margin-top: var(--space-4);
  max-width: 32ch;
}
.footer__col-title {
  font-size: 11px; font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: var(--space-4);
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a {
  color: rgba(245, 242, 235, 0.78);
  text-decoration: none;
  font-size: 14px;
  text-decoration-color: transparent;
}
.footer__col a:hover { color: var(--cream); text-decoration: underline; text-decoration-color: var(--gold-500); }
.footer__newsletter input {
  display: block;
  width: 100%;
  padding: 12px 14px;
  background: rgba(245, 242, 235, 0.08);
  border: 1px solid rgba(245, 242, 235, 0.16);
  border-radius: 8px;
  color: var(--cream);
  font-size: 14px;
  margin-bottom: 10px;
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.footer__newsletter input::placeholder { color: rgba(245, 242, 235, 0.4); }
.footer__newsletter input:focus { border-color: var(--gold-500); }
.footer__legal {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--space-6);
  border-top: 1px solid rgba(245, 242, 235, 0.12);
  font-size: 12px;
  color: rgba(245, 242, 235, 0.55);
}
.footer__legal a { color: inherit; text-decoration: none; margin-left: var(--space-5); }
.footer__legal a:hover { color: var(--cream); }

/* ─────────────────────────────────────────────────
   PRODUCT PAGE
   ───────────────────────────────────────────────── */
.crumbs {
  padding-block: var(--space-6);
  font-size: 12px; letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase; color: var(--ink-500);
}
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--forest-800); }
.crumbs span { margin: 0 12px; color: var(--ink-300); }

.product {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--space-12);
  padding-bottom: var(--space-16);
}
.gallery {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-4);
  align-items: start;
}
.gallery__thumbs {
  display: flex; flex-direction: column;
  gap: 12px;
}
.gallery__thumb {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--cream-deep);
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
  opacity: 0.7;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active { border-color: var(--forest-800); opacity: 1; }
.gallery__thumb:hover { opacity: 1; }
.gallery__main {
  aspect-ratio: 5 / 6;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, #d4a76a 0%, #6d4521 100%);
  box-shadow: var(--shadow-md);
  position: relative;
}
.gallery__main img {
  width: 100%; height: 100%; object-fit: cover;
  animation: fadeIn 300ms var(--ease-out);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.gallery__badge {
  position: absolute; top: 18px; left: 18px;
  background: rgba(15, 36, 25, 0.85);
  color: var(--cream);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 10px; font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.product__info { padding-top: var(--space-3); }
.product__tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--forest-800);
  margin-bottom: var(--space-3);
}
.product__tag .swatch {
  width: 9px; height: 9px; border-radius: 999px;
}
.product__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.875rem);
  font-weight: 600;
  color: var(--forest-900);
  letter-spacing: var(--tracking-tight);
  line-height: 1.05;
  margin-bottom: var(--space-4);
}
.product__sub {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-700);
  max-width: 44ch;
  margin-bottom: var(--space-5);
}
.product__rating {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--ink-500);
  margin-bottom: var(--space-6);
}
.product__rating .stars { color: var(--gold-500); }

.recipe-switch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: var(--space-6);
}
.recipe-switch__opt {
  padding: 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  text-align: left;
  cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  transition: all var(--dur-fast) var(--ease-out);
}
.recipe-switch__opt:hover { border-color: var(--forest-600); }
.recipe-switch__opt.is-active {
  border-color: var(--forest-800);
  background: #DCE5DC;
  box-shadow: 0 0 0 1px var(--forest-800);
}
.recipe-switch__swatch {
  width: 14px; height: 14px; border-radius: 999px; flex: none;
}
.recipe-switch__name {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 600; color: var(--forest-900);
  line-height: 1.1;
  display: block;
}
.recipe-switch__sub {
  font-size: 11px; color: var(--ink-500);
  display: block; margin-top: 2px;
}

.size-switch {
  display: flex; gap: 8px;
  margin-bottom: var(--space-6);
}
.size-switch__opt {
  flex: 1;
  padding: 14px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  cursor: pointer;
  text-align: center;
  transition: all var(--dur-fast) var(--ease-out);
}
.size-switch__opt:hover { border-color: var(--forest-600); }
.size-switch__opt.is-active {
  border-color: var(--forest-800);
  background: #DCE5DC;
  box-shadow: 0 0 0 1px var(--forest-800);
}
.size-switch__title {
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
  color: var(--forest-900); display: block;
}
.size-switch__sub {
  font-size: 11px; color: var(--ink-500); margin-top: 4px; display: block;
}
.size-switch__pop {
  display: inline-block; margin-left: 6px;
  font-size: 9px; font-weight: 700;
  background: var(--gold-500); color: var(--forest-900);
  padding: 2px 6px; border-radius: 4px;
  letter-spacing: 0.05em;
  vertical-align: middle;
}

.qty-and-price {
  display: flex; align-items: center; gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.qty {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  overflow: hidden;
}
.qty__btn {
  width: 40px; height: 44px;
  background: transparent; border: none;
  font-size: 18px; color: var(--forest-800);
}
.qty__btn:hover { background: var(--cream); }
.qty__val { width: 36px; text-align: center; font-family: var(--font-display); font-weight: 600; }
.product__price {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--forest-900);
  margin-left: auto;
}
.product__price small {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 500; color: var(--ink-500);
  margin-left: 4px;
}

.product__guarantees {
  margin-top: var(--space-6);
  padding: var(--space-5);
  background: #DCE5DC;
  border-radius: var(--radius-md);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.guarantee {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 12px; color: var(--ink-700); line-height: 1.4;
}
.guarantee svg { color: var(--forest-800); flex: none; margin-top: 1px; }
.guarantee strong { display: block; color: var(--forest-900); font-size: 12px; }

/* ── Subscription plan builder (PDP) ── */
.builder-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-500);
  margin: var(--space-6) 0 12px;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px;
}
.builder-label__hint {
  font-size: 11px; font-weight: 500; letter-spacing: 0;
  text-transform: none; color: var(--ink-500); opacity: 0.85;
}
.recipe-switch__check {
  width: 18px; height: 18px; border-radius: 999px; flex: none;
  border: 1.5px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--cream); background: transparent;
  transition: all var(--dur-fast) var(--ease-out);
}
.recipe-switch__check.is-on { background: var(--forest-800); border-color: var(--forest-800); }
.recipe-switch__check svg { width: 12px; height: 12px; }

.weight-field {
  display: flex; align-items: center; gap: var(--space-4);
  margin-bottom: var(--space-2);
}
.weight-field input[type="range"] {
  flex: 1; height: 6px; -webkit-appearance: none; appearance: none;
  background: #6B8A7A; border-radius: 999px; outline: none;
}
.weight-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 999px;
  background: var(--forest-800); border: 3px solid var(--cream);
  box-shadow: var(--shadow-sm); cursor: pointer;
}
.weight-field input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 999px;
  background: var(--forest-800); border: 3px solid var(--cream);
  box-shadow: var(--shadow-sm); cursor: pointer;
}
.weight-field__readout {
  display: inline-flex; align-items: baseline; gap: 4px;
  border: 1.5px solid var(--border); border-radius: var(--radius-md);
  padding: 8px 12px; background: var(--bg-elevated);
}
.weight-field__readout input {
  width: 44px; border: none; background: transparent; outline: none;
  font-family: var(--font-display); font-size: 18px; font-weight: 600;
  color: var(--forest-900); text-align: right;
  -moz-appearance: textfield;
}
.weight-field__readout input::-webkit-outer-spin-button,
.weight-field__readout input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.weight-field__readout span { font-size: 13px; color: var(--ink-500); }

/* Frequency selector (shared: drawer + PDP) */
.freq-switch { display: flex; gap: 8px; }
.freq-switch__opt {
  flex: 1; padding: 10px 8px;
  border: 1.5px solid var(--border); border-radius: var(--radius-md);
  background: var(--bg-elevated); cursor: pointer;
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  color: var(--forest-900); text-align: center;
  transition: all var(--dur-fast) var(--ease-out);
}
.freq-switch__opt:hover { border-color: var(--forest-600); }
.freq-switch__opt.is-active {
  border-color: var(--forest-800); background: #DCE5DC;
  box-shadow: 0 0 0 1px var(--forest-800);
}
.freq-switch--lg .freq-switch__opt { padding: 14px 10px; font-size: 14px; }

/* Delivery cadence note (PDP) — single 4-week cadence */
.freq-note {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  background: var(--sage-50);
  border: 1px solid var(--sage-100);
  border-radius: var(--radius-md);
}
.freq-note svg { width: 20px; height: 20px; color: var(--forest-800); flex: none; margin-top: 1px; }
.freq-note span { font-size: 13px; color: var(--ink-700); line-height: 1.5; }
.freq-note strong { color: var(--forest-900); }

/* PDP price summary */
.plan-summary {
  margin-top: var(--space-6);
  margin-bottom: var(--space-8);
  display: flex; align-items: center; gap: var(--space-5);
  padding: var(--space-5);
  background: #F4EBD5; border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.plan-summary__perday { display: flex; align-items: baseline; gap: 4px; }
.plan-summary__val {
  font-family: var(--font-display); font-size: 2.25rem; font-weight: 700;
  color: var(--forest-900); line-height: 1;
}
.plan-summary__unit { font-size: 14px; color: var(--ink-500); }
.plan-summary__detail {
  font-size: 13px; color: var(--ink-700); line-height: 1.4;
  display: flex; flex-direction: column; gap: 4px;
}
.plan-summary__first { color: var(--gold-600); font-weight: 500; }
.plan-summary__first strong { color: var(--forest-900); }

/* Product tabs */
.product-tabs {
  margin-top: var(--space-16);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.product-tabs__nav {
  display: flex; gap: var(--space-8);
  border-bottom: 1px solid var(--border);
}
.product-tabs__btn {
  background: transparent; border: none;
  padding: var(--space-5) 0;
  font-size: 12px; font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--ink-500);
  position: relative;
  transition: color var(--dur-fast) var(--ease-out);
}
.product-tabs__btn::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0;
  height: 2px; background: var(--forest-800);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}
.product-tabs__btn.is-active { color: var(--forest-900); }
.product-tabs__btn.is-active::after { transform: scaleX(1); }
.product-tabs__panel {
  padding-block: var(--space-10);
}

.ingredients-list {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-12);
}
.ingredients-list table { width: 100%; border-collapse: collapse; }
.ingredients-list td {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  vertical-align: top;
}
.ingredients-list td:first-child {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--forest-900);
  width: 40%;
}
.ingredients-list td:nth-child(2) { color: var(--ink-500); }
.ingredients-list td:last-child { text-align: right; color: var(--gold-600); font-weight: 600; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}
.step {
  padding: var(--space-6);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.step__num {
  font-family: var(--font-display);
  font-size: 2rem; font-style: italic;
  color: var(--gold-500);
  display: block;
  margin-bottom: var(--space-3);
}
.step__title {
  font-family: var(--font-display);
  font-size: 1.125rem; font-weight: 600;
  color: var(--forest-900);
  margin-bottom: var(--space-2);
}
.step__copy { font-size: 14px; line-height: 1.55; color: var(--ink-500); }

.review-summary {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: var(--space-10);
  margin-bottom: var(--space-10);
}
.review-summary__score {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 600;
  color: var(--forest-900);
  line-height: 1;
}
.review-summary__stars { color: var(--gold-500); letter-spacing: 2px; font-size: 18px; margin-top: 4px; }
.review-summary__count { color: var(--ink-500); font-size: 13px; margin-top: 4px; }
.bar-row {
  display: grid;
  grid-template-columns: 60px 1fr 50px;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--ink-500);
}
.bar {
  height: 8px; background: var(--cream-deep); border-radius: 999px; overflow: hidden;
}
.bar__fill {
  height: 100%; background: var(--gold-500);
  border-radius: 999px;
}

/* ─────────────────────────────────────────────────
   ACCOUNT PAGE
   ───────────────────────────────────────────────── */
.account {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-10);
  padding-block: var(--space-10) var(--space-16);
}
.account__hello {
  padding-block: var(--space-6);
  margin-bottom: var(--space-8);
}
.account__hello h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 2.875rem);
  font-weight: 600;
  color: var(--forest-900);
  letter-spacing: var(--tracking-tight);
  line-height: 1.1;
  margin-bottom: var(--space-3);
}
.account__hello p {
  color: var(--ink-500);
  font-size: 1.0625rem;
}

.account__sidebar { position: sticky; top: 100px; align-self: start; }
.account__user {
  display: flex; gap: 14px; align-items: center;
  padding: var(--space-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
}
.account__user-avatar {
  width: 44px; height: 44px; border-radius: 999px;
  background: var(--gold-300);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 600; color: var(--forest-900);
  flex: none;
}
.account__user-name {
  font-family: var(--font-display); font-weight: 600;
  color: var(--forest-900); font-size: 15px;
  line-height: 1.2;
}
.account__user-email { font-size: 12px; color: var(--ink-500); margin-top: 2px; }
.account__nav {
  display: flex; flex-direction: column; gap: 2px;
}
.account__nav-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: transparent; border: none;
  border-radius: var(--radius-md);
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-700);
  letter-spacing: 0.02em;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.account__nav-btn:hover { background: var(--cream-deep); color: var(--forest-900); }
.account__nav-btn.is-active {
  background: var(--forest-800); color: var(--cream);
}
.account__nav-btn svg { flex: none; }
.account__nav-divider { margin: var(--space-3) 8px; height: 1px; background: var(--border); }

.account__panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--border);
}
.panel-head h2 {
  font-family: var(--font-display); font-size: 1.625rem;
  font-weight: 600; color: var(--forest-900);
  letter-spacing: var(--tracking-tight);
}
.panel-head p { font-size: 14px; color: var(--ink-500); margin-top: 4px; }

/* Dog profile cards */
.dog-list { display: flex; flex-direction: column; gap: var(--space-5); }
.dog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.dog-card.is-expanded { border-color: var(--gold-500); box-shadow: var(--shadow-sm); }
.dog-card__head {
  display: flex; align-items: center; gap: var(--space-5);
  padding: var(--space-5);
  cursor: pointer;
}
.dog-card__avatar {
  width: 64px; height: 64px; border-radius: 999px;
  background: var(--gold-300);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600;
  color: var(--forest-900); font-size: 22px;
  flex: none;
}
.dog-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.dog-card__name {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.125rem; color: var(--forest-900);
  margin-bottom: 2px;
}
.dog-card__meta { font-size: 13px; color: var(--ink-500); }
.dog-card__chevron {
  margin-left: auto;
  color: var(--ink-300);
  transition: transform var(--dur-base) var(--ease-out);
}
.dog-card.is-expanded .dog-card__chevron { transform: rotate(180deg); }
.dog-card__body {
  padding: 0 var(--space-5) var(--space-6);
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field label {
  font-size: 11px; font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--ink-500);
}
.field input, .field select, .field textarea {
  padding: 11px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px; color: var(--forest-900);
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--forest-800);
  box-shadow: 0 0 0 3px rgba(200, 169, 107, 0.25);
}
.field textarea { min-height: 72px; resize: vertical; font-family: inherit; }
.allergy-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.allergy {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--sage-50);
  border: 1px solid var(--sage-100);
  border-radius: 999px;
  padding: 5px 10px 5px 12px;
  font-size: 12px;
  color: var(--forest-800);
}
.allergy button {
  background: transparent; border: none; padding: 0;
  color: var(--ink-500);
  display: inline-flex; align-items: center;
}
.allergy button:hover { color: var(--danger); }

.dog-card__actions {
  grid-column: 1 / -1;
  display: flex; gap: 12px;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  margin-top: var(--space-3);
}
.btn--tonal {
  background: var(--sage-50); color: var(--forest-800);
  border: 1px solid var(--sage-100);
}
.btn--tonal:hover { background: var(--sage-100); }
.add-dog {
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: var(--space-6);
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: transparent;
  width: 100%;
  font-family: var(--font-display);
  font-size: 14px;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--forest-800);
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.add-dog:hover { border-color: var(--forest-800); background: var(--cream); }

/* Orders */
.order {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
  background: var(--paper);
}
.order__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
}
.order__id {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 600;
  color: var(--forest-900);
}
.order__date { font-size: 12px; color: var(--ink-500); margin-top: 2px; }
.order__status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px; font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}
.order__status .dot {
  width: 6px; height: 6px; border-radius: 999px;
}
.order__status--delivered { background: var(--sage-50); color: var(--success); }
.order__status--delivered .dot { background: var(--success); }
.order__status--shipped { background: var(--gold-100); color: var(--gold-600); }
.order__status--shipped .dot { background: var(--gold-500); }
.order__status--processing { background: var(--cream-deep); color: var(--ink-700); }
.order__status--processing .dot { background: var(--ink-500); }

.order__items {
  display: flex; flex-direction: column; gap: 12px;
}
.order__row {
  display: grid;
  grid-template-columns: 56px 1fr auto auto;
  gap: var(--space-4);
  align-items: center;
}
.order__thumb {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--cream-deep);
}
.order__thumb img { width: 100%; height: 100%; object-fit: cover; }
.order__name {
  font-family: var(--font-display); font-weight: 500;
  color: var(--forest-900); font-size: 14px;
  line-height: 1.3;
}
.order__variant { font-size: 12px; color: var(--ink-500); margin-top: 2px; }
.order__qty { font-size: 13px; color: var(--ink-500); }
.order__price {
  font-family: var(--font-display);
  font-weight: 500; color: var(--forest-900);
  font-size: 14px;
}
.order__foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}
.order__total { font-family: var(--font-display); font-weight: 600; color: var(--forest-900); }

/* ─────────────────────────────────────────────────
   SUBSCRIPTION PANEL  (Recharge-managed)
   ───────────────────────────────────────────────── */
.settings__h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--forest-900);
  margin-bottom: var(--space-4);
}

.sub-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
  letter-spacing: var(--tracking-eyebrow); text-transform: uppercase;
  white-space: nowrap;
}
.sub-badge .dot { width: 6px; height: 6px; border-radius: 999px; }
.sub-badge--active { background: var(--sage-50); color: var(--success); }
.sub-badge--active .dot { background: var(--success); }
.sub-badge--paused { background: var(--gold-100); color: var(--gold-600); }
.sub-badge--paused .dot { background: var(--gold-500); }

.sub-section__label {
  font-size: 11px; font-weight: 600; letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase; color: var(--ink-500); margin-bottom: 12px;
}
.sub-section { margin-top: var(--space-8); }
.sub-section__head {
  display: flex; align-items: baseline; justify-content: space-between;
}
.sub-link {
  background: transparent; border: none; padding: 0; cursor: pointer;
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--gold-600); text-decoration: underline; text-underline-offset: 3px;
}
.sub-link:hover { color: var(--forest-800); }

/* Next delivery hero */
.sub-next {
  display: flex; align-items: center; gap: var(--space-5); flex-wrap: wrap;
  padding: var(--space-5) var(--space-6);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.sub-next.is-skipped { opacity: 0.78; }
.sub-next__cal {
  flex: none; width: 60px; height: 64px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--forest-800); color: var(--cream);
  border-radius: var(--radius-md);
}
.sub-next__cal-mo {
  font-size: 10px; font-weight: 600; letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase; color: var(--gold-300);
}
.sub-next__cal-day {
  font-family: var(--font-display); font-weight: 600; font-size: 1.75rem; line-height: 1;
}
.sub-next__date {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 600;
  color: var(--forest-900); line-height: 1.1; letter-spacing: var(--tracking-tight);
}
.sub-next__meta { font-size: 13px; color: var(--ink-500); margin-top: 5px; }
.sub-next__actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.sub-reschedule {
  width: 100%;
  display: flex; align-items: center; gap: 12px;
  margin-top: var(--space-4); padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

/* Box contents */
.sub-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2) var(--space-5);
  background: var(--paper);
}
.sub-recipe { display: flex; align-items: center; gap: 14px; padding: 14px 0; }
.sub-recipe + .sub-recipe { border-top: 1px solid var(--border); }
.sub-recipe__thumb {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  overflow: hidden; background: var(--cream-deep); flex: none;
}
.sub-recipe__thumb img { width: 100%; height: 100%; object-fit: cover; }
.sub-recipe__name {
  font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--forest-900);
}
.sub-recipe__sub { font-size: 12px; color: var(--ink-500); margin-top: 2px; }
.sub-recipe__tag {
  flex: none;
  font-size: 10px; font-weight: 600; letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase; color: var(--tag, var(--forest-800));
  border: 1px solid color-mix(in oklab, var(--tag, var(--forest-800)) 30%, transparent);
  border-radius: 999px; padding: 4px 10px;
}
.sub-box__note {
  display: flex; align-items: center; gap: 8px;
  border-top: 1px solid var(--border);
  padding: 14px 0 6px; margin: 0;
  font-size: 12px; color: var(--ink-500);
}
.sub-box__note svg { width: 15px; height: 15px; color: var(--forest-800); flex: none; }

/* Plan setting rows */
.sub-rows { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 0 var(--space-5); background: var(--paper); }
.sub-row {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  padding: 15px 0; border-top: 1px solid var(--border);
}
.sub-row:first-child { border-top: none; }
.sub-row__label { font-size: 13px; color: var(--ink-500); flex: none; }
.sub-row__value {
  font-family: var(--font-display); font-weight: 500; color: var(--forest-900);
  font-size: 14px; text-align: right;
}

/* Manage row */
.sub-manage {
  display: flex; gap: 12px; align-items: center;
  margin-top: var(--space-8); padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

/* ─────────────────────────────────────────────────
   Mini cart (drawer)
   ───────────────────────────────────────────────── */
.scrim {
  position: fixed; inset: 0;
  background: rgba(15, 36, 25, 0.42);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out);
}
.scrim.is-open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(440px, 100vw);
  background: var(--paper);
  border-left: 1px solid var(--border);
  z-index: 100;
  box-shadow: var(--shadow-xl);
  transform: translateX(100%);
  transition: transform var(--dur-base) var(--ease-out);
  display: flex; flex-direction: column;
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-6);
  border-bottom: 1px solid var(--border);
}
.cart-drawer__head h3 {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 600;
  color: var(--forest-900);
}
.cart-drawer__close {
  background: transparent; border: 1px solid var(--border);
  border-radius: 999px; width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--forest-800);
}
.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-5) var(--space-6);
}
.cart-drawer__empty {
  text-align: center; padding: var(--space-12) var(--space-4);
  color: var(--ink-500);
}
.cart-drawer__empty .display { font-size: 1.5rem; margin-bottom: var(--space-3); }
.cart-line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: var(--space-4);
  align-items: center;
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--border);
}
.cart-line:last-child { border-bottom: none; }
.cart-line__thumb {
  width: 72px; height: 72px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--cream-deep);
}
.cart-line__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__name {
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
  color: var(--forest-900); line-height: 1.2;
}
.cart-line__variant { font-size: 12px; color: var(--ink-500); margin-top: 4px; }
.cart-line__price {
  font-family: var(--font-display); font-weight: 600;
  color: var(--forest-900); margin-top: 6px;
}
.cart-line__qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}
.cart-line__qty button {
  width: 28px; height: 28px;
  background: transparent; border: none;
  color: var(--forest-800); font-size: 14px;
}
.cart-line__qty button:hover { background: var(--cream); }
.cart-line__qty span {
  width: 28px; text-align: center;
  font-family: var(--font-display); font-weight: 600;
  font-size: 13px;
}
.cart-line__rm {
  background: transparent; border: none;
  color: var(--ink-300); padding: 4px;
  align-self: start;
}
.cart-line__rm:hover { color: var(--danger); }
.cart-drawer__foot {
  border-top: 1px solid var(--border);
  padding: var(--space-6);
  background: var(--cream);
}
.cart-totals {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: var(--space-3);
  font-size: 14px; color: var(--ink-500);
}
.cart-totals--main {
  font-family: var(--font-display);
  font-size: 1.125rem; font-weight: 600;
  color: var(--forest-900);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  margin-bottom: var(--space-5);
}
.cart-totals--main span:last-child { font-size: 1.5rem; }

/* ── "Your plan" drawer panel ── */
.plan { display: block; }
.plan__section-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-500); margin-bottom: 12px;
}
.plan__recipes { display: flex; flex-direction: column; gap: 10px; }
.plan__recipe {
  display: flex; align-items: center; gap: 12px;
  padding: 10px; border: 1px solid var(--border);
  border-radius: var(--radius-md); background: var(--bg-elevated);
}
.plan__recipe-thumb {
  width: 48px; height: 48px; border-radius: 10px; overflow: hidden;
  flex: none; background: var(--cream-deep);
}
.plan__recipe-thumb img { width: 100%; height: 100%; object-fit: cover; }
.plan__recipe-name {
  font-family: var(--font-display); font-size: 14px; font-weight: 600;
  color: var(--forest-900);
}
.plan__recipe-sub { font-size: 12px; color: var(--ink-500); margin-top: 2px; }
.plan__rotation-note {
  font-size: 12px; color: var(--ink-500); line-height: 1.45;
  margin-top: 10px;
}
.plan__row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: var(--space-5); padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}
.plan__row-label { font-size: 13px; color: var(--ink-500); }
.plan__row-value { font-size: 13px; color: var(--forest-900); font-weight: 500; }
.plan__edit {
  margin-top: var(--space-5); background: transparent; border: none;
  color: var(--ink-500); font-size: 12px; text-decoration: underline;
  text-underline-offset: 3px; cursor: pointer; padding: 0;
}
.plan__edit:hover { color: var(--danger); }

.plan__perday { display: flex; align-items: baseline; gap: 4px; margin-bottom: var(--space-4); }
.plan__perday-val {
  font-family: var(--font-display); font-size: 2rem; font-weight: 700;
  color: var(--forest-900); line-height: 1;
}
.plan__perday-unit { font-size: 14px; color: var(--ink-500); }
.plan__firstbox {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: var(--space-3) 0 var(--space-5);
  font-size: 13px; color: var(--gold-600); font-weight: 500;
}
.plan__firstbox s { color: var(--ink-500); margin-right: 6px; font-weight: 400; }
.plan__reassure {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 12px; font-size: 12px; color: var(--ink-500);
}
.plan__reassure svg { width: 14px; height: 14px; color: var(--forest-800); }

/* ─────────────────────────────────────────────────
   Tweaks bridge (panel positioning is handled by starter)
   ───────────────────────────────────────────────── */
[data-bg='paper'] { --bg: var(--paper); }
[data-bg='cream'] { --bg: var(--cream); }
[data-bg='sage'] { --bg: #ECF1EC; }

/* Toast */
.toast {
  position: fixed;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--forest-900);
  color: var(--cream);
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
  z-index: 200;
  display: inline-flex; align-items: center; gap: 10px;
}
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Responsive ── */
@media (max-width: 980px) {
  .nav__links { display: none; }
  .hero__grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .recipes-grid, .benefits, .reviews-grid { grid-template-columns: 1fr 1fr; }
  .needs-grid { grid-template-columns: 1fr 1fr; }
  .ingredients, .vet-strip, .story, .product, .account { grid-template-columns: 1fr; gap: var(--space-10); }
  .ingredients__heading { padding-right: 96px; }
  .ingredients__cutout { width: 88px; height: 110px; top: -4px; }
  .concern-grid { grid-template-columns: 1fr 1fr; }
  .ingredients__overlay { right: -12px; top: auto; bottom: 24px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .steps { grid-template-columns: 1fr 1fr; }
  .ingredients-list { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__thumbs { flex-direction: row; }
  .review-summary { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .recipes-grid, .benefits, .reviews-grid, .needs-grid, .steps { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}
