/* YouChef homepage. Shared tokens, nav, buttons, FAQ, final card and footer
   come from home.css; everything prefixed hx- belongs to this page.
   Motion is driven by landing.js (scroll reveals, the hero scene, the demos). */

.landing { background: var(--paper); }
.landing h2 em { font-size: 1.1em; }
.landing .nav { padding: 18px 0; }
.landing section[id] { scroll-margin-top: 84px; }

/* Sticky bar: a floating glass pill, see-through on the tomato hero, paper once scrolled. */
.hx-bar { position: sticky; top: 0; z-index: 30; height: var(--bar-h); padding: 14px 16px 0; }
.landing { --bar-h: 92px; }
.landing .hx-bar .nav { width: auto; max-width: 1120px; padding: 10px 12px 10px 26px; border-radius: 34px; background: rgba(255,251,244,.2); border: 1px solid rgba(27,26,23,.1); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); transition: background .3s, box-shadow .3s, border-color .3s; }
.hx-bar .logo span { color: var(--paper); }
.hx-bar .nav-links { color: var(--ink); }
.hx-bar .nav-links a:hover { color: var(--paper); }
.landing .hx-bar.is-scrolled .nav { background: rgba(255,251,244,.88); border-color: var(--rule); box-shadow: 0 10px 30px -18px rgba(27,26,23,.4); }
.hx-bar.is-scrolled .logo span { color: var(--tomato); }
.hx-bar.is-scrolled .nav-links { color: var(--ink-2); }
.hx-bar.is-scrolled .nav-links a:hover { color: var(--tomato); }

/* ── Reveal on scroll ── */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), transform .8s cubic-bezier(.2,.8,.2,1.15) var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* The hero plays on load, without waiting for the observer. */
.js .hx-hero [data-reveal] { opacity: 1; transform: none; transition: none; animation: hx-rise .8s cubic-bezier(.2,.8,.2,1.1) var(--d, 0ms) both; }

/* ── Hero: centred stack, the bar floats over it ── */
.hx-hero { position: relative; isolation: isolate; margin-top: calc(-1 * var(--bar-h)); padding: calc(var(--bar-h) + 70px) 0 40px; overflow: hidden; color: var(--ink); background: radial-gradient(ellipse 70% 55% at 50% 35%, #F35E3F, var(--tomato) 60%, #E2401F); }
.hx-hero-stack { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hx-pill { display: inline-block; margin: 0 0 22px; padding: 9px 16px; border-radius: 22px; background: rgba(27,26,23,.12); color: var(--ink); font-weight: 800; font-size: 14.5px; }
.hx-title { font-size: clamp(60px, 9.6vw, 132px); line-height: .92; letter-spacing: -0.055em; color: var(--ink); }
.hx-line { display: block; }
.hx-title em { color: var(--paper); font-size: 1.12em; line-height: 1; letter-spacing: -0.02em; }
.hx-lead { max-width: 560px; margin: 22px 0 30px; font-size: 20px; line-height: 1.45; color: rgba(27,26,23,.82); font-weight: 500; }
.hx-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; width: 100%; }
.hx-ctas .hx-wait { margin-inline: auto; text-align: left; }

/* Store badges, white with a black outline */
.hx-store { display: inline-flex; align-items: center; gap: 12px; height: 64px; padding: 0 24px 0 18px; border-radius: 16px; background: #fff; color: #000; border: 1.5px solid rgba(0,0,0,.85); transition: transform .2s cubic-bezier(.3,1.6,.5,1); }
.hx-store:hover { transform: translateY(-3px); }
.hx-store svg { width: 34px; height: 34px; flex: none; }
.hx-store span { display: flex; flex-direction: column; text-align: left; line-height: 1.05; font-family: -apple-system, "SF Pro Display", var(--body); font-weight: 600; font-size: 25px; letter-spacing: -0.02em; white-space: nowrap; }
.hx-store small { font-size: 13px; font-weight: 500; letter-spacing: 0; }
.hx-store-play small { text-transform: uppercase; font-size: 12px; letter-spacing: .4px; }

/* Ingredients floating around the edges, blurred when "far" */
.hx-ingredients { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hx-ingredients img { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: auto; rotate: var(--r); opacity: var(--o); filter: blur(var(--b)) drop-shadow(0 12px 14px rgba(122,30,14,.3)); animation: hx-ingredient var(--t) ease-in-out var(--dl) infinite; }
@keyframes hx-ingredient { 50% { transform: translateY(-16px) rotate(6deg); } }

.hx-hero .hx-feast-wrap { max-width: 460px; margin-top: 40px; }

/* The feast scene: drawn at the app's 390 × 392 design size, scaled by JS. */
.hx-feast-wrap { position: relative; width: 100%; max-width: 560px; margin-inline: auto; aspect-ratio: 390 / 392; }
.hx-feast { position: absolute; left: 0; top: 0; width: 390px; height: 392px; transform-origin: 0 0; transform: scale(var(--s, 1)); cursor: pointer; }
.hx-feast-shadow { position: absolute; top: 376px; left: 150px; width: 90px; height: 12px; border-radius: 6px; background: rgba(122,30,14,.35); }
.hx-feast-ring { position: absolute; top: 258px; left: 155px; width: 80px; height: 80px; border-radius: 50%; border: 4px solid var(--paper); opacity: 0; }
.hx-chef { position: absolute; top: 202px; left: 105px; width: 180px; height: 180px; transform-origin: 50% 100%; }
.hx-chef img { position: absolute; bottom: 0; left: 50%; translate: -50% 0; height: 172px; width: auto; opacity: 0; }
.hx-chef img[data-pose="chew"] { height: 177px; }
.hx-chef img[data-pose="spot"] { opacity: 1; }
.hx-logo { position: absolute; width: 66px; height: 66px; border-radius: 17px; display: grid; place-items: center; box-shadow: 0 6px 12px rgba(122,30,14,.3); will-change: transform, opacity; }
.hx-logo svg { width: 40px; height: 40px; overflow: visible; }
.hx-l-tiktok { left: 33px; top: 41px; background: #010101; }
.hx-l-tiktok svg { width: 36px; height: 36px; }
.hx-l-instagram { left: 117px; top: 17px; background: linear-gradient(45deg, #FEDA75, #FA7E1E, #D62976, #962FBF, #4F5BD5); }
.hx-l-youtube { left: 203px; top: 37px; background: #fff; }
.hx-l-pinterest { left: 289px; top: 23px; background: #fff; }
.hx-l-facebook { left: 157px; top: 99px; background: #fff; }
.hx-fcard { position: absolute; width: 106px; height: 148px; border-radius: 16px; background: var(--paper); padding: 5px; box-shadow: 0 10px 14px rgba(122,30,14,.3); opacity: 0; will-change: transform, opacity; }
.hx-fcard[data-card="0"] { left: 21px; top: 38px; }
.hx-fcard[data-card="1"] { left: 263px; top: 38px; }
.hx-fcard[data-card="2"] { left: 142px; top: 10px; }
.hx-fcard-photo { position: relative; height: 72px; border-radius: 12px; overflow: hidden; background: var(--flour); }
.hx-fcard-photo img { width: 100%; height: 100%; object-fit: cover; }
.hx-check { position: absolute; top: 5px; right: 5px; width: 20px; height: 20px; border-radius: 50%; background: var(--basil); display: grid; place-items: center; transform: scale(0); }
.hx-check svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.hx-fcard p { margin: 0; padding: 0 4px; }
.hx-fcard-label { padding-top: 6px !important; font-size: 7.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--tomato); }
.hx-fcard-title { margin-top: 2px !important; font-family: var(--display); font-weight: 800; font-size: 12px; line-height: 14px; letter-spacing: -0.3px; }
.hx-fcard-meta { margin-top: 2px !important; font-size: 8.5px; color: var(--mute); }
.hx-feast.is-idle .hx-chef { animation: hx-bob 2.4s ease-in-out infinite; }
.hx-feast.is-idle .hx-fcard { animation: hx-drift 4s ease-in-out infinite; }
.hx-feast.is-idle .hx-fcard[data-card="1"] { animation-delay: -1.3s; }
.hx-feast.is-idle .hx-fcard[data-card="2"] { animation-delay: -2.6s; }

/* ── Ribbon ── */
.hx-ribbon { background: var(--ink); overflow: hidden; padding: 20px 0; transform: rotate(-1.6deg); margin: -26px -10px 0; position: relative; z-index: 2; }
.hx-ribbon-track { display: flex; gap: 28px; width: max-content; animation: marquee 40s linear infinite; }
.hx-ribbon span { color: var(--paper); font-family: var(--display); font-weight: 800; font-size: 32px; letter-spacing: -0.03em; white-space: nowrap; }
.hx-ribbon b { color: var(--saffron); font-size: 24px; align-self: center; }

/* ── How it works ── */
.hx-how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: center; padding: 140px 0 120px; }
.hx-sub { margin: 16px 0 34px; color: var(--ink-2); font-size: 19px; max-width: 460px; }
.hx-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hx-step { position: relative; width: 100%; display: flex; gap: 18px; align-items: flex-start; text-align: left; padding: 20px 22px 24px; border: 1.5px solid var(--rule); border-radius: 24px; background: var(--card); color: var(--ink); font: inherit; cursor: pointer; overflow: hidden; transition: border-color .3s, background .3s, transform .3s cubic-bezier(.3,1.6,.5,1); }
.hx-step:hover { transform: translateX(4px); }
.hx-step.is-active { border-color: var(--ink); background: var(--paper); }
.hx-step-num { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--flour); font: 800 16px var(--display); transition: background .3s, color .3s; }
.hx-step.is-active .hx-step-num { background: var(--tomato); color: #fff; }
.hx-step-body { display: grid; gap: 4px; }
.hx-step-body strong { font: 800 23px/1.1 var(--display); letter-spacing: -0.02em; }
.hx-step-body span { color: var(--ink-2); font-size: 16px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .45s ease, opacity .35s; }
.hx-step.is-active .hx-step-body span { max-height: 150px; opacity: 1; }
.hx-step-bar { position: absolute; left: 22px; right: 22px; bottom: 10px; height: 4px; border-radius: 2px; background: var(--flour); opacity: 0; transition: opacity .3s; }
.hx-step-bar i { display: block; height: 100%; width: 0; border-radius: 2px; background: var(--tomato); }
.hx-step.is-active .hx-step-bar { opacity: 1; }
.hx-step.is-active .hx-step-bar i { animation: hx-fill var(--step-ms, 4200ms) linear forwards; }
.hx-steps.is-paused .hx-step-bar i { animation-play-state: paused; }
.hx-how-pin { display: contents; }

.hx-phone-zone { position: relative; height: 640px; display: grid; place-items: center; }
.hx-blob { position: absolute; width: 520px; height: 520px; border-radius: 50%; background: var(--peach); animation: hx-morph 12s ease-in-out infinite; }
.hx-phone { position: relative; width: 300px; height: 610px; padding: 10px; border-radius: 48px; background: var(--ink); box-shadow: 0 40px 70px -24px rgba(27,26,23,.45); transform: rotate(3deg); transition: transform .8s cubic-bezier(.3,1.4,.5,1); }
.hx-phone[data-step="1"] { transform: rotate(-2deg); }
.hx-phone[data-step="2"] { transform: rotate(2deg) translateY(-6px); }
.hx-screen { position: relative; height: 100%; border-radius: 39px; overflow: hidden; background: var(--paper); }
.hx-sc { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .45s, visibility .45s; }
.hx-phone[data-step="0"] .hx-sc-video, .hx-phone[data-step="1"] .hx-sc-import, .hx-phone[data-step="2"] .hx-sc-recipe { opacity: 1; visibility: visible; }

/* 1 · video */
.hx-sc-video { background: #111; }
.hx-sc-video > img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.1); transform: scale(1.15); }
.hx-phone[data-step="0"] .hx-sc-video > img { animation: hx-kenburns 4.2s ease-out forwards; }
.hx-vbadge { position: absolute; top: 20px; left: 16px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 10px; background: rgba(27,26,23,.65); color: #fff; font-size: 11px; font-weight: 800; }
.hx-vbadge svg { width: 10px; height: 10px; fill: #fff; }
.hx-vside { position: absolute; right: 12px; top: 230px; display: grid; gap: 18px; }
.hx-vside i { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); color: #fff; font-style: normal; font-size: 18px; backdrop-filter: blur(4px); }
.hx-share { background: var(--tomato) !important; }
.hx-phone[data-step="0"] .hx-share { animation: hx-pulse 1.2s ease-in-out .5s 2; }
.hx-vcap { position: absolute; left: 16px; right: 64px; bottom: 120px; margin: 0; color: #fff; font-size: 12px; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.hx-vcap b { display: block; font-size: 13px; }
.hx-sheet { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 16px 26px; border-radius: 26px 26px 0 0; background: var(--paper); transform: translateY(105%); }
.hx-phone[data-step="0"] .hx-sheet { animation: hx-sheet-up .55s cubic-bezier(.2,1.3,.4,1) 1.6s forwards; }
.hx-grab { display: block; width: 36px; height: 4px; margin: 0 auto 10px; border-radius: 2px; background: var(--rule); }
.hx-sheet p { margin: 0 0 12px; font: 800 13px var(--display); }
.hx-apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.hx-apps span { position: relative; display: grid; justify-items: center; gap: 5px; font-size: 9.5px; font-weight: 700; color: var(--ink-2); }
.hx-apps i { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-style: normal; font-size: 20px; color: #fff; }
.a-msg { background: #34C759; } .a-wa { background: #25D366; } .a-link { background: var(--flour); }
.a-yc { background: var(--tomato); font: 800 17px var(--display); letter-spacing: -1px; color: var(--ink) !important; }
.a-yc b { color: var(--paper); }
.hx-tap { position: absolute; top: 2px; left: 50%; width: 42px; height: 42px; margin-left: -21px; border-radius: 50%; background: rgba(27,26,23,.25); transform: scale(0); }
.hx-phone[data-step="0"] .hx-tap { animation: hx-tap .7s ease-out 2.7s forwards; }
.hx-phone[data-step="0"] .is-yc i { animation: hx-press .5s ease 2.7s; }

/* 2 · import */
.hx-sc-import { display: flex; flex-direction: column; align-items: center; padding: 34px 22px 0; }
.hx-close { align-self: flex-start; padding: 5px 11px; border-radius: 11px; background: var(--flour); font-size: 11px; font-weight: 700; }
.hx-halo { width: 170px; height: 170px; margin-top: 30px; border-radius: 50%; background: var(--peach); display: grid; place-items: center; }
.hx-halo img { width: 120px; height: auto; }
.hx-phone[data-step="1"] .hx-halo { animation: hx-breathe 1.6s ease-in-out infinite; }
.hx-track { align-self: stretch; height: 8px; margin-top: 30px; border-radius: 4px; background: var(--flour); overflow: hidden; }
.hx-track i { display: block; height: 100%; width: 6%; border-radius: 4px; background: linear-gradient(90deg, var(--saffron), var(--tomato)); }
.hx-phone[data-step="1"] .hx-track i { animation: hx-load 3.8s cubic-bezier(.4,0,.2,1) forwards; }
.hx-stage { margin: 14px 0 0; color: var(--tomato-deep); font: 700 13px var(--display); transition: opacity .25s; }
.hx-sc-title { margin: 8px 0 0; font: 800 23px var(--display); letter-spacing: -0.03em; }
.hx-stages { display: flex; gap: 6px; margin-top: 22px; }
.hx-stages span { padding: 6px 11px; border-radius: 12px; background: var(--flour); color: var(--mute); font-size: 11px; font-weight: 800; transition: background .3s, color .3s; }
.hx-stages span.is-on { background: var(--basil); color: #fff; }

/* 3 · recipe */
.hx-sc-recipe { overflow: hidden; }
.hx-r-photo { width: 100%; height: 230px; object-fit: cover; }
.hx-r-body { position: relative; margin-top: -24px; padding: 18px 18px; border-radius: 24px 24px 0 0; background: var(--paper); }
.hx-r-ready { margin: 0; color: var(--tomato); font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.hx-r-title { margin: 4px 0 12px; font: 800 19px/1.05 var(--display); letter-spacing: -0.03em; }
.hx-r-stats { display: flex; padding: 8px 0; margin-bottom: 8px; border-radius: 14px; background: rgba(255,227,214,.7); }
.hx-r-stats span { flex: 1; text-align: center; color: var(--tomato-deep); font-size: 10px; font-weight: 600; }
.hx-r-stats b { display: block; color: var(--tomato); font: 800 16px var(--display); }
.hx-r-ings { list-style: none; margin: 0; padding: 0; }
.hx-r-ings li { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 12.5px; opacity: 0; transform: translateX(16px); }
.hx-r-ings img { width: 26px; height: 26px; padding: 3px; border-radius: 50%; background: var(--flour); }
.hx-phone[data-step="2"] .hx-r-ings li { animation: hx-slide-in .45s cubic-bezier(.2,1.3,.4,1) forwards; animation-delay: calc(.35s + var(--n, 0) * .14s); }
.hx-r-ings li:nth-child(2) { --n: 1; } .hx-r-ings li:nth-child(3) { --n: 2; } .hx-r-ings li:nth-child(4) { --n: 3; }
.hx-r-cta { display: block; margin-top: 10px; padding: 11px; border-radius: 18px; background: var(--tomato); color: #fff; text-align: center; font: 700 13px var(--display); }
.hx-phone[data-step="2"] .hx-r-photo { animation: hx-kenburns 4.2s ease-out forwards; }

.hx-float { position: absolute; padding: 11px 16px; border-radius: 20px; font: 700 15px var(--display); white-space: nowrap; box-shadow: 0 8px 20px -10px rgba(27,26,23,.35); }
.hx-float-a { left: 4%; top: 16%; background: var(--basil); color: #fff; rotate: -8deg; }
.hx-float-b { right: 2%; bottom: 18%; background: var(--card); border: 1.5px solid var(--rule); rotate: 6deg; }

/* ── Features bento ── */
.hx-features { padding: 40px 0 120px; }
.hx-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 44px; }
.hx-aside { max-width: 320px; margin: 0; color: var(--mute); font-size: 16px; }
.hx-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.hx-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 20px; min-height: 320px; padding: 30px; border-radius: 32px; transition: transform .35s cubic-bezier(.3,1.6,.5,1), opacity .7s, translate .8s; }
.hx-tile:hover { transform: translateY(-6px) rotate(-.5deg); }
.js .hx-tile[data-reveal] { transform: translateY(40px) scale(.97); }
.js .hx-tile[data-reveal].is-in { transform: none; }
.js .hx-tile[data-reveal].is-in:hover { transform: translateY(-6px) rotate(-.5deg); }
.hx-tile h3 { font-size: 30px; line-height: 1.02; letter-spacing: -0.035em; }
.hx-tile-text p { margin: 8px 0 0; opacity: .85; }
.hx-tile-text small { font-weight: 800; opacity: .8; font-size: 13px; }
.hx-span-2 { grid-column: span 2; } .hx-span-3 { grid-column: span 3; } .hx-span-4 { grid-column: span 4; } .hx-span-6 { grid-column: span 6; }
.hx-t-basil { background: var(--basil); color: var(--paper); }
.hx-t-peach { background: var(--peach); }
.hx-t-saffron { background: var(--saffron); }
.hx-t-card { background: var(--card); border: 1.5px solid var(--rule); }
.hx-t-basil-soft { background: var(--basil-soft); color: var(--basil); }
.hx-t-ink { background: var(--ink); color: var(--paper); }
.hx-t-tomato { background: var(--tomato); color: #fff; }
.hx-t-flour { background: var(--flour); }

/* Guided */
.hx-t-basil.hx-span-4 { flex-direction: row; align-items: center; gap: 30px; }
.hx-t-basil .hx-tile-text { flex: 1; }
.hx-guided { flex: 1.1; padding: 22px; border-radius: 24px; background: var(--paper); color: var(--ink); box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); rotate: 2deg; }
.hx-g-seg { display: flex; gap: 5px; }
.hx-g-seg i { flex: 1; height: 5px; border-radius: 3px; background: var(--flour); transition: background .4s; }
.hx-g-seg i.is-on { background: var(--tomato); }
.hx-g-of { margin: 14px 0 6px; color: var(--tomato); font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.hx-g-text { min-height: 88px; margin: 0; font: 800 21px/1.15 var(--display); letter-spacing: -0.02em; transition: opacity .3s, transform .3s; }
.hx-g-text.is-out { opacity: 0; transform: translateX(-18px); }
.hx-g-row { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.hx-g-timer { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 22px; background: var(--peach); color: var(--tomato-deep); }
.hx-g-timer svg { width: 30px; height: 30px; rotate: -90deg; }
.hx-g-timer circle { fill: none; stroke: rgba(239,74,42,.2); stroke-width: 4; }
.hx-g-timer .hx-g-arc { stroke: var(--tomato); stroke-linecap: round; stroke-dasharray: 94.25; stroke-dashoffset: var(--off, 0); transition: stroke-dashoffset 1s linear; }
.hx-g-timer b { font: 800 16px var(--display); font-variant-numeric: tabular-nums; }
.hx-g-timer.is-hidden { visibility: hidden; }
.hx-g-replay { padding: 9px 13px; border-radius: 18px; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 800; }

/* Portions */
.hx-portions { margin-top: auto; }
.hx-stepper { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 26px; background: var(--paper); box-shadow: 0 6px 14px -8px rgba(27,26,23,.35); }
.hx-stepper button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--ink); color: var(--paper); font: 800 20px var(--display); cursor: pointer; transition: transform .2s cubic-bezier(.3,1.6,.5,1), opacity .2s; }
.hx-stepper button:hover { transform: scale(1.1); }
.hx-stepper button:active { transform: scale(.92); }
.hx-stepper button:disabled { opacity: .3; cursor: default; transform: none; }
.hx-stepper output { min-width: 78px; text-align: center; font: 800 17px var(--display); }
.hx-portions ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.hx-portions li { display: flex; align-items: center; gap: 10px; font-size: 15.5px; }
.hx-portions li img { width: 34px; height: 34px; padding: 4px; border-radius: 50%; background: rgba(255,255,255,.7); }
[data-qty] { display: inline-block; min-width: 54px; font-variant-numeric: tabular-nums; }
[data-qty].is-bump { animation: hx-bump .35s cubic-bezier(.3,1.6,.5,1); }

/* Shopping */
.hx-shop { margin-top: auto; padding: 14px 16px; border-radius: 20px; background: var(--paper); }
.hx-aisle { margin: 8px 0 4px; color: var(--mute); font-size: 10.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.hx-aisle:first-child { margin-top: 0; }
.hx-item { display: flex; align-items: center; gap: 9px; margin: 0; padding: 4px 0; font-size: 14.5px; font-weight: 600; }
.js .hx-item:not(.is-shown) { opacity: 0; transform: translateY(10px); }
.hx-item img { width: 24px; height: 24px; }
.hx-item em { margin-left: auto; font-style: normal; color: var(--mute); font-size: 13px; }
.hx-item i { flex: none; width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--rule); position: relative; transition: background .25s, border-color .25s; }
.hx-item i::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; rotate: 45deg; scale: 0; transition: scale .25s cubic-bezier(.3,1.8,.5,1); }
.hx-item.is-checked i { background: var(--basil); border-color: var(--basil); }
.hx-item.is-checked i::after { scale: 1; }
.hx-item.is-checked { color: var(--mute); text-decoration: line-through; }
.hx-item.is-shown { animation: hx-slide-up .4s cubic-bezier(.2,1.3,.4,1) forwards; }

/* Nutrition */
.hx-nutri { margin-top: auto; }
.hx-kcal { margin: 0 0 14px; font-weight: 700; color: var(--mute); }
.hx-kcal b { font: 800 50px var(--display); letter-spacing: -0.04em; color: var(--tomato); font-variant-numeric: tabular-nums; }
.hx-kcal span { font-size: 13px; }
.hx-macro { display: grid; grid-template-columns: 76px 1fr 44px; align-items: center; gap: 10px; margin: 8px 0 0; font-size: 13.5px; font-weight: 700; }
.hx-macro i { height: 10px; border-radius: 5px; background: var(--flour); position: relative; overflow: hidden; }
.hx-macro i::after { content: ""; position: absolute; inset: 0; width: var(--w); border-radius: 5px; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.hx-macro:nth-of-type(3) i::after { transition-delay: .12s; } .hx-macro:nth-of-type(4) i::after { transition-delay: .24s; }
.is-playing .hx-macro i::after { transform: scaleX(1); }
.hx-macro b { text-align: right; }

/* Lighter */
.hx-light { margin-top: auto; display: grid; justify-items: start; gap: 12px; }
.hx-swap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font: 800 21px var(--display); letter-spacing: -0.02em; }
.hx-swap s { color: rgba(30,74,56,.5); text-decoration-thickness: 3px; text-decoration-color: var(--tomato); }
.hx-swap b { padding: 4px 12px; border-radius: 14px; background: var(--basil); color: var(--paper); }
.hx-gain { padding: 7px 14px; border-radius: 16px; background: var(--saffron); color: var(--ink); font: 800 18px var(--display); }
.hx-light.is-swapping .hx-swap, .hx-light.is-swapping .hx-gain { animation: hx-swap-out .3s ease forwards; }
.hx-light.is-swapped .hx-swap b, .hx-light.is-swapped .hx-gain { animation: hx-pop .5s cubic-bezier(.3,1.8,.5,1); }

/* Week */
.hx-t-ink.hx-span-3, .hx-t-tomato.hx-span-3 { flex-direction: row; align-items: center; }
.hx-t-ink .hx-tile-text, .hx-t-tomato .hx-tile-text { flex: 1; }
.hx-week { flex: 1.1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.hx-day { display: grid; justify-items: center; gap: 8px; }
.hx-day span { font-size: 12px; font-weight: 800; color: rgba(255,251,244,.55); }
.hx-day i { width: 100%; aspect-ratio: 3 / 5; border-radius: 14px; border: 1.5px dashed rgba(255,251,244,.25); background-size: cover; background-position: center; transition: border-color .3s; }
.hx-day i.is-filled { border-style: solid; border-color: transparent; animation: hx-drop .55s cubic-bezier(.2,1.4,.4,1); }

/* Cook Match */
.hx-match { position: relative; flex: 1; height: 230px; }
.hx-mcard { position: absolute; left: 50%; top: 50%; width: 150px; margin: -95px 0 0 -75px; padding: 6px 6px 10px; border-radius: 20px; background: var(--paper); color: var(--ink); box-shadow: 0 14px 28px -12px rgba(122,30,14,.6); transform: rotate(calc((var(--i) - 1) * 5deg)) translateY(calc(var(--i) * 6px)); transition: transform .6s cubic-bezier(.3,1.2,.5,1), opacity .5s; }
.hx-mcard img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 15px; }
.hx-mcard b { display: block; padding: 8px 4px 0; font: 800 14px var(--display); }
.hx-mcard.is-left { transform: translateX(-180px) rotate(-24deg); opacity: 0; }
.hx-mcard.is-right { transform: translateX(180px) rotate(24deg); opacity: 0; }
.hx-match-badge { position: absolute; left: 50%; top: 50%; translate: -50% -50%; padding: 10px 18px; border-radius: 20px; background: var(--saffron); color: var(--ink); font: 800 20px var(--display); white-space: nowrap; transform: scale(0) rotate(-8deg); transition: transform .45s cubic-bezier(.3,1.8,.5,1); }
.hx-match.is-match .hx-match-badge { transform: scale(1) rotate(-8deg); }

/* Fridge */
.hx-fridge { flex-direction: row; align-items: center; min-height: 0; gap: 26px; padding: 26px 34px; color: var(--ink); }
.hx-fridge-chef { width: 120px; height: auto; flex: none; animation: bounce 3s ease-in-out infinite; }
.hx-fridge .hx-tile-text { flex: 1; }
.hx-fridge h3 { font-size: 28px; }
.hx-fridge-chips { display: flex; flex-wrap: wrap; gap: 8px; max-width: 300px; }
.hx-fridge-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 6px; border-radius: 18px; background: var(--card); font-size: 14px; font-weight: 700; animation: hx-wobble 4s ease-in-out infinite; }
.hx-fridge-chips span:nth-child(2) { animation-delay: -1s; } .hx-fridge-chips span:nth-child(3) { animation-delay: -2s; } .hx-fridge-chips span:nth-child(4) { animation-delay: -3s; }
.hx-fridge-chips img { width: 24px; height: 24px; }
.hx-fridge .btn { flex: none; }

/* ── Recipes ── */
.hx-recipes { padding: 30px 0 120px; }
.hx-rgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.hx-rcard { --tint: var(--peach); }
.js .hx-rcard { opacity: 0; transform: translateY(80px) rotate(calc((var(--i) - 1.5) * 6deg)) scale(.8); }
.hx-rcard.is-in { animation: hx-card-land .8s cubic-bezier(.2,1.4,.4,1) forwards; animation-delay: calc(var(--i) * 110ms); }
.hx-r-basil { --tint: var(--basil-soft); } .hx-r-saffron { --tint: var(--saffron-soft); } .hx-r-flour { --tint: var(--flour); }
.hx-rcard-hit { display: flex; flex-direction: column; gap: 8px; width: 100%; height: 100%; padding: 10px 10px 18px; border: 0; border-radius: 28px; background: var(--tint); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: transform .35s cubic-bezier(.3,1.6,.5,1), box-shadow .35s; }
.hx-rcard:nth-child(odd) .hx-rcard-hit { rotate: -1.2deg; } .hx-rcard:nth-child(even) .hx-rcard-hit { rotate: 1.2deg; }
.hx-rcard-hit:hover, .hx-rcard-hit:focus-visible { transform: translateY(-8px) scale(1.02); rotate: 0deg; box-shadow: 0 24px 40px -22px rgba(27,26,23,.45); }
.hx-rcard-photo { position: relative; display: block; aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: var(--flour); }
.hx-rcard-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.hx-rcard-hit:hover .hx-rcard-photo img { transform: scale(1.07); }
.hx-rcard-src { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 11px; background: rgba(27,26,23,.7); color: #fff; font-size: 11.5px; font-weight: 800; }
.hx-rcard-title { padding: 6px 6px 0; font: 800 21px/1.08 var(--display); letter-spacing: -0.03em; }
.hx-rcard-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 0 6px; color: var(--ink-2); font-size: 13.5px; font-weight: 700; }
.hx-rcard-go { margin-top: auto; padding: 8px 6px 0; color: var(--tomato); font-weight: 800; font-size: 14.5px; }
.hx-rcard-go i { display: inline-block; font-style: normal; transition: transform .3s; }
.hx-rcard-hit:hover .hx-rcard-go i { transform: translateX(5px); }

/* Recipe dialog */
.hx-dialog { width: min(920px, calc(100% - 24px)); max-height: min(88vh, 860px); padding: 0; border: 0; border-radius: 32px; background: var(--paper); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(27,26,23,.5); overflow: hidden; }
.hx-dialog::backdrop { background: rgba(27,26,23,.5); backdrop-filter: blur(4px); }
.hx-dialog[open] { animation: hx-dialog-in .5s cubic-bezier(.2,1.3,.4,1); }
.hx-dialog[open]::backdrop { animation: hx-fade .3s ease; }
.hx-d-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; max-height: inherit; }
.hx-d-photo { position: relative; min-height: 100%; background: var(--flour); }
.hx-d-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hx-d-body { padding: 34px 34px 30px; overflow-y: auto; max-height: min(88vh, 860px); }
.hx-d-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 16px; cursor: pointer; transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.hx-d-close:hover { transform: rotate(90deg); }
.hx-d-src { margin: 0 0 6px; color: var(--tomato); font-size: 12px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.hx-d-body h3 { padding-right: 36px; font-size: 34px; line-height: 1; letter-spacing: -0.04em; }
.hx-d-facts { display: flex; margin: 18px 0 22px; padding: 10px 0; border-radius: 18px; background: rgba(255,227,214,.7); }
.hx-d-facts span { flex: 1; text-align: center; color: var(--tomato-deep); font-size: 12px; font-weight: 600; }
.hx-d-facts b { display: block; color: var(--tomato); font: 800 22px var(--display); }
.hx-d-section + .hx-d-section { margin-top: 24px; }
.hx-d-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hx-d-section h4 { margin: 0 0 10px; font: 800 20px var(--display); letter-spacing: -0.02em; }
.hx-d-row h4 { margin: 0; }
.hx-stepper-small button { width: 32px; height: 32px; font-size: 17px; }
.hx-stepper-small output { min-width: 66px; font-size: 15px; }
.hx-d-ings { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.hx-d-ings li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--rule); font-size: 14.5px; }
.hx-d-ings img, .hx-d-ings li > i { flex: none; width: 32px; height: 32px; padding: 4px; border-radius: 50%; background: var(--flour); }
.hx-d-ings b { min-width: 0; white-space: nowrap; }
.hx-d-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.hx-d-steps li { counter-increment: s; position: relative; padding: 12px 14px 12px 50px; border-radius: 18px; background: var(--card); border: 1.5px solid var(--rule); font-size: 15px; }
.hx-d-steps li::before { content: counter(s); position: absolute; left: 12px; top: 11px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font: 800 13px var(--display); }
.hx-d-steps em { display: inline-block; margin-top: 6px; padding: 3px 10px; border-radius: 10px; background: var(--peach); color: var(--tomato-deep); font-style: normal; font-size: 12.5px; font-weight: 800; }
.hx-d-steps span { display: block; }
.hx-d-cta { margin-top: 24px; }
.hx-dialog[open] .hx-d-ings li, .hx-dialog[open] .hx-d-steps li { animation: hx-slide-up .45s cubic-bezier(.2,1.3,.4,1) both; }
.hx-dialog[open] li:nth-child(2) { animation-delay: .04s; } .hx-dialog[open] li:nth-child(3) { animation-delay: .08s; } .hx-dialog[open] li:nth-child(4) { animation-delay: .12s; }
.hx-dialog[open] li:nth-child(5) { animation-delay: .16s; } .hx-dialog[open] li:nth-child(6) { animation-delay: .2s; } .hx-dialog[open] li:nth-child(n+7) { animation-delay: .24s; }
body.is-locked { overflow: hidden; }

/* Before / after */
.hx-compare s { text-decoration: none; -webkit-box-decoration-break: clone; box-decoration-break: clone; background: linear-gradient(var(--tomato), var(--tomato)) no-repeat 0 55% / 0 2px; transition: background-size .8s cubic-bezier(.6,0,.2,1) calc(var(--d, 0ms) + .5s); }
.row.is-in s { background-size: 100% 2px; }
.js .hx-compare .row[data-reveal] { transform: translateX(-30px); }
.js .hx-compare .row[data-reveal].is-in { transform: none; }

/* Final */
.hx-final-chef { width: 330px; height: auto; animation: hx-jump 2.4s cubic-bezier(.4,0,.4,1) infinite; }

/* ── Keyframes ── */
@keyframes hx-rise { from { opacity: 0; transform: translateY(26px); } }
@keyframes hx-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes hx-drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@keyframes hx-fill { to { width: 100%; } }
@keyframes hx-morph { 0%, 100% { border-radius: 50%; scale: 1; } 33% { border-radius: 46% 54% 52% 48% / 55% 45% 55% 45%; scale: 1.03; } 66% { border-radius: 55% 45% 48% 52% / 46% 54% 46% 54%; scale: .98; } }
@keyframes hx-kenburns { from { transform: scale(1.18); } to { transform: scale(1.02); } }
@keyframes hx-pulse { 50% { transform: scale(1.25); box-shadow: 0 0 0 10px rgba(239,74,42,.25); } }
@keyframes hx-sheet-up { to { transform: translateY(0); } }
@keyframes hx-tap { 0% { transform: scale(0); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes hx-press { 50% { transform: scale(.85); } }
@keyframes hx-breathe { 50% { transform: scale(1.05); } }
@keyframes hx-load { 0% { width: 6%; } 30% { width: 38%; } 60% { width: 66%; } 100% { width: 100%; } }
@keyframes hx-slide-in { to { opacity: 1; transform: none; } }
@keyframes hx-slide-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes hx-bump { 40% { transform: scale(1.25); color: var(--tomato); } }
@keyframes hx-swap-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes hx-pop { 0% { transform: scale(.4); } 100% { transform: scale(1); } }
@keyframes hx-drop { from { transform: translateY(-40px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes hx-wobble { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -5px; rotate: -2deg; } }
@keyframes hx-card-land { to { opacity: 1; transform: none; } }
@keyframes hx-dialog-in { from { opacity: 0; transform: translateY(40px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes hx-fade { from { opacity: 0; } }
@keyframes hx-jump { 0%, 100% { transform: translateY(0) scale(1, 1); } 12% { transform: translateY(0) scale(1.06, .92); } 40% { transform: translateY(-34px) scale(.97, 1.04); } 62% { transform: translateY(0) scale(1.05, .94); } 74% { transform: translateY(0) scale(1, 1); } }

@media (prefers-reduced-motion: reduce) {
  .hx-ingredients img { animation: none; }
  [data-reveal], .hx-rcard { opacity: 1 !important; transform: none !important; }
  .hx-r-ings li, .hx-item { opacity: 1 !important; transform: none !important; }
  .hx-sheet { transform: none !important; }
  .hx-track i { width: 62% !important; }
  .hx-macro i::after { transform: scaleX(1) !important; }
  .hx-compare s { background-size: 100% 2px; }
}

/* ── Tablet ── */
@media (max-width: 1040px) {
  .landing .nav-links { gap: 22px; font-size: 15px; }
  .landing .nav-links a { white-space: nowrap; }
  .hx-how { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 110px; }
  .hx-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-span-2, .hx-span-3 { grid-column: span 1; }
  .hx-span-4, .hx-span-6 { grid-column: span 2; }
  .hx-t-ink.hx-span-3, .hx-t-tomato.hx-span-3 { flex-direction: column; align-items: stretch; }
  .hx-rgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-fridge { flex-wrap: wrap; }

  /* How it works, scroll-driven: the section is tall, the phone stays pinned
     and each third of the scroll plays one step (landing.js sets --fill). */
  .hx-how { display: block; height: 330svh; padding: 60px 0 0; }
  .hx-how-pin { position: sticky; top: var(--bar-h); height: calc(100svh - var(--bar-h)); display: flex; flex-direction: column; padding-top: 22px; }
  .hx-how h2 { font-size: clamp(32px, 8.4vw, 46px); }
  .hx-how .hx-sub { display: none; }
  .hx-steps { position: relative; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 18px; padding-bottom: 66px; }
  .hx-step { position: static; display: block; padding: 0; border: 0; border-radius: 0; background: none; overflow: visible; }
  .hx-step:hover { transform: none; }
  .hx-step.is-active { background: none; }
  .hx-step-num { display: none; }
  .hx-step-bar { position: static; display: block; height: 5px; opacity: 1; background: var(--rule); }
  .hx-step-bar i, .hx-step.is-active .hx-step-bar i { width: calc(var(--fill, 0) * 100%); animation: none; }
  .hx-step-body { position: absolute; left: 0; right: 0; top: 17px; opacity: 0; transition: opacity .3s; pointer-events: none; }
  .hx-step.is-active .hx-step-body { opacity: 1; }
  .hx-step-body strong { font-size: 22px; }
  .hx-step-body span { font-size: 15px; line-height: 1.35; }
  .hx-how .hx-phone-zone { flex: 1; min-height: 0; height: auto; display: block; }
  .hx-how .hx-blob { left: 50%; top: 50%; translate: -50% -50%; }
  .hx-how .hx-phone { --ps: .9; position: absolute; left: 50%; top: 50%; translate: -50% -50%; transform: scale(var(--ps)) rotate(3deg); }
  .hx-how .hx-phone[data-step="1"] { transform: scale(var(--ps)) rotate(-2deg); }
  .hx-how .hx-phone[data-step="2"] { transform: scale(var(--ps)) rotate(2deg); }
}

@media (max-width: 860px) {
  .landing .nav-links { display: none; }
}

/* ── Phone ── */
@media (max-width: 680px) {
  .hx-bar .btn-small { padding: 10px 14px; font-size: 14px; }
  .hx-title { font-size: clamp(54px, 16vw, 76px); }
  .landing { --bar-h: 80px; }
  .landing .hx-bar .nav { padding: 8px 8px 8px 20px; }
  .hx-hero { padding-top: calc(var(--bar-h) + 50px); }
  .hx-lead { font-size: 17.5px; margin: 18px 0 24px; }
  .hx-ctas { gap: 10px; }
  .hx-store { flex: 1 1 0; min-width: 0; justify-content: center; height: 56px; padding: 0 12px; gap: 8px; border-radius: 14px; }
  .hx-store svg { width: 26px; height: 26px; }
  .hx-store span { font-size: 19px; }
  .hx-store small { font-size: 10.5px; }
  .hx-store-play small { font-size: 9.5px; }
  .hx-hero .hx-feast-wrap { margin-top: 24px; }
  .hx-ingredients img { width: calc(var(--w) * .7); }
  .hx-ingredients .hx-wide-only { display: none; }
  .hx-ribbon span { font-size: 24px; }
  .hx-how .hx-phone { --ps: .78; }
  .hx-blob { width: 340px; height: 340px; }
  .hx-float { font-size: 13px; }
  .hx-head { flex-direction: column; align-items: flex-start; }
  .hx-bento { grid-template-columns: minmax(0, 1fr); }
  .hx-span-2, .hx-span-3, .hx-span-4, .hx-span-6 { grid-column: span 1; }
  .hx-t-basil.hx-span-4 { flex-direction: column; align-items: stretch; }
  .hx-tile { padding: 24px; min-height: 0; }
  .hx-tile h3 { font-size: 26px; }
  .hx-fridge { flex-direction: column; align-items: flex-start; }
  .hx-rgrid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; gap: 14px; margin: 0 -24px; padding: 10px 24px 24px; scroll-padding-inline: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .hx-rgrid::-webkit-scrollbar { display: none; }
  .hx-rcard { scroll-snap-align: center; }
  .hx-d-inner { grid-template-columns: minmax(0, 1fr); }
  .hx-d-photo { height: 200px; min-height: 0; }
  .hx-d-body { max-height: none; padding: 24px 20px; }
  .hx-dialog { overflow-y: auto; }
  .hx-d-body h3 { font-size: 28px; }
  .hx-d-ings { grid-template-columns: minmax(0, 1fr); }
  .hx-final-chef { width: 220px; }
}

/* Short phones (iPhone SE): a smaller phone so the pinned block fits. */
@media (max-width: 1040px) and (max-height: 740px) {
  .hx-how .hx-phone { --ps: .52; }
  .hx-how .hx-blob { width: 280px; height: 280px; }
  .hx-steps { margin-top: 12px; }
}
