:root {
  --orange: #f97316;
  --orange-deep: #df3c00;
  --orange-text: #c2410c;
  --cream: #fff7ed;
  --warm: #f8f6f3;
  --border: #eae4dc;
  --ink: #0f172a;
  --mid: #475569;
  --muted: #64748b;
  --radius: 28px;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h2 { font-size: clamp(28px, 4.2vw, 48px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }
h3 { font-size: 20px; line-height: 1.25; font-weight: 600; }
section { padding: clamp(64px, 10vw, 128px) var(--gutter); position: relative; }
section[id], div[id] { scroll-margin-top: 88px; }

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--orange-text); margin-bottom: 14px;
}
.section-head { max-width: 720px; margin: 0 auto clamp(36px, 6vw, 72px); text-align: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 30px; border-radius: 999px; font-weight: 600; font-size: 16px;
  text-decoration: none; transition: transform .2s ease, box-shadow .2s ease;
}
.btn-orange {
  color: #fff; background: linear-gradient(135deg, var(--orange-deep), #ff7700);
  box-shadow: 0 10px 24px -10px rgba(223, 60, 0, .7);
}
.btn-orange:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(223, 60, 0, .75); }
.btn-small { padding: 10px 20px; font-size: 14px; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 72px;
  display: flex; align-items: center; gap: 24px; padding: 0 var(--gutter);
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.nav.scrolled { border-color: var(--border); box-shadow: 0 6px 24px -18px rgba(15, 23, 42, .5); }
.nav-logo img { width: clamp(150px, 16vw, 190px); }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--mid); transition: color .2s; }
.nav-links a:hover { color: var(--orange-text); }
@media (max-width: 820px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(24px, 4vw, 64px);
  max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto;
  padding-top: clamp(120px, 14vw, 170px); padding-bottom: clamp(48px, 8vw, 110px);
}
.blob { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; z-index: -1; transform: translate3d(0, var(--py, 0), 0); }
.blob-a { width: 46vw; height: 46vw; max-width: 620px; max-height: 620px; right: -8vw; top: 4%; background: radial-gradient(circle, #ffd9b5 0%, #fff0e0 55%, transparent 72%); }
.blob-b { width: 30vw; height: 30vw; max-width: 380px; max-height: 380px; left: -10vw; bottom: 0; background: radial-gradient(circle, #ffe8d2 0%, transparent 70%); }

.headline { font-size: clamp(40px, 6.2vw, 78px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 700; }
.headline span { display: inline-block; }
.headline .accent { background: linear-gradient(135deg, var(--orange-deep), #ff7700); -webkit-background-clip: text; background-clip: text; color: transparent; }
.js .headline span { opacity: 0; transform: translateY(0.5em) rotate(3deg); animation: word .7s cubic-bezier(.2, .8, .2, 1) forwards; }
.js .headline span:nth-of-type(1) { animation-delay: .05s } .js .headline span:nth-of-type(2) { animation-delay: .12s }
.js .headline span:nth-of-type(3) { animation-delay: .19s } .js .headline span:nth-of-type(4) { animation-delay: .26s }
.js .headline span:nth-of-type(5) { animation-delay: .40s } .js .headline span:nth-of-type(6) { animation-delay: .47s }
.js .headline span:nth-of-type(7) { animation-delay: .54s }
@keyframes word { to { opacity: 1; transform: none; } }

.lede { margin-top: 22px; font-size: clamp(16px, 1.5vw, 19px); color: var(--mid); max-width: 520px; }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.store {
  display: inline-flex; flex-direction: column; justify-content: center; min-width: 172px;
  padding: 10px 22px; border-radius: 14px; text-decoration: none; line-height: 1.2;
  transition: transform .2s ease, box-shadow .2s ease;
}
.store small { font-size: 11px; font-weight: 500; opacity: .8; }
.store strong { font-size: 19px; font-weight: 600; }
.store-apple { background: var(--ink); color: #fff; box-shadow: 0 12px 26px -14px rgba(15, 23, 42, .8); }
.store-soon { border: 1.5px dashed #cbd5e1; color: var(--muted); }
.fineprint { margin-top: 16px; font-size: 14px; color: var(--muted); }

.hero-stage { perspective: 1400px; width: 100%; max-width: 600px; justify-self: center; }
.stage-inner {
  position: relative; aspect-ratio: 1 / 1.02; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out;
}
.phone { position: absolute; filter: drop-shadow(0 28px 34px rgba(15, 23, 42, .22)); will-change: transform; }
.phone-center { width: 46%; left: 27%; top: 0; transform: translate3d(0, var(--py, 0), 60px); animation: rise 1s .15s cubic-bezier(.2, .8, .2, 1) both; }
.phone-left { width: 37%; left: 1%; top: 13%; transform: translate3d(0, var(--py, 0), 0) rotate(-9deg); animation: fanL 1.1s .3s cubic-bezier(.2, .8, .2, 1) both; }
.phone-right { width: 37%; right: 1%; top: 13%; transform: translate3d(0, var(--py, 0), 0) rotate(9deg); animation: fanR 1.1s .3s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rise { from { opacity: 0; translate: 0 60px; } to { opacity: 1; translate: 0 0; } }
@keyframes fanL { from { opacity: 0; translate: 22% 40px; rotate: 9deg; } to { opacity: 1; translate: 0 0; rotate: 0deg; } }
@keyframes fanR { from { opacity: 0; translate: -22% 40px; rotate: -9deg; } to { opacity: 1; translate: 0 0; rotate: 0deg; } }

.chip {
  position: absolute; padding: 8px 16px; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600;
  box-shadow: 0 12px 28px -12px rgba(15, 23, 42, .35); border: 1px solid var(--border);
  transform: translate3d(0, var(--py, 0), 90px); animation: bob 5s ease-in-out infinite;
}
.chip-a { left: 0; top: 4%; color: #15803d; }
.chip-b { right: 2%; top: 2%; color: var(--orange-text); animation-delay: -1.6s; }
.chip-c { right: 6%; bottom: 10%; color: #1d4ed8; animation-delay: -3.1s; }
@keyframes bob { 50% { translate: 0 -10px; } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .store-row { justify-content: center; }
  .hero-stage { max-width: 460px; margin-top: 48px; }
}

/* Marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--border); background: var(--warm); padding: 18px 0; }
.marquee-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: slide 38s linear infinite; }
.marquee span { font-size: 17px; font-weight: 500; white-space: nowrap; color: var(--mid); }
.marquee i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: none; }
@keyframes slide { to { transform: translateX(-50%); } }

/* How it works */
.how-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 6vw, 96px); }
.step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; opacity: .28; transition: opacity .4s ease; }
.step.active { opacity: 1; }
.step-num {
  width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 20px;
  font-weight: 700; font-size: 20px; color: #fff; background: linear-gradient(135deg, var(--orange-deep), #ff7700);
  box-shadow: 0 10px 20px -10px rgba(223, 60, 0, .7);
}
.step h3 { font-size: clamp(24px, 3vw, 36px); letter-spacing: -0.02em; font-weight: 700; }
.step p { margin-top: 12px; font-size: 18px; color: var(--mid); max-width: 440px; }
.step-img { display: none; }
.how-sticky { position: relative; }
.how-phone { position: sticky; top: calc(50vh - min(34vh, 310px)); height: min(68vh, 620px); aspect-ratio: 720 / 1496; margin: 0 auto; }
.how-phone img {
  position: absolute; inset: 0; height: 100%; width: auto; opacity: 0; transform: translateY(24px) scale(.96);
  transition: opacity .5s ease, transform .6s cubic-bezier(.2, .8, .2, 1);
  filter: drop-shadow(0 30px 40px rgba(15, 23, 42, .2));
}
.how-phone img.active { opacity: 1; transform: none; }
.how-glow { position: absolute; inset: 8% -45%; border-radius: 50%; background: radial-gradient(circle, #ffe1c4 0%, transparent 68%); filter: blur(30px); }

@media (max-width: 820px) {
  .how-grid { grid-template-columns: 1fr; }
  .how-sticky { display: none; }
  .step { min-height: 0; opacity: 1; align-items: center; text-align: center; padding-bottom: 56px; }
  .step-img { display: block; width: min(62vw, 280px); margin-top: 28px; filter: drop-shadow(0 24px 30px rgba(15, 23, 42, .2)); }
}

/* Features */
.features { background: linear-gradient(#fff, var(--warm)); }
.bento { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(210px, auto); grid-auto-flow: dense; gap: 20px; }
.card {
  position: relative; overflow: hidden; padding: 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -30px rgba(15, 23, 42, .45); }
.card p { margin-top: 8px; color: var(--mid); font-size: 15.5px; position: relative; z-index: 1; }
.card h3 { position: relative; z-index: 1; }
.card-tall { grid-row: span 2; }
.card-cream { background: var(--cream); border-color: #fde3c8; }
.card-warm { background: #f4f1ec; }
.card-orange { background: linear-gradient(140deg, var(--orange-deep), #ff7700); border: 0; color: #fff; }
.card-orange p { color: rgba(255, 255, 255, .92); }
.card-ink { background: var(--ink); border: 0; color: #fff; }
.card-ink p { color: #cbd5e1; }
.card-tall { display: flex; flex-direction: column; padding-bottom: 0; }
.card-shot { width: 74%; height: 370px; margin: 26px auto 0; flex: none; }
.card-shot img { transform: translate3d(0, var(--py, 0), 0); filter: drop-shadow(0 20px 30px rgba(15, 23, 42, .22)); }
@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } .card-shot { width: 60%; } }

/* Deck */
.deck { padding-left: 0; padding-right: 0; overflow: hidden; }
.deck .section-head { padding: 0 var(--gutter); }
.deck-viewport { overflow: hidden; padding: 20px 0 60px; }
.deck-track { display: flex; gap: clamp(16px, 2.4vw, 36px); width: max-content; padding: 0 var(--gutter); transform: translate3d(var(--dx, 0), 0, 0); will-change: transform; }
.deck-track img { width: clamp(170px, 20vw, 260px); filter: drop-shadow(0 24px 30px rgba(15, 23, 42, .2)); transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.deck-track img:nth-child(odd) { margin-top: 36px; }
.deck-track img:hover { transform: translateY(-14px) rotate(-1.5deg); }

/* Plans */
.plan-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; padding: 34px 30px; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; }
.plan:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -30px rgba(15, 23, 42, .45); }
.plan-featured { border: 2px solid var(--orange); background: linear-gradient(#fff, var(--cream)); }
.plan-flag { position: absolute; top: -14px; left: 30px; padding: 5px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff; background: linear-gradient(135deg, var(--orange-deep), #ff7700); }
.plan h3 { font-size: 24px; font-weight: 700; }
.plan-tag { color: var(--muted); font-size: 14.5px; }
.price { margin-top: 22px; color: var(--mid); }
.price strong { font-size: 42px; font-weight: 700; color: var(--ink); letter-spacing: -0.03em; }
.price-alt { font-size: 14px; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.plan li { position: relative; padding-left: 30px; font-size: 15.5px; color: var(--mid); }
.plan li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23c2410c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.plans-note { max-width: 720px; margin: 28px auto 0; text-align: center; font-size: 14.5px; color: var(--muted); }
.notice { max-width: 820px; margin: 56px auto 0; padding: 26px 30px; border-radius: 22px; background: var(--warm); border: 1px solid var(--border); }
.notice h3 { font-size: 17px; }
.notice p { margin-top: 6px; font-size: 15px; color: var(--mid); }
@media (max-width: 900px) { .plan-grid { grid-template-columns: 1fr; max-width: 480px; } }

/* FAQ */
.faq { background: var(--warm); }
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 0 24px; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 50%; translate: 0 -50%; font-size: 26px; font-weight: 400; color: var(--orange-text); transition: rotate .3s ease; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding-bottom: 22px; color: var(--mid); animation: fade .4s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(-6px); } }

/* Contact */
.contact-card {
  max-width: 980px; margin: 0 auto; padding: clamp(32px, 5vw, 60px); border-radius: 36px; overflow: hidden;
  display: flex; align-items: center; gap: clamp(20px, 5vw, 60px);
  background: linear-gradient(135deg, #fff1e2, var(--cream)); border: 1px solid #fde3c8;
}
.enzo { width: clamp(130px, 20vw, 220px); flex: none; transform: translate3d(0, var(--py, 0), 0); filter: drop-shadow(0 20px 24px rgba(223, 60, 0, .22)); }
.contact-card p { margin: 10px 0 24px; color: var(--mid); font-size: 17px; }
@media (max-width: 640px) { .contact-card { flex-direction: column; text-align: center; } }

/* Footer */
.footer { padding: 48px var(--gutter) 56px; border-top: 1px solid var(--border); display: grid; justify-items: center; gap: 18px; text-align: center; }
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; }
.footer a { color: var(--mid); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.footer a:hover { color: var(--orange-text); }
.footer p { font-size: 13.5px; color: var(--muted); }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .bento .reveal:nth-child(2), .js .plan-grid .reveal:nth-child(2) { transition-delay: .08s; }
.js .bento .reveal:nth-child(3), .js .plan-grid .reveal:nth-child(3) { transition-delay: .16s; }
.js .card.reveal.in:hover, .js .plan.reveal.in:hover { transform: translateY(-6px); transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .headline span { opacity: 1; transform: none; }
  .phone, .chip { opacity: 1; }
}

/* ---------- Motion layer ---------- */

/* Scroll progress */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--orange-deep), #ff7700); }

/* Button sheen */
.btn-orange { position: relative; overflow: hidden; }
.btn-orange::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); animation: sheen 4.5s ease-in-out infinite; }
@keyframes sheen { 0%, 60% { left: -60%; } 100% { left: 130%; } }

/* Hero: orbit rings, breathing glow, phones that fan out on scroll */
.blob { animation: breathe 9s ease-in-out infinite; }
.blob-b { animation-delay: -4s; }
@keyframes breathe { 50% { scale: 1.12; } }
.ring { position: absolute; left: 4%; top: 5%; width: 92%; aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed rgba(249, 115, 22, .35); animation: spin 46s linear infinite; }
.ring-b { left: 16%; top: 17%; width: 68%; border-color: rgba(249, 115, 22, .22); animation-duration: 30s; animation-direction: reverse; }
.ring i { position: absolute; left: 50%; top: -7px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: linear-gradient(135deg, var(--orange-deep), #ff7700); box-shadow: 0 0 0 6px rgba(249, 115, 22, .15), 0 0 18px rgba(249, 115, 22, .6); }
.ring-b i { width: 10px; height: 10px; top: -5px; margin-left: -5px; }
@keyframes spin { to { rotate: 360deg; } }
.phone-center { transform: translate3d(0, var(--py, 0), 60px) scale(calc(1 + var(--spread, 0) * .05)); }
.phone-left { transform: translate3d(calc(var(--spread, 0) * -18%), var(--py, 0), 0) rotate(calc(-9deg - var(--spread, 0) * 8deg)); }
.phone-right { transform: translate3d(calc(var(--spread, 0) * 18%), var(--py, 0), 0) rotate(calc(9deg + var(--spread, 0) * 8deg)); }

/* Headings rise word by word */
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .14em; margin-bottom: -.14em; }
.js .w > span { display: inline-block; transform: translateY(115%) rotate(6deg); transform-origin: left bottom; transition: transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i) * 55ms + 100ms); }
.js .section-head.in .w > span { transform: none; }

/* How It Works: progress line, badges that light up, phone that turns */
@media (min-width: 821px) {
  .how-steps { position: relative; }
  .how-steps::before, .how-steps::after { content: ''; position: absolute; left: 23px; top: 0; bottom: 0; width: 2px; border-radius: 2px; background: var(--border); }
  .how-steps::after { background: linear-gradient(var(--orange-deep), #ff7700); transform-origin: top; transform: scaleY(var(--hp, 0)); }
  .step { position: relative; padding-left: 84px; }
  .step-num { position: absolute; left: 0; top: calc(50% - 24px); z-index: 1; margin: 0; }
}
.step-num { transition: background .4s, box-shadow .4s, scale .4s; }
.step:not(.active) .step-num { background: #cbd5e1; box-shadow: none; }
.step.active .step-num { animation: pop .55s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { 0% { scale: .6; } 100% { scale: 1; } }
@media (max-width: 820px) { .step:not(.active) .step-num { background: linear-gradient(135deg, var(--orange-deep), #ff7700); } }
.how-phone { perspective: 1200px; animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -12px; } }
.how-phone img { transform: rotateY(-38deg) translateX(-30px) scale(.9); }
.how-phone img.active { transform: none; }
.how-glow { animation: breathe 7s ease-in-out infinite; }

/* Cards and plans: lean toward the pointer, soft light under it */
.card::after, .plan::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(249, 115, 22, .16), transparent 70%); }
.card-orange::after, .card-ink::after { background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .2), transparent 70%); }
.card:hover::after, .plan:hover::after { opacity: 1; }
.js .card.reveal.in:hover, .js .plan.reveal.in:hover { transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) translateY(-6px); transition: transform .14s ease-out, box-shadow .35s; }
.card-shot { transition: translate .5s cubic-bezier(.2, .8, .2, 1); }
.card:hover .card-shot { translate: 0 -14px; }

/* Deck: phones sway against each other as the row slides */
.deck-track img:nth-child(odd) { rotate: calc((var(--p, .5) - .5) * 9deg); translate: 0 calc((var(--p, .5) - .5) * 46px); }
.deck-track img:nth-child(even) { rotate: calc((var(--p, .5) - .5) * -9deg); translate: 0 calc((var(--p, .5) - .5) * -46px); }

/* Featured plan flag and Enzo */
.plan-flag { animation: nudge 3.2s ease-in-out infinite; }
@keyframes nudge { 50% { translate: 0 -4px; } }
.enzo { animation: float 5s ease-in-out infinite; transform-origin: 50% 90%; }
.contact-card:hover .enzo { animation: float 5s ease-in-out infinite, wiggle .7s ease-in-out; }
@keyframes wiggle { 25% { rotate: -7deg; } 60% { rotate: 6deg; } 100% { rotate: 0deg; } }

@media (prefers-reduced-motion: reduce) {
  .js .w > span { transform: none; }
  .how-phone img { transform: none; }
}

/* Recipe photos, used sparingly */
.card-photo { display: flex; flex-direction: column; justify-content: flex-end; min-height: 260px; border: 0; color: #fff; background: #1a1410; }
.card-photo .card-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s cubic-bezier(.2, .8, .2, 1); }
.card-photo:hover .card-bg { scale: 1.08; }
.card-photo::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(transparent 30%, rgba(15, 10, 5, .82)); }
.card-photo h3, .card-photo p { z-index: 2; }
.card-photo p { color: rgba(255, 255, 255, .9); }
.thumbs { display: flex; margin-top: 18px; position: relative; z-index: 1; }
.thumbs img { width: 58px; height: 58px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 8px 16px -8px rgba(15, 23, 42, .5); transition: margin .4s cubic-bezier(.2, .8, .2, 1), rotate .4s; }
.thumbs img + img { margin-left: -16px; }
.card:hover .thumbs img + img { margin-left: 6px; }
.card:hover .thumbs img:nth-child(2) { rotate: 8deg; }

/* Enzo watermark on the Explain Each Step card */
.card-enzo { min-height: 260px; }
.watermark { position: absolute; right: -8%; bottom: -22%; width: 62%; max-width: none; rotate: -10deg; opacity: .2; pointer-events: none; transition: rotate .6s cubic-bezier(.2, .8, .2, 1), scale .6s cubic-bezier(.2, .8, .2, 1); }
.card-enzo:hover .watermark { rotate: -4deg; scale: 1.06; }
.card-enzo p { max-width: 78%; }

/* How It Works phone swap: the whole phone turns as one object (see main.js)
   and the screen is swapped while it is edge-on, so there is no fade at all. */
.how-turn { position: absolute; inset: 0; will-change: transform; }
.how-phone img, .how-phone img.active { transform: none; transition: none; }
.how-phone img { opacity: 0; }
.how-phone img.active { opacity: 1; }

/* ---------- Sound Familiar: a swipeable deck of situations ---------- */
.who { background: linear-gradient(var(--warm), #fff); }
.who-grid { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: 1fr minmax(300px, 440px); gap: clamp(28px, 6vw, 80px); align-items: center; }
.who-lede { font-size: 19px; color: var(--mid); max-width: 420px; }
.who-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.who-chip { font: inherit; font-size: 15px; font-weight: 600; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--border); background: #fff; color: var(--mid); cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s; }
.who-chip:hover { transform: translateY(-2px); border-color: var(--orange); color: var(--orange-text); }
.who-chip.on { background: linear-gradient(135deg, var(--orange-deep), #ff7700); border-color: transparent; color: #fff; }

.stack { display: grid; gap: 16px; }
.js .stack { display: block; position: relative; height: 420px; touch-action: pan-y; }
.scard { padding: 30px; border-radius: 30px; border: 1px solid var(--border); display: flex; flex-direction: column; box-shadow: 0 30px 50px -34px rgba(15, 23, 42, .5); }
.js .scard {
  position: absolute; inset: 0 0 auto 0; height: 360px; cursor: grab; user-select: none; -webkit-user-select: none;
  z-index: calc(20 - var(--i, 0)); opacity: var(--o, 1);
  transform: translate3d(var(--dx, 0px), calc(var(--i, 0) * 16px), 0) scale(calc(1 - var(--i, 0) * .05)) rotate(calc(var(--r, 0deg) + var(--dr, 0deg)));
  transition: transform .55s cubic-bezier(.2, .8, .2, 1), opacity .4s ease;
}
.scard.drag { transition: none; cursor: grabbing; }
.scard h3 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin-top: 16px; }
.scard-tag { align-self: flex-start; padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: rgba(249, 115, 22, .14); color: var(--orange-text); }
.bubble { margin-top: auto; display: flex; align-items: flex-end; gap: 12px; }
.bubble img { width: 54px; flex: none; }
.bubble p { position: relative; padding: 14px 16px; border-radius: 18px 18px 18px 4px; background: #fff; color: var(--mid); font-size: 15px; line-height: 1.5; box-shadow: 0 8px 20px -14px rgba(15, 23, 42, .5); }
.c-cream { background: var(--cream); border-color: #fde3c8; }
.c-warm { background: #f1ede7; }
.c-white { background: #fff; }
.c-white .bubble p, .c-warm .bubble p { background: var(--cream); box-shadow: none; }
.c-orange { background: linear-gradient(140deg, var(--orange-deep), #ff7700); border: 0; color: #fff; }
.c-ink { background: var(--ink); border: 0; color: #fff; }
.c-orange .scard-tag, .c-ink .scard-tag { background: rgba(255, 255, 255, .2); color: #fff; }

.stack-controls { display: none; }
.js .stack-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.stack-btn { font: inherit; font-size: 15px; font-weight: 600; padding: 11px 26px; border-radius: 999px; border: 1.5px solid var(--border); background: #fff; color: var(--mid); cursor: pointer; transition: transform .2s, border-color .2s, color .2s; }
.stack-btn:hover { transform: translateY(-2px); border-color: var(--orange); color: var(--orange-text); }
.stack-like { border-color: transparent; color: #fff; background: linear-gradient(135deg, var(--orange-deep), #ff7700); }
.stack-like:hover { color: #fff; }
.stack-hint { font-size: 13px; color: var(--muted); }

@media (max-width: 820px) {
  .who-grid { grid-template-columns: 1fr; }
  .who-side { text-align: center; }
  .who-lede { margin: 0 auto; }
  .who-chips { justify-content: center; }
  .who-deck { width: 100%; max-width: 440px; margin: 0 auto; }
  .js .stack { height: 440px; } .js .scard { height: 380px; }
}

/* Big Enzo watermark, top right of every deck card. The white brand icon is
   used as a mask so it can be tinted orange on light cards, white on dark. */
.scard { position: relative; overflow: hidden; }
.scard::before {
  content: ''; position: absolute; top: -9%; right: -11%; width: 56%; aspect-ratio: 652 / 786; rotate: 12deg; pointer-events: none;
  background: rgba(249, 115, 22, .13);
  -webkit-mask: url(assets/enzo-white.svg) center / contain no-repeat; mask: url(assets/enzo-white.svg) center / contain no-repeat;
}
.c-orange::before, .c-ink::before { background: rgba(255, 255, 255, .16); }
.scard > * { position: relative; z-index: 1; }
.scard h3 { max-width: 88%; }

/* Orange food doodles drifting behind the How It Works phones */
.food-bg { position: absolute; inset: -6% -52%; pointer-events: none; }
.food-bg svg {
  position: absolute; width: 46px; height: 46px; fill: none; stroke: var(--orange); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round; opacity: .5; animation: drift 8s ease-in-out infinite;
}
.food-bg svg:nth-child(1) { left: 6%; top: 8%; width: 54px; height: 54px; }
.food-bg svg:nth-child(2) { right: 4%; top: 16%; animation-delay: -2s; animation-duration: 9s; }
.food-bg svg:nth-child(3) { left: 0; top: 46%; width: 40px; height: 40px; animation-delay: -4s; }
.food-bg svg:nth-child(4) { right: 8%; top: 52%; width: 58px; height: 58px; animation-delay: -1s; animation-duration: 10s; }
.food-bg svg:nth-child(5) { left: 12%; bottom: 6%; animation-delay: -5s; animation-duration: 7s; }
.food-bg svg:nth-child(6) { right: 2%; bottom: 10%; width: 38px; height: 38px; animation-delay: -3s; }
@keyframes drift { 0%, 100% { translate: 0 0; rotate: -8deg; } 50% { translate: 0 -18px; rotate: 10deg; } }
.shot { display: none; }
@media (max-width: 820px) {
  .shot { display: block; position: relative; width: min(62vw, 280px); margin-top: 28px; }
  .shot .step-img { position: relative; width: 100%; margin-top: 0; }
  .shot .food-bg { inset: 2% -30%; }
  .shot .food-bg svg { transform: scale(.8); }
}

/* ---------- Live recipe count ---------- */
.counter { padding: clamp(48px, 7vw, 88px) var(--gutter); text-align: center; }
.counter strong { display: block; font-size: clamp(84px, 17vw, 190px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; background: linear-gradient(135deg, var(--orange-deep), #ff7700); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.counter-live { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 14px; padding: 6px 14px; border-radius: 999px; background: var(--cream); border: 1px solid #fde3c8; font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-text); }
.counter-live i { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, .55); } 100% { box-shadow: 0 0 0 12px rgba(249, 115, 22, 0); } }
.counter-label { margin-top: 12px; font-size: clamp(16px, 1.8vw, 20px); font-weight: 500; color: var(--mid); }
.ig-link { color: var(--orange-text); font-weight: 600; text-underline-offset: 3px; }

/* ---------- Cooking Mode spotlight ---------- */
.cook { background: var(--ink); color: #fff; overflow: hidden; }
.cook .eyebrow { color: #fdba74; }
.cook-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: clamp(32px, 7vw, 100px); align-items: center; }
.cook-phone { position: relative; justify-self: center; width: min(74vw, 310px); }
.frame { position: relative; z-index: 1; border-radius: 44px; padding: 10px; background: #05070d; box-shadow: 0 0 0 2px #2b3446, 0 40px 80px -30px rgba(0, 0, 0, .8); overflow: hidden; }
.frame img { border-radius: 34px; transform: translate3d(0, var(--py, 0), 0); }
.cook-ring { position: absolute; inset: 6% -32%; border-radius: 50%; background: radial-gradient(circle, rgba(249, 115, 22, .5) 0%, rgba(249, 115, 22, 0) 66%); filter: blur(24px); animation: breathe 6s ease-in-out infinite; }
.cook-timer { position: absolute; z-index: 2; right: -30%; top: 5%; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 13.5px; font-weight: 600; box-shadow: 0 18px 36px -16px rgba(0, 0, 0, .7); animation: bob 5s ease-in-out infinite; }
.cook-timer svg { width: 34px; height: 34px; rotate: -90deg; }
.cook-timer circle { fill: none; stroke: #fde3c8; stroke-width: 9; }
.cook-timer .tick { stroke: var(--orange); stroke-linecap: round; stroke-dasharray: 213.6; animation: countdown 9s linear infinite; }
@keyframes countdown { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 213.6; } }
.cook-lede { margin-top: 16px; font-size: 18px; color: #cbd5e1; max-width: 520px; }
.cook-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; max-width: 520px; }
.cook-list li { position: relative; padding: 16px 18px 16px 58px; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .09); color: #cbd5e1; font-size: 15px; transition: background .3s, translate .3s; }
.cook-list li:hover { background: rgba(255, 255, 255, .1); translate: 6px 0; }
.cook-list strong { display: block; color: #fff; font-size: 16.5px; font-weight: 600; }
.cook-list li::before { content: ''; position: absolute; left: 18px; top: 20px; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--orange-deep), #ff7700) ; -webkit-mask: none; box-shadow: 0 0 0 5px rgba(249, 115, 22, .18); }
.cook-list li::after { content: ''; position: absolute; left: 27px; top: 27px; width: 8px; height: 12px; border: solid #fff; border-width: 0 2.5px 2.5px 0; rotate: 45deg; translate: 0 -3px; }
.js .cook-list .reveal:nth-child(2) { transition-delay: .08s; } .js .cook-list .reveal:nth-child(3) { transition-delay: .16s; }
.js .cook-list .reveal:nth-child(4) { transition-delay: .24s; } .js .cook-list .reveal:nth-child(5) { transition-delay: .32s; }
@media (max-width: 820px) {
  .cook-grid { grid-template-columns: 1fr; }
  .cook-copy { text-align: center; } .cook-lede, .cook-list { margin-left: auto; margin-right: auto; } .cook-list { text-align: left; }
  .cook-timer { right: -8%; }
}

/* ---------- Buttons and links added with the help pages ---------- */
.btn-ghost { border: 1.5px solid var(--border); background: #fff; color: var(--ink); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--orange); color: var(--orange-text); }
.faq-more { text-align: center; margin-top: 32px; }

/* ---------- Document pages: Terms of Use, Privacy Policy, Help ---------- */
.doc { max-width: 780px; margin: 0 auto; padding: 130px var(--gutter) 80px; }
.doc h1 { font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.02em; line-height: 1.1; font-weight: 700; margin-bottom: 18px; }
.doc h2 { font-size: clamp(22px, 3vw, 28px); letter-spacing: -0.01em; margin: 48px 0 14px; scroll-margin-top: 96px; }
.doc h3 { font-size: 18px; margin: 28px 0 10px; }
.doc p { color: var(--mid); margin: 0 0 14px; font-size: 16px; }
.doc ul { color: var(--mid); padding-left: 22px; margin: 0 0 16px; display: grid; gap: 8px; font-size: 16px; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc a { color: var(--orange-text); }
.doc-lede { font-size: 18px; }
.doc .help-cats { margin: 24px 0 8px; }
.doc .help-cats a { text-decoration: none; color: var(--mid); }
.doc .faq-list { max-width: none; }
.doc .faq-list details { background: var(--warm); }
.doc .faq-list summary { font-size: 16.5px; }
.doc .faq-list details p { padding-bottom: 0; margin-bottom: 14px; }
.doc .faq-list details p:last-child { padding-bottom: 20px; margin-bottom: 0; }
.doc .warn { padding: 12px 16px; border-radius: 12px; background: var(--cream); border: 1px solid #fde3c8; color: #9a3412; font-size: 15px; }
.doc .notice { margin-top: 56px; }
.doc .notice p { margin: 6px 0 0; }

/* ---------- Dietary section ---------- */
.diet { padding-left: 0; padding-right: 0; overflow: hidden; background: linear-gradient(#fff, var(--cream)); }
.diet .section-head, .diet .plans-note { padding: 0 var(--gutter); }
.diet-rows { display: grid; gap: 14px; margin-bottom: clamp(36px, 5vw, 60px); -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.diet-row { display: flex; gap: 12px; width: max-content; animation: slide 46s linear infinite; }
.diet-row-back { animation-direction: reverse; animation-duration: 54s; }
.diet-rows:hover .diet-row { animation-play-state: paused; }
.diet-row span { padding: 10px 20px; border-radius: 999px; background: #fff; border: 1.5px solid #fde3c8; color: var(--orange-text); font-size: 15px; font-weight: 600; white-space: nowrap; }
.diet-row span:nth-child(3n) { background: linear-gradient(135deg, var(--orange-deep), #ff7700); border-color: transparent; color: #fff; }
.diet-row span:nth-child(5n) { background: var(--ink); border-color: transparent; color: #fff; }
.diet-grid { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.js .diet-grid .reveal:nth-child(2) { transition-delay: .08s; } .js .diet-grid .reveal:nth-child(3) { transition-delay: .16s; }
@media (max-width: 820px) { .diet-grid { grid-template-columns: 1fr; max-width: 520px; } }
.doc section { padding: 0; }
.doc .faq-list { display: grid; gap: 10px; }
.doc .faq-list details { border: 1px solid var(--border); border-radius: 16px; padding: 0 22px; }
.doc .faq-list summary { list-style: none; cursor: pointer; padding: 18px 34px 18px 0; font-weight: 600; position: relative; color: var(--ink); }
.doc .faq-list summary::-webkit-details-marker { display: none; }
.doc .faq-list summary::after { content: '+'; position: absolute; right: 0; top: 50%; translate: 0 -50%; font-size: 24px; font-weight: 400; color: var(--orange-text); transition: rotate .3s ease; }
.doc .faq-list details[open] summary::after { rotate: 45deg; }

/* ---------- The Story Behind It ---------- */
.story { background: var(--ink); color: #fff; overflow: hidden; }
.story::before { content: ''; position: absolute; left: 50%; top: -10%; width: 760px; height: 760px; translate: -50% 0; border-radius: 50%; background: radial-gradient(circle, rgba(249, 115, 22, .22), transparent 65%); pointer-events: none; animation: breathe 9s ease-in-out infinite; }
.story-inner { position: relative; max-width: 760px; margin: 0 auto; text-align: center; }
.story .eyebrow { color: #fdba74; }
.story h2 { margin-bottom: 34px; }
.story p { color: #cbd5e1; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.75; margin-bottom: 22px; }
.story strong { color: #fff; font-weight: 600; }
.story .story-turn { font-size: clamp(26px, 3.6vw, 40px); font-style: italic; font-weight: 600; line-height: 1.2; margin: 34px 0; background: linear-gradient(135deg, #ff7700, #fdba74); -webkit-background-clip: text; background-clip: text; color: transparent; }
.js .story .story-turn.reveal { transform: translateY(20px) scale(.85); transition-duration: 1.1s; }
.js .story .story-turn.reveal.in { transform: none; }
.story-note { margin-top: 46px; padding: 26px 30px; border-radius: 22px; border: 1.5px solid rgba(249, 115, 22, .6); text-align: center; }
.story-note h3 { font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; color: #fdba74; }
.story-note p { margin: 10px 0 0; font-size: 14.5px; color: #cbd5e1; }

.devices { margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--mid); }
.devices + .fineprint { margin-top: 6px; }

/* Six menu links: keep each on one line, and fold the menu away sooner */
.nav-links { gap: 22px; }
.nav-links a, .nav .btn { white-space: nowrap; }
@media (max-width: 1000px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* Live count panel: ripples spread from the number, recipe photos and food
   doodles float around it. */
.counter { padding: clamp(32px, 5vw, 64px) var(--gutter); }
.counter-panel { position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(64px, 9vw, 120px) 24px; border-radius: 44px; overflow: hidden; text-align: center; background: radial-gradient(circle at 50% 45%, #fff 0%, var(--cream) 62%, #ffe9d2 100%); border: 1px solid #fde3c8; }
.counter-orbit { position: absolute; inset: 0; pointer-events: none; }
.counter-body { position: relative; z-index: 1; }
.ripple { position: absolute; left: 50%; top: 50%; width: 260px; height: 260px; margin: -130px 0 0 -130px; border-radius: 50%; border: 1.5px solid rgba(249, 115, 22, .45); animation: ripple 6s cubic-bezier(.2, .6, .3, 1) infinite; }
.ripple-2 { animation-delay: -2s; } .ripple-3 { animation-delay: -4s; }
@keyframes ripple { from { scale: .6; opacity: .9; } to { scale: 4.2; opacity: 0; } }
.orb { position: absolute; width: clamp(54px, 8vw, 104px); height: auto; aspect-ratio: 1; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 16px 30px -14px rgba(15, 23, 42, .5); transform: translate3d(0, var(--py, 0), 0); animation: bob 6s ease-in-out infinite; }
.orb-1 { left: 5%; top: 12%; }
.orb-2 { left: 17%; bottom: 10%; width: clamp(44px, 6vw, 78px); animation-delay: -2s; }
.orb-3 { left: 26%; top: 22%; width: clamp(38px, 5vw, 62px); animation-delay: -4s; }
.orb-4 { right: 6%; top: 16%; animation-delay: -1s; }
.orb-5 { right: 19%; bottom: 12%; width: clamp(44px, 6vw, 82px); animation-delay: -3s; }
.orb-6 { right: 27%; top: 10%; width: clamp(38px, 5vw, 60px); animation-delay: -5s; }
.doodle { position: absolute; width: 40px; height: 40px; fill: none; stroke: var(--orange); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .4; animation: drift 9s ease-in-out infinite; }
.doodle-1 { left: 12%; top: 52%; } .doodle-2 { left: 34%; bottom: 8%; animation-delay: -3s; } .doodle-3 { left: 40%; top: 7%; animation-delay: -5s; }
.doodle-4 { right: 12%; top: 50%; animation-delay: -2s; } .doodle-5 { right: 36%; bottom: 7%; animation-delay: -6s; } .doodle-6 { right: 42%; top: 9%; animation-delay: -1s; }
@media (max-width: 700px) {
  .orb-3, .orb-6, .doodle-2, .doodle-3, .doodle-5, .doodle-6 { display: none; }
  .orb-1 { left: 3%; top: 5%; } .orb-4 { right: 3%; top: 7%; } .orb-2 { left: 5%; bottom: 5%; } .orb-5 { right: 5%; bottom: 6%; }
  .doodle-1 { left: 4%; } .doodle-4 { right: 4%; }
}

/* The counter's label rides on a white pill so ripples and doodles never cross the text */
.counter-label { display: inline-block; margin-top: 16px; padding: 10px 22px; border-radius: 999px; background: #fff; border: 1px solid #fde3c8; box-shadow: 0 10px 24px -16px rgba(15, 23, 42, .45); color: var(--ink); }
.counter-live { background: #fff; }
@media (max-width: 700px) { .counter-label { border-radius: 22px; padding: 10px 18px; } }

/* The count sizes itself from its digit count (--chars, set in main.js), so
   907 fills the panel and 1,000,000 still fits inside it on a phone. */
.counter strong { font-size: clamp(52px, calc(78vw / var(--chars, 3)), 190px); white-space: nowrap; }

/* Phone layout for the live count: room under the label for the lower photos */
@media (max-width: 700px) {
  .counter-panel { padding: 84px 16px 112px; border-radius: 34px; }
  .counter-label { font-size: 15px; max-width: 250px; }
  .orb { width: 58px; }
  .orb-1 { left: 5%; top: 16px; } .orb-4 { right: 5%; top: 20px; }
  .orb-2 { left: 14%; bottom: 22px; width: 62px; } .orb-5 { right: 14%; bottom: 26px; width: 54px; }
  .doodle-1 { left: 5%; top: 46%; } .doodle-4 { right: 5%; top: 44%; }
}
/* On phones the counter keeps its photos and ripples; the doodles are dropped so nothing crowds the number */
@media (max-width: 700px) { .counter .doodle { display: none; } }

/* Features on phones: one card per row, kept slim so short text does not sit in a tall box */
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 12px; }
  .bento .card { padding: 18px 22px; border-radius: 22px; }
  .bento .card h3 { font-size: 18px; }
  .bento .card p { margin-top: 4px; font-size: 15px; line-height: 1.5; }
  .bento .card-tall { padding: 24px 24px 0; }
  .bento .card-tall h3 { font-size: 20px; }
  .bento .card-photo { min-height: 220px; padding: 22px; }
  .bento .card-enzo { min-height: 0; }
  .bento .card-enzo p { max-width: 74%; }
  .bento .watermark { width: 40%; right: -6%; bottom: -34%; }
  .bento .thumbs { margin-top: 12px; }
  .thumbs img { width: 44px; height: 44px; }
}
/* Help page topics: compact and left aligned so they pack two to a row on phones */
.doc .help-cats { justify-content: flex-start; gap: 8px; }
.doc .help-cats a { font-size: 13.5px; padding: 8px 14px; }

/* Sound Familiar chips on phones and tablets: one row that scrolls sideways */
@media (max-width: 820px) {
  .who .who-chips {
    position: relative; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; gap: 8px;
    margin: 22px calc(var(--gutter) * -1) 0; padding: 6px var(--gutter) 12px;
    scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  }
  .who .who-chips::-webkit-scrollbar { display: none; }
  .who .who-chip { flex: none; scroll-snap-align: center; }
  .who .who-chip:hover { transform: none; }
}
/* Let the scrolling chip row shrink inside its grid column instead of stretching the layout */
@media (max-width: 820px) { .who-grid { grid-template-columns: minmax(0, 1fr); } .who-side, .who-deck { min-width: 0; } }

/* Deck cards: the speech bubble keeps a gap under the heading at any height, and
   narrow phones get tighter padding so the bubble has room to be wide */
.scard .bubble { margin-top: auto; padding-top: 22px; }
.bubble p { flex: 1; }
@media (max-width: 480px) {
  .scard { padding: 22px; border-radius: 26px; }
  .scard h3 { font-size: 23px; max-width: 82%; }
  .bubble { gap: 8px; }
  .bubble img { width: 40px; }
  .bubble p { padding: 12px 14px; font-size: 14.5px; }
  .stack-controls { gap: 8px; }
  .stack-btn { padding: 10px 20px; }
  .stack-hint { font-size: 12.5px; white-space: nowrap; }
}

/* Floating hero tags: solid colour with white text */
.chip { border: 0; color: #fff; }
.chip-a { background: #15803d; color: #fff; }
.chip-b { background: linear-gradient(135deg, var(--orange-deep), #ff7700); color: #fff; }
.chip-c { background: #1d4ed8; color: #fff; }

/* Phone and tablet menu */
.nav-toggle { display: none; }
@media (max-width: 1000px) {
  .nav-toggle { display: grid; gap: 5px; align-content: center; width: 42px; height: 42px; padding: 0 10px; margin-left: 4px; border: 1.5px solid var(--border); border-radius: 12px; background: #fff; cursor: pointer; }
  .nav-toggle span { height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s ease, opacity .2s ease; }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav.open .nav-links { display: grid; gap: 0; position: absolute; top: 72px; left: 0; right: 0; margin: 0; padding: 8px var(--gutter) 16px; background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 24px 40px -28px rgba(15, 23, 42, .5); animation: fade .25s ease; }
  .nav.open .nav-links a { padding: 14px 0; font-size: 17px; color: var(--ink); border-bottom: 1px solid var(--border); }
  .nav.open .nav-links a:last-child { border-bottom: 0; }
  .nav.open { background: #fff; }
}
.doc .btn-orange { color: #fff; text-decoration: none; }

/* Food doodles, lighter */
.food-bg svg { opacity: .28; }
.doodle { opacity: .26; }

/* Macro card: the nutrition tiles from the app's recipe page, same colours */
.ntiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; position: relative; z-index: 1; }
.ntiles-head { grid-column: 1 / -1; margin: 0; font-size: 14px; font-weight: 700; color: #1c1917; }
.card .ntiles-head { color: #1c1917; font-size: 14px; }
.ntile { display: grid; justify-items: center; padding: 10px 4px; border-radius: 12px; border: 1px solid; }
.ntile strong { font-size: 18px; font-weight: 700; line-height: 1.2; }
.ntile span { margin-top: 2px; font-size: 11px; }
.nt-cal { grid-column: 1 / -1; background: #fff7ed; border-color: #fed7aa; } .nt-cal strong { color: #7c2d12; } .nt-cal span { color: #ea580c; }
.nt-pro { background: #eff6ff; border-color: #bfdbfe; } .nt-pro strong { color: #1e3a8a; } .nt-pro span { color: #2563eb; }
.nt-carb { background: #fefce8; border-color: #fef08a; } .nt-carb strong { color: #713f12; } .nt-carb span { color: #ca8a04; }
.nt-fat { background: #fef2f2; border-color: #fecaca; } .nt-fat strong { color: #7f1d1d; } .nt-fat span { color: #dc2626; }
.nt-fib { background: #f0fdf4; border-color: #bbf7d0; } .nt-fib strong { color: #14532d; } .nt-fib span { color: #16a34a; }
.js .card .ntile { opacity: 0; transform: translateY(12px) scale(.94); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.js .card.in .ntile { opacity: 1; transform: none; }
.js .card.in .nt-cal { transition-delay: .3s; } .js .card.in .nt-pro { transition-delay: .42s; } .js .card.in .nt-carb { transition-delay: .5s; }
.js .card.in .nt-fat { transition-delay: .58s; } .js .card.in .nt-fib { transition-delay: .66s; }
@media (prefers-reduced-motion: reduce) { .js .card .ntile { opacity: 1; transform: none; } }

/* Floating hero tags as tinted glass: the phone photos blur through them */
.chip { border: 1px solid rgba(255, 255, 255, .5); -webkit-backdrop-filter: blur(12px) saturate(170%); backdrop-filter: blur(12px) saturate(170%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -8px 14px -10px rgba(0, 0, 0, .25), 0 14px 28px -14px rgba(15, 23, 42, .45); text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.chip-a { background: rgba(21, 128, 61, .72); }
.chip-b { background: linear-gradient(135deg, rgba(223, 60, 0, .76), rgba(255, 119, 0, .72)); }
.chip-c { background: rgba(29, 78, 216, .72); }

/* The Live Count beacon is green, like a live indicator */
.counter-live i { background: #16a34a; animation-name: pulse-live; }
@keyframes pulse-live { 0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .55); } 100% { box-shadow: 0 0 0 12px rgba(22, 163, 74, 0); } }
