/* ===========================================================
   Fork & Spoon — Landing v3
   Palette drawn from the app: cream, ink navy, teal "&", coral
   =========================================================== */

:root {
  --cream: #F7F1E6;
  --cream-2: #EFE7D6;
  --white: #FFFDF8;
  --ink: #13242C;
  --ink-2: #1D3640;
  --ink-soft: #41555E;
  --teal: #2BA8B5;
  --teal-deep: #15808C;
  --coral: #EE6A3C;
  --coral-soft: #F8DCCF;
  --sun: #F5B23E;
  --radius: 24px;
  --radius-lg: 36px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --shadow-card: 0 18px 50px -18px rgba(19, 36, 44, .28);
  --shadow-soft: 0 8px 28px -12px rgba(19, 36, 44, .22);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

::selection { background: var(--teal); color: var(--white); }

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--coral));
  z-index: 120;
}

/* ---------- grain ---------- */
.grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(20px, 4vw, 48px);
  transition: background .35s, box-shadow .35s, padding .35s;
}
.nav.scrolled {
  background: rgba(247, 241, 230, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(19, 36, 44, .08);
  padding-top: 10px; padding-bottom: 10px;
}
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink);
  position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--coral); border-radius: 2px;
  transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease-out);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; text-align: center;
  background: var(--ink); color: var(--white);
  font-weight: 700; font-size: 16px;
  padding: 14px 28px; border-radius: 999px;
  transition: transform .25s var(--ease-out), box-shadow .25s, background .25s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); background: var(--ink-2); }
.btn-nav { padding: 10px 22px; font-size: 15px; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-login {
  text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink);
  padding: 10px 16px; border-radius: 999px;
  transition: background .25s, color .25s;
}
.nav-login:hover { background: rgba(19, 36, 44, .07); }

.store-btn {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  background: var(--ink); color: var(--white);
  padding: 12px 22px; border-radius: 16px;
  transition: transform .25s var(--ease-out), box-shadow .25s;
  will-change: transform;
}
.store-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.store-btn.light { background: var(--cream); color: var(--ink); }
.store-btn-web { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(19, 36, 44, .14); }
.store-btn-web:hover { box-shadow: inset 0 0 0 1px rgba(19, 36, 44, .14), var(--shadow-card); }
.store-btn-web .store-icon { color: var(--teal-deep); }
.store-icon { width: 26px; height: 26px; flex: none; }
.store-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-text .small { font-size: 11px; opacity: .75; }
.store-text .big { font-size: 17px; font-weight: 700; }

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-deep); margin: 0 0 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--coral); border-radius: 2px; }
.eyebrow.light { color: var(--teal); }

.sec-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(34px, 4.6vw, 58px); line-height: 1.06;
  letter-spacing: -0.01em; margin: 0 0 18px; max-width: 17ch;
}
.sec-title em { font-style: italic; color: var(--coral); }
.sec-title.light { color: var(--cream); }
.sec-title.light em { color: var(--sun); }
.sec-sub { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-soft); max-width: 56ch; margin: 0; }
.sec-sub.light { color: rgba(247, 241, 230, .75); }

/* ---------- layout ---------- */
.section { padding: clamp(80px, 10vw, 140px) clamp(20px, 4vw, 48px); position: relative; }
.section-inner { max-width: 1180px; margin: 0 auto; }
.section-inner.narrow { max-width: 760px; }

/* ---------- reveal ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
[data-reveal].in { opacity: 1; transform: none; }

/* hero word-by-word */
.hero-title .w {
  display: inline-block; opacity: 0; transform: translateY(.6em) rotate(2deg);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: calc(var(--wi) * 70ms);
}
.hero-title.in .w { opacity: 1; transform: none; }

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(120px, 14vh, 170px) clamp(20px, 4vw, 48px) 0;
  background: var(--cream);
}
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5;
  animation: blob-drift 14s ease-in-out infinite alternate;
}
.hero-blob-a { width: 520px; height: 520px; background: #BFE5E2; top: -160px; right: -120px; }
.hero-blob-b { width: 420px; height: 420px; background: var(--coral-soft); bottom: -80px; left: -140px; animation-delay: -6s; }
@keyframes blob-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(40px, 30px) scale(1.12); }
}

.hero-inner {
  position: relative; z-index: 2;
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid rgba(19, 36, 44, .1);
  padding: 8px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600; box-shadow: var(--shadow-soft);
  margin-bottom: 22px;
}
.kicker-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--teal);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(43, 168, 181, .5); }
  55% { box-shadow: 0 0 0 7px rgba(43, 168, 181, 0); }
}

.hero-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(42px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -0.015em;
  margin: 0 0 22px;
}
.hero-title em { font-style: italic; color: var(--coral); }
.hero-sub { font-size: clamp(17px, 1.7vw, 20px); color: var(--ink-soft); max-width: 50ch; margin: 0 0 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-ctas.center { justify-content: center; }
.hero-note { margin: 16px 0 0; font-size: 14px; color: var(--ink-soft); }

/* hero phone + floats */
.hero-stage { position: relative; min-height: 560px; }
.phone {
  position: relative; aspect-ratio: 1206 / 2622;
  border-radius: 46px; overflow: hidden;
  border: 10px solid var(--ink);
  background: var(--ink);
  box-shadow: 0 40px 90px -30px rgba(19, 36, 44, .5);
}
.phone img { width: 100%; height: 100%; object-fit: cover; }
.hero-phone {
  width: min(300px, 64%); margin: 0 auto;
  transform: rotate(2.5deg);
  transition: transform .2s ease-out;
  animation: phone-rise 1.1s var(--ease-out) both .2s;
}
@keyframes phone-rise {
  from { opacity: 0; transform: translateY(60px) rotate(6deg); }
  to { opacity: 1; transform: translateY(0) rotate(2.5deg); }
}

.float-card {
  position: absolute; z-index: 3; margin: 0;
  background: var(--white); border-radius: 18px; padding: 10px;
  box-shadow: var(--shadow-card); width: 168px;
  animation: bob 5.5s ease-in-out infinite;
}
.float-card img { border-radius: 12px; height: 86px; width: 100%; object-fit: cover; }
.float-card figcaption { padding: 8px 4px 2px; display: flex; flex-direction: column; gap: 2px; }
.float-card strong { font-size: 13px; }
.float-card span { font-size: 11.5px; color: var(--ink-soft); }
.float-card-a { top: 6%; left: -2%; transform: rotate(-6deg); }
.float-card-b { bottom: 12%; right: -3%; transform: rotate(5deg); animation-delay: -2.7s; }

.float-chip {
  position: absolute; z-index: 3;
  background: var(--ink); color: var(--cream);
  font-size: 13px; font-weight: 600;
  padding: 9px 14px; border-radius: 999px; box-shadow: var(--shadow-soft);
  animation: bob 6.5s ease-in-out infinite;
}
.float-chip-a { bottom: 4%; left: 4%; animation-delay: -1.4s; }
.float-chip-b { top: 14%; right: 2%; animation-delay: -3.8s; }
@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

/* marquee */
.marquee {
  position: relative; z-index: 2;
  margin-top: clamp(40px, 6vw, 70px);
  background: var(--ink); color: var(--cream);
  overflow: hidden; white-space: nowrap;
  padding: 14px 0;
  margin-left: calc(-1 * clamp(20px, 4vw, 48px));
  margin-right: calc(-1 * clamp(20px, 4vw, 48px));
}
.marquee-track {
  display: inline-flex; align-items: center; gap: 28px;
  animation: marquee 28s linear infinite;
  padding-right: 28px;
}
.marquee-track span { font-weight: 600; font-size: 15px; letter-spacing: .02em; }
.marquee-track i { font-style: normal; color: var(--coral); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===========================================================
   CHAOS
   =========================================================== */
.chaos {
  background: var(--ink); color: var(--cream); overflow: hidden;
  padding-top: clamp(56px, 6vw, 96px); padding-bottom: clamp(56px, 6vw, 96px);
}
.chaos-stage {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 5vw, 72px); align-items: end;
}
.chaos-lead { display: flex; flex-direction: column; }

/* scattered source cards — smaller, sit under the text */
.chaos-cards {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-top: clamp(24px, 3vw, 40px);
}
.chaos-card {
  background: var(--ink-2); border: 1px solid rgba(247, 241, 230, .1);
  border-radius: 13px; padding: 11px 13px;
  display: flex; flex-direction: column; gap: 1px;
  transform: rotate(var(--r, 0deg));
  box-shadow: 0 10px 22px -16px rgba(0, 0, 0, .7);
  transition: transform .4s var(--ease-out), border-color .35s, box-shadow .35s;
  animation: chaos-jitter 6s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -1.1s);
}
.chaos-card:last-child { grid-column: 1 / -1; max-width: 62%; }
.chaos-card:hover { transform: rotate(0deg) translateY(-4px); border-color: var(--teal); box-shadow: 0 20px 36px -18px rgba(0,0,0,.8); }
.chaos-ico {
  width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center; margin-bottom: 4px;
  background: color-mix(in srgb, var(--c, var(--teal)) 22%, transparent);
  color: var(--c, var(--teal));
}
.chaos-ico svg { width: 16px; height: 16px; }
.chaos-card strong { font-size: 13.5px; }
.chaos-card span { font-size: 11.5px; color: rgba(247, 241, 230, .55); }
@keyframes chaos-jitter {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -5px; }
}

/* recipe-card stack — the "one home" payoff */
.chaos-visual { display: flex; justify-content: center; margin-bottom: 0; }
.recipe-stack {
  position: relative; aspect-ratio: 4 / 5;
  width: 100%; max-width: 270px;
  perspective: 1400px;
}
.recipe-card {
  position: absolute; inset: 0;
  border-radius: 20px; overflow: hidden;
  background: var(--white); color: var(--ink);
  display: flex; flex-direction: column;
  box-shadow: 0 28px 64px -22px rgba(0, 0, 0, .6), 0 0 0 1px rgba(19, 36, 44, .05);
  opacity: 0;
  transition: transform .85s cubic-bezier(.22, .61, .36, 1), opacity .5s var(--ease-out);
  will-change: transform, opacity;
}
.recipe-card .rc-img { height: 56%; overflow: hidden; }
.recipe-card .rc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.recipe-card .rc-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.recipe-card .rc-tag { font-size: 9.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--coral); }
.recipe-card .rc-title { font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.05; letter-spacing: -0.01em; }
.recipe-card .rc-meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 9px; font-size: 11.5px; color: var(--ink-soft); }
.recipe-card .rc-meta span { display: inline-flex; align-items: center; gap: 4px; }

/* ===========================================================
   SHOWCASE (pinned phone)
   =========================================================== */
.showcase { background: var(--cream); }
.showcase-grid {
  display: grid; grid-template-columns: .9fr 1.1fr;
  gap: clamp(32px, 6vw, 90px);
  margin-top: clamp(40px, 5vw, 70px);
}
.showcase-sticky { position: relative; }
.showcase-phone {
  position: sticky; top: calc(50vh - 300px);
  width: min(290px, 80%); margin: 0 auto;
}
.showcase-phone > img {
  position: absolute; inset: 0;
  opacity: 0; transform: scale(1.04);
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
}
.showcase-phone > img.active { opacity: 1; transform: scale(1); position: relative; }

.showcase-steps {
  display: flex; flex-direction: column;
  gap: clamp(70px, 16vh, 200px);
  padding: 32vh 0 40vh;
}
.step-phone { display: none; }

/* step 1 — platform logos that pop in (YouTube / Instagram / TikTok) */
.source-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 6px; }
.src-logo {
  width: 48px; height: 48px; border-radius: 14px; flex: none;
  background: var(--white); display: grid; place-items: center;
  box-shadow: var(--shadow-soft); border: 1px solid rgba(19, 36, 44, .06);
  opacity: 0; transform: scale(.4) translateY(12px) rotate(-12deg);
}
.src-logo img { width: 60%; height: 60%; object-fit: contain; display: block; }
.source-logos.in .src-logo { animation: logo-pop .6s var(--ease-out) forwards; }
.source-logos.in .src-logo:nth-child(1) { animation-delay: .05s; }
.source-logos.in .src-logo:nth-child(2) { animation-delay: .16s; }
.source-logos.in .src-logo:nth-child(3) { animation-delay: .27s; }
@keyframes logo-pop { to { opacity: 1; transform: none; } }
.src-logo-more {
  font-size: 14px; font-weight: 600; color: var(--ink-soft);
  opacity: 0; transition: opacity .5s var(--ease-out) .42s;
}
.source-logos.in .src-logo-more { opacity: 1; }
.step { opacity: .25; transform: translateY(12px); transition: opacity .5s, transform .5s var(--ease-out); }
.step.active { opacity: 1; transform: none; }
.step-num {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--coral); color: var(--white);
  font-weight: 800; font-size: 15px; margin-bottom: 16px;
}
.step h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(26px, 2.8vw, 38px); line-height: 1.1; margin: 0 0 12px;
}
.step h3 em { font-style: italic; color: var(--teal-deep); }
.step p { color: var(--ink-soft); margin: 0 0 18px; max-width: 48ch; }
.step-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.step-list li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.step-list li::before {
  content: "✓"; flex: none;
  display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(43, 168, 181, .15); color: var(--teal-deep);
  font-size: 12px; font-weight: 800;
}

/* ===========================================================
   MAGIC (before/after)
   =========================================================== */
.magic { background: var(--white); }
.magic-grid {
  display: grid; grid-template-columns: 1fr 1.05fr;
  gap: clamp(32px, 5vw, 80px); align-items: center;
}
.magic-points { margin-top: 28px; display: flex; flex-direction: column; gap: 20px; }
.magic-point { display: flex; gap: 14px; align-items: flex-start; }
.point-icon {
  flex: none; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 14px;
  background: var(--cream-2); font-size: 20px;
}
.magic-point strong { font-size: 17px; }
.magic-point p { margin: 4px 0 0; color: var(--ink-soft); font-size: 15.5px; }

.ba {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 859 / 700;
  box-shadow: var(--shadow-card);
  cursor: ew-resize; touch-action: none; user-select: none;
}
.ba img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-before { position: absolute; inset: 0; }
.ba-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--cut, 55%)); }
.ba-tag {
  position: absolute; top: 16px; z-index: 4;
  background: rgba(19, 36, 44, .78); color: var(--cream);
  backdrop-filter: blur(6px);
  font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: 999px;
}
.ba-tag-l { left: 16px; }
.ba-tag-r { right: 16px; background: rgba(43, 168, 181, .9); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--cut, 55%); z-index: 5;
  width: 0; display: flex; align-items: center; justify-content: center;
}
.ba-line { position: absolute; top: 0; bottom: 0; width: 3px; background: var(--white); box-shadow: 0 0 14px rgba(0,0,0,.35); }
.ba-knob {
  position: relative; z-index: 2;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--white); color: var(--ink);
  display: grid; place-items: center;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .3);
}
.ba-knob svg { width: 22px; height: 22px; }

/* ===========================================================
   BENTO
   =========================================================== */
.details { background: var(--cream); }
.bento {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.bento-card {
  background: var(--white); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-soft);
  border: 1px solid rgba(19, 36, 44, .06);
  display: flex; flex-direction: column; gap: 6px;
  transition: transform .35s var(--ease-out), box-shadow .35s;
}
.bento-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.bento-card h4 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 22px; line-height: 1.15; margin: 0;
}
.bento-card h4 em { font-style: italic; color: var(--coral); }
.bento-card > p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* swap reel */
.swap-demo {
  margin-top: auto; padding-top: 18px;
  display: flex; align-items: baseline; gap: 10px;
  font-size: 19px; font-weight: 600;
}
.swap-amt { color: var(--ink-soft); font-size: 15px; font-weight: 500; }
.swap-reel-mask { display: inline-block; height: 1.45em; overflow: hidden; vertical-align: bottom; }
.swap-reel { display: flex; flex-direction: column; animation: reel 8s var(--ease-out) infinite; }
.swap-reel span { height: 1.45em; color: var(--teal-deep); }
@keyframes reel {
  0%, 18% { transform: translateY(0); }
  25%, 43% { transform: translateY(-1.45em); }
  50%, 68% { transform: translateY(-2.9em); }
  75%, 93% { transform: translateY(-4.35em); }
  100% { transform: translateY(-5.8em); }
}

/* servings */
.servings-demo { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.servings-row { font-size: 16px; color: var(--ink-soft); }
.servings-row span { font-weight: 700; color: var(--ink); display: inline-block; min-width: 52px; }
.servings-slider { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.servings-slider input { flex: 1; accent-color: var(--coral); }
.servings-slider output { font-weight: 700; font-size: 14px; white-space: nowrap; }

/* chat */
.chat-demo { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.chat-bubble {
  max-width: 92%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.4;
}
.chat-bubble.user { align-self: flex-end; background: var(--ink); color: var(--cream); border-bottom-right-radius: 4px; }
.chat-bubble.bot { align-self: flex-start; background: var(--cream-2); border-bottom-left-radius: 4px; }
.chat-typing { display: inline-flex; gap: 4px; }
.chat-typing i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ink-soft);
  animation: typing 1.1s ease-in-out infinite;
}
.chat-typing i:nth-child(2) { animation-delay: .15s; }
.chat-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 100% { opacity: .3; translate: 0 0; } 50% { opacity: 1; translate: 0 -3px; } }
.chat-answer { display: none; }
.chat-demo.answered .chat-typing { display: none; }
.chat-demo.answered .chat-answer { display: inline; animation: fade-in .4s ease both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* units flip */
.units-flip {
  margin-top: auto; position: relative;
  border: 0; cursor: pointer; font: inherit;
  background: transparent; padding: 0;
  height: 56px; perspective: 600px; text-align: left;
}
.units-face {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  padding: 0 18px; border-radius: 14px;
  font-weight: 700; font-size: 16px;
  backface-visibility: hidden;
  transition: transform .6s var(--ease-out);
}
.units-front { background: var(--cream-2); color: var(--ink); }
.units-back { background: var(--teal); color: var(--white); transform: rotateX(180deg); }
.units-flip.flipped .units-front { transform: rotateX(-180deg); }
.units-flip.flipped .units-back { transform: rotateX(0deg); }

/* share avatars */
.share-demo { margin-top: auto; padding-top: 18px; display: flex; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg, var(--teal)); color: var(--white);
  font-weight: 800; font-size: 16px;
  border: 3px solid var(--white);
  margin-left: -10px;
  transition: translate .25s var(--ease-out);
}
.avatar:first-child { margin-left: 0; }
.share-demo:hover .avatar { translate: 0 -4px; }
.share-demo:hover .avatar:nth-child(2) { transition-delay: .05s; }
.share-demo:hover .avatar:nth-child(3) { transition-delay: .1s; }
.share-demo:hover .avatar:nth-child(4) { transition-delay: .15s; }
.avatar.invite { background: var(--cream-2); color: var(--ink); border-style: dashed; border-color: var(--ink-soft); }

/* offline */
.offline-demo {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--cream-2); padding: 10px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
}
.offline-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--sun);
  animation: pulse 2s ease-in-out infinite;
}

/* ===========================================================
   BIG SCREEN / WEB APP
   =========================================================== */
.bigscreen { background: var(--cream); position: relative; overflow: hidden; }
.bigscreen-blob {
  position: absolute; width: 760px; height: 760px; border-radius: 50%;
  background: radial-gradient(circle, rgba(43,168,181,.18), transparent 62%);
  top: -260px; left: 50%; transform: translateX(-50%); pointer-events: none;
}
.center { text-align: center; }
.eyebrow.center { justify-content: center; }
.sec-title.center, .sec-sub.center { margin-left: auto; margin-right: auto; }

.browser {
  position: relative; margin: clamp(40px, 5vw, 60px) auto 0;
  max-width: 1000px;
  background: var(--white); border-radius: 16px;
  box-shadow: 0 40px 90px -30px rgba(19, 36, 44, .45), 0 0 0 1px rgba(19,36,44,.06);
  overflow: hidden;
}
.browser-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 18px; background: var(--cream-2);
  border-bottom: 1px solid rgba(19, 36, 44, .08);
}
.browser-dots { display: flex; gap: 7px; }
.browser-dots i { width: 12px; height: 12px; border-radius: 50%; background: #d8cfbd; }
.browser-dots i:nth-child(1) { background: #ED6A5E; }
.browser-dots i:nth-child(2) { background: #F4BF4F; }
.browser-dots i:nth-child(3) { background: #61C554; }
.browser-url {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--ink-soft);
  border-radius: 999px; padding: 7px 16px;
  font-size: 13.5px; font-weight: 600; text-decoration: none;
  margin: 0 auto; min-width: min(300px, 60%); justify-content: center;
  transition: color .25s, box-shadow .25s;
}
a.browser-url:hover { color: var(--teal-deep); box-shadow: 0 0 0 2px rgba(43,168,181,.35); }
.browser-url svg { width: 13px; height: 13px; }

.bigscreen-cta {
  margin-top: clamp(34px, 4vw, 48px);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.bigscreen-cta-note { font-size: 14px; color: var(--ink-soft); }

.browser-screen { aspect-ratio: 16 / 10; background: var(--cream); }
.webapp-mock { display: flex; height: 100%; font-family: var(--font-body); }
.webapp-side {
  width: 26%; max-width: 210px; flex: none;
  background: var(--ink); color: var(--cream);
  padding: 5% 4%; display: flex; flex-direction: column; gap: 22px;
}
.webapp-logo { height: 26px; width: auto; filter: brightness(0) invert(1); align-self: flex-start; }
.webapp-nav { display: flex; flex-direction: column; gap: 6px; }
.webapp-nav span {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; color: rgba(247,241,230,.7);
}
.webapp-nav span svg { width: 17px; height: 17px; }
.webapp-nav span.active { background: rgba(43,168,181,.22); color: var(--cream); }
.webapp-main { flex: 1; padding: 3.5% 4%; display: flex; flex-direction: column; min-width: 0; }
.webapp-topbar { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.webapp-topbar strong { font-family: var(--font-display); font-size: clamp(18px, 2.4vw, 28px); }
.webapp-week { font-size: 12px; font-weight: 700; color: var(--teal-deep); }
.week-board { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; flex: 1; }
.wb-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wb-day { font-size: 10px; font-weight: 800; color: var(--ink-soft); text-align: center; letter-spacing: .04em; }
.wb-slot {
  flex: 1; border-radius: 9px; overflow: hidden;
  background: var(--white); box-shadow: 0 3px 8px -4px rgba(19,36,44,.25);
}
.wb-slot img { width: 100%; height: 100%; object-fit: cover; }
.wb-slot.add {
  display: grid; place-items: center;
  background: transparent; border: 1.5px dashed rgba(19,36,44,.18);
  color: var(--ink-soft); font-weight: 700; box-shadow: none;
}

.bigscreen-points {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(34px, 4vw, 52px);
  max-width: 1000px; margin-left: auto; margin-right: auto;
}
.bs-point { text-align: center; }
.bs-ico {
  display: inline-grid; place-items: center;
  width: 52px; height: 52px; border-radius: 15px;
  background: var(--white); box-shadow: var(--shadow-soft);
  font-size: 24px; margin-bottom: 14px;
}
.bs-point strong { display: block; font-size: 17px; margin-bottom: 6px; }
.bs-point p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* CTA web link */
.web-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 26px; text-decoration: none;
  color: var(--cream); font-weight: 600; font-size: 15px;
  opacity: .85; transition: opacity .25s, gap .25s var(--ease-out);
}
.web-link:hover { opacity: 1; gap: 12px; }
.web-link svg { width: 18px; height: 18px; color: var(--teal); }

/* ===========================================================
   PRICING
   =========================================================== */
.pricing { background: var(--white); }
.price-grid {
  margin-top: clamp(40px, 5vw, 60px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch;
}
.price-card {
  background: var(--cream); border-radius: var(--radius);
  padding: 32px 28px; display: flex; flex-direction: column;
  border: 1px solid rgba(19, 36, 44, .08);
  transition: transform .35s var(--ease-out), box-shadow .35s;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.price-card.featured {
  background: var(--ink); color: var(--cream);
  position: relative; overflow: hidden;
  transform: scale(1.03);
}
.price-card.featured:hover { transform: scale(1.03) translateY(-6px); }
.price-card.featured::after {
  content: ""; position: absolute; top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .12), transparent);
  animation: shine 4.5s ease-in-out infinite;
}
@keyframes shine { 0%, 60% { left: -80%; } 100% { left: 130%; } }
.featured-tag {
  position: absolute; top: 18px; right: 18px;
  background: var(--coral); color: var(--white);
  font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}
.price-name { font-weight: 800; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.price-num { font-family: var(--font-display); font-size: 46px; font-weight: 600; margin: 8px 0 4px; }
.price-num span { font-size: 18px; font-family: var(--font-body); font-weight: 500; opacity: .65; }
.price-desc { margin: 0 0 18px; font-size: 15px; opacity: .8; }
.price-card ul { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.price-card li { display: flex; gap: 10px; font-size: 15px; }
.price-card li::before { content: "✓"; color: var(--teal); font-weight: 800; }
.price-card.featured .btn { background: var(--coral); }
.price-card.featured .btn:hover { background: #f57f55; }

/* ===========================================================
   FAQ
   =========================================================== */
.faq { background: var(--cream); }
.faq-list { margin-top: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; gap: 12px; }
.faq-list details {
  background: var(--white); border-radius: 18px;
  border: 1px solid rgba(19, 36, 44, .08);
  overflow: hidden;
}
.faq-list summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px; font-weight: 700; font-size: 17px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-chev {
  flex: none; width: 12px; height: 12px;
  border-right: 2.5px solid var(--coral); border-bottom: 2.5px solid var(--coral);
  transform: rotate(45deg); transition: transform .35s var(--ease-out);
}
.faq-list details[open] .faq-chev { transform: rotate(225deg); }
.faq-list details p { margin: 0; padding: 0 24px 22px; color: var(--ink-soft); }

/* ===========================================================
   CTA + FOOTER
   =========================================================== */
.cta {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--cream);
  padding: clamp(90px, 12vw, 150px) clamp(20px, 4vw, 48px);
  text-align: center;
}
.cta::before {
  content: ""; position: absolute;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 168, 181, .25), transparent 65%);
  top: -300px; left: 50%; transform: translateX(-50%);
}
.cta-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.cta h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(38px, 5.4vw, 66px); line-height: 1.04; margin: 0 0 16px;
}
.cta h2 em { font-style: italic; color: var(--sun); }
.cta p { color: rgba(247, 241, 230, .75); font-size: 18px; margin: 0 0 34px; }

.footer {
  background: var(--ink); color: rgba(247, 241, 230, .6);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 26px clamp(20px, 4vw, 48px);
  border-top: 1px solid rgba(247, 241, 230, .12);
  font-size: 14px;
}
.footer-links { display: flex; gap: 10px; }
.footer-links a { color: var(--cream); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--teal); }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-sub { max-width: 60ch; }
  .hero-ctas { justify-content: center; }
  .hero-stage { min-height: 0; margin-top: 36px; }
  .float-card-a { left: 2%; }
  .float-card-b { right: 2%; }

  .chaos-stage { grid-template-columns: 1fr; gap: 40px; align-items: stretch; }
  .chaos-visual { margin-bottom: 0; }
  .recipe-stack { max-width: 220px; margin: 8px auto 0; }

  .showcase-grid { grid-template-columns: 1fr; }
  .showcase-sticky { display: none; }
  .showcase-steps { gap: 56px; padding: 0; }
  .step { opacity: 1; transform: none; }
  /* On mobile, only show the top of each phone — a full phone is too tall.
     A mask dissolves the lower part into the page, so there's no hard cut. */
  .step-phone { display: block; width: min(230px, 64%); margin: 0 0 20px; }
  .step-phone.phone {
    aspect-ratio: auto; height: 260px;
    border-bottom: 0; border-radius: 34px 34px 0 0;
    box-shadow: 0 24px 50px -26px rgba(19, 36, 44, .5);
    -webkit-mask-image: linear-gradient(to bottom, #000 52%, transparent 96%);
    mask-image: linear-gradient(to bottom, #000 52%, transparent 96%);
  }
  .step-phone.phone img { object-position: top center; }

  .magic-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bigscreen-points { grid-template-columns: 1fr; max-width: 420px; gap: 28px; }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .price-card.featured { transform: none; }
  .price-card.featured:hover { transform: translateY(-6px); }
}

@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .float-card { width: 138px; }
  .float-card img { height: 70px; }
  .footer { justify-content: center; text-align: center; }
  .webapp-side { display: none; }
  .browser-screen { aspect-ratio: 5 / 4; }
  .week-board { gap: 5px; }
  .wb-slot { border-radius: 7px; }
}

/* ===========================================================
   REDUCED MOTION
   =========================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal], .hero-title .w, .step { opacity: 1 !important; transform: none !important; }
}
