/* CookLah public site (cooklah.my) — landing v4 "开饭啦" (2026-12-01) + the policy pages.
   The page is drawn like the app (cooklah-app src/theme): canvas #f3f3f0, white rounded cards, pastel tiles, ink #141614,
   lime #dff0b8 / #3d5a12, tomato #e0532f; the app's system faces (PingFang / Noto Sans SC, SF Pro / Avenir numbers) — no
   web fonts; bold Chinese headings with the tomato second line (as on the app's home); the floating pill tab bar.
   Mobile first. No inline styles anywhere (CSP style-src 'self'): scripts only set classes, data-* and custom properties.
   Motion = transform / opacity only. Load-in = CSS keyframes. Scroll effects = scroll-driven CSS (html.sda) that runs off
   the main thread; browsers without it get one-time reveals from an IntersectionObserver (site.js adds .in). Loops run
   only while their section is on screen (.is-live). html.rm (prefers-reduced-motion) = everything still. */

:root {
  --bg: #f3f3f0;
  --card: #fff;
  --surface2: #e8e8e3;
  --ink: #141614;
  --soft: #6c706c;
  --faint: #a6aaa5;
  --line: #ececE8;
  --lime: #dff0b8;
  --limeInk: #3d5a12;
  --limeB: #c5e08a;
  --peach: #fde6d2;
  --sky: #dcebf5;
  --lav: #e8e3fb;
  --cream: #fbf1d9;
  --rose: #fbe1dc;
  --tomato: #e0532f;
  --tomatoSoft: #fde8e1;
  --ok: #3d7a2c;
  --nav: #151715;
  --sLav: #d9d2fb;
  --sLime: #d6ee9f;
  --sPeach: #ffd9b8;
  --sSky: #cfe6f7;
  --cjk: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --latin: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  --num: "SF Pro Display", "Avenir Next", "Helvetica Neue", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: var(--cjk);
  --pad: 18px;
  --max: 1320px;
  --header: 60px;
  --sec: clamp(72px, 9vw, 136px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.45, .64, 1);
  --shadow: 0 1px 2px rgba(20, 22, 20, .04), 0 10px 30px -12px rgba(20, 22, 20, .14);
}
.lang-en, .lang-ms { --body: var(--latin); }
@media (min-width: 700px) { :root { --pad: 32px; } }
@media (min-width: 1100px) { :root { --pad: clamp(40px, 4.4vw, 64px); --header: 72px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); scroll-padding-top: calc(var(--header) + 12px); }
body { margin: 0; color: var(--ink); background: var(--bg); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; -webkit-tap-highlight-color: transparent; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
p { text-wrap: pretty; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ic { width: 24px; height: 24px; flex: none; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 10px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; text-decoration: none; }
.skip:focus { top: 12px; }
.fine { font-size: 12.5px; line-height: 1.6; color: var(--soft); }
.num { font-family: var(--num); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.num em { font-style: normal; font-size: .42em; margin-right: .08em; letter-spacing: 0; }
.card { background: var(--card); border-radius: 26px; box-shadow: var(--shadow); }
.bg-lime { background: var(--lime); } .bg-sky { background: var(--sky); } .bg-peach { background: var(--peach); } .bg-lav { background: var(--lav); }
.bg-cream { background: var(--cream); } .bg-rose { background: var(--rose); } .bg-ink { background: var(--nav); color: #f3f3f0; } .bg-tomato { background: var(--tomato); color: #fff; }
.bg-slime { background: var(--sLime); } .bg-speach { background: var(--sPeach); } .bg-ssky { background: var(--sSky); } .bg-slav { background: var(--sLav); }

/* headings: the app's heavy CJK title, ink line + tomato line (one line each, they rise in) */
.h2 { font-size: clamp(31px, 7.9vw, 66px); line-height: 1.16; font-weight: 800; letter-spacing: -.025em; text-wrap: balance; }
.lang-en .h2, .lang-ms .h2 { font-size: clamp(30px, 7.4vw, 62px); line-height: 1.06; font-weight: 750; letter-spacing: -.03em; }
.ln { display: block; overflow: clip; padding-bottom: .08em; margin-bottom: -.08em; }
.ln > span { display: inline-block; }
.ln.em { color: var(--tomato); }
.bg-ink .ln.em { color: var(--lime); }
.lead { margin-top: 16px; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.65; color: var(--soft); max-width: 34em; }
.bg-ink .lead { color: rgba(243, 243, 240, .68); }
.sec-head { max-width: 760px; }

/* a section on a pastel "sheet": a big rounded card on the canvas, like the app's pastel tiles */
.sheet { margin: 0 8px; border-radius: 34px; padding: var(--sec) 0; position: relative; overflow: clip; }
@media (min-width: 700px) { .sheet { margin: 0 16px; border-radius: 48px; } }

/* buttons: ink pill + lime circle arrow (the app's 下一步 / 开始煮) */
.btn {
  display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 8px 0 24px; border: 0; border-radius: 999px;
  background: var(--ink); color: #fff; font: 700 17px/1 var(--body); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .25s var(--spring);
}
.btn-i { width: 40px; height: 40px; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; flex: none; transition: transform .35s var(--spring); }
.btn:active { transform: scale(.96); }
.btn-sm { height: 42px; padding: 0 5px 0 15px; font-size: 14.5px; gap: 8px; }
.btn-sm .btn-i { width: 32px; height: 32px; }
.btn-lg { height: 62px; font-size: 18px; padding-left: 28px; }
.btn-lg .btn-i { width: 46px; height: 46px; }
@media (hover: hover) { .btn:hover .btn-i { transform: rotate(-45deg); } }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 6px; font-weight: 650; font-size: 16px; text-decoration: none; }
.btn-ghost svg { transition: transform .3s var(--spring); }
@media (hover: hover) { .btn-ghost:hover svg { transform: translateY(3px); } }
.btn-ink { background: var(--ink); }
.btn-danger { background: var(--tomato); }
.show-xs { display: none; }
@media (max-width: 379px) { .hide-xs { display: none; } .show-xs { display: inline; } }
@media (max-width: 479px) { .lang-en .hide-xs, .lang-ms .hide-xs { display: none; } .lang-en .show-xs, .lang-ms .show-xs { display: inline; } }

.stores { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 16px; color: var(--soft); }
.store { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--card); font: 600 12.5px/1 var(--latin); box-shadow: inset 0 0 0 1px var(--line); }
.soon-tag { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--tomatoSoft); color: var(--tomato); font-size: 12.5px; font-weight: 700; }

/* segmented control (the app's 煮的顺序 | 材料清单) */
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface2); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: none; font-weight: 650; font-size: 15px; cursor: pointer; white-space: nowrap; transition: background-color .2s, color .2s; }
.seg button span { font-family: var(--num); font-weight: 700; opacity: .55; font-size: .9em; }
.seg button.on { background: var(--ink); color: #fff; }
.seg button.on span { opacity: .7; }
.seg-sm button { height: 34px; padding: 0 13px; font-size: 14px; }

/* ---------- phone frame with a real app screen ----------
   iPhone 15/16 proportions (in parts of the frame width --pw): bezel --b = 3.8 %, screen corner --sr = 13 %, so the
   frame's corner = --sr + --b and the black gap is exactly as wide at the corners as on the sides. The screen (.ph-scr)
   is ONE clipped rounded shape (status bar + screenshot inside it, no seam); the island floats inside the screen,
   3 % of its width below the top edge, like the real one. The thin metal edge is drawn OUTSIDE the bezel. */
.phone {
  --pw: 260px; --b: calc(var(--pw) * .038); --sr: calc(var(--pw) * .13); --sw: calc(var(--pw) - 2 * var(--b));
  position: relative; width: var(--pw); padding: var(--b); border-radius: calc(var(--sr) + var(--b));
  background: #0c0d0c;
  box-shadow: 0 0 0 1px #3d413d, 0 0 0 2px rgba(20, 22, 20, .35), 0 40px 70px -30px rgba(20, 22, 20, .55), 0 18px 30px -18px rgba(20, 22, 20, .3);
}
.ph-scr { position: relative; display: block; border-radius: var(--sr); overflow: hidden; clip-path: inset(0 round var(--sr)); background: var(--bg); }
.ph-bar { position: relative; display: grid; grid-template-columns: 1fr 34% 1fr; align-items: center; justify-items: center; height: calc(var(--sw) * .14); padding-top: calc(var(--sw) * .006); background: var(--bg); font: 700 calc(var(--sw) * .044)/1 var(--num); color: var(--ink); }
.ph-bar b { grid-column: 1; padding-left: calc(var(--sw) * .02); }
.ph-island { grid-column: 2; width: 100%; height: calc(var(--sw) * .094); border-radius: 99px; background: #000; }
.ph-sig { grid-column: 3; display: flex; align-items: flex-end; gap: calc(var(--sw) * .006); height: calc(var(--sw) * .034); padding-right: calc(var(--sw) * .02); }
.ph-sig i { width: calc(var(--sw) * .01); background: var(--ink); border-radius: 1px; height: 40%; }
.ph-sig i:nth-child(2) { height: 60%; } .ph-sig i:nth-child(3) { height: 80%; } .ph-sig i:nth-child(4) { height: 100%; }
.ph-scr > img, .st-screens { display: block; width: 100%; background: var(--bg); }

/* ============ header ============ */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background-color .3s var(--ease), box-shadow .3s var(--ease); }
.top.is-solid { background: rgba(243, 243, 240, .96); box-shadow: 0 1px 0 rgba(20, 22, 20, .07); }
.top-in { height: var(--header); display: flex; align-items: center; gap: 14px; }
.logo { display: block; color: var(--ink); flex: none; }
.logo .brandmark { height: 23px; width: auto; }
@media (min-width: 1100px) { .logo .brandmark { height: 27px; } }
.top-nav { display: none; }
@media (min-width: 1000px) {
  .top-nav { display: flex; gap: 6px; margin-left: auto; }
  .top-nav a { text-decoration: none; font-size: 15px; font-weight: 600; padding: 9px 14px; border-radius: 999px; transition: background-color .2s; }
  .top-nav a:hover { background: rgba(20, 22, 20, .06); }
}
.top-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
@media (min-width: 1000px) { .top-right { margin-left: 10px; } }

/* language switch (the app's LanguagePicker pill) */
.lang { position: relative; }
.lang-btn {
  list-style: none; display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 12px 0 8px; border-radius: 999px;
  background: var(--card); box-shadow: 0 1px 2px rgba(20, 22, 20, .06); cursor: pointer; font: 650 14px/1 var(--latin); color: var(--ink); user-select: none; white-space: nowrap;
}
.lang-btn::-webkit-details-marker { display: none; }
@media (max-width: 479px) {
  .top .lang-btn > span { display: none; } .top .lang-btn { padding: 0 8px; gap: 3px; height: 40px; } .top-in { gap: 8px; }
  .top .btn-sm { height: 40px; font-size: 14px; padding-left: 13px; gap: 7px; } .top .btn-sm .btn-i { width: 30px; height: 30px; }
  .logo .brandmark { height: 21px; }
}
.lang-btn .chev { transition: transform .25s var(--ease); }
.lang[open] .lang-btn .chev { transform: rotate(180deg); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; padding: 6px; background: var(--card); border-radius: 20px; box-shadow: 0 18px 40px -12px rgba(20, 22, 20, .3), 0 2px 6px rgba(20, 22, 20, .06); z-index: 60; }
.lang[open] .lang-menu { animation: menu-in .22s var(--ease); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }
.lang-menu a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 14px; text-decoration: none; font-size: 15px; }
.lang-menu a .tick { margin-left: auto; color: var(--limeInk); }
.lang-menu a[aria-current] { font-weight: 650; }
@media (hover: hover) { .lang-menu a:hover { background: var(--bg); } }
.flag { flex: none; border-radius: 50%; }

/* ============ the app's pill tab bar (jumps between sections) ============ */
.tabs { position: fixed; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 45; width: min(calc(100% - 24px), 440px); transform: translateX(-50%); }
.tabs-bar { display: flex; align-items: center; height: 60px; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, .97); box-shadow: 0 0 0 1px rgba(20, 22, 20, .05), 0 12px 32px -10px rgba(20, 22, 20, .3); }
.tab { position: relative; flex: 1 1 0; min-width: 0; height: 48px; display: flex; align-items: center; justify-content: center; gap: 5px; border-radius: 999px; color: var(--ink); text-decoration: none; }
.tab::before { content: ""; position: absolute; inset: 0 3px; border-radius: 999px; background: var(--ink); opacity: 0; transform: scale(.6); transition: opacity .25s, transform .4s var(--spring); }
.tab-ic, .tab-l { position: relative; }
.tab-ic svg .f { transition: fill .2s; }
.tab-l { display: none; font-size: 12.5px; font-weight: 700; color: #fff; white-space: nowrap; }
.tab.on { flex-grow: 1.45; }
.tab.on::before { opacity: 1; transform: none; }
.tab.on .tab-ic { color: var(--lime); }
.tab.on .tab-ic .f { fill: var(--lime); }
.tab.on .tab-ic .c { stroke: var(--ink); }
.tab.on .tab-l { display: inline; animation: lbl-in .3s .08s var(--ease) both; }
@keyframes lbl-in { from { opacity: 0; transform: translateX(-4px); } }
.tab-mid, .tab-mid.on { flex: 0 0 64px; }
.tab-mid::before { inset: 0 8px; background: var(--lime); opacity: 1; transform: none; }
.tab-mid.on::before { background: var(--ink); }
.tab-mid .tab-l { display: none !important; }
.tab-mid.on .tab-ic { animation: pop .4s var(--spring); }
@keyframes pop { 40% { transform: scale(1.18); } }
@media (min-width: 1000px) { .tabs { display: none; } } /* wide screens: the header links (the app itself uses a sidebar there) */

/* ============ HERO ============ */
.hero { padding: calc(var(--header) + 14px) 0 clamp(28px, 5vw, 70px); overflow: clip; }
.hero-in { display: grid; gap: 10px; }
.hero-pill { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 15px 0 11px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); font-size: 13.5px; font-weight: 650; }
.hero-h { margin-top: 18px; font-size: clamp(34px, 10.1vw, 84px); line-height: 1.12; font-weight: 800; letter-spacing: -.035em; }
.lang-en .hero-h, .lang-ms .hero-h { font-size: clamp(32px, 8.9vw, 74px); line-height: 1.04; font-weight: 780; letter-spacing: -.035em; text-wrap: balance; }
.hero-p { margin-top: 16px; font-size: 17px; line-height: 1.65; color: var(--soft); max-width: 30em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 24px; }
html.js:not(.rm) .hero-text > * { animation: rise .8s var(--ease) both; }
html.js:not(.rm) .hero-text > :nth-child(2) { animation-delay: .06s; } html.js:not(.rm) .hero-text > :nth-child(3) { animation-delay: .16s; }
html.js:not(.rm) .hero-text > :nth-child(4) { animation-delay: .24s; } html.js:not(.rm) .hero-text > :nth-child(5) { animation-delay: .3s; }
html.js:not(.rm) .hero-h { animation: none !important; }
html.js:not(.rm) .hero-h .ln > span { animation: line-up .95s cubic-bezier(.16, 1, .3, 1) .05s both; }
html.js:not(.rm) .hero-h .ln.em > span { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes line-up { from { transform: translateY(112%); } }

.hero-stage { position: relative; display: grid; place-items: center; padding: 70px 0 30px; margin-top: 8px; }
.hs-disc { position: absolute; left: 50%; top: 52%; width: min(118vw, 560px); aspect-ratio: 1; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 14px #f8f8f5, inset 0 0 0 15px var(--line), 0 30px 60px -30px rgba(20, 22, 20, .2); transform: translate(-50%, -50%); }
.hs-phone { position: relative; z-index: 2; }
.hs-phone .phone { --pw: min(58vw, 300px); transform: rotate(-3deg); }
.hs-mibao { position: absolute; z-index: 6; right: -1%; bottom: 0; width: min(31vw, 160px); }
.hs-mibao img { width: 100%; filter: drop-shadow(0 10px 12px rgba(20, 22, 20, .18)); }
.hs-bubble { position: absolute; right: 74%; top: -8%; padding: 9px 14px; border-radius: 18px 18px 4px 18px; background: var(--card); box-shadow: var(--shadow); font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.fl { position: absolute; z-index: 4; display: block; }
.fl-in { display: block; }
.fl img { width: 100%; filter: drop-shadow(0 14px 16px rgba(20, 22, 20, .22)); }
.fl-1 { width: min(29vw, 170px); left: -9%; top: 16%; }
.fl-2 { width: min(31vw, 190px); right: -11%; top: 40%; }
.fl-3 { width: min(28vw, 150px); left: -6%; bottom: 4%; }
.fl-4 { width: min(14vw, 72px); right: 7%; top: 6%; z-index: 1; }
.fl-c1 { left: -2%; top: 47%; z-index: 5; } .fl-c2 { right: -3%; top: 23%; z-index: 5; } .fl-c3 { left: 2%; top: 2%; z-index: 5; }
.chip-week { padding: 11px 15px 12px; border-radius: 20px; background: var(--ink); color: #fff; box-shadow: 0 16px 30px -14px rgba(20, 22, 20, .5); }
.chip-week small { display: block; font-size: 11px; color: rgba(255, 255, 255, .6); }
.chip-week b { display: block; font-size: 25px; line-height: 1.1; color: var(--lime); }
.chip-ok, .chip-timer { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px 0 8px; border-radius: 999px; background: var(--card); box-shadow: 0 12px 26px -12px rgba(20, 22, 20, .35); font-size: 13px; font-weight: 700; white-space: nowrap; }
.chip-ok i { width: 26px; height: 26px; border-radius: 50%; background: var(--lime); color: var(--limeInk); display: grid; place-items: center; }
.chip-timer { padding-left: 12px; color: var(--tomato); }
.chip-timer svg { color: var(--tomato); }
.fl-c3 { display: none; }
@media (min-width: 700px) { .fl-c3 { display: block; } }
@media (max-width: 374px) { .fl-c1, .fl-c2 { display: none; } }
/* load-in: the phone rises, 米宝 drops onto it, plates pop round it */
html.js:not(.rm) .hs-phone { animation: phone-in 1.1s cubic-bezier(.16, 1, .3, 1) .1s both; }
html.js:not(.rm) .hs-disc { animation: disc-in 1s var(--ease) both; }
html.js:not(.rm) .hs-mibao img { animation: drop-in .9s var(--spring) .75s both; }
html.js:not(.rm) .hs-bubble { animation: bub-in .5s var(--spring) 1.35s both; transform-origin: 100% 100%; }
html.js:not(.rm) .fl-in { animation: pop-in .8s var(--spring) both; }
html.js:not(.rm) .fl-1 .fl-in { animation-delay: .45s; } html.js:not(.rm) .fl-2 .fl-in { animation-delay: .55s; } html.js:not(.rm) .fl-3 .fl-in { animation-delay: .65s; }
html.js:not(.rm) .fl-4 .fl-in { animation-delay: .8s; }
html.js:not(.rm) .fl-c1 .fl-in { animation-delay: 1s; } html.js:not(.rm) .fl-c2 .fl-in { animation-delay: 1.12s; } html.js:not(.rm) .fl-c3 .fl-in { animation-delay: 1.24s; }
@keyframes phone-in { from { opacity: 0; transform: translateY(90px) rotate(6deg); } }
@keyframes disc-in { from { opacity: 0; transform: translate(-50%, -50%) scale(.7); } }
@keyframes drop-in { 0% { opacity: 0; transform: translateY(-120px); } 60% { opacity: 1; } }
@keyframes bub-in { from { opacity: 0; transform: scale(.4); } }
@keyframes pop-in { from { opacity: 0; transform: scale(.3) rotate(-40deg); } }
/* while the hero is on screen the plates bob a little (transform only, paused off screen) */
.hero.is-live .fl-1 img, .hero.is-live .fl-2 img, .hero.is-live .fl-3 img { animation: bob 5s ease-in-out 2s infinite alternate; }
.hero.is-live .fl-2 img { animation-duration: 6s; } .hero.is-live .fl-3 img { animation-duration: 4.4s; }
@keyframes bob { to { transform: translateY(-10px) rotate(6deg); } }
/* scrolling away: plates and cards drift apart, the phone stays (scroll-driven CSS, off the main thread) */
html.sda .fl { animation: drift linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
html.sda .fl-1, html.sda .fl-3, html.sda .fl-c1, html.sda .fl-c3 { --dx: -70px; } html.sda .fl-2, html.sda .fl-4, html.sda .fl-c2 { --dx: 70px; }
html.sda .fl-4, html.sda .fl-1 { --dy: -110px; --rr: -50deg; }
html.sda .fl-c1, html.sda .fl-c2, html.sda .fl-c3 { --rr: 0deg; --dy: -90px; }
html.sda .hs-mibao { animation: hop linear both; animation-timeline: scroll(root); animation-range: 0 80vh; }
@keyframes drift { to { transform: translate(var(--dx, 0), var(--dy, -60px)) rotate(var(--rr, 40deg)); } }
@keyframes hop { 40% { transform: translate(6px, -70px) rotate(8deg); } to { transform: translate(14px, -40px) rotate(14deg) scale(.9); } }
@media (min-width: 1000px) {
  .hero { padding-top: calc(var(--header) + 40px); }
  .hero-in { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 30px; }
  .lang-zh .hero-h { font-size: clamp(56px, 5.2vw, 76px); }
  .lang-zh .hero-h .ln { white-space: nowrap; }
  .hero-stage { margin: 0; padding: 70px 0 40px; }
  .hs-phone .phone { --pw: 300px; }
  .hs-mibao { right: 4%; width: 170px; }
  .hs-disc { width: 560px; }
  .fl-1 { width: 180px; left: -12%; top: 20%; } .fl-2 { width: 200px; right: -4%; } .fl-3 { width: 160px; left: 4%; }
  .fl-4 { width: 78px; } .fl-c3 { left: 6%; top: 6%; }
  .chip-week b { font-size: 30px; }
}

/* ============ RIBBON: the app's recipe cards gliding past ============ */
.ribbon { padding: 18px 0 var(--sec); overflow: clip; }
.rib-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.rib-h { font-size: clamp(21px, 2.6vw, 30px); font-weight: 800; letter-spacing: -.02em; line-height: 1.3; }
.rib-p { color: var(--soft); font-size: 15px; }
.rib-rows { display: grid; gap: 12px; margin-top: 22px; }
.mq { overflow: hidden; }
.mq-in { display: flex; width: max-content; }
.mq-set { display: flex; gap: 12px; padding-right: 12px; }
.ribbon.is-live .mq-in { animation: mq 70s linear infinite; }
.ribbon.is-live .mq1 .mq-in { animation-direction: reverse; animation-duration: 80s; }
@media (hover: hover) { .ribbon.is-live .mq:hover .mq-in { animation-play-state: paused; } }
@keyframes mq { to { transform: translateX(-50%); } }
html.rm .mq { overflow-x: auto; scrollbar-width: none; } html.rm .mq-set[aria-hidden] { display: none; }
.rcard { width: 168px; flex: none; border-radius: 26px; padding: 8px 8px 12px; }
.rcard-ph { position: relative; display: block; aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: var(--card); }
.rcard-ph img { width: 100%; height: 100%; object-fit: cover; }
.rcard-chili { position: absolute; left: 7px; bottom: 7px; display: flex; gap: 1px; padding: 4px 6px; border-radius: 999px; background: var(--card); }
.rcard-n { display: block; margin: 9px 5px 0; font-size: 15px; font-weight: 700; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rcard-b { display: flex; flex-wrap: wrap; gap: 4px; margin: 7px 4px 0; }
.rcard-b > span { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 999px; background: rgba(255, 255, 255, .78); font: 700 11.5px/1 var(--num); color: var(--ink); }
.rcard-b .rm { background: var(--tomato); color: #fff; }
@media (min-width: 1000px) { .rcard { width: 206px; } .rcard-n { font-size: 16px; } }

/* ============ STORY: the sticky phone ============ */
.story { padding-top: var(--sec); }
.st { position: relative; margin-top: 8px; }
.st-stage { position: sticky; top: var(--header); height: calc(100svh - var(--header)); display: flex; align-items: center; z-index: 1; }
.st-marks { position: relative; margin-top: calc(var(--header) - 100svh); pointer-events: none; }
.st-marks i { display: block; height: 58svh; }
.st-marks i:last-child { height: 80svh; }
.st-grid { display: grid; grid-template-rows: auto auto 1fr; justify-items: center; gap: 12px; height: 100%; padding-top: 10px; padding-bottom: 96px; }
.st-rail { display: flex; gap: 5px; width: min(100%, 300px); }
.st-dot { flex: 1; height: 5px; border-radius: 3px; background: rgba(20, 22, 20, .12); transition: background-color .3s; }
.st-dot.on, .st-dot.past { background: var(--ink); }
.st-dot span { display: none; }
.st-line { display: none; }
.st-phone-wrap { position: relative; }
.st-phone { --pw: min(60vw, calc((100svh - var(--header) - 250px) * .443)); }
.st-screens { position: relative; aspect-ratio: 640 / 1385; overflow: hidden; }
.st-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: translateX(34%); transition: transform .6s var(--ease), opacity .35s; }
.st-shot.on { opacity: 1; transform: none; }
.st-shot.past { transform: translateX(-22%); }
.st-pops { position: absolute; inset: 0; pointer-events: none; }
.stpop { position: absolute; display: flex; flex-direction: column; opacity: 0; transform: scale(.7) translateY(10px); transition: opacity .3s, transform .5s var(--spring); box-shadow: 0 18px 34px -16px rgba(20, 22, 20, .45); }
.stpop.on { opacity: 1; transform: none; transition-delay: .15s; }
.pop-week.on, .pop-level.on { transform: rotate(-4deg); } .pop-setup.on, .pop-list.on { transform: rotate(3deg); } .pop-cook.on { transform: rotate(-2deg); }
.stpop small { font-size: 11px; font-weight: 600; opacity: .7; }
.stpop b.num { font-size: 26px; line-height: 1.1; }
.pop-setup { right: -18%; top: 30%; padding: 11px 14px 13px; border-radius: 20px; background: var(--card); min-width: 132px; }
.pop-slider { position: relative; height: 6px; margin-top: 8px; border-radius: 3px; background: var(--line); }
.pop-slider i { position: absolute; left: 0; top: 0; bottom: 0; width: 34%; border-radius: 3px; background: var(--ink); }
.pop-slider i::after { content: ""; position: absolute; right: -9px; top: -6px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2.5px var(--ink); }
.pop-week { left: -16%; top: 42%; padding: 11px 15px 12px; border-radius: 20px; background: var(--ink); color: #fff; }
.pop-week b { color: var(--lime); }
.pop-list { right: -16%; top: 26%; padding: 12px 15px; border-radius: 20px; background: var(--lime); color: var(--limeInk); }
.pop-list b { color: var(--ink); }
.pop-cook { left: -14%; bottom: 23%; flex-direction: row; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 20px; background: var(--ink); color: #fff; }
.pop-cook b.num { font-size: 20px; display: block; }
.pop-cook small { display: block; }
.pop-ring { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .2); }
.pop-go { width: 38px; height: 38px; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; }
.pop-level { right: -18%; top: 18%; align-items: center; padding: 6px 12px 10px; border-radius: 24px; background: var(--card); }
.pop-level img { width: 76px; }
.pop-level b { font-size: 16px; font-weight: 800; }
.st-texts { display: grid; width: min(100%, 420px); align-self: start; }
.st-text { grid-area: 1 / 1; display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: start; opacity: 0; transform: translateY(14px); transition: opacity .3s, transform .45s var(--ease); }
.st-text.on { opacity: 1; transform: none; transition-delay: .1s; }
.st-verb { grid-row: span 2; min-width: 56px; height: 56px; padding: 0 10px; border-radius: 18px; display: grid; place-items: center; font-size: 30px; font-weight: 800; line-height: 1; }
.lang-en .st-verb, .lang-ms .st-verb { font-size: 16px; font-weight: 800; height: 46px; border-radius: 14px; min-width: 0; padding: 0 12px; }
.st-verb.bg-tomato { color: #fff; }
.st-text h3 { font-size: 19px; font-weight: 800; line-height: 1.3; }
.st-text p { font-size: 15px; line-height: 1.55; color: var(--soft); }
html.nojs .st-stage, html:not(.js) .st-stage { position: static; height: auto; }
html:not(.js) .st-marks { display: none; }
html:not(.js) .st-text { position: static; opacity: 1; transform: none; grid-area: auto; }
@media (max-height: 700px) and (max-width: 999px) { .st-text p { display: none; } }
@media (min-width: 1000px) {
  .st-grid { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-rows: none; align-items: center; justify-items: stretch; gap: 40px; padding-bottom: 40px; }
  .st-phone { --pw: min(310px, calc((100svh - var(--header) - 120px) * .443)); }
  .st-rail { order: 3; flex-direction: column; gap: 10px; width: auto; justify-self: start; position: relative; padding-left: 26px; }
  .st-rail::before { content: ""; position: absolute; left: 6px; top: 12px; bottom: 12px; width: 2px; background: rgba(20, 22, 20, .1); }
  .st-dot { position: relative; height: auto; background: none !important; flex: none; }
  .st-dot::before { content: ""; position: absolute; left: -25px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px rgba(20, 22, 20, .2); transition: background-color .3s, box-shadow .3s, transform .3s var(--spring); }
  .st-dot.past::before { background: var(--ink); box-shadow: none; }
  .st-dot.on::before { background: var(--tomato); box-shadow: none; transform: scale(1.35); }
  .st-dot span { display: block; font-size: 22px; font-weight: 800; color: rgba(20, 22, 20, .28); transition: color .3s, transform .3s var(--ease); transform-origin: 0 50%; }
  .lang-en .st-dot span, .lang-ms .st-dot span { font-size: 19px; }
  .st-dot.on span { color: var(--ink); transform: scale(1.25); }
  .st-dot.past span { color: rgba(20, 22, 20, .55); }
  .st-phone-wrap { order: 2; }
  .st-texts { order: 1; align-self: center; width: auto; justify-self: end; max-width: 400px; }
  .st-text { grid-template-columns: 1fr; gap: 14px; }
  .st-verb { grid-row: auto; justify-self: start; min-width: 88px; height: 88px; font-size: 48px; border-radius: 26px; }
  .lang-en .st-verb, .lang-ms .st-verb { font-size: 26px; height: 64px; border-radius: 20px; padding: 0 20px; }
  .st-text h3 { font-size: 30px; line-height: 1.2; }
  .st-text p { font-size: 18px; }
  .stpop b.num { font-size: 32px; }
}

/* ============ BUDGET (the app's week screen) ============ */
.bud-grid { display: grid; gap: 26px; }
.bud-ctl { margin-top: 24px; padding: 18px 18px 20px; }
.bud-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bud-k { font-size: 15px; font-weight: 700; }
.bud-num { font-size: 50px; line-height: 1; }
.slider { position: relative; height: 46px; margin: 10px 4px 0; --p: .5; }
.slider[data-i="0"] { --p: 0; } .slider[data-i="1"] { --p: .166667; } .slider[data-i="2"] { --p: .333333; } .slider[data-i="3"] { --p: .5; }
.slider[data-i="4"] { --p: .666667; } .slider[data-i="5"] { --p: .833333; } .slider[data-i="6"] { --p: 1; }
.sl-track { position: absolute; left: 0; right: 0; top: 50%; height: 10px; margin-top: -5px; border-radius: 5px; background: var(--line); overflow: hidden; }
.sl-fill { position: absolute; inset: 0; background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--p)); transition: transform .35s var(--ease); }
.sl-thumb { position: absolute; left: 0; right: 0; top: 50%; height: 0; transform: translateX(calc(var(--p) * 100%)); transition: transform .35s var(--ease); pointer-events: none; }
.sl-thumb::before { content: ""; position: absolute; left: -15px; top: -15px; width: 30px; height: 30px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--ink), 0 4px 10px rgba(20, 22, 20, .25); }
.sl-hint { position: absolute; left: 0; top: 22px; transform: translateX(-50%); padding: 5px 10px; border-radius: 10px; background: var(--tomato); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; transition: opacity .3s; }
.sl-hint::after { content: ""; position: absolute; left: 50%; top: -4px; width: 8px; height: 8px; margin-left: -4px; background: var(--tomato); transform: rotate(45deg); }
.budget.is-live .sl-hint { animation: nudge 1.6s ease-in-out infinite; }
.slider.touched .sl-hint { opacity: 0; animation: none; }
@keyframes nudge { 50% { transform: translateX(-50%) translateY(-4px); } }
.slider input { position: absolute; inset: -6px -16px; width: calc(100% + 32px); height: calc(100% + 12px); margin: 0; opacity: 0; cursor: pointer; z-index: 2; }
.slider:has(input:focus-visible) .sl-thumb::before { box-shadow: 0 0 0 3px var(--ink), 0 0 0 7px rgba(20, 22, 20, .2); }
.sl-ends { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--faint); font-weight: 700; margin-top: 8px; }
.who { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--bg); display: grid; place-items: center; cursor: pointer; transition: transform .25s var(--spring), opacity .2s; }
.stepper button:active { transform: scale(.86); }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper output { font-size: 30px; min-width: 1.3ch; text-align: center; }
.wk-top { padding: 18px 20px 18px; border-radius: 26px; background: var(--ink); color: #fff; }
.wk-k { font-size: 12.5px; color: rgba(255, 255, 255, .62); font-weight: 600; }
.wk-total { font-size: 46px; line-height: 1.12; margin-top: 2px; }
.wk-note { font-size: 12px; color: var(--lime); font-weight: 600; margin-top: 2px; }
.wk-days { display: grid; gap: 8px; margin-top: 10px; position: relative; }
.day { display: grid; grid-template-columns: 46px auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 14px 9px 9px; border-radius: 22px; background: var(--card); min-height: 66px; }
.day-d { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; background: var(--bg); font-size: 14px; font-weight: 800; }
.lang-en .day-d, .lang-ms .day-d { font-size: 13px; }
.day-ph { display: flex; }
.day-ph img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--card); background: var(--bg); }
.day-ph img + img { margin-left: -14px; }
.day-n { font-size: 13.5px; line-height: 1.35; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.day-c { font-size: 15px; }
.wk-days.swap .day-ph img { animation: plate-on .65s var(--spring) both; }
.wk-days.swap .day:nth-child(2) img { animation-delay: .04s; } .wk-days.swap .day:nth-child(3) img { animation-delay: .08s; } .wk-days.swap .day:nth-child(4) img { animation-delay: .12s; }
.wk-days.swap .day:nth-child(5) img { animation-delay: .16s; } .wk-days.swap .day:nth-child(6) img { animation-delay: .2s; } .wk-days.swap .day:nth-child(7) img { animation-delay: .24s; }
.wk-days.swap .day-c, .wk-days.swap .day-n { animation: fade-in .4s var(--ease) both; }
@keyframes plate-on { from { opacity: 0; transform: rotate(-150deg) scale(.4); } }
@keyframes fade-in { from { opacity: 0; } }
.wk-none { display: none; }
.wk-days.empty .day { opacity: .25; filter: grayscale(1); }
.wk-days.empty .wk-none { display: grid; justify-items: center; text-align: center; gap: 6px; position: absolute; inset: 40px 10px auto; padding: 18px; border-radius: 26px; background: var(--card); box-shadow: var(--shadow); }
.wk-none img { width: 96px; }
.wk-none b { font-size: 18px; }
.wk-none p { font-size: 14px; color: var(--soft); }
@media (min-width: 1000px) {
  .bud-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 90px); align-items: start; }
  .bud-text { position: sticky; top: calc(var(--header) + 40px); }
  .bud-num { font-size: 64px; }
}

/* ============ 我有材料 (wok) ============ */
.fr-grid { display: grid; gap: 22px; margin-top: 28px; }
.fr-hint { font-size: 14px; font-weight: 700; color: var(--limeInk); margin-bottom: 10px; }
.produce { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pick { position: relative; display: grid; justify-items: center; gap: 4px; width: 100%; padding: 10px 6px 12px; border: 0; border-radius: 22px; background: var(--card); cursor: pointer; transition: transform .25s var(--spring), box-shadow .2s; }
.pick:active { transform: scale(.94); }
.pick-ph { display: grid; place-items: center; width: 100%; height: 76px; }
.pick-ph img, .pick-ph svg { width: auto; max-width: 84%; height: 100%; object-fit: contain; transition: transform .35s var(--spring), opacity .3s; }
.pick-n { font-size: 14px; font-weight: 700; }
.pick-ok { position: absolute; right: 8px; top: 8px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--lime); display: grid; place-items: center; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .35s var(--spring); }
.pick.on { box-shadow: inset 0 0 0 2.5px var(--ink); }
.pick.on .pick-ok { opacity: 1; transform: none; }
.pick.on .pick-ph img, .pick.on .pick-ph svg { transform: scale(.86) rotate(-6deg); opacity: .75; }
.fr-wok { display: grid; justify-items: center; gap: 12px; }
.wok { position: relative; width: min(100%, 300px); aspect-ratio: 320 / 170; margin-top: 30px; }
.wok-pan { position: absolute; left: 0; right: 0; bottom: 20px; width: 100%; z-index: 2; }
.wok-in { position: absolute; left: 12%; right: 12%; top: 0; height: 31%; z-index: 1; }
.wok-in img, .wok-in svg { position: absolute; bottom: 0; width: 27%; height: auto; transform: translate(-50%, 0) rotate(var(--r, 0deg)); filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .25)); animation: land .45s var(--spring) both; }
@keyframes land { from { transform: translate(-50%, -60px) rotate(var(--r, 0deg)) scale(.7); opacity: 0; } }
.wok.bump .wok-pan { animation: wok-bump .45s var(--spring); }
@keyframes wok-bump { 30% { transform: translateY(5px) rotate(-2deg); } 60% { transform: translateY(-3px) rotate(1deg); } }
.wok-fire { position: absolute; left: 30%; right: 30%; bottom: 0; height: 26px; display: flex; justify-content: space-between; align-items: flex-end; opacity: 0; transition: opacity .3s; }
.wok-fire i { width: 12px; height: 22px; border-radius: 50% 50% 45% 45% / 65% 65% 35% 35%; background: #3b4bc4; box-shadow: inset 0 -6px 0 #7488f2; transform-origin: 50% 100%; }
.wok.hot .wok-fire { opacity: 1; }
.fridge.is-live .wok.hot .wok-fire i { animation: flick .5s ease-in-out infinite alternate; }
.wok-fire i:nth-child(2n) { animation-delay: -.2s !important; height: 18px; }
@keyframes flick { to { transform: scaleY(.72) scaleX(1.1); } }
.wok-steam { position: absolute; left: 30%; right: 30%; top: -18%; height: 40%; display: flex; justify-content: space-around; opacity: 0; transition: opacity .4s; }
.wok-steam i { width: 6px; height: 100%; border-radius: 3px; background: linear-gradient(to top, rgba(255, 255, 255, 0), rgba(255, 255, 255, .95) 45%, rgba(255, 255, 255, 0)); }
.wok.hot .wok-steam { opacity: 1; }
.fridge.is-live .wok.hot .wok-steam i { animation: steam 1.8s ease-in infinite; }
.wok-steam i:nth-child(2) { animation-delay: -.6s !important; } .wok-steam i:nth-child(3) { animation-delay: -1.2s !important; }
@keyframes steam { 0% { transform: translateY(20px) scaleY(.4); opacity: 0; } 40% { opacity: .9; } 100% { transform: translateY(-26px) scaleY(1); opacity: 0; } }
.fr-have { width: min(100%, 420px); padding: 12px 14px; border-radius: 20px; background: rgba(255, 255, 255, .6); }
.fr-label { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.fr-clear { border: 0; background: none; font-size: 13.5px; font-weight: 650; color: var(--tomato); cursor: pointer; padding: 6px 0; }
.fr-in { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; min-height: 32px; }
.fr-in li { height: 30px; padding: 0 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 650; display: inline-flex; align-items: center; animation: pop-in .4s var(--spring); }
.fr-res { position: relative; }
.fr-res-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.fr-res-h b { font-size: 19px; font-weight: 800; }
.fr-res-h small { font-size: 13px; color: var(--limeInk); font-weight: 650; }
.res { display: grid; gap: 8px; }
.res-row { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 12px 9px 9px; border-radius: 22px; background: var(--card); transition: opacity .3s; }
.res-row img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; }
.res-mid b { display: block; font-size: 16px; font-weight: 750; }
.res-mid small { display: block; font-size: 12.5px; color: var(--soft); line-height: 1.4; }
.res-row.is-full .res-mid small { color: var(--ok); font-weight: 650; }
.res-pct { min-width: 56px; height: 32px; padding: 0 10px; border-radius: 999px; background: var(--bg); display: grid; place-items: center; font-size: 15px; }
.res-row.is-full .res-pct { background: var(--lime); color: var(--limeInk); }
.res-row.is-empty { opacity: 0; visibility: hidden; }
.res.swap .res-row:not(.is-empty) { animation: row-in .4s var(--ease) both; }
.res.swap .res-row:nth-child(2) { animation-delay: .05s; } .res.swap .res-row:nth-child(3) { animation-delay: .1s; } .res.swap .res-row:nth-child(4) { animation-delay: .15s; }
@keyframes row-in { from { opacity: 0; transform: translateY(10px); } }
.fr-mibao { display: none; }
@media (min-width: 1000px) { .fr-mibao { display: block; position: absolute; right: -8px; top: -58px; width: 86px; } }
.fr-res .fine { margin-top: 10px; }
.fly { position: fixed; left: 0; top: 0; z-index: 70; width: 84px; height: 84px; pointer-events: none; transition: transform .6s cubic-bezier(.45, -.35, .7, 1), opacity .6s; }
.fly img, .fly svg { width: 100%; height: 100%; object-fit: contain; }
@media (min-width: 1000px) {
  .fr-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); grid-template-rows: auto 1fr; column-gap: clamp(30px, 4vw, 64px); row-gap: 20px; }
  .fr-pick { grid-column: 1; grid-row: 1; }
  .fr-wok { grid-column: 1; grid-row: 2; }
  .fr-res { grid-column: 2; grid-row: 1 / span 2; align-self: start; padding-top: 30px; }
  .produce { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ============ COOK (ink sheet) ============ */
.ck-grid { display: grid; gap: 30px; }
.drop { position: relative; height: 250px; max-width: 380px; margin-top: 64px; }
.drop-wok { position: absolute; left: 6%; right: 6%; bottom: 24px; width: 88%; z-index: 2; }
.drop-i { position: absolute; top: 0; width: 74px; z-index: 1; }
.drop-i img { width: 100%; }
.d1 { left: 24%; } .d2 { left: 46%; width: 80px; } .d3 { left: 64%; width: 62px; }
.drop-cap { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: 15px; font-weight: 800; color: var(--lime); }
.drop-steam { position: absolute; left: 30%; right: 30%; top: 4%; height: 32%; display: flex; justify-content: space-around; z-index: 3; opacity: 0; }
.drop-steam i { width: 6px; height: 100%; border-radius: 3px; background: linear-gradient(to top, rgba(255, 255, 255, 0), rgba(255, 255, 255, .75) 45%, rgba(255, 255, 255, 0)); }
/* scroll-driven: they fall as the wok scrolls up into view; the steam comes once they are in */
html.sda .drop { view-timeline-name: --drop; }
html.sda .drop-i { animation: fall linear both; animation-timeline: --drop; animation-range: entry 20% cover 52%; }
html.sda .d2 { animation-range: entry 30% cover 58%; } html.sda .d3 { animation-range: entry 40% cover 64%; }
html.sda .drop-steam { animation: steam-on linear both; animation-timeline: --drop; animation-range: cover 58% cover 70%; }
@keyframes fall { 0% { transform: translateY(-50px) rotate(-30deg); opacity: 0; } 22% { opacity: 1; } 100% { transform: translateY(72px) rotate(50deg) scale(.82); } }
@keyframes steam-on { to { opacity: 1; } }
html.js:not(.sda):not(.rm) .drop .drop-i { opacity: 0; }
html.js:not(.sda):not(.rm) .drop.in .drop-i { animation: fall .9s cubic-bezier(.5, 0, .75, 0) both; }
html.js:not(.sda):not(.rm) .drop.in .d2 { animation-delay: .2s; } html.js:not(.sda):not(.rm) .drop.in .d3 { animation-delay: .4s; }
html.js:not(.sda):not(.rm) .drop.in .drop-steam { opacity: 1; transition: opacity .5s 1.2s; }
html.rm .drop-i { transform: translateY(72px) rotate(50deg) scale(.82); } html.rm .drop-steam { opacity: 1; }
.cook.is-live .drop-steam i { animation: steam 1.8s ease-in infinite; }
.cook.is-live .drop-steam i:nth-child(2) { animation-delay: -.6s; } .cook.is-live .drop-steam i:nth-child(3) { animation-delay: -1.2s; }

.ck-demo { display: grid; gap: 22px; }
/* the cook-mode phone: drawn with the same frame as .phone (screen corner = frame corner − bezel, island inside) */
.ck-phone { --b: 13px; --sr: 46px; position: relative; width: min(calc(100% - 2 * var(--b)), 364px); margin: var(--b) auto; padding: 54px 14px 16px; border-radius: var(--sr); background: var(--bg); color: var(--ink); box-shadow: 0 0 0 var(--b) #0c0d0c, 0 0 0 calc(var(--b) + 1px) #4a4e4a, 0 40px 70px -30px rgba(0, 0, 0, .7); }
.ck-phone::before { content: ""; position: absolute; left: 50%; top: 11px; width: 31%; height: 29px; border-radius: 99px; background: #000; transform: translateX(-50%); }
.ck-top { text-align: center; }
.ck-top small { display: block; font-size: 12px; color: var(--soft); }
.ck-top b { font-size: 17px; font-weight: 800; }
.ck-prog { display: flex; gap: 4px; margin: 10px 6px 0; }
.ck-prog i { flex: 1; height: 5px; border-radius: 3px; background: rgba(20, 22, 20, .12); transition: background-color .3s; }
.ck-prog i.on { background: var(--ink); }
.ck-mic { display: flex; align-items: center; gap: 8px; width: fit-content; height: 34px; margin: 10px auto 0; padding: 0 14px 0 11px; border-radius: 999px; background: var(--card); font-size: 13px; font-weight: 700; }
.mic-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--tomato); }
.cook.is-live .ck-mic:not(.read) .mic-dot { animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.mic-bars { display: none; gap: 2px; align-items: center; height: 14px; }
.mic-bars i { width: 3px; height: 100%; border-radius: 2px; background: var(--limeInk); }
.ck-mic.read { background: var(--ink); color: #fff; }
.ck-mic.read .mic-dot { display: none; }
.ck-mic.read .mic-bars { display: flex; }
.ck-mic.read .mic-bars i { background: var(--lime); }
.cook.is-live .ck-mic.read .mic-bars i { animation: bars .7s ease-in-out infinite alternate; }
.mic-bars i:nth-child(2) { animation-delay: -.2s !important; } .mic-bars i:nth-child(3) { animation-delay: -.45s !important; } .mic-bars i:nth-child(4) { animation-delay: -.1s !important; }
@keyframes bars { from { transform: scaleY(.3); } }
.ck-mic.heard { background: var(--lime); color: var(--limeInk); }
.ck-art { position: relative; margin-top: 12px; aspect-ratio: 4 / 3; border-radius: 26px; background: var(--lime); overflow: hidden; display: grid; place-items: end center; }
.ck-art img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
.ck-art img.swap { animation: fade-in .35s ease both; }
.ck-pill { position: absolute; left: 12px; top: 12px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; }
.ck-heat { position: absolute; right: 12px; top: 12px; height: 30px; padding: 0 12px 0 10px; border-radius: 999px; background: var(--card); color: var(--tomato); font-size: 12.5px; font-weight: 800; display: inline-flex; align-items: center; gap: 5px; }
.ck-heat.off { display: none; }
.ck-steps { margin-top: 14px; min-height: 108px; }
.ck-step { display: none; }
.ck-step.on { display: block; animation: row-in .35s var(--ease); }
.ck-step h3 { font-size: 25px; font-weight: 800; line-height: 1.25; }
.ck-step p { margin-top: 4px; font-size: 17px; line-height: 1.55; }
.ck-timer { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 10px 10px 10px 12px; border-radius: 24px; background: var(--ink); color: #fff; }
.ck-timer.off { opacity: .45; }
.ck-ring-fg { transition: stroke-dashoffset 1s linear; }
.ck-tt { flex: 1; }
.ck-tt b { display: block; font-size: 24px; line-height: 1.1; }
.ck-tt small { font-size: 12px; color: rgba(255, 255, 255, .6); }
.ck-go { width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.ck-timer.off .ck-go { visibility: hidden; }
.ck-timer.run .ck-go { opacity: .35; }
.ck-timer.done { animation: ring-done .6s var(--spring) 2; background: var(--tomato); }
@keyframes ring-done { 50% { transform: scale(1.04); } }
.ck-nav { display: flex; gap: 10px; margin-top: 12px; }
.ck-prev { width: 52px; height: 52px; flex: none; border: 0; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; cursor: pointer; }
.ck-next { flex: 1; height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 6px 0 20px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-size: 17px; font-weight: 800; cursor: pointer; }
.ck-next .btn-i { width: 40px; height: 40px; }
.ck-voice { display: grid; gap: 10px; align-content: start; }
.say-k { font-size: 13px; color: rgba(243, 243, 240, .55); font-weight: 650; }
.say { font-size: 18px; line-height: 1.6; color: rgba(243, 243, 240, .92); min-height: 4.8em; }
.say span { background: linear-gradient(var(--lime), var(--lime)) no-repeat 0 100% / 0 3px; }
.say.reading span { animation: hl var(--dur, 4s) linear forwards; }
@keyframes hl { to { background-size: 100% 3px; } }
.play { display: inline-flex; align-items: center; gap: 8px; width: fit-content; height: 40px; padding: 0 16px 0 12px; border: 0; border-radius: 999px; background: rgba(243, 243, 240, .1); color: #f3f3f0; font-size: 14px; font-weight: 650; cursor: pointer; }
.play:not(.on) { display: none; }
.play.playing { background: var(--lime); color: var(--ink); }
.try { margin-top: 8px; font-size: 13px; color: rgba(243, 243, 240, .55); }
.cmds { display: flex; flex-wrap: wrap; gap: 10px; }
.cmd { position: relative; height: 46px; padding: 0 18px; border: 0; border-radius: 22px 22px 22px 6px; background: #f3f3f0; color: var(--ink); font-size: 16px; font-weight: 800; cursor: pointer; transition: transform .2s var(--spring); }
.cmd::before { content: "「"; } .cmd::after { content: "」"; }
.lang-en .cmd::before, .lang-ms .cmd::before { content: "“"; } .lang-en .cmd::after, .lang-ms .cmd::after { content: "”"; }
.cmd.main { background: var(--lime); }
.cmd:active { transform: scale(.94); }
.ck-priv { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: rgba(243, 243, 240, .6); margin-top: 6px; }
.ck-priv svg { flex: none; margin-top: 2px; }
.bg-ink .fine { color: rgba(243, 243, 240, .45); }
@media (min-width: 1000px) {
  .ck-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(30px, 5vw, 80px); align-items: start; }
  .ck-text { position: sticky; top: calc(var(--header) + 40px); }
  .drop { height: 300px; }
  .ck-demo { grid-template-columns: 390px minmax(0, 1fr); align-items: start; }
}

/* 火候 knob */
.heat { margin-top: var(--sec); padding-top: var(--sec); border-top: 1px solid rgba(243, 243, 240, .1); }
.h3 { font-size: clamp(28px, 5.4vw, 48px); line-height: 1.15; font-weight: 800; letter-spacing: -.025em; }
.lang-en .h3, .lang-ms .h3 { font-weight: 750; }
.h3 em { font-style: normal; color: var(--lime); }
.h-grid { display: grid; gap: 22px; margin-top: 24px; align-items: center; }
.dial { position: relative; width: min(100%, 480px, 86vw); aspect-ratio: 1; margin: 0 auto; user-select: none; -webkit-user-select: none; }
.dial-face { position: absolute; inset: 0; width: 100%; height: 100%; }
.knob { position: absolute; inset: 19%; border-radius: 50%; cursor: grab; touch-action: pan-y; /* a sideways start turns it, an up-down swipe still scrolls the page */ transform: rotate(-150deg); transition: transform .55s cubic-bezier(.34, 1.3, .64, 1); -webkit-tap-highlight-color: transparent; }
.knob svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.knob.drag { transition: none; cursor: grabbing; }
.knob[data-k="off"] { transform: rotate(0deg); } .knob[data-k="high"] { transform: rotate(-90deg); } .knob[data-k="medhigh"] { transform: rotate(-120deg); }
.knob[data-k="medium"] { transform: rotate(-150deg); } .knob[data-k="medlow"] { transform: rotate(-180deg); } .knob[data-k="low"] { transform: rotate(-210deg); }
.knob:focus-visible { outline: 3px solid var(--lime); outline-offset: 6px; }
.lv { position: absolute; transform: translate(-50%, -50%); border: 0; background: none; color: rgba(243, 243, 240, .5); font-size: clamp(14px, 1.6vw, 19px); font-weight: 800; cursor: pointer; padding: 8px; white-space: nowrap; transition: color .2s, transform .3s var(--spring); }
.lv:hover { color: #fff; }
.lv.on { color: var(--lime); transform: translate(-50%, -50%) scale(1.14); }
.lv-off { left: 50%; top: 5.5%; } .lv-high { left: 5.5%; top: 50%; } .lv-medhigh { left: 11.5%; top: 72.3%; }
.lv-medium { left: 27.8%; top: 88.5%; } .lv-medlow { left: 50%; top: 94.5%; } .lv-low { left: 72.3%; top: 88.5%; }
.lang-en .lv, .lang-ms .lv { font-size: clamp(12.5px, 1.4vw, 17px); }
.lang-en .lv-high, .lang-ms .lv-high { left: 8%; }
.ring { display: flex; align-items: center; gap: 16px; }
.burner { width: clamp(86px, 9vw, 130px); flex: none; }
.flames { transform-origin: 60px 60px; transform: scale(.89); transition: transform .45s var(--spring), opacity .3s; }
.h-grid[data-l="off"] .flames { transform: scale(.3); opacity: 0; } .h-grid[data-l="low"] .flames { transform: scale(.72); }
.h-grid[data-l="medlow"] .flames { transform: scale(.8); } .h-grid[data-l="medium"] .flames { transform: scale(.89); }
.h-grid[data-l="medhigh"] .flames { transform: scale(.975); } .h-grid[data-l="high"] .flames { transform: scale(1.05); }
.flk { transform-origin: 60px 60px; }
.cook.is-live .h-grid:not([data-l="off"]) .flk { animation: flick2 1.3s ease-in-out infinite alternate; }
@keyframes flick2 { to { transform: rotate(6deg) scale(1.03); } }
.h-name { font-size: clamp(46px, 12vw, 96px); line-height: 1; font-weight: 800; color: var(--lime); letter-spacing: -.03em; white-space: nowrap; }
.lang-en .h-name, .lang-ms .h-name { font-size: clamp(32px, 7vw, 64px); white-space: normal; line-height: 1.02; }
.h-name.pop { animation: name-pop .32s var(--spring); }
@keyframes name-pop { from { transform: scale(.9); opacity: .6; } }
.read dl { display: grid; gap: 14px; margin-top: 18px; }
.read dt { font-size: 13px; color: rgba(243, 243, 240, .5); margin-bottom: 2px; }
.read dd { font-size: 16px; line-height: 1.55; min-height: 3.1em; }
.ind { margin-top: 20px; }
.ind-k { font-size: 13px; color: rgba(243, 243, 240, .55); }
.ind-k b { color: #f3f3f0; font-weight: 650; margin-left: 4px; }
.ind-bars { display: flex; gap: 4px; margin-top: 8px; }
.ind-bars i { flex: 1; position: relative; height: 10px; border-radius: 3px; background: rgba(243, 243, 240, .14); transition: background-color .25s; }
.ind-bars i.on { background: var(--tomato); }
.ind-bars small { position: absolute; top: 14px; left: 0; right: 0; text-align: center; font-size: 10.5px; color: rgba(243, 243, 240, .4); }
.h-note { margin-top: 34px; font-size: 13px; color: rgba(243, 243, 240, .5); line-height: 1.6; }
.h-try { margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--lime); }
@media (min-width: 1000px) { .heat-text { max-width: 640px; } .h-grid { margin-top: 30px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 80px); } }

/* ============ 一起煮 ============ */
.together { padding: var(--sec) 0; }
.tg-grid { display: grid; gap: 26px; margin-top: 28px; }
.tg-k { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 14px; }
.tg-k b { font-size: 18px; font-weight: 800; }
.tg-k span { font-size: 13px; color: var(--soft); }
.dishes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 12px; }
.dish { position: relative; display: grid; justify-items: center; gap: 2px; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; text-align: center; }
.dish-ph { display: block; width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--card); box-shadow: 0 0 0 5px var(--card), 0 12px 24px -12px rgba(20, 22, 20, .35); transition: transform .45s var(--spring), box-shadow .25s; }
.dish-ph img { width: 100%; height: 100%; object-fit: cover; }
.dish-n { margin-top: 10px; font-size: 14.5px; font-weight: 750; line-height: 1.3; }
.dish-m { font-size: 12px; color: var(--soft); font-family: var(--num); font-weight: 600; }
.dish-ok { position: absolute; right: 2px; top: 2px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--lime); display: grid; place-items: center; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .35s var(--spring); z-index: 1; }
.dish.on .dish-ph { transform: rotate(-12deg) scale(1.04); box-shadow: 0 0 0 5px var(--ink), 0 14px 26px -12px rgba(20, 22, 20, .45); }
.dish.on .dish-ok { opacity: 1; transform: none; }
.dish.nope { animation: nope .4s; }
@keyframes nope { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.tray { display: flex; align-items: center; gap: 10px; width: fit-content; max-width: 100%; height: 60px; margin: 22px auto 12px; padding: 0 8px 0 8px; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: 0 16px 30px -14px rgba(20, 22, 20, .55); }
.tray-av { display: flex; }
.tray-av img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2.5px var(--ink); animation: plate-on .55s var(--spring) both; }
.tray-av img + img { margin-left: -12px; }
.tray b { font-size: 15px; font-weight: 750; white-space: nowrap; }
.tray-go { width: 44px; height: 44px; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; }
.tg-pick .fine { text-align: center; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tile { border-radius: 22px; padding: 14px 14px 13px; display: grid; gap: 2px; align-content: start; }
.tile small { font-size: 12.5px; font-weight: 650; color: rgba(20, 22, 20, .62); }
.tile b.num { font-size: 30px; line-height: 1.1; }
.tile b.num.pop { animation: name-pop .32s var(--spring); }
.tile > span { font-size: 12px; line-height: 1.4; color: rgba(20, 22, 20, .62); }
.tile-bars { grid-column: 1 / -1; display: grid; gap: 7px; padding: 14px; }
.tb { display: block; height: 12px; border-radius: 6px; background: rgba(255, 255, 255, .7); overflow: hidden; }
.tb i { display: block; height: 100%; border-radius: 6px; transform-origin: 0 50%; transition: transform .6s var(--ease); }
.tb-t { background: var(--ink); transform: scaleX(var(--k, .8)); }
.tb-o { background: rgba(20, 22, 20, .25); }
.tg-out.need .tiles, .tg-out.need .tg-stove { opacity: .35; }
.tg-stove { margin-top: 10px; padding: 14px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }
.tg-sh { display: flex; align-items: center; gap: 6px; color: var(--tomato); font-size: 14px; }
.tg-sh b { color: var(--ink); }
.lanes { display: grid; gap: 8px; margin-top: 10px; }
.lane { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: stretch; }
.lane-k { display: grid; place-items: center; padding: 0 9px; border-radius: 12px; background: var(--bg); font-size: 11.5px; font-weight: 750; white-space: nowrap; }
.lane-row { display: flex; gap: 4px; min-width: 0; }
.blk { flex: 1 1 0; min-width: 0; padding: 7px 9px; border-radius: 12px; display: grid; animation: row-in .4s var(--ease) both; }
.blk b { font-size: 12.5px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blk small { font-size: 11px; color: rgba(20, 22, 20, .6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blk.slow { background: var(--peach); } .blk.wok { background: var(--lime); }
.tg-same { display: none; margin-top: 8px; font-size: 13px; color: var(--soft); }
.tg-stove.none .lanes { display: none; } .tg-stove.none .tg-same { display: block; }
.tg-out .seg { margin-top: 16px; }
.tg-pane { display: none; margin-top: 12px; }
.tg-pane.on { display: block; animation: row-in .35s var(--ease); }
.phases { display: grid; gap: 0; }
.ph { position: relative; padding: 0 0 18px 26px; }
.ph::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: -6px; width: 2px; background: var(--line); }
.ph:last-child::before { display: none; }
.ph::after { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--tomato); box-shadow: 0 0 0 4px var(--tomatoSoft); }
.ph-t { display: block; font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.ph ul { display: grid; gap: 6px; }
.ph li { padding: 10px 12px; border-radius: 16px; background: var(--card); font-size: 14px; line-height: 1.5; }
.ph-w { font-weight: 750; margin-right: 6px; }
.ph-h { color: var(--soft); }
.ing-k { font-size: 13px; color: var(--soft); margin-bottom: 8px; }
.ings { display: grid; gap: 4px; padding: 6px 14px; border-radius: 20px; background: var(--card); }
.ings li { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.ings li:last-child { border: 0; }
.ings .q { margin-left: auto; font-family: var(--num); font-weight: 700; }
.ings em { font-style: normal; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--lime); color: var(--limeInk); font-weight: 700; }
@media (min-width: 1000px) {
  .tg-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(30px, 5vw, 80px); align-items: start; }
  .tg-pick { position: sticky; top: calc(var(--header) + 30px); }
  .tiles { grid-template-columns: 1fr 1fr 1fr; }
  .tile-bars { grid-column: auto; align-content: center; }
}

/* ============ SHOPPING LIST ============ */
.li-grid { display: grid; gap: 28px; }
.li-plates { display: flex; gap: 14px; margin-top: 24px; }
.li-plates li { display: grid; justify-items: center; gap: 8px; width: 90px; text-align: center; }
.li-plates span { display: block; width: 84px; height: 84px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 4px var(--card), 0 10px 20px -10px rgba(20, 22, 20, .4); }
.li-plates img { width: 100%; height: 100%; object-fit: cover; }
.li-plates b { font-size: 13.5px; font-weight: 750; line-height: 1.3; }
.li-notes { display: grid; gap: 10px; margin-top: 24px; }
.li-notes li { display: flex; align-items: center; gap: 12px; font-size: 15.5px; font-weight: 600; line-height: 1.5; }
.li-notes i { width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--card); display: grid; place-items: center; color: var(--ink); }
.blist { padding: 16px; }
.bl-head b { display: block; font-size: 22px; font-weight: 800; }
.bl-head small { font-size: 13px; color: var(--soft); }
.bl-total { margin-top: 12px; padding: 14px 16px; border-radius: 22px; background: var(--lime); color: var(--limeInk); }
.bl-total small { font-size: 12.5px; font-weight: 650; }
.bl-total .num { font-size: 42px; line-height: 1.1; color: var(--ink); }
.bl-bar { display: block; height: 8px; margin-top: 8px; border-radius: 4px; background: rgba(255, 255, 255, .7); overflow: hidden; }
.bl-bar i { display: block; height: 100%; background: var(--ink); border-radius: 4px; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); transition: transform .45s var(--ease); }
.bl-got { display: block; margin-top: 6px; }
.bl-lines { margin-top: 8px; }
.bl-line { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 28px; align-items: center; gap: 10px; width: 100%; padding: 9px 2px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; transition: opacity .3s; }
.bl-ph { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--bg); }
.bl-ph img { width: 100%; height: 100%; object-fit: cover; }
.bl-nm b { display: block; font-size: 15.5px; font-weight: 750; }
.bl-nm small { display: block; font-size: 12px; color: var(--soft); line-height: 1.4; }
.bl-nm .other { display: inline-block; margin-top: 3px; padding: 2px 8px; border-radius: 999px; background: var(--tomatoSoft); color: var(--tomato); font-size: 11px; font-weight: 700; animation: pop-in .4s var(--spring); }
.bl-pr { font-size: 15px; }
.bl-pr sup { color: var(--tomato); }
.bl-tick { width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 2px #cfd1cb; display: grid; place-items: center; color: transparent; transition: background-color .2s, box-shadow .2s, transform .3s var(--spring); }
.bl-line[aria-pressed="true"] { opacity: .5; }
.bl-line[aria-pressed="true"] .bl-nm b { text-decoration: line-through; text-decoration-thickness: 2px; }
.bl-line[aria-pressed="true"] .bl-tick { background: var(--ink); box-shadow: none; color: var(--lime); transform: scale(1.08); }
.bl-pantry { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; margin-top: 10px; padding: 12px 12px 12px 14px; border-radius: 18px; background: var(--cream); transition: opacity .3s; }
.bl-pantry .bl-nm b { font-size: 15px; }
.have { height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--ink); font-size: 13.5px; font-weight: 750; cursor: pointer; }
.have[aria-pressed="true"] { background: var(--ink); color: var(--lime); }
.bl-pantry.on .bl-nm, .bl-pantry.on .bl-pr { opacity: .45; text-decoration: line-through; }
.blist .fine { margin-top: 12px; }
.wa { margin-top: 18px; border-radius: 26px; overflow: hidden; background: #efe7dd; box-shadow: var(--shadow); }
.wa-top { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--card); font-size: 15px; }
.wa-av { width: 34px; height: 34px; border-radius: 50%; background: #d7ead0; color: #2f6e3c; display: grid; place-items: center; }
.wa-body { display: grid; gap: 8px; padding: 14px; }
.bub { max-width: 88%; padding: 8px 10px; border-radius: 14px; font-size: 14px; line-height: 1.45; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.bub.out { justify-self: end; background: #d9fdd3; border-top-right-radius: 4px; display: grid; gap: 4px; }
.bub.in { justify-self: start; background: #fff; border-top-left-radius: 4px; }
.bub-card { display: flex; gap: 8px; align-items: center; padding: 8px; border-radius: 10px; background: rgba(0, 0, 0, .05); }
.bub-logo { width: 38px; height: 38px; border-radius: 9px; background: var(--lime); display: grid; place-items: center; flex: none; }
.bub-card b { display: block; font-size: 13px; }
.bub-card small { font-size: 11.5px; color: var(--soft); }
.bub-link { color: #027eb5; word-break: break-all; }
html.js:not(.rm) .wa .bub { opacity: 0; transform: translateY(12px) scale(.96); transform-origin: 100% 100%; }
html.js:not(.rm) .wa .bub.in { transform-origin: 0 100%; }
html.js:not(.rm) .wa.in .bub { opacity: 1; transform: none; transition: opacity .35s, transform .5s var(--spring); }
html.js:not(.rm) .wa.in .bub.in { transition-delay: 1.1s; }
.wa-fine { padding: 0 14px 12px; font-size: 11.5px; color: var(--soft); }
@media (min-width: 1000px) {
  .li-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(30px, 5vw, 80px); align-items: start; }
  .li-text { position: sticky; top: calc(var(--header) + 40px); }
  .li-app { display: grid; grid-template-columns: minmax(0, 1fr); }
  .blist { padding: 20px; }
}

/* ============ 米宝 LEVELS ============ */
.lv-grid { display: grid; gap: 26px; position: relative; z-index: 1; }
.lv-float { position: absolute; z-index: 0; pointer-events: none; }
.lf1 { width: clamp(120px, 18vw, 230px); right: -14px; top: 30px; }
.lf2 { width: clamp(90px, 12vw, 160px); left: -10px; bottom: 30px; opacity: .9; }
html.sda .lf1 { animation: para-a linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
html.sda .lf2 { animation: para-b linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
@keyframes para-a { from { transform: translateY(120px) rotate(-8deg); } to { transform: translateY(-160px) rotate(10deg); } }
@keyframes para-b { from { transform: translateY(-60px) rotate(6deg); } to { transform: translateY(120px) rotate(-10deg); } }
@media (max-width: 999px) { .lf1 { top: 10px; width: 110px; right: -18px; } .lf2 { display: none; } }
.lv-box { padding: 18px; position: relative; }
.lv-stage { position: relative; height: 190px; display: grid; place-items: center; }
.lv-big { position: absolute; bottom: 0; width: 190px; opacity: 0; transform: translateY(20px) scale(.85); transition: opacity .3s, transform .5s var(--spring); }
.lv-big.on { opacity: 1; transform: none; }
.levels.is-live .lv-big.on { animation: breathe 3.2s ease-in-out .6s infinite alternate; transform-origin: 50% 100%; }
@keyframes breathe { to { transform: scale(1.03, .975); } }
.lv-path { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 8px; }
.lv-path::before { content: ""; position: absolute; left: 12%; right: 12%; top: 33px; height: 3px; border-radius: 2px; background: var(--line); }
.lv-tab { position: relative; display: grid; justify-items: center; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer; }
.lv-av { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: end center; overflow: hidden; box-shadow: 0 0 0 4px var(--card); transition: transform .35s var(--spring), box-shadow .25s; }
.lv-tab.bg-sky, .lv-tab.bg-lav, .lv-tab.bg-lime, .lv-tab.bg-peach { background: none; }
.lv-tab.bg-sky .lv-av { background: var(--sky); } .lv-tab.bg-lav .lv-av { background: var(--lav); } .lv-tab.bg-lime .lv-av { background: var(--lime); } .lv-tab.bg-peach .lv-av { background: var(--peach); }
.lv-av img { width: 90%; }
.lv-tab b { font-size: 14px; font-weight: 750; color: var(--soft); }
.lv-tab.on .lv-av { box-shadow: 0 0 0 4px var(--card), 0 0 0 7px var(--ink); transform: scale(1.08); }
.lv-tab.on b { color: var(--ink); }
.lv-panel { display: none; margin-top: 18px; }
.lv-panel.on { display: block; animation: row-in .4s var(--ease); }
.lv-name { font-size: 30px; font-weight: 800; }
.lv-desc { color: var(--soft); font-size: 15px; }
.lv-k { margin-top: 14px; font-size: 13px; font-weight: 750; color: var(--soft); }
.lv-list { display: grid; gap: 6px; margin-top: 6px; }
.lv-list li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 16px; background: var(--bg); font-size: 14.5px; font-weight: 600; }
.lv-list svg { width: 22px; height: 22px; padding: 4px; flex: none; border-radius: 50%; background: var(--lime); color: var(--limeInk); }
.lv-gets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.lv-gets span { padding: 8px 12px; border-radius: 14px; background: var(--lav); font-size: 13.5px; font-weight: 650; line-height: 1.4; }
.lv-box .fine { margin-top: 14px; }
@media (min-width: 1000px) {
  .lv-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
  .lv-box { padding: 26px 30px; }
  .lv-stage { height: 230px; } .lv-big { width: 230px; }
  .lv-av { width: 80px; height: 80px; } .lv-path::before { top: 40px; }
}

/* ============ RECIPES: the app's recipe browser ============
   cuisine tabs (segmented control) → the app home's diet tiles (a swipe row on phones, 3 x 2 from tablets) → one line
   that says how many dishes fit → the app's recipe cards (RecipeCard: pastel card, square photo, chillies, badges).
   A diet tap folds the dishes it rules out back under a veil (.out = scale + a ::after veil fading in, no filters);
   the ones that fit get the lime tick. Wide screens: the recipe page in a phone + its nutrition card pulled out. */
.recipes { padding: var(--sec) 0; }
.rec { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.rec-main, .rec-aside { min-width: 0; }
.rec-h { display: grid; }
.rec-n { font-size: clamp(110px, 33vw, 250px); line-height: .86; letter-spacing: -.06em; color: var(--ink); }
.rec-sub { font-size: clamp(26px, 6.2vw, 52px); font-weight: 800; letter-spacing: -.025em; line-height: 1.15; margin-top: 8px; color: var(--tomato); }
.cu-tabs { margin-top: 28px; }
.diet-h { margin: 26px 0 12px; font-size: 21px; font-weight: 800; letter-spacing: -.01em; line-height: 1.3; }

.diet-tiles {
  display: grid; grid-auto-flow: column; grid-auto-columns: 180px; gap: 10px;
  margin: 0 calc(-1 * var(--pad)); padding: 2px var(--pad) 4px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none;
}
.diet-tiles::-webkit-scrollbar { display: none; }
.lang-en .diet-tiles, .lang-ms .diet-tiles { grid-auto-columns: 208px; }
.diet-tiles li { scroll-snap-align: start; }
.dtile {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; width: 100%; height: 96px; padding: 15px 0 0 16px;
  border: 0; border-radius: 24px; text-align: left; color: var(--ink); cursor: pointer; overflow: hidden; transition: transform .25s var(--spring);
}
.dtile:active { transform: scale(.96); }
.dtile b { position: relative; z-index: 1; max-width: 68%; font-size: 17px; font-weight: 800; line-height: 1.25; }
.lang-en .dtile b, .lang-ms .dtile b { font-size: 15px; line-height: 19px; }
.dt-n { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 3px; margin-top: 8px; padding: 5px 8px 5px 10px; border-radius: 99px; background: rgba(255, 255, 255, .75); font-size: 12px; font-weight: 700; line-height: 1.2; white-space: nowrap; transition: background-color .2s, color .2s; }
.dtile img { position: absolute; right: -20px; bottom: -20px; width: 90px; height: 90px; border-radius: 50%; border: 5px solid rgba(255, 255, 255, .55); object-fit: cover; transition: transform .5s var(--ease); }
@media (hover: hover) { .dtile:hover img { transform: scale(1.06) rotate(-6deg); } }
.dtile[aria-pressed="true"] { box-shadow: inset 0 0 0 2.5px var(--ink); }
.dtile[aria-pressed="true"] .dt-n { background: var(--ink); color: var(--lime); }

.rec-fit { margin: 16px 0 12px; font-size: 14.5px; font-weight: 600; line-height: 1.5; color: var(--soft); }
.rec.has-diet .rec-fit { color: var(--ink); }

.rgrid { display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rgrid.on { display: grid; }
.rgrid.on .rc { animation: rc-in .5s var(--ease) both; }
.rgrid.on .rc:nth-child(2) { animation-delay: .04s; } .rgrid.on .rc:nth-child(3) { animation-delay: .08s; } .rgrid.on .rc:nth-child(4) { animation-delay: .12s; }
.rgrid.on .rc:nth-child(5) { animation-delay: .16s; } .rgrid.on .rc:nth-child(6) { animation-delay: .2s; } .rgrid.on .rc:nth-child(7) { animation-delay: .24s; } .rgrid.on .rc:nth-child(8) { animation-delay: .28s; }
@keyframes rc-in { from { opacity: 0; transform: translateY(18px) scale(.96); } }
@media (max-width: 699px) { .rgrid .rc:nth-child(n+7) { display: none; } }
.rc { position: relative; display: flex; flex-direction: column; border-radius: 26px; padding: 8px 8px 12px; transition: transform .45s var(--ease); }
.rc::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--bg); opacity: 0; transition: opacity .35s var(--ease); pointer-events: none; }
.rc.out { transform: scale(.94); }
.rc.out::after { opacity: .74; }
.rc-ph { position: relative; display: block; aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: var(--card); }
.rc-ph picture, .rc-ph img { display: block; width: 100%; height: 100%; }
.rc-ph img { object-fit: cover; transition: transform .6s var(--ease); }
@media (hover: hover) { .rc:hover .rc-ph img { transform: scale(1.05); } }
.rc-chili { position: absolute; left: 7px; bottom: 7px; display: flex; gap: 1px; padding: 4px 6px; border-radius: 999px; background: var(--card); }
.rc-ok { position: absolute; right: 7px; top: 7px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--lime); color: var(--limeInk); opacity: 0; transform: scale(.4); transition: opacity .2s, transform .45s var(--spring); }
.rec.has-diet .rc:not(.out) .rc-ok { opacity: 1; transform: none; }
.rc-n { display: -webkit-box; margin: 9px 5px 0; font-size: 15px; font-weight: 700; line-height: 1.3; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.rc .rcard-b { margin-top: auto; padding-top: 8px; }
@media (max-width: 419px) { .rgrid { gap: 8px; } .rc { padding: 6px 6px 10px; } }
@media (max-width: 419px), (min-width: 700px) and (max-width: 1279px) { .rc .rcard-b { margin-left: 2px; margin-right: 0; gap: 3px; } .rc .rcard-b > span { padding: 0 6px; gap: 3px; font-size: 11px; } }

.rec-phone { display: none; }
.nutri { padding: 16px; }
.nu-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.nu-h img { flex: none; width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.nu-h p { display: grid; }
.nu-h b { font-size: 18px; font-weight: 800; line-height: 1.3; }
.nu-h span { font-size: 13px; color: var(--soft); }
.nu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.nu-grid > div { padding: 10px 12px; border-radius: 16px; }
.nu-grid dt { font-size: 12px; color: rgba(20, 22, 20, .62); font-weight: 650; }
.nu-grid dd { font-size: 13px; font-weight: 600; white-space: nowrap; }
.nu-grid dd b { font-size: 24px; }
.nu-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.nu-tags span { padding: 5px 10px; border-radius: 999px; background: var(--lime); color: var(--limeInk); font-size: 12px; font-weight: 700; }
.nutri .fine { margin-top: 8px; }

@media (min-width: 700px) {
  .diet-tiles { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; overflow: visible; }
  .rgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .rc-n { font-size: 15.5px; }
  .nutri { max-width: 520px; }
}
@media (min-width: 1200px) {
  .rec { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
  .rec-aside { padding-top: 40px; }
  .rec-phone { display: block; }
  .rec-phone .phone { --pw: 280px; margin-left: auto; transform: rotate(3deg); }
  .nutri { position: relative; z-index: 2; width: 300px; margin: -150px 0 0 -36px; transform: rotate(-1.5deg); box-shadow: 0 30px 60px -26px rgba(20, 22, 20, .38), 0 1px 2px rgba(20, 22, 20, .05); }
}
@media (min-width: 1200px) and (min-height: 860px) { .rec-aside { position: sticky; top: calc(var(--header) + 12px); } }

/* ============ MORE (five app-like tiles: two even rows on wide screens, one stack on phones) + FAQ ============ */
.more { padding: 0 0 var(--sec); }
.mo-grid { display: grid; gap: 12px; margin-top: 28px; }
.mo { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 22px; border-radius: 28px; overflow: clip; }
.mo h3 { font-size: 22px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; text-wrap: balance; }
.mo h3 em { font-style: normal; color: var(--tomato); }
.mo-head p, .mo-p { margin-top: 6px; font-size: 15.5px; line-height: 1.55; color: var(--soft); }
.mo-fine { margin-top: 10px; font-size: 12.5px; line-height: 1.5; }
/* languages: the real dish photo + the app's cook-mode step card; the text swaps language, its lines rising in one by one */
.ld { display: grid; gap: 12px; margin-top: 16px; flex: 1; }
.ld-ph { position: relative; aspect-ratio: 2 / 1; border-radius: 22px; overflow: hidden; background: var(--cream); }
.ld-ph picture { position: absolute; inset: 0; }
.ld-ph picture, .ld-ph img { display: block; width: 100%; height: 100%; }
.ld-ph img { object-fit: cover; object-position: 50% 62%; }
.ld-names { position: absolute; left: 12px; bottom: 12px; right: 12px; display: grid; }
.ld-name { grid-area: 1 / 1; justify-self: start; display: inline-flex; align-items: center; min-height: 34px; padding: 4px 14px; border-radius: 999px; background: rgba(255, 255, 255, .95); font-size: 14.5px; font-weight: 750; line-height: 1.25;
  opacity: 0; transform: translateY(8px); visibility: hidden; transition: opacity .2s, transform .2s, visibility 0s .2s; }
.ld-name.on { opacity: 1; transform: none; visibility: visible; transition: opacity .35s var(--ease) .08s, transform .45s var(--spring) .08s, visibility 0s; }
.ld-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ld-seg { align-self: flex-start; }
.ld-cards { display: grid; flex: 1; }
.ld-card { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: flex-start; padding: 16px 16px 16px 18px; border-radius: 22px; background: var(--bg); visibility: hidden; transition: visibility 0s .2s; }
.ld-card > * { opacity: 0; transform: translateY(12px); transition: opacity .16s, transform .2s; }
.ld-card.on { visibility: visible; transition: none; }
.ld-card.on > * { opacity: 1; transform: none; transition: opacity .35s var(--ease), transform .5s var(--ease); }
.ld-card.on > :nth-child(2) { transition-delay: .06s; } .ld-card.on > :nth-child(3) { transition-delay: .12s; } .ld-card.on > :nth-child(4) { transition-delay: .18s; }
.ld-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ld-n, .ld-heat { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 750; white-space: nowrap; }
.ld-n { background: var(--ink); color: #fff; }
.ld-heat { gap: 1px; padding-left: 9px; background: var(--card); color: var(--tomato); }
.ld-heat span { margin-left: 4px; }
.ld-t { display: block; margin-top: 14px; font-size: 24px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.ld-do { margin: 6px 0 14px; font-size: 16px; line-height: 1.55; }
.ld-time { margin-top: auto; align-self: stretch; display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border-radius: 22px; background: var(--ink); color: #fff; }
.ld-time i { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--lime); color: var(--ink); }
.ld-time b { font: 800 22px/1.1 var(--num); letter-spacing: -.01em; }
.lang-zh .ld-time b { font-family: var(--cjk); }
/* prices: a receipt whose total is the hero number */
.mo-price h3 { padding-right: 76px; }
.mo-tomato { position: absolute; right: -10px; top: -14px; width: 98px; transform: rotate(16deg); pointer-events: none; }
.rc { margin: 18px 6px 0; transform: rotate(-1.6deg); filter: drop-shadow(0 12px 16px rgba(61, 90, 18, .2)); }
.rc-in { padding: 14px 18px 26px; border-radius: 16px 16px 0 0; background: var(--card);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%; }
.rc-rows > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 4px 0; }
.rc-rows dt { font-size: 14.5px; color: var(--soft); }
.rc-rows dd { margin: 0; font-size: 17px; }
.rc-total { margin-top: 10px; padding-top: 12px; border-top: 2px dashed #d9dbd5; }
.rc-total span { display: block; font-size: 14px; font-weight: 750; color: var(--limeInk); }
.rc-total b { display: block; margin-top: 2px; font-size: clamp(64px, 17vw, 84px); line-height: .95; letter-spacing: -.04em; color: var(--ink); }
.rc-total b em { color: var(--tomato); }
.mo-price .mo-p { margin-top: 18px; color: var(--limeInk); font-weight: 600; }
.mo-price .mo-fine { color: var(--limeInk); }
/* offline: the app's real cook screen in a phone with no signal, the app's offline banner on top */
.mo.mo-off { padding-bottom: 0; }
.mo-off .mo-head p { color: rgba(243, 243, 240, .84); }
.off-stage { position: relative; flex: 1; min-height: 214px; margin-top: 20px; }
.off-stage::before { content: ""; position: absolute; left: 50%; top: 34px; width: 300px; height: 300px; margin-left: -150px; border-radius: 50%; background: rgba(223, 240, 184, .13); }
.off-phone { --pw: 236px; position: absolute; left: 50%; top: 0; margin: 0 0 0 calc(var(--pw) / -2); box-shadow: 0 0 0 1.5px #4d524d, 0 30px 60px -20px rgba(0, 0, 0, .8); }
.off-sig i { opacity: .25; }
.off-sig svg { position: absolute; right: calc(var(--sw) * .006); top: -15%; width: calc(var(--sw) * .036); height: calc(var(--sw) * .036); color: var(--tomato); }
.off-sig { position: relative; }
.off-banner { display: flex; align-items: center; gap: 6px; padding: 7px 12px; background: var(--cream); color: var(--ink); font-size: 10.5px; font-weight: 750; line-height: 1.3; }
.off-banner svg { flex: none; color: var(--tomato); }
/* privacy: the app's list card, 米宝 waving behind it */
.pv { position: relative; margin-top: auto; }
.pv-mibao { position: absolute; right: 8px; bottom: calc(100% - 26px); width: 112px; }
.pv-card { position: relative; padding: 4px 16px; border-radius: 22px; background: var(--card); box-shadow: 0 1px 2px rgba(20, 22, 20, .05), 0 14px 26px -18px rgba(120, 60, 20, .35); }
.pv-card li { display: flex; align-items: center; gap: 12px; padding: 11px 0; font-size: 15px; font-weight: 650; line-height: 1.35; text-wrap: balance; }
.pv-card li + li { border-top: 1px solid var(--line); }
.pv-no, .pv-ok { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; }
.pv-no { background: var(--tomatoSoft); color: var(--tomato); }
.pv-ok { background: var(--lime); color: var(--limeInk); }
.mo-priv h3 { margin-bottom: 68px; padding-right: 108px; }
/* free: RM0 + what is free, ticked */
.free-big { font-size: clamp(76px, 20vw, 104px); line-height: .9; letter-spacing: -.05em; }
.mo-free h3 { margin-top: 12px; }
.free-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
.free-list li { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 6px 8px 6px 8px; border-radius: 16px; background: var(--card); font-size: 13.5px; font-weight: 700; line-height: 1.2; text-wrap: balance; }
.free-list i { flex: none; }
.free-list i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--lime); color: var(--limeInk); }
.free-list i svg { width: 12px; height: 12px; }
.mo-free .mo-fine { margin-top: auto; padding-top: 16px; font-size: 13.5px; color: rgba(20, 22, 20, .74); }
@media (min-width: 700px) {
  .mo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mo-lang { grid-column: 1 / -1; }
  .ld { grid-template-columns: minmax(0, .78fr) minmax(0, 1fr); gap: 14px; }
  .ld-ph { aspect-ratio: auto; min-height: 290px; }
  .off-stage { min-height: 236px; }
  .rc-total b { font-size: 78px; }
  .free-big { font-size: 96px; }
  .free-list li { font-size: 14.5px; }
}
@media (min-width: 1100px) {
  .mo-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
  .mo-lang { grid-column: span 7; } .mo-price { grid-column: span 5; }
  .mo-off, .mo-priv, .mo-free { grid-column: span 4; }
  .mo { padding: 26px; }
  .mo h3 { font-size: 24px; }
  .ld { margin-top: 20px; }
  .rc { margin-top: 22px; }
  .rc-total b { font-size: clamp(74px, 6.4vw, 92px); }
  .free-big { font-size: clamp(110px, 9.6vw, 136px); }
  .off-stage { min-height: 236px; }
  .mo-priv h3 { margin-bottom: 84px; }
  .pv-mibao { width: 128px; }
  .free-list li { font-size: 15.5px; min-height: 48px; padding-left: 10px; }
  .lang-ms .free-list li { font-size: 14.5px; }
  .ld-t { font-size: 28px; }
  .ld-do { font-size: 18px; }
}
/* entrances: the receipt drops in, the phone rises, 米宝 pops up, the free pills pop in (scroll-driven; else once on .in) */
@keyframes rc-in { from { opacity: 0; transform: translateY(46px) rotate(5deg); } }
@keyframes mo-rise { from { opacity: 0; transform: translateY(70px); } }
@keyframes mo-pop { from { opacity: 0; transform: translateY(14px) scale(.8); } }
html.sda .rc { animation: rc-in linear both; animation-timeline: view(); animation-range: entry 5% entry 100%; }
html.sda .off-phone { animation: mo-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
html.sda .pv-mibao { animation: mo-rise linear both; animation-timeline: view(); animation-range: entry 30% entry 100%; }
html.sda .free-list li { animation: mo-pop linear both; animation-timeline: view(); animation-range: entry 10% entry 80%; }
html.sda .free-list li:nth-child(2) { animation-range: entry 25% entry 95%; } html.sda .free-list li:nth-child(3) { animation-range: entry 40% entry 100%; } html.sda .free-list li:nth-child(4) { animation-range: entry 55% cover 30%; }
html.js:not(.sda):not(.rm) :is(.rc, .off-phone, .pv-mibao, .free-list li) { transition: opacity .6s var(--ease) .2s, transform .8s var(--spring) .2s; }
html.js:not(.sda):not(.rm) .free-list li:nth-child(2) { transition-delay: .28s; } html.js:not(.sda):not(.rm) .free-list li:nth-child(3) { transition-delay: .36s; } html.js:not(.sda):not(.rm) .free-list li:nth-child(4) { transition-delay: .44s; }
html.js:not(.sda):not(.rm) .mo:not(.in) .rc { opacity: 0; transform: translateY(46px) rotate(5deg); }
html.js:not(.sda):not(.rm) .mo:not(.in) :is(.off-phone, .pv-mibao) { opacity: 0; transform: translateY(70px); }
html.js:not(.sda):not(.rm) .mo:not(.in) .free-list li { opacity: 0; transform: translateY(14px) scale(.8); }
.faq { padding: 0 0 var(--sec); }
.faq-grid { display: grid; gap: 22px; }
.faq-side { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.faq-mibao { width: 84px; }
.faq-list { display: grid; gap: 8px; }
.qa { border-radius: 22px; background: var(--card); }
.qa summary { list-style: none; display: flex; align-items: center; gap: 14px; justify-content: space-between; padding: 16px 16px 16px 20px; cursor: pointer; font-size: 16.5px; font-weight: 750; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--bg); display: grid; place-items: center; transition: transform .3s var(--spring), background-color .2s; }
.qa[open] summary i { transform: rotate(45deg); background: var(--lime); }
.qa p { padding: 0 20px 18px; color: var(--soft); font-size: 15.5px; line-height: 1.7; }
.qa[open] p { animation: row-in .35s var(--ease); }
@media (min-width: 1000px) { .faq-grid { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 60px; align-items: start; } .faq-side { position: sticky; top: calc(var(--header) + 40px); display: block; } .faq-mibao { width: 170px; margin-top: 24px; } }

/* ============ CLOSING ============ */
.end { padding-bottom: 16px; }
.end-grid { display: grid; gap: 34px; justify-items: center; text-align: center; }
.end-text { display: grid; justify-items: center; }
.end-mibao { width: 130px; margin-bottom: 6px; }
.end.is-live .end-mibao { animation: jump 1.6s var(--ease) infinite; transform-origin: 50% 100%; }
@keyframes jump { 0%, 60%, 100% { transform: none; } 20% { transform: translateY(-16px) scale(1.02, .98); } 35% { transform: scale(1.05, .94); } }
.end-h { font-size: clamp(38px, 10vw, 84px); }
.end-p { margin: 12px 0 22px; font-size: 17px; color: var(--limeInk); font-weight: 600; }
.end-text .stores { justify-content: center; color: var(--limeInk); }
.end-stage { position: relative; width: min(86vw, 460px); aspect-ratio: 1 / 1.12; display: grid; place-items: center; }
.end-phone { --pw: min(56vw, 250px); position: relative; z-index: 2; transform: rotate(-4deg); }
.orbit { position: absolute; inset: 0; }
.end.is-live .orbit { animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.orb { position: absolute; width: 24%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 5px var(--card), 0 14px 24px -12px rgba(20, 22, 20, .4); }
.orb img { width: 100%; height: 100%; object-fit: cover; }
.o0 { left: 37%; top: 0; } .o1 { right: 0; top: 18%; } .o2 { right: 2%; bottom: 14%; } .o3 { left: 37%; bottom: 0; } .o4 { left: 2%; bottom: 14%; } .o5 { left: 0; top: 18%; }
@media (min-width: 1000px) {
  .end-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); text-align: left; justify-items: stretch; align-items: center; }
  .end-text { justify-items: start; }
  .end-text .stores { justify-content: flex-start; }
  .end-stage { justify-self: center; }
  .end-phone { --pw: 260px; }
  .end-mibao { width: 160px; }
}

/* ============ footer ============ */
.foot { margin-top: 16px; padding: 56px 0 120px; background: var(--nav); color: #f3f3f0; border-radius: 34px 34px 0 0; }
@media (min-width: 700px) { .foot { border-radius: 48px 48px 0 0; } }
.foot .logo { color: #f3f3f0; }
.foot-grid { display: grid; gap: 28px; }
.foot-brand { display: grid; gap: 10px; align-content: start; }
.foot-brand p { color: rgba(243, 243, 240, .72); font-size: 15px; }
.foot .fine { color: rgba(243, 243, 240, .5); }
.foot-links, .foot-langs { display: grid; gap: 2px; align-content: start; }
.foot-links a, .foot-langs a { display: inline-flex; align-items: center; gap: 9px; padding: 7px 0; text-decoration: none; color: #f3f3f0; font-size: 15px; }
.foot-langs a[aria-current] { font-weight: 700; color: var(--lime); }
@media (hover: hover) { .foot-links a:hover, .foot-langs a:hover { text-decoration: underline; text-underline-offset: 4px; } }
.foot-copy { margin-top: 30px; }
.foot-brand .studio { color: var(--lime); text-underline-offset: 3px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.legal .foot { padding-bottom: 40px; }
@media (min-width: 1000px) { .foot { padding-bottom: 48px; } }

/* ============ reveals ============ */
/* scroll-driven (Chrome / Edge / Safari 26+): tied to the element entering the screen, runs off the main thread */
html.sda .rv { animation: up-in linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
html.sda .h2, html.sda .rec-h { view-timeline-name: --h; }
html.sda .h2 .ln > span { animation: line-up linear both; animation-timeline: --h; animation-range: entry 15% entry 85%; }
html.sda .h2 .ln.em > span { animation-range: entry 30% entry 100%; }
html.sda .rgrid, html.sda .diet-tiles { animation: up-in linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
@keyframes up-in { from { opacity: 0; transform: translateY(30px); } }
/* everyone else: one-time reveal when it comes in (site.js adds .in) */
html.js:not(.sda):not(.rm) .rv { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .8s var(--ease); }
html.js:not(.sda):not(.rm) .rv.in { opacity: 1; transform: none; }
html.js:not(.sda):not(.rm) .h2 .ln > span { transform: translateY(112%); transition: transform .9s cubic-bezier(.16, 1, .3, 1); }
html.js:not(.sda):not(.rm) .h2 .ln.em > span { transition-delay: .12s; }
html.js:not(.sda):not(.rm) .h2.in .ln > span { transform: none; }
/* the hero has its own load-in */
html.sda .hero .rv { animation: none; }

/* ============ policy pages (/privacy, /terms, /refund, /account/delete): same header + footer ============ */
.legal-main { padding: calc(var(--header) + 32px) 0 clamp(56px, 8vw, 96px); }
.legal-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.legal-toc { display: none; }
.doc-card { background: var(--card); border-radius: 30px; padding: 26px 20px 30px; max-width: 74ch; width: 100%; margin: 0 auto; box-shadow: var(--shadow); }
.doc-card h1 { font-size: clamp(30px, 5.4vw, 46px); line-height: 1.15; font-weight: 800; letter-spacing: -.025em; margin-bottom: 8px; }
.doc-card h2 { font-size: clamp(21px, 2.6vw, 26px); line-height: 1.3; font-weight: 800; margin: 34px 0 10px; scroll-margin-top: calc(var(--header) + 20px); }
.doc-card h3 { font-size: 17px; font-weight: 750; margin: 22px 0 8px; }
.doc-card p, .doc-card li { font-size: 16px; line-height: 1.75; }
.doc-card p { margin: 0 0 12px; }
.doc-card ul { list-style: disc; padding-left: 22px; margin: 0 0 14px; }
.doc-card ol { list-style: decimal; padding-left: 22px; margin: 0 0 14px; }
.doc-card li { margin-bottom: 6px; }
.doc-card .en { color: var(--soft); font-size: 15px; }
.doc-card .muted { color: var(--soft); }
.doc-card .faint { color: var(--faint); font-size: 14px; }
.doc-card a { text-underline-offset: 3px; overflow-wrap: anywhere; }
.doc-form { display: grid; gap: 10px; margin-top: 20px; max-width: 460px; }
.doc-form label { font-size: 15px; font-weight: 650; }
.doc-form input[type=email], .doc-form input[type=text] { width: 100%; height: 52px; border-radius: 16px; border: 1.5px solid var(--line); padding: 0 16px; font: inherit; font-size: 17px; background: var(--card); color: var(--ink); }
.doc-form input:focus { outline: 2.5px solid var(--ink); outline-offset: 1px; }
.doc-form .btn { width: 100%; height: 54px; margin-top: 6px; justify-content: center; padding: 0 20px; }
.doc-check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400 !important; font-size: 15.5px !important; line-height: 1.5; }
.doc-check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--ink); }
.doc-err { color: var(--tomato); font-size: 14px; }
.doc-note { border-radius: 16px; padding: 14px 16px; font-size: 15px; line-height: 1.6; margin: 16px 0 6px; background: var(--peach); }
.doc-note.ok { background: var(--lime); color: var(--limeInk); }
.doc-link { background: none; border: 0; font: inherit; font-size: 15px; color: var(--soft); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 10px 0; }
@media (min-width: 700px) { .doc-card { padding: 40px 48px 48px; } }
@media (min-width: 1100px) {
  .legal-grid.has-toc { grid-template-columns: 240px minmax(0, 74ch); justify-content: center; gap: 56px; align-items: start; }
  .legal-grid.has-toc .doc-card { margin: 0; }
  .legal-toc { display: block; position: sticky; top: calc(var(--header) + 24px); max-height: calc(100vh - var(--header) - 48px); overflow: auto; padding-top: 8px; }
  .legal-toc p { font-weight: 750; font-size: 14px; margin-bottom: 10px; }
  .legal-toc ol { display: grid; gap: 2px; border-left: 2px solid var(--line); }
  .legal-toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.45; color: var(--soft); text-decoration: none; }
  .legal-toc a:hover { color: var(--ink); }
  .legal-toc a.is-on { color: var(--ink); border-left-color: var(--tomato); font-weight: 650; }
}

/* ============ reduced motion: everything still ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
html.rm .ribbon .mq-in, html.rm .orbit, html.rm .end-mibao, html.rm .lv-big { animation: none !important; }
