/* ==========================================================================
   HAPEE · Home page
   ========================================================================== */

/* ---------------- HERO ---------------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; padding: calc(var(--header-h) + 70px) 0 120px; color: #fff; overflow: hidden; isolation: isolate;
  background: radial-gradient(1100px 700px at 78% 25%, #0e6159 0%, transparent 62%), radial-gradient(800px 600px at 5% 95%, #0a4f49 0%, transparent 60%), linear-gradient(165deg, #083f3b 0%, #052825 55%, #031f1d 100%); }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-aurora { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-aurora i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; will-change: transform; }
.hero-aurora i:nth-child(1) { width: 560px; height: 560px; left: -140px; top: 10%; background: #127a72; animation: drift1 18s ease-in-out infinite; }
.hero-aurora i:nth-child(2) { width: 460px; height: 460px; right: 4%; top: -120px; background: rgba(244, 196, 48, .55); animation: drift2 22s ease-in-out infinite; }
.hero-aurora i:nth-child(3) { width: 520px; height: 520px; right: -140px; bottom: -120px; background: #1aa398; animation: drift1 26s ease-in-out infinite reverse; }
@keyframes drift1 { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(80px, -60px) scale(1.15); } 66% { transform: translate(-40px, 70px) scale(.92); } }
@keyframes drift2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-120px, 90px) scale(1.2); } }
.hero-floor { position: absolute; left: -20%; right: -20%; bottom: -2px; height: 46%; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(244, 196, 48, .22) 1px, transparent 1px), linear-gradient(90deg, rgba(244, 196, 48, .22) 1px, transparent 1px); background-size: 64px 64px;
  transform: perspective(500px) rotateX(62deg); transform-origin: bottom; -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 90%); mask-image: linear-gradient(to top, #000 10%, transparent 90%); }
/* pause every hero animation while it is off-screen (class toggled in home.js) */
.hero.is-off *, .hero.is-off *::before, .hero.is-off *::after, .ai-section.is-off *, .ai-section.is-off *::before { animation-play-state: paused !important; }

.hero-inner { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 40px; align-items: center; min-height: calc(100svh - var(--header-h) - 190px); }
.hero-copy { position: relative; z-index: 3; }
.hero-pill { display: inline-flex; align-items: center; gap: 12px; padding: 8px 18px 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(10px); font-size: 14px; font-weight: 700; margin-bottom: 30px; transition: all .3s var(--ease); }
.hero-pill:hover { background: rgba(255, 255, 255, .16); transform: translateY(-2px); }
.hero-pill .pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(244, 196, 48, .7); animation: pulseDot 2s infinite; }
@keyframes pulseDot { 70% { box-shadow: 0 0 0 12px rgba(244, 196, 48, 0); } 100% { box-shadow: 0 0 0 0 rgba(244, 196, 48, 0); } }
.hero-pill, .hero-title, .anim { }
.js .hero-pill { opacity: 0; transform: translateY(20px); }
.is-ready .hero-pill { opacity: 1; transform: none; transition: all 1s var(--ease) .1s; }

.hero-title { font-size: clamp(50px, 8.2vw, 120px); line-height: .98; letter-spacing: -.04em; margin: 0 0 28px; font-weight: 800; perspective: 800px; }
.hero-title .line { display: block; white-space: nowrap; }
.hero-title .w { display: inline-block; transform-origin: 50% 100%; }
.js .hero-title .w { opacity: 0; transform: translateY(70%) rotateX(-55deg); filter: blur(10px); }
.is-ready .hero-title .w { animation: wordIn 1.1s var(--ease) forwards; animation-delay: calc(var(--i) * 130ms + 250ms); }
@keyframes wordIn { to { opacity: 1; transform: none; filter: none; } }
.hero .gradient-text { background-image: linear-gradient(100deg, #f4c430 0%, #fff4c2 38%, #f4c430 70%, #ffd24d 100%); background-size: 220% auto; }
.hero-sub { font-size: clamp(17px, 1.55vw, 21px); color: #c4e2dc; max-width: 54ch; margin-bottom: 36px; }
.hero-sub strong { color: #fff; }
.hero-sub em { color: var(--gold); font-style: normal; font-weight: 700; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 46px; }
.hero-proof { list-style: none; padding: 0; margin: 0; display: flex; gap: 34px; flex-wrap: wrap; }
.hero-proof li { display: flex; align-items: center; gap: 12px; }
.hero-proof b { font: 800 44px/1 var(--font-display); color: var(--gold); letter-spacing: -.04em; }
.hero-proof span { font-size: 13px; line-height: 1.35; color: #9cc3bc; font-weight: 600; }
.js .anim { opacity: 0; transform: translateY(34px); }
.is-ready .anim { opacity: 1; transform: none; transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 120ms + 300ms); }

/* stage */
.hero-stage { position: relative; height: 640px; display: grid; place-items: center; perspective: 1400px; --mx: 0; --my: 0; }
.stage-glow { position: absolute; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(244, 196, 48, .34), transparent 66%); animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.18); opacity: .75; } }
.ring { position: absolute; border-radius: 50%; border: 1.5px dashed rgba(244, 196, 48, .35); }
.ring.r1 { width: 480px; height: 480px; animation: spin 40s linear infinite; }
.ring.r2 { width: 620px; height: 620px; border-style: solid; border-color: rgba(255, 255, 255, .08); animation: spin 70s linear infinite reverse; }
.ring.r3 { width: 360px; height: 360px; border-color: rgba(95, 195, 182, .4); animation: spin 28s linear infinite reverse; }
.ring::after { content: ''; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 20px var(--gold); }
.ring.r3::after { background: #5fc3b6; box-shadow: 0 0 20px #5fc3b6; }
.big-smile { position: absolute; width: 540px; opacity: .13; color: var(--gold); will-change: transform; }
.big-smile .eye { fill: currentColor; transform-box: fill-box; transform-origin: center; animation: blink 6s infinite; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.08); } }

.phone { position: relative; width: 300px; height: 620px; border-radius: 48px; padding: 11px; z-index: 2;
  background: linear-gradient(145deg, #2d4d49, #0b2a27 40%, #1c3d39); box-shadow: 0 0 0 2px rgba(255, 255, 255, .1) inset, 0 60px 120px -20px rgba(0, 0, 0, .7), 0 0 90px rgba(244, 196, 48, .18);
  transform-style: preserve-3d; will-change: transform; animation: phoneFloat 7s ease-in-out infinite; }
@keyframes phoneFloat { 50% { translate: 0 -16px; } }
.phone-glare { position: absolute; inset: 0; border-radius: 48px; background: linear-gradient(115deg, rgba(255, 255, 255, .2), transparent 35%); z-index: 5; pointer-events: none; mix-blend-mode: soft-light; }
.phone-notch { position: absolute; z-index: 6; top: 20px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 20px; background: #020e0d; }
.phone-screen { position: relative; height: 100%; border-radius: 38px; overflow: hidden; background: #f6f2e6; color: #0a2e2b; padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.ps-status { display: flex; justify-content: space-between; font: 700 12px var(--font-body); padding: 4px 8px 0; }
.ps-status span:last-child { display: flex; gap: 4px; }
.ps-head { display: flex; align-items: center; gap: 10px; margin: 12px 0 4px; }
.ps-head img { width: 40px; height: 40px; border-radius: 12px; }
.ps-head small { display: block; font-size: 11.5px; color: #5a7b76; font-weight: 600; line-height: 1.2; }
.ps-head b { font: 800 17px/1.15 var(--font-display); letter-spacing: -.02em; }
.ps-avatar { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #f4c430; color: #073a36; font-weight: 800; font-size: 14px; }
.ps-meal { display: flex; align-items: center; gap: 11px; background: #fff; border-radius: 18px; padding: 11px 12px; box-shadow: 0 6px 18px rgba(9, 68, 64, .08); opacity: 0; transform: translateX(26px) scale(.96); animation: psIn .9s var(--ease) forwards; animation-delay: calc(var(--k) * 260ms + 1.6s); }
.ps-meal .em { width: 42px; height: 42px; display: grid; place-items: center; font-size: 24px; background: #f6f2e6; border-radius: 13px; flex-shrink: 0; }
.ps-meal small { display: block; font-size: 10.5px; color: #5a7b76; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.ps-meal b { display: block; font: 700 13.5px/1.25 var(--font-display); }
.ps-meal > i { margin-left: auto; color: #2fbf8a; font-size: 18px; }
.ps-meal.done { opacity: .8; }
.ps-meal:not(.done) > i { color: #9bb5b0; }
.ps-meal.live { border: 1.5px solid #f4c430; }
.ps-meal em { display: flex; align-items: center; gap: 5px; font: 700 10.5px var(--font-body); color: #8a6700; font-style: normal; margin-top: 4px; }
.ps-bar { display: block; height: 5px; background: #eee6cb; border-radius: 5px; margin-top: 6px; overflow: hidden; }
.ps-bar i { display: block; height: 100%; width: 12%; background: linear-gradient(90deg, #f4c430, #e8ad0d); border-radius: 5px; animation: barGo 5s ease-in-out 2.4s infinite alternate; }
@keyframes barGo { to { width: 88%; } }
@keyframes psIn { to { opacity: 1; transform: none; } }
.ps-meal.done { animation-name: psInDone; }
@keyframes psInDone { to { opacity: .82; transform: none; } }
.ps-ai { margin-top: auto; }
.ps-ai .bubble { background: #094440; color: #e8f5f2; border-radius: 18px 18px 18px 5px; padding: 10px 14px; font-size: 12.5px; line-height: 1.45; min-height: 66px; }
.ps-ai .bubble b { display: block; color: #f4c430; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 3px; }
.ps-ai .caret { display: inline-block; width: 2px; height: 13px; background: #f4c430; vertical-align: -2px; margin-left: 2px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.ps-input { display: flex; align-items: center; justify-content: space-between; background: #fff; border: 1.5px solid #e6dfc8; border-radius: 999px; padding: 10px 14px; font-size: 12.5px; color: #8aa39e; }
.ps-input i { width: 28px; height: 28px; border-radius: 50%; background: #f4c430; color: #073a36; display: grid; place-items: center; font-size: 12px; }

.float { position: absolute; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 20px; color: #fff; will-change: transform; }
.glass { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 20px 50px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .25); }
@media (max-width: 760px) { .glass { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(8, 51, 47, .78); } }
.float b { display: block; font: 700 14px/1.2 var(--font-display); }
.float small { display: block; font-size: 11.5px; color: #bfe0da; font-weight: 600; }
.float .em { width: 42px; height: 42px; display: grid; place-items: center; font-size: 23px; background: rgba(255, 255, 255, .14); border-radius: 13px; }
.float .stars { color: var(--gold); font-size: 12px; letter-spacing: 1px; writing-mode: horizontal-tb; width: 42px; text-align: center; line-height: 1.1; }
.f1 { left: -4%; top: 17%; --dx: 46; animation: bob 6s ease-in-out infinite; }
.f2 { right: -2%; top: 31%; --dx: 70; animation: bob 7s ease-in-out -2s infinite; }
.f3 { left: -7%; bottom: 12%; --dx: 34; animation: bob 8s ease-in-out -4s infinite; }
.f4 { right: 2%; bottom: 8%; --dx: 58; animation: bob 6.5s ease-in-out -1s infinite; }
.f2 .rider { animation: ride 2.4s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 -14px; } }
@keyframes ride { 50% { transform: translateX(6px) rotate(-6deg); } }
.js .float { opacity: 0; }
.is-ready .float { opacity: 1; transition: opacity 1s ease 1.8s; }

.orbit { position: absolute; inset: 0; pointer-events: none; }
.orbiter { position: absolute; left: 50%; top: 50%; font-size: 40px; line-height: 1; will-change: transform, opacity; margin: -20px 0 0 -20px; text-shadow: 0 10px 18px rgba(0, 0, 0, .35); }

.scroll-cue { position: absolute; left: 50%; bottom: 42px; width: 28px; height: 46px; margin-left: -14px; border: 2px solid rgba(255, 255, 255, .4); border-radius: 20px; z-index: 3; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--gold); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 80% { opacity: 0; transform: translateY(18px); } 100% { opacity: 0; } }

@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); text-align: center; gap: 10px; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-sub { margin-inline: auto; }
  .hero-cta, .hero-proof { justify-content: center; }
  .hero-stage { height: 600px; margin-top: 10px; }
  .hero-title .line { white-space: normal; }
}
@media (max-width: 640px) {
  .hero { padding-bottom: 90px; }
  .hero-stage { height: 560px; transform: scale(.86); transform-origin: top center; margin: 34px 0 -78px; }
  .float.f1, .float.f3 { left: -14%; } .float.f2, .float.f4 { right: -14%; }
  .hero-proof { gap: 22px; } .hero-proof b { font-size: 36px; }
  .scroll-cue { display: none; }
}
@media (max-width: 440px) { .hero-stage { transform: scale(.72); transform-origin: top center; height: 560px; margin: 30px 0 -150px; } .float { padding: 9px 14px 9px 9px; } .float.f3, .float.f4 { display: none; } }

/* ---------------- MARQUEE ---------------- */
.marquee-wrap { overflow: hidden; padding: 30px 0 22px; margin-top: -64px; position: relative; z-index: 4; pointer-events: none; }
.marquee-wrap .marquee { pointer-events: auto; }
.marquee { background: var(--gold); color: #073a36; overflow: hidden; border-block: 1px solid rgba(7, 58, 54, .15); transform: rotate(-1.2deg) scale(1.03); margin: 0; position: relative; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-row { display: flex; align-items: center; gap: 30px; padding: 18px 15px; font: 800 clamp(20px, 2.6vw, 30px)/1 var(--font-display); letter-spacing: -.02em; white-space: nowrap; }
.marquee-row i { font-style: normal; opacity: .55; font-size: .8em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------- PROBLEMS ---------------- */
.problems { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.problem { display: flex; flex-direction: column; padding: 30px 26px 26px; transform-style: preserve-3d; transition: transform .35s var(--ease), box-shadow .5s, border-color .4s; }
.problem .num { position: absolute; right: 22px; top: 14px; font: 800 64px/1 var(--font-display); color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--accent) 45%, transparent); letter-spacing: -.05em; opacity: .7; }
.p-emoji { width: 68px; height: 68px; display: grid; place-items: center; font-size: 36px; background: var(--surface-2); border-radius: 22px; margin-bottom: 22px; transition: transform .6s var(--ease-spring); }
.problem:hover .p-emoji { transform: rotate(-10deg) scale(1.12); }
.problem h3 { font-size: 22px; line-height: 1.2; margin-bottom: 12px; }
.problem .pain { font-size: 15.5px; color: var(--muted); margin-bottom: 20px; }
.problem .fix { margin-top: auto; padding: 16px 18px; border-radius: var(--r-md); background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 22%, transparent), color-mix(in srgb, var(--gold) 6%, transparent)); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); font-size: 15px; line-height: 1.55; }
.problem .fix b { color: var(--text); }
.fix-tag { display: flex; align-items: center; gap: 6px; font: 800 11px var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 6px; }
@media (max-width: 1100px) { .problems { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .problems { grid-template-columns: 1fr; } }

/* ---------------- PLANNER ---------------- */
.planner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.ctl-group { margin-top: 26px; }
.ctl-label { display: block; font: 800 12.5px var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.opt { padding: 10px 17px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); font: 700 14.5px var(--font-body); color: var(--text); transition: all .3s var(--ease-spring); }
.opt:hover { transform: translateY(-2px); border-color: var(--accent); }
.opt.is-on { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--brand) 60%, transparent); }
:root[data-theme="dark"] .opt.is-on { color: var(--on-accent); }
.seg { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); }
.seg .opt { border: 0; background: transparent; }
.seg .opt.is-on { transform: none; }
.ctl-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.plan { position: relative; display: grid; gap: 18px; padding: 8px 0 8px 54px; }
.plan-line { position: absolute; left: 22px; top: 40px; bottom: 80px; width: 3px; border-radius: 3px; background: linear-gradient(var(--gold), color-mix(in srgb, var(--gold) 10%, transparent)); }
.slot { position: relative; perspective: 1000px; }
.slot::before { content: ''; position: absolute; left: -41px; top: 28px; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); border: 4px solid var(--bg-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 30%, transparent); }
.slot-time { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.slot-ico { font-size: 22px; }
.slot-time b { display: block; font: 800 16px/1.1 var(--font-display); }
.slot-time small { color: var(--muted); font-weight: 600; font-size: 13px; }
.meal-card { position: relative; display: flex; align-items: center; gap: 18px; padding: 18px 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md); transform-style: preserve-3d; transition: transform .7s var(--ease), box-shadow .4s; }
.meal-card:hover { box-shadow: var(--shadow-lg); }
.meal-card.is-flipping { animation: flipIn .9s var(--ease); }
@keyframes flipIn { 0% { transform: rotateX(-90deg) translateY(20px); opacity: 0; } 100% { transform: none; opacity: 1; } }
.meal-face { display: flex; align-items: center; gap: 18px; flex: 1; min-width: 0; }
.meal-emoji { font-size: 44px; width: 78px; height: 78px; display: grid; place-items: center; flex-shrink: 0; background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 28%, transparent), var(--surface-2)); border-radius: 24px; }
.meal-info b { display: block; font: 700 19px/1.2 var(--font-display); letter-spacing: -.015em; }
.meal-info p { margin: 4px 0 8px; font-size: 14.5px; color: var(--muted); line-height: 1.45; }
.meal-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.meal-tags span { padding: 3px 10px; border-radius: 999px; background: var(--surface-2); font-size: 12px; font-weight: 700; color: var(--muted); }
.swap { width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid var(--line); background: var(--bg); color: var(--text); font-size: 20px; display: grid; place-items: center; transition: all .4s var(--ease-spring); }
.swap:hover { background: var(--gold); border-color: var(--gold); color: var(--on-accent); transform: rotate(180deg); }
.swap.spin i { animation: spin .7s linear infinite; }
.plan-note { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; margin: 4px 0 0; }
@media (max-width: 960px) { .planner { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .plan { padding-left: 36px; } .slot::before { left: -33px; } .plan-line { left: 14px; } .meal-emoji { width: 62px; height: 62px; font-size: 34px; } .meal-info b { font-size: 17px; } }

/* ---------------- AI SECTION ---------------- */
.ai-section { background: radial-gradient(900px 500px at 15% 10%, rgba(18, 122, 114, .5), transparent 60%), linear-gradient(160deg, #073a36, #031f1d); color: #fff; overflow: hidden; isolation: isolate; }
.ai-bg { position: absolute; inset: 0; z-index: -1; }
.ai-bg i { position: absolute; border-radius: 50%; filter: blur(60px); will-change: transform; }
.ai-bg i:first-child { width: 420px; height: 420px; right: 8%; top: 6%; background: rgba(244, 196, 48, .22); animation: drift2 20s ease-in-out infinite; }
.ai-bg i:last-child { width: 380px; height: 380px; left: -100px; bottom: -80px; background: rgba(95, 195, 182, .25); animation: drift1 24s ease-in-out infinite; }
.ai-section .eyebrow { color: var(--gold); }
.ai-section .lead { color: #bfe0da; }
.ai-section .gradient-text { background-image: linear-gradient(100deg, #f4c430, #fff4c2 40%, #f4c430); }
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.ai-points { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 20px; }
.ai-points li { display: flex; gap: 16px; align-items: flex-start; }
.ai-points i { flex-shrink: 0; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 16px; background: rgba(244, 196, 48, .14); border: 1px solid rgba(244, 196, 48, .3); color: var(--gold); font-size: 22px; }
.ai-points b { display: block; font: 700 18px var(--font-display); margin-bottom: 2px; }
.ai-points span { color: #9cc3bc; font-size: 15.5px; line-height: 1.55; display: block; }
.ai-chat { height: 640px; position: relative; }
.ai-chat::before { content: ''; position: absolute; inset: -3px; border-radius: 31px; background: linear-gradient(140deg, rgba(244, 196, 48, .75), rgba(244, 196, 48, 0) 38%, rgba(95, 195, 182, .45) 100%); z-index: -1; animation: glowPulse 4.5s ease-in-out infinite; }
@keyframes glowPulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@media (max-width: 960px) { .ai-grid { grid-template-columns: 1fr; } .ai-chat { height: 580px; } }

/* ---------------- HOW ---------------- */
.route { position: relative; padding-top: 70px; }
.route-svg { position: absolute; left: 0; top: 0; width: 100%; height: 160px; color: color-mix(in srgb, var(--muted) 55%, transparent); overflow: visible; }
.route-draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 3.2s var(--ease) .3s; filter: drop-shadow(0 0 8px var(--glow)); }
.route.in .route-draw { stroke-dashoffset: 0; }
.rider-dot { position: absolute; left: 0; top: 0; font-size: 34px; z-index: 3; offset-path: path('M 90 100 C 250 -10, 330 -10, 450 80 S 700 190, 810 80 S 1000 10, 1110 90'); offset-rotate: 0deg; offset-distance: 0%; opacity: 0; transition: opacity .5s; }
.route.in .rider-dot { opacity: 1; animation: rideRoute 9s ease-in-out 1s infinite; }
@keyframes rideRoute { 0% { offset-distance: 0%; } 100% { offset-distance: 100%; } }
.steps { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 50px; }
.step { text-align: center; padding: 0 8px; }
.step-ico { position: relative; width: 92px; height: 92px; margin: 0 auto 22px; display: grid; place-items: center; font-size: 36px; border-radius: 30px; color: var(--on-accent); background: linear-gradient(135deg, #ffd24d, var(--gold)); box-shadow: 0 18px 40px -10px var(--glow); transition: transform .6s var(--ease-spring); }
.step:hover .step-ico { transform: translateY(-8px) rotate(-6deg) scale(1.06); }
.step-ico em { position: absolute; top: -8px; right: -8px; width: 32px; height: 32px; display: grid; place-items: center; font: 800 15px var(--font-display); font-style: normal; border-radius: 50%; background: var(--brand); color: #fff; border: 3px solid var(--bg); }
:root[data-theme="dark"] .step-ico em { color: var(--on-accent); }
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15.5px; max-width: 28ch; margin-inline: auto; }
@media (max-width: 960px) {
  .route { padding-top: 0; } .route-svg, .rider-dot { display: none; }
  .steps { grid-template-columns: 1fr 1fr; margin-top: 0; gap: 40px 20px; }
}
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

/* ---------------- TABS ---------------- */
.tabs { max-width: 1060px; margin-inline: auto; }
.tab-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 6px; width: fit-content; max-width: 100%; margin: 0 auto 36px; border-radius: 30px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.tab-list button { display: inline-flex; align-items: center; gap: 9px; padding: 13px 26px; border: 0; border-radius: 999px; background: transparent; font: 700 15.5px var(--font-body); color: var(--muted); transition: all .35s var(--ease); }
.tab-list button.is-on { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--brand) 60%, transparent); }
:root[data-theme="dark"] .tab-list button.is-on { color: var(--on-accent); }
.tab-panel { display: none; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(28px, 4vw, 56px); box-shadow: var(--shadow-md); }
.tab-panel.is-on { display: grid; animation: panelIn .7s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.tp-copy h3 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 20px; }
.ticks { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 36px; font-weight: 600; }
.ticks li::before { content: '\F26E'; font-family: 'bootstrap-icons'; position: absolute; left: 0; top: -2px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--on-accent); font-size: 14px; }
.tp-art { position: relative; min-height: 320px; border-radius: var(--r-lg); display: grid; place-items: center; overflow: hidden; color: #fff; isolation: isolate; }
.tp-art span { position: absolute; font-size: 74px; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .3)); animation: bob 6s ease-in-out infinite; }
.tp-art span:nth-child(1) { left: 12%; top: 14%; } .tp-art span:nth-child(2) { right: 14%; top: 24%; animation-delay: -2s; font-size: 90px; } .tp-art span:nth-child(3) { left: 30%; bottom: 14%; animation-delay: -4s; }
.tp-art b { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; font: 800 22px var(--font-display); letter-spacing: -.02em; }
.art-eat { background: radial-gradient(circle at 30% 20%, #ffd24d, transparent 55%), linear-gradient(145deg, #127a72, #073a36); }
.art-sell { background: radial-gradient(circle at 70% 20%, #ffd24d, transparent 55%), linear-gradient(145deg, #0c5a54, #052825); }
.art-ride { background: radial-gradient(circle at 20% 80%, #ffd24d, transparent 55%), linear-gradient(145deg, #1aa398, #073a36); }
@media (max-width: 860px) { .tab-panel.is-on { grid-template-columns: 1fr; } .tp-art { min-height: 260px; } .tab-list button { padding: 10px 14px; font-size: 13.5px; } }
@media (max-width: 480px) { .tab-list button i { display: none; } }

/* ---------------- FUTURE ---------------- */
.future { overflow: hidden; }
.future-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.globe-wrap { position: relative; aspect-ratio: 1; max-width: 560px; width: 100%; margin-inline: auto; }
.globe-wrap::before { content: ''; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--teal-500) 55%, transparent), color-mix(in srgb, var(--teal-800) 70%, transparent) 70%); box-shadow: 0 0 120px color-mix(in srgb, var(--gold) 28%, transparent), inset -30px -30px 80px rgba(0, 0, 0, .35); }
#globe { position: relative; width: 100%; height: 100%; }
.globe-tag { position: absolute; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md); font: 800 12px var(--font-body); letter-spacing: .04em; animation: bob 5s ease-in-out infinite; }
.globe-tag::before { content: '●'; color: var(--gold); margin-right: 6px; font-size: 10px; }
.globe-tag.t1 { left: 4%; top: 38%; } .globe-tag.t2 { right: 8%; top: 16%; animation-delay: -1.5s; } .globe-tag.t3 { right: 2%; bottom: 30%; animation-delay: -3s; } .globe-tag.t4 { left: 22%; bottom: 8%; animation-delay: -2s; }
.f-list { display: grid; gap: 14px; margin: 34px 0; }
.f-item { display: flex; gap: 20px; padding: 22px 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: all .5s var(--ease); }
.f-item:hover { transform: translateX(10px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.f-ico { flex-shrink: 0; width: 62px; height: 62px; display: grid; place-items: center; font-size: 30px; border-radius: 20px; background: var(--surface-2); }
.f-item h3 { font-size: 20px; margin-bottom: 4px; }
.f-item p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
@media (max-width: 960px) { .future-grid { grid-template-columns: 1fr; } .globe-wrap { max-width: 420px; } }

/* ---------------- COMPARE ---------------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 980px; margin-inline: auto; }
.cmp { border-radius: var(--r-xl); padding: clamp(28px, 3.4vw, 46px); border: 1px solid var(--line); }
.cmp h3 { font-size: 26px; margin-bottom: 22px; }
.cmp ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 15px; }
.cmp li { position: relative; padding-left: 34px; font-weight: 600; font-size: 16.5px; }
.cmp-bad { background: var(--surface); }
.cmp-bad li { color: var(--muted); }
.cmp-bad li::before { content: '\F62A'; font-family: 'bootstrap-icons'; position: absolute; left: 0; color: #e0534a; }
.cmp-good { background: linear-gradient(150deg, #0c5a54, #052825); color: #fff; border-color: transparent; box-shadow: var(--shadow-lg); transform: translateY(-14px); }
.cmp-good li::before { content: '\F26A'; font-family: 'bootstrap-icons'; position: absolute; left: 0; color: var(--gold); }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } .cmp-good { transform: none; } }

/* ---------------- STATS ---------------- */
.stats { background: linear-gradient(135deg, #0a4a45, #052825); color: #fff; padding: 70px 0; position: relative; overflow: hidden; }
.stats::before { content: ''; position: absolute; inset: 0; background: radial-gradient(500px 200px at 20% 0%, rgba(244, 196, 48, .18), transparent), radial-gradient(500px 200px at 90% 100%, rgba(95, 195, 182, .2), transparent); }
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat b { display: block; font: 800 clamp(48px, 6vw, 84px)/1 var(--font-display); letter-spacing: -.05em; color: var(--gold); margin-bottom: 10px; }
.stat b small { font-size: .32em; letter-spacing: 0; margin-left: 4px; color: #fff4c2; }
.stat > span { color: #bfe0da; font-weight: 600; font-size: 15.5px; max-width: 22ch; display: block; margin-inline: auto; }
@media (max-width: 860px) { .stats-grid { grid-template-columns: 1fr 1fr; gap: 44px 20px; } }

/* ---------------- DOWNLOAD ---------------- */
.dl-panel { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; padding: clamp(34px, 6vw, 84px); border-radius: var(--r-xl); color: #fff; overflow: hidden; isolation: isolate; background: linear-gradient(135deg, #0b5550, #052825 70%); box-shadow: var(--shadow-lg); }
.dl-orb { position: absolute; z-index: -1; width: 520px; height: 520px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(244, 196, 48, .45), transparent 65%); filter: blur(20px); animation: breathe 6s ease-in-out infinite; }
.dl-panel .eyebrow { color: var(--gold); } .dl-panel .lead { color: #bfe0da; margin-bottom: 32px; }
.dl-panel .gradient-text { background-image: linear-gradient(100deg, #f4c430, #fff4c2 40%, #f4c430); }
.dl-art { position: relative; min-height: 360px; display: grid; place-items: center; }
.mini-phone { width: 220px; padding: 40px 20px 30px; border-radius: 40px; text-align: center; background: linear-gradient(160deg, #0c5a54, #052825); border: 8px solid #12332f; box-shadow: 0 40px 80px rgba(0, 0, 0, .5), 0 0 80px rgba(244, 196, 48, .2); transition: transform .3s ease-out; animation: phoneFloat 7s ease-in-out infinite; }
.mini-phone img { width: 110px; margin: 0 auto 18px; border-radius: 30px; }
.mini-phone b { display: block; font: 800 30px var(--font-display); letter-spacing: -.03em; }
.mini-phone span { display: block; color: var(--gold); font-weight: 700; font-size: 13px; margin-top: 4px; }
.dl-chip { position: absolute; padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(10px); font-weight: 700; font-size: 14px; animation: bob 6s ease-in-out infinite; white-space: nowrap; }
.dl-chip.c1 { left: 0; top: 14%; } .dl-chip.c2 { right: -2%; top: 44%; animation-delay: -2s; } .dl-chip.c3 { left: 6%; bottom: 8%; animation-delay: -4s; }
@media (max-width: 900px) { .dl-panel { grid-template-columns: 1fr; text-align: center; } .dl-art { min-height: 300px; } .dl-panel .store-row { justify-content: center; } .dl-panel .lead { margin-inline: auto; } .dl-panel .eyebrow { justify-content: center; } }

/* ---------------- FAQ ---------------- */
.faq-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.faq-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.faq-item[open] { border-color: var(--accent); box-shadow: var(--shadow-md); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 22px 26px; font: 700 18px/1.35 var(--font-display); letter-spacing: -.01em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { flex-shrink: 0; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); transition: transform .4s var(--ease), background .3s; }
.faq-item[open] summary i { transform: rotate(135deg); background: var(--gold); color: var(--on-accent); }
.faq-a { padding: 0 26px 24px; color: var(--muted); animation: faqIn .5s var(--ease); }
.faq-a p { margin: 0; font-size: 16.5px; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-8px); } }
.faq-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent-text); margin-top: 10px; padding-left: 6px; }
.faq-more:hover i { transform: translateX(5px); } .faq-more i { transition: transform .3s; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------------- CTA ---------------- */
.cta-section { padding-top: 40px; }
.cta { position: relative; text-align: center; padding: clamp(50px, 8vw, 110px) clamp(24px, 5vw, 80px); border-radius: var(--r-xl); overflow: hidden; color: #fff; isolation: isolate; background: radial-gradient(600px 300px at 50% 0%, rgba(244, 196, 48, .28), transparent 70%), linear-gradient(160deg, #0b5550, #031f1d); box-shadow: var(--shadow-lg); }
.cta .lead { color: #bfe0da; margin: 0 auto 34px; }
.cta .gradient-text { background-image: linear-gradient(100deg, #f4c430, #fff4c2 40%, #f4c430); }
.cta-face { width: 120px; margin: 0 auto 26px; color: var(--gold); animation: bob 5s ease-in-out infinite; }
.cta-face .eye { fill: currentColor; transform-box: fill-box; transform-origin: center; animation: blink 5s infinite; }
.news-form { display: flex; gap: 12px; max-width: 560px; margin: 0 auto 26px; }
.news-form .input { flex: 1; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); color: #fff; border-radius: 999px; padding-inline: 24px; }
.news-form .input::placeholder { color: #9cc3bc; }
.cta-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 28px; font-weight: 700; }
.cta-links a { display: inline-flex; gap: 8px; align-items: center; color: #e8f5f2; transition: color .2s; }
.cta-links a:hover { color: var(--gold); }
@media (max-width: 560px) { .news-form { flex-direction: column; } }

/* ---------------- planner: small labels, schedule CTA ---------------- */
.opt small { opacity: .7; font-weight: 600; margin-left: 4px; font-size: .82em; }
.seg { flex-wrap: wrap; border-radius: 26px; }
.plan-cta { display: flex; gap: 14px 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 6px; padding: 18px 20px; border-radius: var(--r-md); background: color-mix(in srgb, var(--gold) 16%, var(--surface)); border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent); }
.plan-cta b { display: block; font: 700 16px var(--font-display); margin-bottom: 2px; }
.plan-cta b i { color: var(--accent-text); margin-right: 6px; }
.plan-cta span { display: block; font-size: 13.5px; color: var(--muted); max-width: 46ch; line-height: 1.5; }

/* ---------------- allergy section ---------------- */
.allergy-section { background: radial-gradient(700px 360px at 85% 10%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 70%); }
.allergen-board { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: clamp(22px, 3vw, 34px); border-radius: var(--r-xl); background: linear-gradient(150deg, #0c5a54, #052825); color: #fff; box-shadow: var(--shadow-lg); }
.allergen-board .shield { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; font: 800 20px var(--font-display); margin-bottom: 4px; }
.allergen-board .shield i { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--gold); color: #073a36; font-size: 22px; }
.allergen { display: grid; justify-items: center; gap: 4px; padding: 16px 8px 12px; border-radius: 18px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); text-align: center; transition: transform .4s var(--ease-spring), background .3s; }
.allergen:hover { transform: translateY(-5px); background: rgba(255, 255, 255, .14); }
.allergen span { font-size: 34px; line-height: 1; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .3)); }
.allergen b { font: 700 15px var(--font-display); }
.allergen em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--gold); display: inline-flex; gap: 5px; align-items: center; }
@media (max-width: 480px) { .allergen-board { grid-template-columns: repeat(2, 1fr); } }

/* budget segment: readable selected state, three even buttons */
.seg { display: flex; flex-wrap: nowrap; gap: 4px; width: 100%; max-width: 560px; border-radius: 22px; }
.seg .opt { flex: 1 1 0; text-align: center; padding: 10px 8px; line-height: 1.25; border-radius: 18px; }
.seg .opt small { display: block; margin: 2px 0 0; font-size: .74em; }
.seg .opt.is-on { background: var(--brand); color: #fff; }
:root[data-theme="dark"] .seg .opt.is-on { color: var(--on-accent); }
@media (max-width: 440px) { .seg .opt { padding: 9px 4px; font-size: 13px; } }
