:root {
  --cream: #FFFBF6;
  --cream-alt: #FBF4EA;
  --card: #FFF4EF;
  --border: #EDD8C4;
  --tan: #D4BCA8;
  --brown: #7A6553;
  --brown-dark: #2E2019;
  --accent: #EF6C3D;
  --accent-dark: #D85A2C;
  --accent-light: #FCE1D5;
  --sage: #3FB98B;
  --sage-light: #DBF1E8;
  --yellow: #F5B72E;
  --yellow-light: #FCEFC8;
  --blue: #5B9BD5;
  --blue-light: #DCEAF7;
  --berry: #D6455E;
  --berry-light: #FADDE2;
  --max: 1160px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--brown-dark);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; margin: 0 0 12px; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 4.5vw + 1rem, 4.6rem); }
h2 { font-size: clamp(2rem, 2.5vw + 1rem, 3.1rem); text-align: center; margin-bottom: 16px; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
em.hl { font-style: italic; color: var(--accent); font-weight: 600; }
.lede { font-size: 1.2rem; color: var(--brown); max-width: 48ch; }
.section-lede { text-align: center; margin: 0 auto; color: var(--brown); max-width: 56ch; font-size: 1.1rem; }

.eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; margin: 0 0 14px; }
.eyebrow-center { text-align: center; }
.pill-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border); padding: 6px 14px 6px 8px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: var(--brown-dark); margin-bottom: 22px; }
.pill-eyebrow b { background: var(--sage); color: #fff; font-size: 0.7rem; padding: 3px 8px; border-radius: 999px; letter-spacing: 0.04em; }

.icon { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: block; }
.icon-fill { fill: currentColor; stroke: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: 12px 24px; font-weight: 600; text-decoration: none;
  background: var(--accent); color: #fff;
  box-shadow: 0 8px 20px -8px rgba(239, 108, 61, 0.6);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgba(239, 108, 61, 0.7); }
.btn-small { padding: 8px 18px; font-size: 0.95rem; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 251, 246, 0.8);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.nav.scrolled, .nav:not([data-home]) { border-bottom-color: var(--border); }
.nav.scrolled { box-shadow: 0 6px 24px -18px rgba(46, 32, 25, 0.5); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; text-decoration: none; }
.brand img { border-radius: 8px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--brown-dark); font-weight: 500; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform 0.25s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); }
@media (max-width: 760px) { .nav-links { display: none; } }

/* Hero */
.hero { position: relative; padding: 64px 0 96px; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; z-index: 0; animation: drift 18s ease-in-out infinite alternate; }
.blob-1 { width: 520px; height: 520px; background: var(--accent-light); top: -200px; right: -140px; }
.blob-2 { width: 380px; height: 380px; background: var(--sage-light); bottom: -160px; left: -120px; animation-delay: -6s; }
.blob-3 { width: 260px; height: 260px; background: var(--yellow-light); top: 30%; left: 40%; opacity: 0.45; animation-delay: -12s; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.08); } }

.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 .line { display: block; }
.rotator { display: inline-grid; vertical-align: bottom; }
.rotator > span { grid-area: 1 / 1; color: var(--accent); font-style: italic; opacity: 0; transform: translateY(0.4em); animation: rotate-word 12s infinite; }
.rotator > span:nth-child(2) { animation-delay: 3s; }
.rotator > span:nth-child(3) { animation-delay: 6s; }
.rotator > span:nth-child(4) { animation-delay: 9s; }
@keyframes rotate-word {
  0% { opacity: 0; transform: translateY(0.4em); }
  4%, 22% { opacity: 1; transform: none; }
  26%, 100% { opacity: 0; transform: translateY(-0.4em); }
}
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 30px; }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 0.92rem; color: var(--brown); }
.hero-note .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 0 rgba(63,185,139,.6); animation: pulse 2s infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 10px rgba(63,185,139,0); } }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .lede { margin-inline: auto; }
  .hero-cta, .hero-note { justify-content: center; }
}

/* Phone mockup */
.phone-stage { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.phone {
  position: relative; width: 290px; aspect-ratio: 9 / 19; border-radius: 46px;
  background: #1c1410; padding: 11px;
  box-shadow: 0 50px 80px -30px rgba(46, 32, 25, 0.55), inset 0 0 0 2px #3a2c24;
  transform: rotate(-3deg);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: rotate(-3deg) translateY(-12px); } }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 84px; height: 24px; border-radius: 20px; background: #1c1410; z-index: 3; }
.screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: var(--cream-alt); }
.scr { position: absolute; inset: 0; padding: 54px 16px 16px; display: flex; flex-direction: column; gap: 10px; opacity: 0; animation: screens 12s infinite; }
.scr-2 { animation-delay: 4s; }
.scr-3 { animation-delay: 8s; }
@keyframes screens {
  0% { opacity: 0; transform: translateX(24px); }
  4%, 30% { opacity: 1; transform: none; }
  34%, 100% { opacity: 0; transform: translateX(-24px); }
}
.scr-title { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin: 0; }
.scr-sub { font-size: 0.72rem; color: var(--brown); margin: 0; }
.url-field { background: #fff; border: 1.5px solid var(--accent); border-radius: 14px; padding: 10px 12px; font-size: 0.72rem; display: flex; align-items: center; gap: 8px; color: var(--brown-dark); overflow: hidden; white-space: nowrap; }
.url-field .typing { overflow: hidden; border-right: 2px solid var(--accent); width: 0; animation: type 12s steps(28) infinite; }
@keyframes type { 0%, 3% { width: 0; } 18%, 100% { width: 17ch; } }
.src-row { display: flex; gap: 8px; }
.src-row span { flex: 1; aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; }
.fake-btn { margin-top: auto; background: var(--accent); color: #fff; font-weight: 700; font-size: 0.8rem; text-align: center; padding: 12px; border-radius: 999px; }
.ai-orb { width: 110px; height: 110px; margin: 30px auto 6px; border-radius: 50%; background: conic-gradient(from 0deg, var(--accent), var(--yellow), var(--sage), var(--blue), var(--accent)); animation: spin 3s linear infinite; display: grid; place-items: center; }
.ai-orb::after { content: ""; width: 86px; height: 86px; border-radius: 50%; background: var(--cream-alt) url(/assets/chefbot.png) center / 60% no-repeat; }
@keyframes spin { to { transform: rotate(360deg); } }
.ai-line { height: 10px; border-radius: 6px; background: linear-gradient(90deg, var(--border) 0%, #fff 50%, var(--border) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.ai-line:nth-child(odd) { width: 80%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.scr-3 { padding: 0; gap: 0; }
.scr-3 img { height: 42%; width: 100%; object-fit: cover; }
.recipe-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tags span { font-size: 0.62rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.ing { list-style: none; margin: 0; padding: 0; font-size: 0.7rem; display: grid; gap: 5px; }
.ing li { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 10px; padding: 6px 8px; }
.ing li::before { content: ""; width: 12px; height: 12px; border-radius: 4px; border: 1.5px solid var(--sage); flex: none; }

.chip {
  position: absolute; z-index: 2; background: #fff; border-radius: 16px; padding: 10px 14px;
  display: flex; align-items: center; gap: 10px; font-size: 0.82rem;
  box-shadow: 0 18px 36px -14px rgba(46, 32, 25, 0.35);
  animation: float 6s ease-in-out infinite;
}
.chip strong { display: block; font-size: 0.85rem; }
.chip small { display: block; color: var(--brown); }
.chip .emoji { font-size: 1.4rem; line-height: 1; }
.chip-a { top: 12%; left: -4%; animation-delay: -1s; }
.chip-b { bottom: 18%; right: -6%; animation-delay: -3s; }
.chip-c { bottom: 2%; left: 4%; animation-delay: -4.5s; }
@media (max-width: 520px) { .chip-a { left: 0; } .chip-b { right: 0; } .chip-c { display: none; } }

/* Marquee */
.marquee { background: var(--brown-dark); color: #F7EDE2; padding: 18px 0; overflow: hidden; transform: rotate(-1.2deg); margin: -20px -10px 0; position: relative; z-index: 2; }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-size: 1.35rem; font-style: italic; padding: 0 22px; white-space: nowrap; }
.marquee-track span::after { content: "✦"; color: var(--accent); font-style: normal; margin-left: 44px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sources */
.import-strip { padding: 88px 0 40px; }
.source-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 36px; }
.source-badge { display: flex; align-items: center; gap: 10px; font-weight: 600; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 8px 18px 8px 8px; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.source-badge:hover { transform: translateY(-4px) rotate(-2deg); box-shadow: 0 14px 28px -16px rgba(46, 32, 25, 0.4); }
.source-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

main { overflow-x: clip; }
.section { padding: 96px 0; }
.section-alt { background: var(--cream-alt); }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: 56px; }
.tile { position: relative; overflow: hidden; border-radius: 28px; padding: 32px; background: #fff; border: 1px solid var(--border); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.tile:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(46, 32, 25, 0.4); }
.tile p { color: var(--brown); margin: 0; }
.tile-lg { grid-column: span 4; }
.tile-sm { grid-column: span 2; }
.tile-md { grid-column: span 3; }
.tile-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.tile-accent p { color: #FFE9DF; }
.tile-dark { background: var(--brown-dark); border-color: var(--brown-dark); color: #fff; }
.tile-dark p { color: #D9C8B8; }
.tile-sage { background: var(--sage-light); border-color: #C3E6D6; }
.tile-yellow { background: var(--yellow-light); border-color: #F4E0A6; }
.tile-blue { background: var(--blue-light); border-color: #C3D9EE; }
.tile-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 20px; background: rgba(255,255,255,.7); }
.tile-accent .tile-icon, .tile-dark .tile-icon { background: rgba(255,255,255,.15); }
.tile-chefbot { position: absolute; right: -10px; bottom: -20px; width: 180px; opacity: 0.95; transition: transform 0.5s var(--ease); }
.tile:hover .tile-chefbot { transform: rotate(-8deg) scale(1.05); }
.tile-lg .tile-text { max-width: 60%; }
.bubble { display: inline-block; background: rgba(255,255,255,0.18); border-radius: 18px 18px 18px 4px; padding: 10px 14px; margin-top: 18px; font-size: 0.92rem; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 22px; }
.week span { aspect-ratio: 1; border-radius: 10px; background: #fff; display: grid; place-items: center; font-size: 0.72rem; font-weight: 700; color: var(--brown); }
.week span.on { background: var(--blue); color: #fff; }
@media (max-width: 960px) { .tile-lg, .tile-sm, .tile-md { grid-column: span 3; } .tile-lg .tile-text { max-width: 70%; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .tile-lg, .tile-sm, .tile-md { grid-column: auto; } .tile-lg .tile-text { max-width: none; padding-bottom: 120px; } }

/* Steps */
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.steps li { position: relative; background: #fff; border: 1px solid var(--border); border-radius: 24px; padding: 32px 28px; }
.step-num { font-family: var(--font-display); font-size: 4rem; font-weight: 700; line-height: 1; color: var(--accent-light); -webkit-text-stroke: 1.5px var(--accent); display: block; margin-bottom: 12px; }
.steps p { color: var(--brown); margin: 4px 0 0; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 760px; margin: 48px auto 0; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 0 24px; transition: box-shadow 0.25s; }
.faq details[open] { box-shadow: 0 16px 32px -24px rgba(46, 32, 25, 0.4); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--accent); transition: transform 0.25s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--brown); }

/* CTA */
.cta-final { padding: 40px 0 110px; }
.cta-card {
  position: relative; overflow: hidden; text-align: center; border-radius: 36px; padding: 80px 24px;
  background: radial-gradient(circle at 20% 0%, #F7A677 0%, transparent 50%), radial-gradient(circle at 90% 100%, var(--berry) 0%, transparent 45%), var(--accent);
  color: #fff;
}
.cta-card h2 { color: #fff; }
.cta-card .lede { color: #FFE9DF; margin-inline: auto; }
.cta-card .store-badge { background: #fff; color: var(--brown-dark); }
.cta-card .store-badge:hover { background: var(--cream); }
.cta-emoji { position: absolute; font-size: 3rem; animation: float 6s ease-in-out infinite; opacity: 0.9; }

.store-badges { display: flex; gap: 14px; flex-wrap: wrap; }
.store-badges-center { justify-content: center; margin-top: 28px; }
.store-badge {
  display: flex; align-items: center; gap: 10px;
  background: var(--brown-dark); color: #fff; border-radius: 14px; padding: 10px 18px;
  text-decoration: none; font-weight: 600;
  transition: transform 0.2s var(--ease), background 0.2s;
}
.store-badge small { display: block; font-weight: 400; font-size: 0.7rem; opacity: 0.85; }
.store-badge:hover { background: #1a120d; transform: translateY(-2px); }
.store-badge-outline { background: transparent; border: 1px solid rgba(255,255,255,0.25); }
.store-badge-outline:hover { background: rgba(255,255,255,0.08); }

/* Reveal on scroll (only when JS ran) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .scr { opacity: 0; } .scr-3 { opacity: 1; }
  .rotator > span { opacity: 0; } .rotator > span:first-child { opacity: 1; transform: none; }
  .url-field .typing { width: auto; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Footer */
.footer { background: var(--brown-dark); color: #EFE3D6; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding: 64px 24px 40px; }
@media (max-width: 780px) { .footer-top { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .brand { color: #fff; }
.footer-brand p { color: #C9B8A6; max-width: 32ch; margin: 12px 0 20px; }
.footer-brand .store-badges { margin-top: 0; gap: 10px; }
.footer-brand .store-badge { padding: 8px 14px; font-size: 0.85rem; }
.footer-col h4 { margin: 0 0 16px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: #C9B8A6; }
.footer-col a { display: block; text-decoration: none; color: #EFE3D6; margin-bottom: 12px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 24px; font-size: 0.85rem; color: #C9B8A6; }

/* Legal pages */
.legal { max-width: 720px; padding: 56px 24px 96px; }
.legal h1 { margin-bottom: 4px; text-align: left; font-size: clamp(2rem, 3vw + 1rem, 3rem); }
.legal .updated { color: var(--brown); font-size: 0.9rem; margin-bottom: 40px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--brown); text-decoration: none; margin-bottom: 24px; font-weight: 600; }
.back-link:hover { color: var(--accent); }
.legal-section { margin-bottom: 32px; }
.legal-section h2 { font-size: 1.15rem; margin-bottom: 8px; text-align: left; letter-spacing: 0; }
.legal-section p { color: var(--brown); margin: 0; }
.contact-link { display: inline-block; margin-top: 8px; color: var(--accent); font-weight: 700; text-decoration: none; }
.contact-link:hover { text-decoration: underline; }
