:root {
  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
  --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.25rem; --text-xl: 1.5625rem; --text-2xl: 1.953rem; --text-3xl: 2.441rem;
  --text-display-s: clamp(2.25rem, 4vw + 0.5rem, 3.75rem); --text-display: clamp(2.75rem, 5vw + 1rem, 5.25rem);
  --text-section: clamp(2rem, 2.5vw + 1rem, 3.5rem); --text-title: clamp(1.25rem, 0.75vw + 0.875rem, 1.625rem); --text-lead: clamp(1.125rem, 0.35vw + 1rem, 1.375rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in: cubic-bezier(0.7, 0, 0.84, 0); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms;
  --color-error: oklch(52% 0.19 27); --color-success: oklch(50% 0.12 150);
  --container: 1440px; --nav-h: 72px; --gutter: 64px; --gap-columns: 32px; --section-gap-s: 120px; --section-gap: 144px; --section-gap-l: 176px;
  --z-base: 1; --z-raised: 10; --z-dropdown: 100; --z-sticky: 200; --z-sticky-nav: 300; --z-modal: 400; --z-toast: 500; --z-tooltip: 600;
  --color-paper: #FBFAF7; --color-paper-2: #F3F0E9; --color-paper-3: #E9E4D9;
  --color-ink: #141210; --color-ink-2: #3A3430; --color-muted: #625A52;
  --color-rule: rgba(20, 18, 16, 0.14);
  --color-accent: #EF4423; --color-accent-2: #FF6A3D; --color-accent-ink: #141210; --color-focus: #0E3B24;
  --color-forest: #0E3B24; --color-cream: #F7F4EC; --color-on-dark-rule: rgba(247, 244, 236, 0.22);
  --field-turmeric: #D9A44B; --field-lavender: #ACA3C3;
  --kitchen-tan: #C98F62; --kitchen-olive: #6F7B41; --kitchen-olive-deep: #656F3A; --kitchen-rose: #C47C80;
  --font-display: "Fraunces", Georgia, serif; --font-body: "Be Vietnam Pro", ui-sans-serif, system-ui, sans-serif; --font-outlier: var(--font-body);
  --display-weight: 600;
  --radius-card: 4px; --radius-pill: 999px; --rule-hair: 1px; --shadow-card: none;
  --tracking-display: -0.02em;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--color-muted) var(--color-paper); scroll-padding-top: var(--space-3xl); }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.55; -webkit-font-smoothing: antialiased; caret-color: var(--color-accent); }
::selection { background: color-mix(in oklab, var(--color-accent) 22%, transparent); color: var(--color-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight, 700); font-synthesis: none; letter-spacing: var(--tracking-display); line-height: 1.05; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
h1 { max-width: 20ch; font-size: var(--text-display); } h2 { max-width: 30ch; font-size: var(--text-section); } h3 { max-width: 40ch; font-size: var(--text-title); line-height: 1.2; }
.lead { font-size: var(--text-lead); line-height: 1.45; max-width: 52ch; }
p { margin: 0; text-wrap: pretty; }
p:not([class]) { max-width: 65ch; }
img, video { max-width: 100%; height: auto; display: block; }
svg { display: block; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); box-sizing: border-box; }
.num, .figure, td.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[data-slot] { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--color-paper-2, var(--color-paper)), var(--color-paper-3, var(--color-paper))); }
[data-slot] > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
[data-slot]:has(> img) > :not(img):not([data-keep]) { display: none !important; }
@media (max-width: 60rem) { :root { --gutter: 24px; --section-gap-s: 80px; --section-gap: 96px; --section-gap-l: 120px; } }
@media (max-width: 40rem) { :root { --gutter: 16px; --section-gap-s: 56px; --section-gap: 72px; --section-gap-l: 96px; --gap-columns: 16px; } }
@media (prefers-reduced-motion: reduce) { *:not(.keep-motion), *:not(.keep-motion)::before, *:not(.keep-motion)::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }
/* ===== Biến cũ: site.js và cart.js còn đọc các tên này ===== */
:root {
  --bg: var(--color-paper); --bg2: var(--color-paper-2);
  --text: var(--color-ink); --muted: var(--color-muted);
  --terra: var(--color-accent); --terra2: var(--color-accent-2);
  --line: var(--color-rule);
}

html { scroll-behavior: smooth; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
.wrap { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ===== Nút và link ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 52px; padding: 0 var(--space-lg); border: 1px solid var(--color-accent); border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); font: 600 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-accent-2); border-color: var(--color-accent-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn .ic { display: none; }
.link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em; transition: text-decoration-color var(--dur-short) var(--ease-out); }
.link:hover { text-decoration-thickness: 2px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-lg); }


:root {
  /* Một góc duy nhất cho cả trang: tan = 0,15 (8,53 độ) */
  --slope: 0.15;
  --angle: -8.531deg;
  --c-terra: #EF4423; --c-ink: #141210; --c-cream: #F7F4EC; --c-cut: #F7F4EC;
  --c-signature-deep: #9A5E33; --c-man-deep: #566131; --c-banh-deep: #A2565C; --c-turmeric: #F2B01E; --c-forest: #0E3B24; --c-tan: #D9A475; --c-olive: #4F5A2C; --c-rose: #D9979A; --c-lavender: #ACA3C3;
  --font-display: "Archivo", "Be Vietnam Pro", system-ui, sans-serif;
  --font-body: "Be Vietnam Pro", system-ui, sans-serif;
  --display-weight: 900; --tracking-display: -0.012em;
  --radius-pill: 0;
  --color-focus: var(--c-ink);
  --pad: clamp(40px, 5vw, 80px);
}
html, body { overflow-x: clip; }
body { background: var(--c-cream); font-stretch: 100%; }
a { color: inherit; }
main { position: relative; z-index: 1; container-type: inline-size; }
h1, h2, h3 { font-family: var(--font-display); max-width: none; font-stretch: 125%; }
h1 { text-wrap: wrap; }
html:root[data-theme="light"] main :is(p, .lead, li, dd, dt, small, span):not(.btn) { color: inherit; }
h2 { font-size: clamp(2.25rem, 1.2rem + 3.6vw, 5.25rem); line-height: 1.14; }
h3 { font-weight: 800; }
.lead { font-size: clamp(1.125rem, 1rem + 0.35vw, 1.375rem); line-height: 1.45; font-weight: 500; max-width: 46ch; }
p { max-width: 58ch; }
.container { max-width: none; }

/* Nút: khối mực vuông, không bo */
.btn { font-family: var(--font-display); background: var(--c-ink); border-color: var(--c-ink); color: var(--c-cream); font-weight: 700; font-stretch: 112%; min-height: 56px; padding-inline: 28px; }
.btn:hover { background: var(--c-terra); border-color: var(--c-ink); color: var(--c-ink); }
.link { display: inline-flex; align-items: center; min-height: 44px; }
.hero .btn:hover, .final .btn:hover { background: var(--c-cream); border-color: var(--c-cream); color: var(--c-ink); }


/* Dải chéo: mép trên luôn cùng một góc. --r là độ dốc tính theo bề ngang trang */
.slice { --r: calc(100cqw * var(--slope)); position: relative; margin-top: calc(var(--r) * -1); clip-path: polygon(0 var(--r), 100% 0, 100% 100%, 0 100%); }

/* ===== Màn đầu ===== */
.hero { --r: calc(100cqw * var(--slope)); --nav: 72px; --fs: min(18.6cqw, calc((100svh - var(--nav)) * 0.288));
  --w: 4.29em; --yc: 0.585em; --a: 0.14em; --b: 0.042em; --t: calc((var(--b) + var(--a) * var(--slope)) * 2); --wt: 1.02em;
  --jx: 4.3em; --js: 1.76em;
  position: relative; overflow: clip; background: var(--c-terra); color: var(--c-ink); padding-bottom: var(--r); }
.stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto 1fr; column-gap: var(--gap-columns);
  min-height: calc(100svh - var(--nav)); padding: calc(var(--fs) * 0.05) var(--gutter) 24px; align-content: start; }
.lede { display: contents; }
.lede h1 { grid-column: 1 / -1; grid-row: 1; position: relative; z-index: 2; font-size: var(--fs); }
.w-cat, .w-duong, .w-rest { display: block; }
.w-cat { line-height: 1.09; padding-top: 0.02em; margin-left: -0.05em; }
.w-duong { position: relative; width: var(--w); height: 1.2em; line-height: 1.2em; margin-top: -0.14em; margin-left: calc(var(--a) - 0.04em); white-space: nowrap; }
.w-a, .w-duong::after { position: absolute; inset: 0 auto auto 0; width: var(--w); }
.w-a { display: block; clip-path: polygon(-1em -1em, calc(var(--w) + 1em) -1em, calc(var(--w) + 1em) calc(var(--yc) - (var(--w) / 2 + 1em) * var(--slope)), -1em calc(var(--yc) + (var(--w) / 2 + 1em) * var(--slope))); transform: translate(calc(var(--a) * -1), calc(var(--b) * -1)); }
.w-duong::after { content: attr(data-w); content: attr(data-w) / ""; clip-path: polygon(-1em calc(var(--yc) + (var(--w) / 2 + 1em) * var(--slope)), calc(var(--w) + 1em) calc(var(--yc) - (var(--w) / 2 + 1em) * var(--slope)), calc(var(--w) + 1em) 2em, -1em 2em); transform: translate(var(--a), var(--b)); }
/* Vết cắt: một đường thẳng đi qua cả màn, đúng góc của các dải bên dưới */
.w-duong::before { content: ""; position: absolute; z-index: -1; left: calc(var(--w) / 2 - 12em); top: calc(var(--yc) - var(--t) / 2); width: 24em; height: var(--t); background: var(--c-cut); transform: rotate(var(--angle)); }
.w-rest { font-size: 0.3em; line-height: 1.14; margin-top: 0.3em; letter-spacing: -0.008em; font-weight: 900; }
.lede .lead { grid-column: 1 / -1; grid-row: 1; align-self: end; justify-self: end; width: min(34ch, 29%); padding-bottom: 4px; text-wrap: balance; position: relative; z-index: 2; }
.jar[data-slot] { font-size: var(--fs); position: absolute; z-index: 3; overflow: visible; background: none; width: var(--js); height: var(--js);
  left: calc(var(--gutter) + var(--jx) - var(--js) * 0.497);
  top: calc(var(--wt) + var(--yc) + (var(--w) / 2 - var(--jx)) * var(--slope) + var(--t) / 2 - var(--js) * 0.859);
  transform: rotate(var(--angle)); transform-origin: 49.7% 85.9%; }
.jar[data-slot] > img { position: static; width: 100%; height: 100%; object-fit: contain; clip-path: polygon(35% 17.9%, 69.5% 17.9%, 74.5% 18.3%, 77.4% 19.2%, 78% 20.2%, 78% 29.2%, 76.7% 30.4%, 76.7% 30.9%, 78.2% 31.8%, 78.5% 33%, 78.5% 77.8%, 77.7% 80.2%, 76% 82.2%, 73.3% 83.5%, 67.3% 84.7%, 59.3% 85.6%, 51.3% 85.9%, 43.3% 85.8%, 34% 85.2%, 28% 84.4%, 24.3% 83.2%, 22.7% 81.8%, 21.5% 79.8%, 21.1% 77.8%, 21.1% 33%, 21.8% 31.8%, 23.3% 30.9%, 23.3% 30.4%, 22% 29.2%, 22% 20.2%, 22.6% 19.2%, 25.5% 18.3%); }
.counter { grid-column: 1 / -1; grid-row: 3; align-self: end; position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; margin-top: 18px; border-top: 2px solid var(--c-ink); padding: 14px 72px 0 0; }
.offer { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.offer > div { display: grid; grid-template-columns: auto; align-content: start; }
.offer dt { font-weight: 700; font-size: 1rem; line-height: 1.3; }
.offer-price { font-family: var(--font-display); order: -1; font-weight: 900; font-stretch: 125%; font-size: clamp(1.5rem, 1rem + 1.1vw, 2rem); line-height: 1.2; }
.offer-use { font-size: 0.9375rem; font-weight: 500; line-height: 1.35; }
.hero .lead, .final .lead { font-weight: 500; }
.swap h2, .kitchens-head h2, .ways-head h2 { color: var(--c-forest); }
.counter .actions { flex-wrap: nowrap; gap: 24px; }

/* ===== Hũ đường ===== */
.swap { background: var(--c-cream); padding: calc(var(--r) + var(--pad)) 0 var(--pad); }
.swap-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px clamp(40px, 6vw, 96px); align-items: start; }
.swap h2 { margin-bottom: 28px; }
.swap-more { margin-top: 16px; }
.swap-go { margin-top: 32px; }
.gains { margin-top: calc(var(--r) * -0.62); border-top: 2px solid var(--c-ink); }
.gains li { padding: 16px 0; border-bottom: 1px solid rgba(20, 18, 16, 0.3); font-size: clamp(1.125rem, 1rem + 0.5vw, 1.5rem); font-weight: 600; line-height: 1.3; }

/* ===== Ba bếp: ba dải chéo chồng lên nhau ===== */
.kitchens { background: var(--c-cream); --r: calc(100cqw * var(--slope)); }
.kitchens-head { padding-block: 24px calc(var(--r) * 0.72); }
.kitchens-head h2 { font-size: clamp(2.5rem, 1rem + 6.4vw, 7.5rem); line-height: 1.12; }
.kitchens-row { display: block; }
.kitchen { --r: calc(100cqw * var(--slope)); position: relative; margin-top: calc(var(--r) * -1); clip-path: polygon(0 var(--r), 100% 0, 100% 100%, 0 100%); min-height: clamp(560px, 46cqw, 700px); display: block; padding: calc(var(--r) + 44px) var(--gutter) calc(var(--r) * 0.62 + 44px); color: var(--c-ink); }
.kitchen--tan { background: var(--c-cream); color: var(--c-ink); }
.kitchen--olive { background: var(--c-cream); color: var(--c-ink); }
.kitchen--rose { background: var(--c-cream); color: var(--c-ink); padding-bottom: calc(var(--r) * 0.62 + 44px); }
.kitchen-pic { position: absolute; top: 0; right: 0; bottom: 0; width: 42%; }
.kitchen-pic img { width: 100%; height: 100%; object-fit: cover; }
.kitchen-body { position: relative; max-width: 54%; }
.kitchen-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.kitchen-title h3 { font-size: clamp(2.25rem, 1rem + 3.8vw, 4.75rem); font-weight: 900; line-height: 1.14; }
.kitchen-title h3 a { text-decoration: none; }
.kitchen-title h3 a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.12em; }
/* Beni đứng trên tấm nền kem của ảnh, mép trên tấm nền cắt đúng góc của trang */
.kitchen-title .beni { width: 84px; height: 84px; flex: none; object-fit: contain; clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%); }
.kitchen-more { margin-top: 14px; }
.kitchen-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; list-style: none; font-size: clamp(1.25rem, 1rem + 0.6vw, 1.625rem); font-weight: 700; line-height: 1.25; cursor: pointer; }
.kitchen-q::-webkit-details-marker { display: none; }
.kitchen-q::after { content: "+"; font-size: 1.5em; line-height: 1; font-weight: 500; }
.kitchen-more[open] .kitchen-q::after { content: "\2212"; }
.kitchen-more p { margin-top: 8px; max-width: 52ch; }
.kitchen-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; margin-top: 16px; border-top: 1px solid currentColor; }
.kitchen-links a { display: flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
.kitchen-links a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.kitchen-all { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; font-weight: 700; text-decoration: underline; text-underline-offset: 0.3em; }

/* ===== Mục tiêu ===== */
.goals { background: var(--c-forest); color: var(--c-cream); --color-focus: var(--c-cream); padding: calc(var(--r) + var(--pad)) 0 calc(var(--r) * 0.5 + var(--pad)); }
.goals-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px clamp(40px, 6vw, 96px); align-items: start; }
.goals h2 { margin-bottom: 24px; }
.goals-text p + p { margin-top: 16px; }
.goals .actions { margin-top: 32px; }
.goals .btn { background: var(--c-turmeric); border-color: var(--c-turmeric); color: var(--c-ink); }
.goals .btn:hover { background: var(--c-cream); border-color: var(--c-cream); }
.goalcard { margin-top: calc(var(--r) * -0.62); }
.gtabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 2px solid var(--c-cream); }
.gtab { min-height: 52px; padding: 0 8px; border: 0; border-left: 2px solid var(--c-cream); background: transparent; color: var(--c-cream); font-weight: 700; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.gtab:first-child { border-left: 0; }
.gtab:hover { background: rgba(247, 244, 236, 0.14); }
.gtab.on { background: var(--c-cream); color: var(--c-ink); }
.gtab:focus-visible { outline-offset: -6px; outline-color: var(--c-turmeric); }
.kcal { font-family: var(--font-display); margin-top: 24px; font-weight: 900; font-stretch: 125%; font-size: clamp(2rem, 1rem + 2.7vw, 3.5rem); line-height: 1.1; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 0.28em; }
.kcal-to { font-weight: 400; }
.kcal small { flex-basis: 100%; margin-top: 6px; font-size: 1rem; font-weight: 500; font-stretch: 100%; }
#g-meals { margin-top: 20px; border-top: 1px solid rgba(247, 244, 236, 0.4); }
.meal { display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; gap: 16px; align-items: center; min-height: 72px; padding-block: 8px; border-bottom: 1px solid rgba(247, 244, 236, 0.4); }
.meal .lab { font-size: 0.875rem; }
.meal .nm { font-weight: 600; font-size: 1.0625rem; line-height: 1.3; }
.meal .th { width: 56px; height: 56px; object-fit: cover; }
.goal-note { margin-top: 16px; font-size: 0.875rem; line-height: 1.5; color: var(--c-cream); }

/* ===== Banner tart ===== */
.tart { background: var(--c-lavender); }
.tart-in { position: relative; display: block; color: var(--c-ink); text-decoration: none; }
.tart-in img { width: 100%; height: auto; }
.tart-text { position: absolute; inset: 0; display: flex; align-items: center; }
.tart-box { display: block; max-width: 46%; padding-top: calc(var(--r) * 0.62); }
.tart-head { font-family: var(--font-display); display: block; font-weight: 900; font-stretch: 125%; font-size: clamp(1.875rem, 1rem + 2.6vw, 3.75rem); line-height: 1.14; letter-spacing: -0.01em; }
.tart-line { display: block; margin-top: 16px; max-width: 42ch; font-size: 1.125rem; font-weight: 500; line-height: 1.45; }
.tart-box .btn { margin-top: 24px; }
.tart-in:hover .btn { background: var(--c-terra); color: var(--c-ink); }

/* ===== Cách cắt đường ===== */
.ways { background: var(--c-cream); padding: calc(var(--r) + var(--pad)) 0 calc(var(--r) + 32px); }
.ways-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px clamp(40px, 5vw, 80px); align-items: start; }
.ways-head h2 { margin-bottom: 24px; }
.ways-list { margin-top: calc(var(--r) * -0.7); }
.ways-rows { border-top: 2px solid var(--c-ink); }
.way { display: grid; grid-template-columns: minmax(0, 12em) minmax(0, 1fr) auto; gap: 8px 24px; align-items: baseline; min-height: 44px; padding: 18px 0; border-bottom: 1px solid rgba(20, 18, 16, 0.3); text-decoration: none; }
.way-name { font-family: var(--font-display); font-weight: 800; font-stretch: 112%; font-size: 1.25rem; line-height: 1.25; }
.way-go { font-weight: 700; text-decoration: underline; text-underline-offset: 0.3em; white-space: nowrap; }
.way:hover .way-name { text-decoration: underline; text-underline-offset: 0.2em; }
.way-help { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 16px 20px; align-items: center; margin-top: 8px; padding: 14px 0; text-decoration: none; }
.way-help .beni { width: 72px; height: 72px; object-fit: contain; }

/* ===== GrabFood ===== */
.grab { background: var(--c-turmeric); color: var(--c-ink); padding: calc(var(--r) + var(--pad)) 0 calc(var(--r) * 0.6 + var(--pad)); }
.grab-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(40px, 6vw, 96px); align-items: start; }
.grab-more { margin-top: 12px; }
.grab-head > div { margin-top: calc(var(--r) * -0.62); }
.plates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 48px; align-items: start; }
/* Ba đĩa đứng thang theo đúng góc cắt */
.plates li:nth-child(1) { margin-top: calc(var(--r) * 0.62); }
.plates li:nth-child(2) { margin-top: calc(var(--r) * 0.31); }
.plate { display: block; text-decoration: none; }
.plate img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.plate h3 { margin-top: 12px; font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem); font-stretch: 100%; font-weight: 700; line-height: 1.3; letter-spacing: 0; }
.plate:hover h3 { text-decoration: underline; text-underline-offset: 0.2em; }
.grab-go { margin-top: 32px; }

/* ===== Kết ===== */
.final { background: var(--c-terra); color: var(--c-ink); padding: calc(var(--r) + var(--pad)) 0 calc(var(--r) + var(--pad)); clip-path: polygon(0 var(--r), 100% 0, 100% calc(100% - var(--r)), 0 100%); }
.final h2 { font-size: clamp(2.5rem, 1rem + 6.4vw, 7.5rem); line-height: 1.12; }
.final-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; margin-top: 32px; }
/* Lề trên tính theo % là tính theo bề ngang, nên 15% đúng bằng độ dốc của trang */

footer .foot-brand .logo-img { filter: none; }

/* ===== Lung lay nhẹ khi mở trang: chữ nguyên vẹn rồi bị cắt ===== */
@media (prefers-reduced-motion: no-preference) {
  .w-a { animation: slide-up 760ms var(--ease-out) 240ms backwards; }
  .w-duong::after { animation: slide-down 760ms var(--ease-out) 240ms backwards; }
  .w-duong::before { animation: open-cut 760ms var(--ease-out) 240ms backwards; }
  @keyframes slide-up { from { transform: none; } }
  @keyframes slide-down { from { transform: none; } }
  @keyframes open-cut { from { transform: rotate(var(--angle)) scaleY(0); } }
}

@media (max-width: 1160px) {
  .kitchen-body { max-width: 56%; }
  .way { grid-template-columns: minmax(0, 1fr) auto; }
  .way-line { grid-column: 1 / 2; grid-row: 2; }
  .way .way-go { grid-column: 2; grid-row: 1 / 3; align-self: center; }
}

@media (min-width: 981px) {
}
@media (max-width: 1160px) {
  .hero { --fs: min(18.6cqw, calc((100svh - var(--nav)) * 0.25)); }
  .w-rest { font-size: 0.34em; }
  .lede .lead { grid-row: 2; justify-self: start; width: auto; max-width: 52ch; margin-top: 8px; }
  .counter { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (min-width: 981px) and (max-width: 1160px) {
}
@media (max-width: 980px) {
  .hero { --nav: 60px; --fs: 18.6cqw; }
  .stage { min-height: 0; }
}

@media (max-width: 760px) {
  body { font-size: 1rem; }
  .hero { --fs: 28.4cqw; --w: 3.12em; --yc: 0.6em; --a: 0.075em; --b: 0.03em; --wt: 0.97em; --jx: 2.68em; --js: 1.85em; --gutter: 16px; }
  .w-duong, .w-a, .w-duong::after { font-stretch: 86%; }
  .w-cat { font-stretch: 100%; }
  .w-rest { font-size: 0.32em; font-stretch: 100%; margin-top: 0.14em; }
  .stage { display: block; min-height: 0; padding-bottom: 20px; }
  .counter { padding-right: 0; }
  .lede .lead { margin-top: 8px; width: auto; max-width: none; padding: 0; }
  .counter { display: block; margin-top: 14px; padding-top: 8px; }
  .offer { display: block; }
  .offer > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding-block: 5px; border-bottom: 1px solid rgba(20, 18, 16, 0.4); }
  .offer dt { grid-column: 1; grid-row: 1; }
  .offer-use { grid-column: 1 / -1; grid-row: 2; font-size: 1rem; }
  .offer-price { order: 0; grid-column: 2; grid-row: 1; font-size: 1.25rem; }
  .counter .actions { flex-wrap: wrap; gap: 0 20px; margin-top: 12px; }
  .counter .btn { flex: 1 1 100%; }
  .swap-grid, .goals-grid, .ways-grid, .grab-head { grid-template-columns: minmax(0, 1fr); }
  .gains, .goalcard, .ways-list, .grab-head > div { margin-top: 0; }
  .swap, .ways { padding-bottom: calc(var(--r) + 40px); }
  .kitchens-head { padding-bottom: calc(var(--r) + 28px); }
  .kitchen { min-height: 0; display: flex; flex-direction: column; padding: calc(var(--r) + 24px) 0 0; }
  .kitchen--rose { padding-bottom: 0; }
  .kitchen-body { order: 1; max-width: none; padding: 0 var(--gutter) 24px; }
  .kitchen-pic { order: 2; position: static; display: block; width: 100%; aspect-ratio: 1; }
  .kitchen-title .beni { width: 64px; height: 64px; }
  .tart-text { position: static; display: block; padding-block: 0 calc(var(--r) + 32px); }
  .tart-in picture img { padding-top: var(--r); background: var(--c-lavender); box-sizing: content-box; }
  .tart-box { max-width: none; padding-top: 16px; }
  .plates { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .plates li:nth-child(1), .plates li:nth-child(2) { margin-top: 0; }
  .plate { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center; }
  .plate h3 { margin-top: 0; }
  .way-help { grid-template-columns: 64px minmax(0, 1fr); }
  .way-help .beni { width: 64px; height: 64px; }
  .way-help .way-go { grid-column: 2; }
  .final-row .btn { width: 100%; }
  .goal-note { font-size: 1rem; }
  .goals .btn { width: 100%; white-space: normal; text-align: center; line-height: 1.25; min-height: 56px; }
}


/* Dải cam cuối trang cắt chéo đè lên đầu footer, nên footer chừa thêm đúng phần bị che */
html[data-menu]:root[data-theme] body:has(.final) footer { margin-top: calc(-100cqw * var(--slope)); padding-top: calc(100cqw * var(--slope) + var(--space-2xl)); }

.sp-head { padding-top: var(--pad); }
.sp-head h1 { max-width: none; font-size: clamp(2.5rem, 1rem + 6.4vw, 7.5rem); line-height: 1.12; color: var(--c-forest); font-stretch: 125%; }
.sp-head .lead { margin-top: 8px; }
.kitchens-head.sp-head { padding-bottom: calc(var(--r) + 32px); }
.sp-bep { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
.sp-bep a { display: flex; align-items: center; min-height: 96px; padding: 16px 24px; font-family: var(--font-display); font-stretch: 125%; font-size: clamp(1.25rem, 1rem + 0.9vw, 1.75rem); font-weight: 900; line-height: 1.16; text-decoration: none; transition: background-color 220ms cubic-bezier(0.16, 1, 0.3, 1), color 220ms cubic-bezier(0.16, 1, 0.3, 1); }
.sp-bep .sp-sig { background: var(--c-tan); color: var(--c-ink); }
.sp-bep .sp-man { background: var(--c-olive); color: var(--c-cream); }
.sp-bep .sp-banh { background: var(--c-rose); color: var(--c-ink); }
.sp-bep a:hover { background: var(--c-ink); color: var(--c-cream); }
.sp-bep a:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 2px; }
@media (max-width: 700px) { .sp-bep { grid-template-columns: minmax(0, 1fr); } .sp-bep a { min-height: 72px; } }
/* Nhãn la hán quả trên bếp và món */
.la-han { display: inline-block; margin-top: 8px; padding: 4px 8px; background: var(--c-turmeric); color: var(--c-ink); font-size: 0.8125rem; font-weight: 600; line-height: 1.3; }
.kitchen-title { flex-wrap: wrap; }
html:root[data-theme="light"] main .plate .la-han, html:root[data-theme="light"] main .dish .la-han { background: var(--c-ink); color: var(--c-cream); }
