/* ============================================================
   LUNCHBOX.KIDS — HOMEPAGE
   Homepage-only components. Loads AFTER styles.css and reuses
   every token / pattern defined there. Nothing here overrides
   the Formula page.
   ============================================================ */

/* ---- Sidebar group dividers (homepage nav has 3 groups) ---- */
.sb-divider {
  height: 1px;
  background: var(--rule);
  margin: 9px 12px;
}


/* ============ HERO — single-CTA, mission-led ============ */
.home-hero .hero-h1 .mark-highlight { white-space: normal; }

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  margin-bottom: 26px;
}
.cta-btn.solo {
  text-decoration: none;
  padding: 11px 11px 11px 22px;
  font-size: 11px;
}
.cta-btn.solo .disc { width: 28px; height: 28px; }
.cta-btn.solo .disc svg { width: 12px; height: 12px; }
.hero-cta-aside {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* Social-proof micro line (avatars + text) */
.social-microline {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.avatar-stack { display: flex; }
.avatar-stack span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--cream);
  margin-left: -11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  color: #fff;
}
.avatar-stack span:first-child { margin-left: 0; }
.social-microline p {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-mid);
  max-width: 260px;
}
.social-microline p strong { color: var(--navy); font-weight: 700; }

/* ============ Reusable striped image placeholder ============ */
.img-ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(18,52,87,.07) 0 2px, transparent 2px 14px),
    rgba(18,52,87,.04);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
}
.img-ph.has-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.img-ph .ph-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(248,244,236,.82);
  padding: 5px 11px;
  border-radius: 100px;
  margin: 12px;
}

/* ============ THE FORMULA (NAVY) ============ */
.home-formula { background: var(--navy); color: var(--cream); }
.home-formula .h-section { color: var(--cream); }
.home-formula .lede { color: rgba(248,244,236,.78); max-width: 560px; }

.formula-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
  gap: 48px 64px;
  align-items: end;
  margin-bottom: 44px;
}
.formula-top .lede { margin-bottom: 0; }
.formula-trademark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--mint);
  font-weight: 700;
  margin-bottom: 20px;
}
.formula-trademark .dash { width: 22px; height: 1px; background: currentColor; }

.pillar-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.pillar-chip {
  background: rgba(248,244,236,.045);
  border: 1px solid rgba(248,244,236,.13);
  border-radius: 16px;
  padding: 22px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background .2s, border-color .2s, transform .2s;
}
.pillar-chip:hover {
  background: rgba(197,204,253,.08);
  border-color: rgba(197,204,253,.4);
  transform: translateY(-4px);
}
.pillar-chip .p-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.8px;
  color: var(--peri);
  font-weight: 700;
}
.pillar-chip .ill {
  width: 50px;
  height: 50px;
  color: var(--mint);
}
.pillar-chip .ill svg { width: 100%; height: 100%; display: block; }
.pillar-chip h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 25px;
  line-height: 1.04;
  letter-spacing: -.6px;
  color: var(--cream);
}
.pillar-chip h3 .up { font-style: normal; }
.pillar-chip p {
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(248,244,236,.7);
  margin-top: auto;
}
.pillar-chip.bonus {
  background: var(--peri);
  border-color: var(--peri);
}
.pillar-chip.bonus .p-num { color: var(--peri-dark); }
.pillar-chip.bonus .ill { color: var(--peri-dark); }
.pillar-chip.bonus h3 { color: var(--navy); }
.pillar-chip.bonus p { color: rgba(18,52,87,.72); }
.pillar-chip.bonus .bonus-tag {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(18,52,87,.09);
  border: 1px solid var(--peri-dark);
  border-radius: 100px;
  padding: 4px 11px;
  white-space: nowrap;
}

.formula-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(248,244,236,.16);
}
.formula-cta .cta-btn {
  background: var(--cream);
  color: var(--navy);
  padding: 11px 11px 11px 22px;
  font-size: 11px;
}
.formula-cta .cta-btn:hover { background: var(--peri); }
.formula-cta .cta-btn .disc { background: var(--peri); color: var(--navy); width: 28px; height: 28px; }
.formula-cta .cta-btn:hover .disc { background: var(--navy); color: var(--peri); }
.formula-cta .cta-btn .disc svg { width: 12px; height: 12px; }
.formula-cta .note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.4;
  color: rgba(248,244,236,.9);
  max-width: 420px;
}
.formula-cta .note b { font-style: normal; font-weight: 400; color: var(--mint); }

@media (max-width: 1000px) {
  .formula-top { grid-template-columns: 1fr; gap: 28px; align-items: start; }
  .pillar-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .pillar-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ============ ABOUT / TRUST (PERIWINKLE) ============ */
.home-about { background: var(--peri); position: relative; overflow: hidden; }
.about-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.about-portrait {
  position: relative;
  width: 100%;
  max-width: 420px;
  transform: rotate(-1.6deg);
  transition: transform .4s;
}
.about-portrait:hover { transform: rotate(0); }
.about-portrait .img-ph {
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  box-shadow: 0 24px 60px -28px rgba(18,52,87,.55), 0 6px 16px -10px rgba(18,52,87,.25);
}
.about-portrait .circle-stamp {
  position: absolute;
  top: -28px;
  right: -28px;
  width: 116px;
  height: 116px;
  z-index: 3;
  transform: rotate(11deg);
  filter: drop-shadow(0 8px 16px rgba(18,52,87,.22));
  animation: stampFloat 6s ease-in-out infinite;
}
.about-portrait .circle-stamp svg { width: 100%; height: 100%; display: block; }

.about-text .sec-head { border-bottom-color: rgba(18,52,87,.22); margin-bottom: 24px; }
.about-text .sec-head .num-label { color: var(--navy); }
.about-text h2 {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.04;
  letter-spacing: -1.4px;
  color: var(--navy);
  margin-bottom: 20px;
}
.about-text h2 .up { font-style: normal; }
.about-text .body-copy { color: var(--navy); max-width: 480px; margin-bottom: 14px; }
.about-text .body-copy.muted { color: rgba(18,52,87,.78); }

.about-creds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 26px;
}
.about-cred {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--navy);
  background: rgba(255,255,255,.5);
  border: 1px solid rgba(18,52,87,.14);
  border-radius: 100px;
  padding: 7px 14px 7px 11px;
}
.about-cred .ill { width: 18px; height: 18px; color: var(--peri-dark); }
.about-cred .ill svg { width: 100%; height: 100%; }

.about-sign {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(18,52,87,.18);
}
.about-sign .sig {
  font-family: var(--serif);
  font-style: italic;
  font-size: 30px;
  color: var(--navy);
  letter-spacing: -.5px;
}
.about-sign .role {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--peri-dark);
  font-weight: 700;
}

@media (max-width: 1000px) {
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-portrait { max-width: 100%; margin: 0 auto; }
}

/* ============ RECIPES (CREAM) ============ */
.recipes { background: var(--cream); }
.recipes-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  position: relative;
}
.recipes-head-doodle {
  position: absolute;
  right: 80px;
  bottom: -10px;
  width: clamp(182px, 18vw, 255px);
  transform: rotate(8deg);
  pointer-events: none;
  opacity: .88;
  transition: transform .4s ease;
}
.recipes-head-doodle:hover {
  transform: rotate(-2deg) scale(1.04);
}
@media (max-width: 920px) {
  .recipes-head-doodle { display: none; }
}
.recipes-head .rh-left { max-width: 620px; }
.recipes-head h2 { margin-bottom: 14px; }
.recipes-head .lede { margin: 0; max-width: 540px; }
.recipes-seeall {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 4px;
  white-space: nowrap;
}
.recipes-seeall svg { width: 14px; height: 14px; transition: transform .25s; }
.recipes-seeall:hover svg { transform: translateX(4px); }

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.recipe-card {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform .25s cubic-bezier(.4,.2,.2,1), box-shadow .25s, border-color .2s;
}
@media (min-width: 769px) {
  .recipe-card:hover {
    transform: translateY(-5px);
    border-color: var(--peri);
    box-shadow: 0 22px 40px -24px rgba(18,52,87,.4);
  }
}


.recipe-media {
  aspect-ratio: 5 / 6;
  position: relative;
}
.recipe-media .r-pillars {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 4px;
  z-index: 2;
}
.recipe-media .r-pillars span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--rule-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}
.recipe-media .r-pillars span .ill,
.recipe-media .r-pillars span svg,
.recipe-media .r-pillars span img { width: 15px; height: 15px; display: block; border-radius: 50%; object-fit: cover; }
.recipe-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.recipe-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
}
.recipe-card h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: -.5px;
  color: var(--navy);
  text-wrap: balance;
}
.recipe-card p {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-mid);
}
.recipe-body > *:last-child { margin-bottom: 0; }

@media (max-width: 1000px) {
  .recipe-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .recipe-grid { grid-template-columns: 1fr; }
}

/* ============ NEWSLETTER (PERIWINKLE) ============ */
.newsletter { background: var(--peri); position: relative; overflow: hidden; }
.newsletter-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.nl-text { text-align: left; }
.newsletter .eyebrow { color: var(--peri-dark); margin-bottom: 22px; justify-content: flex-start; white-space: nowrap; }
.newsletter .eyebrow .dash { background: var(--peri-dark); flex-shrink: 0; }
.newsletter h2 {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.04;
  letter-spacing: -1.4px;
  color: var(--navy);
  margin-bottom: 18px;
  max-width: 15ch;
  text-wrap: balance;
}
.newsletter h2 .up { font-style: normal; }
.newsletter .lede { color: var(--navy); max-width: 46ch; margin: 0 0 28px; }
.newsletter .cta-form { margin: 0; }
.newsletter .form-note { margin-top: 14px; }

/* freebie-style cover */
.nl-visual { position: relative; justify-self: center; }
.nl-cover {
  position: relative;
  width: clamp(258px, 25vw, 312px);
  aspect-ratio: 3 / 4;
  background: var(--cream);
  border-radius: 16px;
  padding: 30px 28px 26px;
  box-shadow: 0 30px 70px -30px rgba(18,52,87,.55), 0 8px 20px -12px rgba(18,52,87,.3);
  transform: rotate(-3deg);
  transition: transform .4s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.nl-cover:hover { transform: rotate(0); }
.nl-cover-tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--peri-dark);
}
.nl-cover-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 27px;
  line-height: 1.04;
  letter-spacing: -.8px;
  color: var(--navy);
  margin: 10px 0 0;
}
.nl-cover-art { margin: auto 0; display: grid; place-items: center; }
.nl-cover-art img {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  display: block;
}
.nl-cover-foot {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .4px;
  color: var(--ink-mid, rgba(18,52,87,.6));
  margin-top: auto;
}
.nl-badge {
  position: absolute;
  top: -18px;
  right: -16px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 23px;
  letter-spacing: -.5px;
  transform: rotate(12deg);
  box-shadow: 0 12px 26px -12px rgba(18,52,87,.45);
  z-index: 3;
}

/* ============ PARTNERSHIPS STRIP (NAVY) ============ */
.partners {
  background: var(--navy);
  color: var(--cream);
  padding: 40px 7%;
}
.partners-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.partners p {
  font-family: var(--serif);
  font-style: normal;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.25;
  letter-spacing: -.5px;
  color: var(--cream);
  max-width: 620px;
}
.partners p em { font-style: italic; color: var(--mint); }
.partners-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  background: transparent;
  border: 1.5px solid rgba(248,244,236,.4);
  color: var(--cream);
  padding: 10px 10px 10px 22px;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.partners-link:hover { background: var(--mint); border-color: var(--mint); color: var(--navy); }
.partners-link .disc {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s;
}
.partners-link:hover .disc { background: var(--navy); color: var(--mint); transform: rotate(45deg); }
.partners-link .disc svg { width: 11px; height: 11px; }

/* ============ ACCENT TWEAK (marks + dots) ============ */
body[data-accent="peri"] .mark-scribble svg.mk-line { color: var(--peri-dark) !important; }
body[data-accent="peri"] .mark-circle.mint svg.mk-ring { color: var(--peri-dark) !important; }
body[data-accent="peri"] .trust-dot { background: var(--peri-dark) !important; }
body[data-accent="peri"] .recipe-meta { color: var(--peri-dark) !important; }

/* ============================================================
   CANVA-REVIEW UPDATES
   ============================================================ */

/* ---- Hero: thumbs-up illustration anchored to the banner's right edge ---- */
.home-hero { overflow: hidden; padding-top: 116px; }   /* extra top space so the banner breathes */
.home-hero .hero-left .eyebrow { margin-bottom: 60px; }  /* editorial gap between tag and title */
.home-hero .hero-art { min-height: 0; }
.home-hero .hero-thumb {
  position: absolute;
  right: clamp(-24px, -1vw, -8px);          /* hug the outer edge of the banner */
  top: 64%;
  transform: translateY(-50%) rotate(-4deg);
  width: min(42vw, 544px);                  /* 60% larger */
  height: auto;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 16px 30px rgba(18,52,87,.14));
}
@media (max-width: 1100px) {
  .home-hero .hero-thumb {
    position: static;
    width: min(70vw, 360px);
    margin: 8px auto 0;
    display: block;
  }
}
@media (max-width: 640px) {
  .home-hero .hero-thumb { width: min(60vw, 240px); }
}

/* ---- Formula: section divider matches the .formula-cta rule ---- */
.home-formula .sec-head {
  margin-bottom: 40px;
  border-bottom-color: rgba(248,244,236,.13) !important;
}
.home-formula .sec-head .num-label { color: #f8f4ec !important; }

/* ---- Formula pillars: watercolor food, balanced spacing ---- */
.pillar-chip {
  padding: 24px 22px;
  gap: 16px;
  justify-content: flex-start;
  align-items: flex-start;
  min-height: 190px;
}
.pillar-chip .p-num { align-self: flex-start; }
.pillar-chip h3 { margin-top: auto; }
.pillar-chip .ill {
  width: 90px;
  height: 90px;
  color: var(--mint);
  margin-bottom: 2px;
}
.pillar-chip .ill img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.28));
}
.pillar-chip p { margin-top: 6px; }          /* drop the bottom-pin so short copy stays balanced */
.pillar-chip.bonus { justify-content: flex-start; }
.pillar-chip.bonus .ill img { filter: drop-shadow(0 4px 8px rgba(18,52,87,.18)); }

/* ---- Formula CTA: email capture (Send the Formula) ---- */
.formula-cta {
  justify-content: space-between;
  align-items: center;
  gap: 24px 48px;
}
.formula-cta .note { margin: 0; max-width: 340px; }
.formula-cta-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  flex: 1 1 360px;
  max-width: 480px;
}
.formula-cta-form .cta-form { width: 100%; max-width: none; }
.formula-cta-form .form-note { margin: 0; }

/* Legal opt-in checkbox (formula CTA) */
.legal-optin {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .2px;
  line-height: 1.5;
  color: rgba(183, 253, 196, .7);
  cursor: default;
  margin-top: 2px;
  text-align: left;
}
.legal-optin input[type="checkbox"] {
  accent-color: var(--mint);
  width: 14px;
  height: 14px;
  margin-top: 1px;
  flex-shrink: 0;
  cursor: pointer;
}
.legal-optin span { flex: 1; }
@media (max-width: 720px) {
  .formula-cta { flex-direction: column; align-items: flex-start; }
  .formula-cta-form { width: 100%; max-width: 100%; }
}

/* ---- About: real lunchbox photo + mission button + fork doodle ---- */
.about-portrait .about-photo {
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 60px -28px rgba(18,52,87,.55), 0 6px 16px -10px rgba(18,52,87,.25);
}
.about-portrait .about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-mission-btn {
  margin-top: 30px;
  padding: 11px 11px 11px 22px;
  font-size: 11px;
  text-decoration: none;
}
.about-mission-btn .disc { width: 28px; height: 28px; }
.about-mission-btn .disc svg { width: 12px; height: 12px; }
.about-doodle {
  position: absolute;
  right: 2%;
  bottom: 40px;
  width: clamp(160px, 18vw, 240px);
  z-index: 1;
  opacity: .9;
  transform: rotate(-12deg);
  pointer-events: none;
  mix-blend-mode: screen;
}

/* ---- Proof: anchor the stat so it stops floating + star accent ---- */
.proof-head {
  justify-content: center;
  text-align: center;
  position: relative;
  margin-bottom: 56px;
}
.proof-stat-block {
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.proof-stat { line-height: .86; }
.proof-tagline { max-width: 440px; margin: 0 auto; }
.proof-doodle {
  position: absolute;
  top: 0;
  left: clamp(2%, 8vw, 14%);
  width: clamp(46px, 5vw, 62px);
  transform: rotate(-13deg);
  opacity: .9;
  pointer-events: none;
}
@media (max-width: 820px) { .proof-doodle { display: none; } }

/* ---- Newsletter: hand-drawn spaghetti accent (wide-desktop only,
   bleeds into the right gutter so it never sits on the centered form) ---- */
.newsletter-doodle {
  position: absolute;
  left: -34px;
  bottom: 7%;
  width: clamp(64px, 7vw, 88px);
  transform: rotate(-12deg);
  z-index: 2;
  pointer-events: none;
}
.newsletter-doodle-bg {
  position: absolute;
  right: 5%;
  top: 13%;
  width: clamp(54px, 6vw, 80px);
  opacity: .35;
  transform: rotate(14deg);
  z-index: 1;
  pointer-events: none;
}
@media (max-width: 1280px) {
  .newsletter-doodle-bg { display: none; }
}
/* Newsletter photo (matching rec-cta layout) */
.nl-photo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.nl-photo img {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  border-radius: 20px;
  transform: rotate(-2deg);
  transition: transform .4s;
  box-shadow: 0 26px 50px -24px rgba(18,52,87,.45), 0 8px 18px -10px rgba(18,52,87,.22);
}
.nl-photo img:hover { transform: rotate(0); }

@media (max-width: 1000px) {
  .newsletter-inner { grid-template-columns: 1fr; gap: 48px; }
  .nl-photo { order: -1; justify-self: start; }
  .nl-photo img { max-width: 280px; }
}
@media (max-width: 980px) {
  .about-doodle { opacity: .42; width: 112px; }
}
@media (max-width: 640px) {
  .about-doodle, .hero-doodle { display: none; }
}

/* ============================================================
   MOBILE BREAKPOINT — <=768px
   Restyles existing desktop markup to match the mobile spec.
   No DOM changes; bottom nav markup added once per page body.
   ============================================================ */

/* Hide bottom mobile nav by default (desktop) */
.m-nav { display: none; }

@media (max-width: 768px) {

  /* ---- Shell: hide sidebar, full-width main ---- */
  .sidebar { display: none !important; }
  .shell { display: block !important; grid-template-columns: 1fr !important; }
  body { background: #e8e4dc; }
  main { background: var(--cream); }

  /* ---- Topnav becomes the fixed mobile header (logo + CTA) ---- */
  .topnav {
    display: flex !important;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: 52px;
    padding: 0 16px;
    background: var(--cream);
    border-bottom: 1px solid var(--rule);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .topnav img { height: 36px; }
  .topnav-right { gap: 8px; }
  .topnav-link { display: none; }
  .topnav .sb-cta {
    padding: 7px 8px 7px 14px;
    font-size: 8.5px;
    letter-spacing: 1px;
  }
  .topnav .sb-cta-disc { width: 20px; height: 20px; background: var(--peri); color: var(--navy); }
  .topnav .sb-cta-disc svg { width: 9px; height: 9px; }

  /* Push main below the fixed header & above the bottom nav */
  main { padding-top: 52px; padding-bottom: 78px; }

  /* ---- Section rhythm ---- */
  section { padding: 44px 20px; }
  .section-inner { max-width: 100%; }

  /* ---- Section heads ---- */
  .sec-head {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1.5px solid var(--rule-strong);
  }
  .sec-head .num-stat {
    font-family: var(--serif); font-style: italic; font-weight: 400;
    font-size: 38px; line-height: 1; letter-spacing: -1.5px;
    color: var(--navy);
  }
  .sec-head .num-label {
    font-family: var(--mono); font-size: 11px; letter-spacing: 1px;
    text-transform: uppercase; font-weight: 700; color: var(--ink);
  }
  .sec-head.invert .num-stat,
  .sec-head.invert .num-label { color: var(--cream); }
  .sec-head .sticky-note { display: none; } /* hide desktop-only inline notes */

  /* ---- Typography ---- */
  .h-section,
  h2.h-section,
  .home-formula .h-section {
    font-size: 30px !important;
    line-height: 1.06 !important;
    letter-spacing: -1px !important;
  }
  .lede { font-size: 14px; line-height: 1.7; }
  .body-copy { font-size: 14px; line-height: 1.7; }

  /* ---- HERO ---- */
  .home-hero { padding: 24px 20px 36px !important; }
  .home-hero .hero-grid {
    display: block !important;
    grid-template-columns: 1fr !important;
  }
  .home-hero .hero-left .eyebrow { margin-bottom: 18px !important; }
  .home-hero .hero-h1 {
    font-size: 34px !important;
    line-height: 1.04 !important;
    letter-spacing: -1.2px !important;
    margin-bottom: 16px;
  }
  .home-hero .hero-lede { font-size: 14px; line-height: 1.7; }
  .home-hero .hero-thumb {
    position: static !important;
    transform: rotate(-4deg) !important;
    width: min(70%, 240px) !important;
    margin: 8px 0 18px auto !important;
    display: block;
  }
  .home-hero .hero-cta-row { margin-bottom: 20px; gap: 12px; }
  .home-hero .cta-btn.solo { padding: 10px 10px 10px 20px; font-size: 10.5px; }
  .home-hero .avatar-stack span { width: 30px; height: 30px; font-size: 11px; }
  .home-hero .social-microline p { font-size: 12px; }

  /* ---- FORMULA (navy) ---- */
  .home-formula { padding: 44px 20px; }
  .formula-top {
    display: block !important;
    margin-bottom: 24px;
  }
  .formula-top .lede { margin-top: 16px; }
  .pillar-strip {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px;
  }
  .pillar-chip {
    padding: 16px 14px !important;
    min-height: 0 !important;
    align-items: center;
    text-align: center;
    gap: 8px !important;
  }
  .pillar-chip .ill { width: 60px !important; height: 60px !important; margin: 0 auto; }
  .pillar-chip h3 { font-size: 18px !important; line-height: 1.06; letter-spacing: -.4px; margin-top: 4px !important; }
  .pillar-chip.bonus {
    grid-column: 1 / -1 !important;
    flex-direction: row !important;
    text-align: left;
    align-items: center;
    padding: 14px 18px !important;
    gap: 12px !important;
  }
  .pillar-chip.bonus .ill { width: 44px !important; height: 44px !important; margin: 0; flex-shrink: 0; }
  .pillar-chip.bonus h3 { margin-top: 0 !important; flex: 1; }
  .pillar-chip.bonus .bonus-tag { margin-left: auto; }

  .formula-cta { padding-top: 24px; margin-top: 24px; gap: 18px; }
  .formula-cta .note { font-size: 18px !important; line-height: 1.35; max-width: 100%; }
  .formula-cta-form { width: 100%; max-width: 100%; flex: 1 1 100%; }
  .cta-form { flex-direction: column; gap: 10px; }
  .cta-form input,
  .formula-cta .cta-btn,
  .cta-form button { width: 100%; }
  .formula-cta .cta-btn { justify-content: center; }

  /* ---- ABOUT (peri) ---- */
  .home-about { padding: 44px 20px; }
  .about-inner {
    display: block !important;
    grid-template-columns: 1fr !important;
    gap: 28px;
  }
  .about-portrait {
    max-width: 100% !important;
    margin: 0 0 24px !important;
    transform: rotate(-1.6deg);
  }
  .about-portrait .about-photo { aspect-ratio: 4 / 5; border-radius: 18px; }
  .about-portrait .circle-stamp {
    top: auto; bottom: -16px; right: -8px;
    width: 92px; height: 92px;
  }
  .about-text h2 { font-size: 30px !important; line-height: 1.06 !important; letter-spacing: -1px !important; }
  .about-text .body-copy { max-width: 100%; }
  .about-doodle { display: none; }

  /* ---- PROOF ---- */
  .proof { padding: 44px 20px; }
  .proof-head { margin-bottom: 32px; }
  .proof-stat { font-size: 64px !important; }
  .proof-tagline { font-size: 13px; }
  .proof-doodle { display: none; }
  /* Phone wall → horizontal scroll-snap carousel */
  .phone-wall {
    display: flex !important;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 20px 8px;
    margin: 0 -20px;
  }
  .phone-wall::-webkit-scrollbar { display: none; }
  .phone-wall > .phone {
    scroll-snap-align: start;
    flex: 0 0 78%;
    max-width: 280px;
    margin: 0 !important;
    transform: none !important;
  }

  /* ---- RECIPES → horizontal scroll-snap ---- */
  .recipes { padding: 44px 20px; }
  .recipes-head { gap: 12px; margin-bottom: 24px; }
  .recipes-head h2 { font-size: 28px !important; line-height: 1.06 !important; letter-spacing: -.8px !important; }
  .recipes-head-doodle { display: none; }
  .recipe-grid {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 20px 8px;
    margin: 0 -20px;
  }
  .recipe-grid::-webkit-scrollbar { display: none; }
  .recipe-grid .recipe-card {
    scroll-snap-align: start;
    flex: 0 0 75%;
    max-width: 280px;
  }
  .recipe-card h3 { font-size: 21px; }

  /* ---- NEWSLETTER ---- */
  .newsletter { padding: 44px 20px; }
  .newsletter-inner {
    display: block !important;
    grid-template-columns: 1fr !important;
    gap: 28px;
  }
  .newsletter h2 { font-size: 30px !important; line-height: 1.06 !important; letter-spacing: -1px !important; max-width: 100%; }
  .newsletter .lede { max-width: 100%; }
  .nl-photo { margin-top: 24px; justify-self: start; }
  .nl-photo img { max-width: 100%; }
  .newsletter-doodle,
  .newsletter-doodle-bg { display: none; }

  /* ---- PARTNERS ---- */
  .partners { padding: 36px 20px; }
  .partners-inner { display: block; }
  .partners p { font-size: 20px !important; line-height: 1.3; margin-bottom: 18px; }
  .partners-link { width: 100%; justify-content: space-between; padding: 12px 12px 12px 22px; }

  /* ---- FOOTER ---- */
  footer { padding: 28px 20px 0; }
  footer .f-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 20px;
  }
  footer .f-mid { justify-content: flex-start; gap: 18px; }
  footer .f-right { justify-content: flex-start; }
  footer .f-bottom { text-align: left; font-size: 10px; padding: 10px 0; }

  /* ---- Decorative bits to drop on mobile ---- */
  .hero-doodle { display: none; }
  hr.rule { margin: 0 20px; }

  /* ---- Bottom mobile nav (visible <=768px) ---- */
  .m-nav {
    display: grid;
    position: fixed;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    left: 12px; right: 12px;
    z-index: 100;
    max-width: 720px; margin: 0 auto;
    height: 58px;
    background: var(--cream);
    border: 1px solid var(--rule);
    border-radius: 100px;
    grid-template-columns: repeat(5, 1fr);
    box-shadow: 0 8px 32px -8px rgba(18,52,87,.2), 0 2px 8px rgba(18,52,87,.08);
    overflow: hidden;
  }
  .m-nav-item {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 2px;
    text-decoration: none;
    color: var(--ink-soft);
    -webkit-tap-highlight-color: transparent;
    transition: color .2s;
  }
  .m-nav-item svg { width: 20px; height: 20px; }
  .m-nav-item span {
    font-family: var(--mono); font-size: 7.5px;
    letter-spacing: .8px; text-transform: uppercase; font-weight: 700;
  }
  .m-nav-item:active { color: var(--navy); transform: scale(.92); }
  .m-nav-item.active { color: var(--navy); }

  /* ---- More slide-up sheet ---- */
  .more-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(18,52,87,.35);
    opacity: 0; pointer-events: none;
    transition: opacity .28s ease;
  }
  .more-overlay.open { opacity: 1; pointer-events: auto; }
  .more-panel {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: var(--cream);
    border-radius: 22px 22px 0 0;
    padding: 14px 20px calc(28px + env(safe-area-inset-bottom, 0px));
    transform: translateY(100%);
    transition: transform .32s cubic-bezier(.4,.2,.2,1);
    box-shadow: 0 -10px 40px -12px rgba(18,52,87,.28);
  }
  .more-overlay.open .more-panel { transform: translateY(0); }
  .more-handle {
    width: 38px; height: 4px; border-radius: 2px;
    background: var(--rule-strong); margin: 0 auto 16px;
  }
  .more-links { display: flex; flex-direction: column; }
  .more-links a {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 4px; border-bottom: 1px solid var(--rule);
    font-family: var(--sans); font-size: 15px; font-weight: 500;
    color: var(--navy); text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }
  .more-links a:last-child { border-bottom: none; }
  .more-links a:active { opacity: .55; }
  .more-links a svg { width: 20px; height: 20px; color: var(--ink-soft); flex-shrink: 0; }
  .more-social-footer {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 18px; padding-top: 16px;
    border-top: 1px solid var(--rule);
  }
  .more-social-icons { display: flex; gap: 18px; }
  .more-social-icons a { color: var(--ink-soft); }
  .more-social-icons svg { width: 20px; height: 20px; display: block; }
  .more-privacy {
    font-family: var(--mono); font-size: 10px; letter-spacing: 1.4px;
    text-transform: uppercase; font-weight: 700;
    color: var(--ink-soft); text-decoration: none;
  }
}

/* Toggle desktop vs mobile bodies */
.m-only { display: none; }
@media (max-width: 768px) {
  .d-only { display: none !important; }
  .m-only { display: block; }
}
/* Hide more-overlay on desktop just in case it's rendered */
@media (min-width: 769px) {
  .more-overlay, .m-nav { display: none !important; }
}

/* Final homepage formula label lock: scoped to the exact desktop section. */
.home-formula > .section-inner > .sec-head.invert {
  border-bottom: 1px solid rgba(248, 244, 236, 0.13) !important;
}

.home-formula > .section-inner > .sec-head.invert > .num-label {
  color: #f8f4ec !important;
  -webkit-text-fill-color: #f8f4ec !important;
  opacity: 1 !important;
}


