/* =========================================================
   TruTails — Real Food. Real Love.
   Static site styles. No build step.
   ========================================================= */

:root {
  --brown: #3d2218;
  --yellow: #fdd342;
  --beige: #cea576;
  --cream: #fff8ec;
  --white: #ffffff;

  --cream-deep: #fbefdc;
  --rule: rgba(206, 165, 118, 0.45);
  --rule-strong: rgba(206, 165, 118, 0.75);

  --shell: 1200px;
  --pad: 22px;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[id] { scroll-margin-top: 124px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--brown);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

::selection { background: var(--yellow); color: var(--brown); }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brown);
  color: var(--cream);
  padding: 12px 18px;
  z-index: 200;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

a:focus-visible, summary:focus-visible, button:focus-visible {
  outline: 2.5px solid var(--brown);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Type ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--brown);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 0;
  font-variation-settings: "SOFT" 40;
}

/* Section headlines: always the largest text in their section.
   Plain fallback first, fluid scale second (older browsers keep the big size). */
h2 {
  font-size: 2.3rem;
  font-size: clamp(2.3rem, 5vw, 3.5rem);
  line-height: 1.02;
  margin-bottom: 20px;
}

h3 { font-size: 1.25rem; line-height: 1.2; }

p { margin: 0 0 16px; max-width: 62ch; }

.lede {
  font-size: 1.0625rem;
  line-height: 1.6;
  max-width: 46ch;
}

/* Explicit paragraph rhythm in editorial split blocks */
.split-text p { margin-bottom: 20px; }
.split-text p:last-of-type { margin-bottom: 0; }

.kicker {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brown);
  margin: 0 0 14px;
}
.kicker-light { color: var(--cream); opacity: 0.85; }

.chapter {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brown);
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.chapter::after {
  content: "";
  height: 1px;
  flex: 1;
  max-width: 120px;
  background: var(--rule-strong);
}
.chapter-light { color: var(--yellow); }
.chapter-light::after { background: rgba(253, 211, 66, 0.45); }

.center { text-align: center; }

/* ---------- Buttons ---------- */

.btn {
  --btn-y: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: var(--btn-y) 28px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  min-height: 52px;
  cursor: pointer;
  transition: transform 0.28s var(--ease), background-color 0.28s var(--ease),
              color 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}

.btn-solid {
  background: var(--yellow);
  color: var(--brown);
  box-shadow: 0 1px 0 rgba(61, 34, 24, 0.14);
}
.btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -12px rgba(61, 34, 24, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--brown);
  border-color: var(--rule-strong);
}
.btn-ghost:hover { background: rgba(206, 165, 118, 0.18); transform: translateY(-2px); }

.btn-yellow {
  background: var(--yellow);
  color: var(--brown);
}
.btn-yellow:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -14px rgba(0, 0, 0, 0.55); }

.btn-sm { --btn-y: 11px; min-height: 42px; padding: 11px 20px; font-size: 0.875rem; }
.btn-block { width: 100%; }

.offer-strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 18px 0 0;
}
.offer-strip a {
  display: inline-block;
  border: 1.5px solid var(--brown);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brown);
  background: var(--white);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.offer-strip a:hover { background: var(--yellow); border-color: var(--yellow); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 0;
}

/* ---------- Photo placeholders ---------- */

.ph {
  position: relative;
  margin: 0;
  border-radius: 20px;
  background-color: var(--cream-deep);
  background-image:
    repeating-linear-gradient(135deg,
      rgba(206, 165, 118, 0.14) 0 1px,
      transparent 1px 11px);
  border: 1px solid var(--rule);
  display: flex;
  align-items: flex-end;
  padding: 18px;
  overflow: hidden;
}
.ph::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(206, 165, 118, 0.6);
  border-radius: 12px;
  pointer-events: none;
}
.ph-label {
  position: relative;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brown);
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 7px 13px;
  line-height: 1.3;
}

.ph-hero { aspect-ratio: 4 / 3; }
.ph-square { aspect-ratio: 5 / 4; }
.ph-card { aspect-ratio: 3 / 2; border-radius: 14px; margin-bottom: 16px; }
.ph-card::before { inset: 9px; border-radius: 9px; }
.ph-tall { aspect-ratio: 3 / 2; }
.ph-portrait { aspect-ratio: 5 / 4; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 236, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}
.header-trust {
  margin: 0;
  max-width: none;
  background: var(--brown);
  color: var(--cream);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 9px 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-trust span { margin: 0 7px; color: var(--yellow); }
.site-header.is-stuck {
  border-bottom-color: var(--rule);
  box-shadow: 0 8px 24px -22px rgba(61, 34, 24, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
}

.brand-logo { width: auto; height: 38px; object-fit: contain; }

.header-nav {
  display: none;
  gap: 32px;
  font-size: 0.9375rem;
  font-weight: 500;
}
.header-nav a { position: relative; padding: 4px 0; color: var(--brown); }
.header-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--brown);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.header-nav a:hover::after { transform: scaleX(1); }

/* ---------- Hero ---------- */

.hero {
  padding: 26px 0 34px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -160px;
  top: -140px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle at center, rgba(253, 211, 66, 0.4), transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 26px;
}

.hero-title {
  font-size: 3rem;
  font-size: clamp(2.9rem, 13vw, 4.6rem);
  margin: 0 0 16px;
  font-weight: 600;
}
.hero-title em {
  font-style: italic;
  font-weight: 600;
  color: var(--brown);
}

.trust-strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 0;
  margin: 20px 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.trust-strip li {
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  padding: 7px 13px;
  color: var(--brown);
  background: rgba(255, 255, 255, 0.55);
}

/* ---------- Sections ---------- */

.section { padding: 64px 0; position: relative; }

.band-tan {
  background: var(--cream-deep);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.band-cream-deep { background: var(--cream-deep); }

.section-head { margin-bottom: 42px; max-width: 760px; }

.split { display: grid; gap: 36px; align-items: center; }
.split-text h2 { margin-bottom: 20px; }
.split-text .btn { margin-top: 10px; }

.signature {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.125rem;
  margin-top: 22px;
}

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  list-style: none !important;
  display: grid;
  gap: 2px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 22px;
  overflow: hidden;
}
.step {
  list-style: none !important;
  background: var(--cream);
  padding: 32px 26px 30px;
  transition: background-color 0.3s var(--ease);
}
.step::marker { content: "" !important; }
.step:hover { background: var(--white); }
.step-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  display: block;
  margin-bottom: 14px;
  color: var(--brown);
}
.step h3 { margin-bottom: 10px; }
.step p { margin: 0; font-size: 0.9375rem; }

/* ---------- Menu ---------- */

.menu-group { margin-bottom: 52px; }

.group-head {
  border-top: 1.5px solid var(--brown);
  padding-top: 16px;
  margin-bottom: 26px;
}
.group-title {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.group-note { margin: 0; font-size: 0.9375rem; opacity: 0.82; }

.card-rail {
  display: grid;
  gap: 18px;
}

.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 22px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px -30px rgba(61, 34, 24, 0.7);
}
.card-body { display: flex; flex-direction: column; flex: 1; padding: 2px 4px 4px; }
.card-title { font-size: 1.1875rem; margin-bottom: 10px; }

.card-spec {
  margin: 0 0 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.005em;
}
.card-price {
  font-weight: 700;
  font-size: 1.0625rem;
  white-space: nowrap;
}
.card-descriptor {
  margin: 0 0 18px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
}
.card-body .btn { margin-top: auto; }

/* A single-product group must never sit in a multi-column grid */
.card-rail.is-single { grid-template-columns: minmax(0, 1fr); }

/* Hidden ingredients slot — reserved for a later content pass, never rendered */
.card-ingredients {
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- Extras (add-ons, deliberately distinct from meals) ---------- */

.menu-group-extras {
  background: var(--cream-deep);
  border: 1px solid var(--rule);
  border-radius: 26px;
  padding: 26px 20px 30px;
}
.menu-group-extras .group-head {
  border-top: none;
  padding-top: 0;
  margin-bottom: 22px;
}
.card-compact { border-radius: 16px; padding: 12px; }
.card-compact .ph-card { aspect-ratio: 1 / 1; border-radius: 11px; margin-bottom: 12px; }
.card-compact .card-body { padding: 0 3px 3px; }
.card-compact .card-title {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.3;
  margin-bottom: 7px;
}
.card-compact .card-spec { font-size: 0.8125rem; margin-bottom: 14px; }
.card-compact .card-price { font-size: 0.9375rem; }
.card-compact .btn {
  min-height: 44px;
  padding: 11px 18px;
  font-size: 0.8125rem;
  background: transparent;
  border-color: var(--brown);
  box-shadow: none;
}
.card-compact .btn:hover { background: var(--yellow); border-color: var(--yellow); }

/* ---------- Text placeholders (pending copy) ---------- */

.text-ph {
  position: relative;
  min-height: 170px;
  margin: 0 0 18px;
  border-radius: 18px;
  background-color: rgba(255, 255, 255, 0.5);
  background-image:
    repeating-linear-gradient(135deg,
      rgba(206, 165, 118, 0.14) 0 1px,
      transparent 1px 11px);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  padding: 18px;
}
.text-ph::before {
  content: "";
  position: absolute;
  inset: 11px;
  border: 1px dashed rgba(206, 165, 118, 0.6);
  border-radius: 11px;
  pointer-events: none;
}
.text-ph-sm { min-height: 76px; margin-bottom: 0; }

.menu-footnote {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  border-top: 1px solid var(--rule);
  padding-top: 22px;
}

.protein-ask {
  margin: 22px 0 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  opacity: 0.82;
}
.protein-ask a {
  color: var(--brown);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.protein-ask a:hover { text-decoration-color: var(--beige); }

/* ---------- Raw ---------- */

.raw {
  background: var(--brown);
  color: var(--cream);
}
.raw-inner { max-width: 760px; }

.menu-group-raw {
  background: var(--brown);
  color: var(--cream);
  border-radius: 26px;
  padding: 26px 20px 30px;
  margin: 40px 0 0;
}
.menu-group-raw .group-head { border-top: none; padding-top: 0; margin-bottom: 14px; }
.menu-group-raw .group-title { color: var(--yellow); }
.raw-headline {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--cream);
  margin: 0 0 10px;
}
.raw-title { color: var(--cream); }
.raw-body { color: var(--cream); opacity: 0.92; margin-bottom: 28px; font-size: 1.0625rem; }


/* ---------- Hero credentials line ---------- */
.trust-line {
  margin: 18px 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brown);
  opacity: 0.78;
  line-height: 1.7;
}
.trust-line span { margin: 0 6px; opacity: 0.6; }

/* ---------- Meal plan ---------- */
.plan-note {
  font-size: 0.9375rem;
  font-weight: 600;
  border-left: 3px solid var(--yellow);
  padding-left: 14px;
  margin: 6px 0 26px;
}
.plan-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 22px;
  padding: 26px 24px;
}
.plan-card-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  margin: 0 0 14px;
}
.plan-list { list-style: none; margin: 0; padding: 0; }
.plan-list li {
  position: relative;
  padding: 12px 0 12px 30px;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
}
.plan-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 17px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--brown);
  border-bottom: 2px solid var(--brown);
  transform: rotate(-45deg);
}

/* ---------- Freezer ---------- */

.freezer-grid { display: grid; gap: 34px; align-items: start; }

.flow { list-style: none !important; margin: 0; padding: 0; }
.flow-item {
  list-style: none !important;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
}
.flow-item::marker { content: "" !important; }
.flow-item:last-child { border-bottom: 1px solid var(--rule); }
.flow-num {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--brown);
  display: grid;
  place-items: center;
}
.flow-item h3 { margin-bottom: 8px; }
.flow-item p { margin: 0; font-size: 0.9375rem; }

/* ---------- Why ---------- */

.why-grid { display: grid; gap: 16px; }
.why-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 28px 24px;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
}
.why-card:hover { transform: translateY(-3px); }
.why-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 18px;
  stroke: var(--brown);
  stroke-width: 1.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.why-card h3 { font-size: 1.0625rem; margin-bottom: 8px; }
.why-card p { margin: 0; font-size: 0.9375rem; opacity: 0.85; }

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

.faq-shell { max-width: 880px; }

.faq-item { border-top: 1px solid var(--rule); }
.faq-item:last-child { border-bottom: 1px solid var(--rule); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 2px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--brown);
  transition: opacity 0.25s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { opacity: 0.66; }

.faq-mark {
  position: relative;
  flex: 0 0 22px;
  height: 22px;
}
.faq-mark::before, .faq-mark::after {
  content: "";
  position: absolute;
  background: var(--brown);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.faq-mark::before { top: 10px; left: 2px; width: 18px; height: 1.6px; }
.faq-mark::after { left: 10.2px; top: 2px; height: 18px; width: 1.6px; }
.faq-item[open] .faq-mark::after { transform: rotate(90deg); opacity: 0; }

.faq-answer { overflow: hidden; }
.faq-item[open] .faq-answer { animation: faqOpen 0.34s var(--ease); }
.faq-answer p { margin: 0 0 22px; font-size: 0.9375rem; max-width: 66ch; }

@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--brown);
  color: var(--cream);
  padding: 62px 0 118px;
}
.footer-logo { height: 46px; width: auto; object-fit: contain; margin-bottom: 22px; }
.footer-inner { display: grid; gap: 44px; }
.footer-lead .kicker { margin-bottom: 24px; }

.footer-cols { display: grid; gap: 30px; }
.footer-col p { margin: 0 0 6px; font-size: 0.9375rem; color: var(--cream); opacity: 0.86; }
.footer-col a { border-bottom: 1px solid rgba(255, 248, 236, 0.4); transition: border-color 0.25s var(--ease); }
.footer-col a:hover { border-bottom-color: var(--yellow); }

/* Instagram link */
.footer-social { margin-top: 14px; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: none;
  border: 1px solid rgba(255, 248, 236, 0.35);
  border-radius: 999px;
  padding: 9px 16px 9px 13px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.footer-social a:hover {
  background: rgba(255, 248, 236, 0.1);
  border-color: var(--yellow);
}
.ig-glyph {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.footer-legal {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 248, 236, 0.18);
  font-size: 0.8125rem;
  opacity: 0.72;
  max-width: none;
}

/* ---------- Mobile sticky CTA ---------- */

.mobile-cta {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--brown);
  font-size: 0.9375rem;
  font-weight: 600;
  box-shadow: 0 14px 30px -14px rgba(61, 34, 24, 0.65);
  transform: translateY(0);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.wa-glyph { width: 20px; height: 20px; fill: var(--brown); }

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001s !important; }
}

/* =========================================================
   Breakpoints
   ========================================================= */

/* Mobile: product rails scroll horizontally */
@media (max-width: 767px) {
  .card-rail {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    margin: 0 calc(var(--pad) * -1);
    padding-left: var(--pad);
    padding-right: var(--pad);
    scrollbar-width: none;
  }
  .card-rail::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 79%; scroll-snap-align: start; }
  .card-rail.is-single {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    overflow: visible;
    margin: 0;
    padding: 0;
  }
  .card-rail.is-single .card { flex: none; }
  .extras-rail {
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .extras-rail .card { flex: 0 0 58%; }
  .header-cta { display: none; }
}

@media (min-width: 640px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  :root { --pad: 34px; }
  .section { padding: 96px 0; }
  .hero { padding: 54px 0 66px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .card-rail { grid-template-columns: repeat(3, 1fr); }
  .rail-4 { grid-template-columns: repeat(2, 1fr); }
  .rail-5 { grid-template-columns: repeat(3, 1fr); }
  .extras-rail { grid-template-columns: repeat(3, 1fr); }
  .menu-group-extras { padding: 32px 30px 36px; }
  .menu-group-raw { padding: 32px 30px 36px; }
  .mobile-cta { display: none; }
  .site-footer { padding-bottom: 62px; }
  .freezer-grid { grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
  .ph-tall { aspect-ratio: 4 / 5; max-height: 560px; }

  /* Single-product group: wider standalone editorial card */
  .card-rail.is-single { grid-template-columns: minmax(0, 1fr); }
  .card-wide {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 32px;
    align-items: center;
    padding: 18px;
  }
  .card-wide .ph-card { margin-bottom: 0; aspect-ratio: 4 / 3; }
  .card-wide .card-body { padding: 10px 16px 10px 4px; }
  .card-wide .card-title { font-size: 1.375rem; }
  .card-wide .btn-block {
    width: auto;
    align-self: start;
    margin-top: 6px;
    padding-left: 34px;
    padding-right: 34px;
  }
}

@media (min-width: 900px) {
  .header-nav { display: flex; }
  .header-inner { min-height: 82px; }
  .brand-logo { height: 44px; }

  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
  .hero-title { font-size: 4rem; font-size: clamp(3.6rem, 6.4vw, 5.4rem); }

  .split { grid-template-columns: 1fr 1fr; gap: 80px; }
  .split-reverse .split-text { order: 2; }
  .split-reverse .split-media { order: 1; }

  .why-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-inner { grid-template-columns: 0.9fr 1.4fr; gap: 64px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-legal { grid-column: 1 / -1; }
  .faq-item summary { font-size: 1.25rem; padding: 26px 2px; }
}

@media (min-width: 1024px) {
  .rail-4 { grid-template-columns: repeat(4, 1fr); }
  .rail-5 { grid-template-columns: repeat(5, 1fr); }
  .extras-rail { grid-template-columns: repeat(5, 1fr); }
}

/* ---------- Order list ---------- */
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
button.btn { font-family: var(--font-body); }
.btn.is-added { background: var(--brown); color: var(--cream); border-color: var(--brown); }

body.has-order .mobile-cta { display: none; }

.order-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 130;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--brown);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 14px 30px -14px rgba(61, 34, 24, 0.7);
}
.order-bar-count { flex: 1; }
.order-bar-total { color: var(--yellow); }
.order-bar-cta {
  background: var(--yellow);
  color: var(--brown);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.875rem;
}

.order-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(61, 34, 24, 0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.order-sheet {
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--cream);
  color: var(--brown);
  border-radius: 24px 24px 0 0;
  padding: 22px 20px 26px;
  box-shadow: 0 -10px 40px -20px rgba(0, 0, 0, 0.5);
}
body.order-open { overflow: hidden; }

.order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.order-title { font-size: 1.5rem; margin: 0; }
.order-close {
  width: 44px; height: 44px;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  background: var(--white);
  color: var(--brown);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.order-list { list-style: none; margin: 0; padding: 0; }
.order-item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "info total" "qty qty";
  gap: 10px 12px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
}
.order-item-info { grid-area: info; }
.order-item-name { margin: 0 0 4px; font-weight: 600; font-size: 0.9375rem; max-width: none; }
.order-item-meta { margin: 0; font-size: 0.8125rem; opacity: 0.75; max-width: none; }
.card-note {
  margin: -8px 0 16px;
  font-size: 0.8125rem;
  line-height: 1.45;
  opacity: 0.8;
  max-width: none;
}
.order-item-note {
  display: inline-block;
  margin: 8px 0 0;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(253, 211, 66, 0.45);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  max-width: none;
}
.order-item-total { grid-area: total; margin: 0; font-weight: 700; white-space: nowrap; }
.order-qty { grid-area: qty; display: flex; align-items: center; gap: 12px; }
.qty-btn {
  width: 40px; height: 40px;
  border: 1.5px solid var(--brown);
  border-radius: 50%;
  background: var(--white);
  color: var(--brown);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.qty-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.qty-num { min-width: 22px; text-align: center; font-weight: 700; }

.order-empty { margin: 18px 0 8px; opacity: 0.8; }

.order-totals { border-top: 1.5px solid var(--brown); margin-top: 4px; padding-top: 14px; }
.order-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.9375rem;
  margin-bottom: 8px;
}
.order-row strong { font-size: 1.0625rem; }
.order-row-muted { opacity: 0.8; }

.order-send { margin-top: 14px; }
.order-note { margin: 12px 0 0; font-size: 0.8125rem; line-height: 1.5; opacity: 0.8; max-width: none; }
.order-clear {
  margin-top: 14px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--brown);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  opacity: 0.75;
}

@media (min-width: 768px) {
  .order-bar { left: auto; right: 28px; bottom: 28px; min-width: 380px; }
  .order-overlay { align-items: center; padding: 24px; }
  .order-sheet { max-width: 480px; border-radius: 24px; padding: 28px 28px 30px; }
  body.has-order .site-footer { padding-bottom: 120px; }
}

body.order-open .order-bar { display: none; }

.order-row-value { text-align: right; }
.faq-add {
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--brown);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  cursor: pointer;
}
.faq-add:hover { text-decoration-color: var(--beige); }

/* ---------- Policy pages ---------- */
.policy-body { background: var(--cream); }
.policy-header { position: sticky; }
.policy-back {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--brown);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.policy-main { padding: 40px 0 64px; }
.policy-shell { max-width: 760px; }
.policy-title { font-size: clamp(2rem, 6vw, 2.75rem); line-height: 1.1; margin: 8px 0 10px; }
.policy-updated { font-size: 0.875rem; opacity: 0.7; margin: 0 0 28px; }
.policy-content h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 32px 0 10px;
}
.policy-content p, .policy-content li { font-size: 1rem; line-height: 1.65; max-width: none; }
.policy-content ul, .policy-content ol { padding-left: 22px; margin: 0 0 16px; }
.policy-content li { margin-bottom: 6px; }
.policy-content a { color: var(--brown); text-decoration: underline; text-underline-offset: 3px; }
.policy-nav {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1.5px solid var(--brown);
}
.policy-nav-title { font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.policy-nav-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.policy-nav-links a { font-size: 0.9375rem; color: var(--brown); text-decoration: underline; text-underline-offset: 3px; }
.policy-nav-links a[aria-current="page"] { font-weight: 700; text-decoration: none; }
.policy-footer { background: var(--brown); color: var(--cream); padding: 22px 0; font-size: 0.8125rem; }
.policy-footer p { margin: 0; max-width: none; opacity: 0.85; }

/* Footer policy links on the main page */
.footer-policies { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; }
.footer-policies a { color: var(--cream); font-size: 0.875rem; opacity: 0.85; text-decoration: underline; text-underline-offset: 3px; }
.footer-policies a:hover { opacity: 1; }

/* ---------- Product pack images ---------- */
.card-media {
  margin: 0 0 16px;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  background: var(--cream-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card-media img {
  height: 92%;
  width: auto;
  max-width: 92%;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(61, 34, 24, 0.14));
}
@media (min-width: 768px) {
  .card-wide .card-media { margin-bottom: 0; aspect-ratio: 4 / 3; }
}

/* Wide images (First Dibs box) */
.card-media-wide { aspect-ratio: 3 / 2; }
.card-media-wide img { width: 94%; height: auto; max-width: 94%; max-height: 94%; }
@media (min-width: 768px) {
  .card-wide .card-media-wide { aspect-ratio: 4 / 3; }
}

.start-small-media { margin: 0; border-radius: 22px; }

/* Real photos with their own backdrop: fill the frame */
.card-media-photo img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 55%;
  filter: none;
}
.card-compact .card-media { aspect-ratio: 4 / 5; border-radius: 11px; margin-bottom: 12px; }

/* Hero photo */
.hero-photo {
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  background: var(--cream-deep);
  box-shadow: 0 24px 50px -32px rgba(61, 34, 24, 0.55);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Freezer to bowl: steps only, no photo */
@media (min-width: 768px) {
  .freezer-grid.freezer-grid-steps { grid-template-columns: 1fr; }
  .freezer-grid-steps .flow { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
  .freezer-grid-steps .flow-item:nth-last-child(2) { border-bottom: 1px solid var(--rule); }
}

/* Real pet photos (dog in Start Small, cat beside Fur Real) */
.pet-photo { margin: 0; }
.ph-pet { aspect-ratio: 4 / 5; border-radius: 20px; }
.pet-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; }
.pet-caption {
  margin-top: 12px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--brown);
  text-align: center;
}
.cat-row { display: grid; gap: 22px; }
.cat-row .pet-photo { max-width: 340px; width: 100%; justify-self: center; }
@media (min-width: 768px) {
  .cat-row { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: center; gap: 28px; }
  .cat-row .pet-photo { max-width: none; }
}
/* Pet photo sizing */
.split-media .pet-photo { max-width: 400px; margin: 0 auto; }
.cat-row .pet-photo { max-width: 280px; }
@media (min-width: 768px) {
  .cat-row .ph-pet, .cat-row .pet-photo img { aspect-ratio: 1 / 1; }
  .cat-row .pet-photo { max-width: 320px; }
}

/* Goofy one-liners on meal cards */
.card-quip {
  margin: -4px 0 12px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--brown);
  opacity: 0.85;
  max-width: none;
}
.card-quip + .card-note { margin-top: -6px; }
.card-compact .btn.is-added { font-size: 0.75rem; }

/* 404 page */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 0; }
.notfound h1 { font-size: clamp(2rem, 7vw, 3.25rem); line-height: 1.1; margin: 10px 0 14px; }
.notfound p { margin: 0 auto 26px; }
/* "Added" state must stay readable, including under hover on compact cards */
.card .btn.is-added,
.card .btn.is-added:hover,
.faq-add.is-added {
  background: var(--brown);
  border-color: var(--brown);
  color: var(--cream);
  transition: none;
}
.faq-add.is-added { padding: 4px 10px; border-radius: 999px; text-decoration: none; }

.pet-photo img.pet-cutout { background: var(--cream-deep); object-fit: contain; }

/* Founder's note */
.founder-note p { margin: 0 0 14px; }
.founder-note .founder-hi { font-weight: 700; font-size: 1.15em; color: var(--brown); }
.founder-note .founder-sign { margin: 18px 0 0; font-weight: 700; font-style: italic; color: var(--brown); }

/* Kitchen photos (Who makes it, Freezer to bowl) */
.kitchen-photo { margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; max-width: 460px; margin-inline: auto; background: var(--cream); box-shadow: 0 18px 40px -24px rgba(61,34,24,.45); position: relative; }
.kitchen-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kitchen-photo-square { aspect-ratio: 1 / 1; max-width: 420px; }
.kitchen-photo .pet-caption { position: absolute; left: 50%; transform: translateX(-50%); bottom: 14px; margin: 0; width: max-content; max-width: calc(100% - 28px); background: var(--cream); padding: 6px 14px; border-radius: 999px; font-size: 0.95rem; }
.freezer-grid-photo .flow-item:last-child { border-bottom: 0; }
.founder-note .founder-creds { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 0.8125rem; letter-spacing: 0.04em; color: var(--brown); opacity: 0.8; }
.tax-note{font-size:.85em;opacity:.7;font-weight:400;white-space:nowrap}
.order-bar-total{display:inline-flex;flex-direction:column;align-items:flex-end;line-height:1.1}.order-bar-tax{color:var(--cream);opacity:.6;font-size:.62em;font-weight:400;white-space:nowrap}

/* Footer refinements (2 Nov) */
.footer-logo-badge{display:inline-flex;background:var(--cream);border-radius:18px;padding:12px 18px;margin-bottom:6px}
.footer-logo-badge .footer-logo{display:block;height:56px;width:auto;margin:0}
.footer-lead .footer-logo-badge{margin-bottom:22px}
.footer-hours{margin-top:12px;font-size:.875rem;color:var(--cream);opacity:.7}
.faq-answer p{text-align:justify;hyphens:auto;-webkit-hyphens:auto}
@media (min-width: 768px) { .footer-cols { grid-template-columns: 1.5fr 1fr; } }

/* Conversion additions (2 Nov) */
.hero-offer-note{margin-top:12px;font-size:.9rem;color:var(--brown);opacity:.75}
.offer-strip .chip-ask a{background:var(--yellow);border-color:var(--yellow);font-weight:700}
.ask-callout{margin-top:28px;display:grid;gap:16px;align-items:center;background:var(--yellow);border-radius:22px;padding:22px 24px}
.ask-callout p{margin:0;max-width:none}
.ask-callout .ask-title{font-family:var(--font-display);font-size:1.35rem;font-weight:700;margin-bottom:4px}
.ask-callout .btn{background:var(--brown);border-color:var(--brown);color:var(--cream);justify-self:start}
@media (min-width:768px){.ask-callout{grid-template-columns:1fr auto;padding:26px 32px}.ask-callout .btn{justify-self:end}}
.sub-band{margin-top:44px;background:var(--brown);color:var(--cream);border-radius:26px;padding:30px 26px}
.sub-band p,.sub-band li{color:var(--cream)}
.sub-kicker{font-size:.8rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--yellow)!important;margin:0}
.sub-title{font-family:var(--font-display);font-size:clamp(1.8rem,4vw,2.4rem);margin:6px 0 6px;color:var(--cream)}
.sub-quip{font-style:italic;opacity:.85;margin:0 0 18px}
.sub-steps{list-style:none;padding:0;margin:0 0 22px;display:grid;gap:10px;counter-reset:s}
.sub-steps li{counter-increment:s;position:relative;padding-left:40px;line-height:1.45}
.sub-steps li:before{content:counter(s);position:absolute;left:0;top:-1px;width:28px;height:28px;border-radius:50%;background:var(--yellow);color:var(--brown);font-weight:700;display:flex;align-items:center;justify-content:center;font-size:.9rem}
.sub-steps b{color:var(--yellow)}
.sub-band .btn{background:var(--yellow);border-color:var(--yellow);color:var(--brown)}
@media (min-width:768px){.sub-band{padding:38px 44px}.sub-steps{grid-template-columns:repeat(3,1fr);gap:24px}}
.order-ref{display:block;margin:14px 0 4px;font-size:.875rem;font-weight:600}
.order-ref span{font-weight:400;opacity:.65}
.order-ref input{display:block;width:100%;margin-top:6px;padding:10px 12px;border:1px solid var(--rule-strong);border-radius:12px;background:#fff;font:inherit;font-weight:400;color:var(--brown)}

.sub-pill{display:inline-flex;align-items:center;gap:8px;margin-top:16px;background:var(--brown);color:var(--cream);font-weight:700;font-size:.95rem;padding:10px 18px;border-radius:999px;text-decoration:none}
.sub-pill:hover{background:var(--yellow);color:var(--brown)}
.dog-banner{margin:0 auto 26px;max-width:640px}
.dog-banner img{aspect-ratio:16/9;object-position:50% 35%}

.policy-content h3{font-family:var(--font-display);font-size:1.15rem;margin:22px 0 8px}
.policy-table-wrap{overflow-x:auto;margin:16px 0 20px}
.policy-table{width:100%;border-collapse:collapse;font-size:.95rem;min-width:320px}
.policy-table th,.policy-table td{text-align:left;vertical-align:top;padding:10px 12px;border-bottom:1px solid var(--rule)}
.policy-table th{font-weight:700;background:var(--cream-deep)}

/* Testimonials (inactive until real quotes) */
.review-grid{display:grid;gap:20px}
@media (min-width:768px){.review-grid{grid-template-columns:repeat(3,1fr)}}
.review-card{margin:0;background:#fff;border:1px solid var(--rule);border-radius:22px;padding:24px;display:flex;flex-direction:column;gap:12px}
.review-stars{margin:0;color:#e0a800;letter-spacing:.12em}
.review-quote{margin:0;font-family:var(--font-display);font-size:1.15rem;line-height:1.4;font-style:italic;flex:1}
.review-who{display:flex;flex-direction:column;font-size:.9rem}
.review-who span{opacity:.7}
.review-more{margin-top:26px;text-align:center;max-width:none}
.is-preview-only{position:relative;outline:3px dashed #e0a800;outline-offset:-10px}
.is-preview-only::before{content:"Preview only: not shown on the live site";position:absolute;top:18px;right:18px;background:#e0a800;color:var(--brown);font-size:.75rem;font-weight:700;padding:4px 10px;border-radius:999px;z-index:2}
.card-labelname{margin:-2px 0 8px;font-size:.85rem;color:var(--brown);opacity:.75}
