/* Thali — site styles (landing, legal pages, password reset) */

/* Self-hosted Poppins + Fraunces (was Google Fonts): same origin + preloaded, so text is ready at first paint
   (no font-swap layout shift) and no visitor IP goes to a third party. */
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 500 600; font-display: swap; src: url('../fonts/fraunces-italic-500-vietnamese.woff2') format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 500 600; font-display: swap; src: url('../fonts/fraunces-italic-500-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 500 600; font-display: swap; src: url('../fonts/fraunces-italic-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/poppins-normal-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/poppins-normal-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/poppins-normal-500-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/poppins-normal-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/poppins-normal-600-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/poppins-normal-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/poppins-normal-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/poppins-normal-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Metric-matched fallbacks: text laid out in these takes the same space as Poppins/Fraunces,
   so the web-font swap causes no layout shift (CLS). Values match Poppins/Fraunces over Arial/Georgia. */
@font-face { font-family: 'Poppins Fallback'; src: local('Arial'), local('ArialMT'); ascent-override: 92.77%; descent-override: 30.92%; line-gap-override: 8.84%; size-adjust: 113.18%; }
@font-face { font-family: 'Fraunces Fallback'; src: local('Georgia'); ascent-override: 84.5%; descent-override: 22%; line-gap-override: 0%; size-adjust: 104%; }

:root {
  --green: #157328;
  --green-2: #1b8a32;
  --green-deep: #0b3417;
  --green-ink: #06230f;
  --lime: #76bb39;
  --lime-soft: #e6f3d8;
  --saffron: #fff5a0;
  --amber: #e7a52a;
  --cream: #fbf7ef;
  --paper: #fffdf8;
  --white: #fefefe;
  --ink: #1f2320;
  --muted: #5d645e;
  --faint: #687068;   /* 4.6:1 on cream, passes WCAG AA for small text */
  --line: rgba(31, 35, 32, .12);
  --protein: #e05a72;
  --carbs: #e0a030;
  --fat: #3dae6a;

  --serif: 'Fraunces', 'Fraunces Fallback', Georgia, serif;
  --sans: 'Poppins', 'Poppins Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(16px, 5vw, 72px);
  --sec-y: clamp(72px, 9vw, 128px);      /* vertical padding of every section */
  --head-gap: clamp(32px, 4vw, 56px);    /* section heading -> its content */
  --max: 1320px;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --shadow: 0 1px 2px rgba(20, 40, 25, .06), 0 12px 32px rgba(20, 40, 25, .08);
  --shadow-lg: 0 2px 6px rgba(20, 40, 25, .06), 0 40px 80px -20px rgba(20, 60, 30, .28);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--saffron); color: var(--ink); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--green); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

/* grain overlay: gives the flat cream a printed-paper feel */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Type ---------- */
.h-hero {
  /* scales with width AND height, so short landscape screens keep the search box above the fold */
  font-size: clamp(2.5rem, min(1.2rem + 5.2vw, .6rem + 7.2svh), 5.4rem);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 600;
}
.h2 {
  font-size: clamp(2rem, 1.1rem + 3.4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -.04em;
  font-weight: 600;
  max-width: 16ch;
}
em, .h2 em, .h-hero em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--green);
}
.lede { font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem); color: var(--muted); max-width: 36em; margin-top: 22px; }
.lede strong { color: var(--ink); font-weight: 600; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.fine { font-size: .92rem; color: var(--faint); margin-top: 18px; }
.fine a { color: var(--green); }
.nowrap { white-space: nowrap; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--green);
  margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow.center { display: flex; justify-content: center; }
.eyebrow.on-dark { color: var(--lime); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: transform .35s var(--spring), box-shadow .35s var(--ease), background .25s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 10px 24px -8px rgba(21, 115, 40, .6); }
.btn-green:hover { background: var(--green-2); transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(21, 115, 40, .7); }
.btn-lime { background: var(--lime); color: var(--green-ink); }
.btn-lime:hover { background: #88cc4a; transform: translateY(-2px); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .92rem; }

.store {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px 0 14px;
  border-radius: 14px; background: var(--ink); color: #fff; text-decoration: none; line-height: 1.1;
  font-weight: 600; font-size: 1.05rem; transition: transform .3s var(--ease);
}
.store:hover { transform: translateY(-2px); }
.store svg { width: 24px; height: 24px; flex: none; }
.store small { display: block; font-size: .66rem; font-weight: 500; opacity: .75; letter-spacing: .02em; }
.store-dark { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); }

/* ---------- Intro (logo assembles) ---------- */
.intro { display: none; }
/* Decorative only: the page is fully rendered underneath (good for LCP and crawlers), and the
   curtain lifts on a CSS timer, so it never depends on the script. Skipped for bots and repeat visits. */
.js .intro {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; align-content: center; gap: 18px;
  background: var(--cream); pointer-events: none;
  animation: introOut .9s cubic-bezier(.76, 0, .24, 1) 1.25s forwards;
}
.js.no-intro .intro { display: none; }
@keyframes introOut { to { transform: translateY(-100%); visibility: hidden; } }
.intro-logo { position: relative; width: 112px; aspect-ratio: 256 / 262; }
.intro-logo .l { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.intro-word { font-weight: 600; font-size: 1.5rem; letter-spacing: -.03em; opacity: 0; animation: fadeUp .6s var(--ease) .95s forwards; }
.l-frame { animation: frameIn .32s var(--ease) forwards; }
.l-b1 { animation: drop .48s cubic-bezier(.3, 1.4, .5, 1) .32s forwards; }
.l-b2 { animation: drop .48s cubic-bezier(.3, 1.4, .5, 1) .44s forwards, rock .6s ease-in-out .92s infinite alternate; transform-origin: 50% 70%; }
.l-dot { animation: drop .48s cubic-bezier(.3, 1.4, .5, 1) .68s forwards; }
.l-leaf { animation: dropLight .48s var(--ease) .68s forwards, flutter .7s ease-in-out 1.16s infinite alternate; transform-origin: 30% 80%; }
@keyframes frameIn { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: scale(1); } }
@keyframes drop { from { opacity: 0; transform: translateY(-100px); } 30% { opacity: 1; } to { opacity: 1; transform: translateY(0); } }
@keyframes dropLight { from { opacity: 0; transform: translateY(-100px); } to { opacity: 1; transform: none; } }
@keyframes rock { from { rotate: -2deg; translate: -2px 0; } to { rotate: 2deg; translate: 2px 0; } }
@keyframes flutter { from { rotate: -3deg; } to { rotate: 3deg; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Progress + header ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--green), var(--lime)); transform-origin: 0 50%; transform: scaleX(0); }

.hdr { position: fixed; inset: 0 0 auto; z-index: 110; will-change: transform; padding-top: env(safe-area-inset-top); transition: background .35s, box-shadow .35s; }
.hdr.scrolled { background: rgba(251, 247, 239, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.hdr-in { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.25rem; letter-spacing: -.03em; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--muted); transition: color .2s, background .2s; }
.nav a:hover { color: var(--ink); background: rgba(21, 115, 40, .07); }
.burger { display: none; width: 48px; height: 48px; border: 0; background: transparent; border-radius: 12px; position: relative; margin-right: -10px; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:first-child { top: 19px; }
.burger span:last-child { top: 27px; }
.hdr.open .burger span:first-child { top: 23px; transform: rotate(45deg); }
.hdr.open .burger span:last-child { top: 23px; transform: rotate(-45deg); }

/* ---------- Reveal ---------- */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.js .hero .rv { opacity: 1; }
.d1 { transition-delay: .08s !important; } .d2 { transition-delay: .16s !important; }
.d3 { transition-delay: .24s !important; } .d4 { transition-delay: .32s !important; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; }
.js .split .w > span { transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.js .split.in .w > span { transform: none; }

/* ---------- Sections ---------- */
.sec { position: relative; padding: var(--sec-y) 0; }
main { overflow-x: clip; }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100svh; padding: calc(clamp(88px, 13svh, 110px) + env(safe-area-inset-top)) 0 64px; display: flex; align-items: center; overflow: clip; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.b1 { width: 46vw; height: 46vw; right: -8vw; top: -10vw; background: radial-gradient(circle, #d7ecc0, transparent 68%); animation: float 16s ease-in-out infinite alternate; }
.b2 { width: 40vw; height: 40vw; left: -14vw; bottom: -16vw; background: radial-gradient(circle, #fff0b8, transparent 68%); animation: float 20s ease-in-out infinite alternate-reverse; }
@keyframes float { to { transform: translate(4vw, 3vw) scale(1.08); } }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; margin-bottom: 26px;
  border-radius: 999px; background: var(--white); box-shadow: 0 0 0 1px var(--line); font-size: .86rem; font-weight: 500;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(118, 187, 57, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(118, 187, 57, 0); } 100% { box-shadow: 0 0 0 0 rgba(118, 187, 57, 0); } }

/* Try-it search */
.try { position: relative; margin-top: 34px; max-width: 560px; }
.try-label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 10px; color: var(--ink); }
.try-field { position: relative; }
.try-box {
  position: relative; display: flex; align-items: center; background: var(--white); border-radius: 18px;
  box-shadow: 0 0 0 1.5px #d4d4d4, var(--shadow); transition: box-shadow .25s;
}
.try-box:focus-within { box-shadow: 0 0 0 2px var(--green), 0 16px 40px -12px rgba(21, 115, 40, .35); }
.try-ico { width: 22px; height: 22px; margin-left: 18px; flex: none; fill: none; stroke: var(--green); stroke-width: 2.4; stroke-linecap: round; }
.try-box input {
  flex: 1; min-width: 0; height: 62px; padding: 0 14px; border: 0; background: transparent; outline: none;
  font: 500 1.08rem var(--sans); color: var(--ink);
}
.try-box input::placeholder { color: var(--faint); font-weight: 400; }
.try-clear { width: 44px; height: 44px; margin-right: 8px; border: 0; border-radius: 12px; background: transparent; font-size: 1.6rem; color: var(--faint); line-height: 1; }
.try-clear:hover { background: #f1f1ef; color: var(--ink); }
.try-list {
  position: absolute; z-index: 30; left: 0; right: 0; top: 100%; margin-top: 8px; padding: 8px;
  background: var(--white); border-radius: 18px; box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); max-height: 340px; overflow: auto;
}
.try-list li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; cursor: pointer; min-height: 52px; }
.try-list li[aria-selected="true"], .try-list li:hover { background: var(--lime-soft); }
.try-list .t-name { flex: 1; min-width: 0; font-weight: 600; font-size: .98rem; line-height: 1.25; }
.try-list .t-name small { display: block; font-weight: 400; color: var(--faint); font-size: .8rem; }
.try-list .t-cal { font-weight: 600; font-size: .9rem; color: var(--green); white-space: nowrap; }
.try-list mark { background: none; color: var(--green); }
.thumb { width: 40px; height: 40px; border-radius: 12px; flex: none; object-fit: cover; background: var(--lime-soft); display: grid; place-items: center; font: italic 600 1.15rem var(--serif); color: var(--green); }
.try-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.try-chips button {
  border: 0; background: rgba(21, 115, 40, .07); color: var(--green); padding: 7px 14px; border-radius: 999px;
  font-size: .86rem; font-weight: 500; min-height: 36px; transition: background .2s, transform .3s var(--spring);
}
.try-chips button:hover { background: rgba(21, 115, 40, .14); transform: translateY(-1px); }

.try-out:empty { display: none; }
.result {
  margin-top: 16px; padding: 20px; border-radius: 22px; background: var(--white);
  box-shadow: var(--shadow), 0 0 0 1px var(--line); animation: pop .55s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.result-top { display: flex; align-items: center; gap: 14px; }
.result-top .thumb { width: 56px; height: 56px; border-radius: 16px; font-size: 1.5rem; }
.result-top h3 { font-size: 1.15rem; letter-spacing: -.02em; line-height: 1.2; }
.result-top div p { font-size: .85rem; color: var(--faint); }
.result-cal { margin-left: auto; text-align: right; font-weight: 700; font-size: 1.5rem; letter-spacing: -.03em; line-height: 1; white-space: nowrap; }
.result-cal small { display: block; font-size: .72rem; font-weight: 500; color: var(--faint); letter-spacing: 0; margin-top: 4px; }
.r-items { margin: 14px 0 4px; border-top: 1px dashed #d4d4d4; }
.r-items li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #e4e4e0; font-size: .92rem; }
.r-items li .thumb { width: 32px; height: 32px; border-radius: 9px; font-size: .9rem; }
.r-items li span:not(.thumb) { flex: 1; min-width: 0; }
.r-items li small { color: var(--faint); }
.r-items li b { font-weight: 600; white-space: nowrap; }
.r-items li.miss { color: var(--faint); }
.rbar { position: relative; height: 10px; border-radius: 10px; background: #efefeb; margin: 16px 0 12px; overflow: hidden; }
.rbar span { position: absolute; top: 0; bottom: 0; border-radius: 10px; background: linear-gradient(90deg, var(--lime), var(--green)); transition: left .7s var(--ease), width .7s var(--ease); }
.macros { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .86rem; color: var(--muted); }
.macros span::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.macros .p::before { background: var(--protein); } .macros .c::before { background: var(--carbs); } .macros .f::before { background: var(--fat); }
.result-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid #efefeb; font-size: .88rem; color: var(--muted); }
.result-cta a { color: var(--green); font-weight: 600; text-decoration: none; }
.result-cta a:hover { text-decoration: underline; }
.result.empty p { color: var(--muted); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font-size: .88rem; color: var(--muted); }
.ticks li { display: inline-flex; align-items: center; gap: 7px; }
.ticks li::before { content: ''; width: 16px; height: 16px; border-radius: 50%; background: var(--lime-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23157328' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 10px no-repeat; }

/* Photo stack */
.hero-media { position: relative; display: grid; justify-items: center; padding: 20px 0 40px; }
.stack { position: relative; width: min(400px, 76%, 46svh); aspect-ratio: 10 / 15; transform-style: preserve-3d; transition: transform .8s var(--ease); }
.hero-media { perspective: 1400px; }
.card {
  position: absolute; inset: 0; margin: 0; border-radius: var(--r-lg); overflow: hidden; background: #222;
  box-shadow: var(--shadow-lg); transform-origin: 50% 110%;
  transition: transform 1.1s var(--ease), opacity .8s var(--ease), filter 1.1s var(--ease);
  opacity: 0; pointer-events: none;
}
.card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; transform: scale(1.08); transition: transform 7s linear; }
.card[data-pos="0"] img { transform: scale(1.0); }
.card figcaption {
  position: absolute; left: 16px; top: 16px; padding: 7px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.card[data-pos="0"] { opacity: 1; transform: rotate(-3deg); z-index: 3; pointer-events: auto; }
.card[data-pos="1"] { opacity: 1; transform: translate(16%, -4%) rotate(6deg) scale(.9); z-index: 2; filter: brightness(.82); }
.card[data-pos="2"] { opacity: .95; transform: translate(-15%, -2%) rotate(-10deg) scale(.84); z-index: 1; filter: brightness(.7); }
.card[data-pos="out"] { opacity: 0; transform: translate(-40%, 12%) rotate(-22deg) scale(.9); z-index: 4; }

.float-range {
  position: absolute; z-index: 6; left: -16%; bottom: 9%; transform: translateZ(40px);
  display: grid; gap: 4px; min-width: 210px; padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow-lg);
  transition: transform .6s var(--spring), opacity .3s;
}
.float-range.swap { opacity: 0; transform: translateZ(40px) translateY(8px) scale(.96); }
.fr-name { font-weight: 600; font-size: .95rem; }
.fr-val { font-size: .82rem; color: var(--muted); }
.fr-val b { font-size: 1.25rem; color: var(--ink); letter-spacing: -.02em; }
.fr-val i { font-style: normal; color: var(--faint); }
.fr-bar { height: 6px; border-radius: 6px; background: #efefeb; position: relative; overflow: hidden; margin-top: 4px; }
.fr-bar span { position: absolute; top: 0; bottom: 0; left: 30%; width: 25%; border-radius: 6px; background: linear-gradient(90deg, var(--lime), var(--green)); transition: left .8s var(--ease), width .8s var(--ease); }
.stack-dots { display: flex; gap: 6px; margin-top: 26px; min-height: 28px; } /* reserved: filled by JS, must not grow the hero */
.stack-dots button { width: 28px; height: 28px; border: 0; background: transparent; padding: 0; display: grid; place-items: center; }
.stack-dots button::after { content: ''; width: 8px; height: 8px; border-radius: 8px; background: #cfd3cd; transition: width .4s var(--ease), background .3s; }
.stack-dots button[aria-selected="true"]::after { width: 22px; background: var(--green); }

/* ---------- Problem ---------- */
.problem .h2 { max-width: 18ch; margin-inline: auto; text-align: center; }
.story-head { text-align: center; }
.story-head .h2 { margin-inline: auto; }
.vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(16px, 3vw, 36px); align-items: center; margin-top: var(--head-gap); }
.vs-card { border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow), 0 0 0 1px var(--line); overflow: hidden; min-height: 330px; }
.vs-card header { display: flex; align-items: center; gap: 10px; padding: 14px 18px; font-size: .82rem; font-weight: 600; color: var(--muted); border-bottom: 1px solid #efefeb; }
.dot-row { display: inline-flex; gap: 5px; margin-right: 6px; }
.dot-row i { width: 9px; height: 9px; border-radius: 50%; background: #e4e4e0; }
.vs-search { display: flex; align-items: center; gap: 10px; margin: 18px 18px 0; padding: 0 14px; height: 52px; border-radius: 14px; background: #f5f5f2; font-weight: 500; }
.vs-search svg { width: 18px; height: 18px; fill: none; stroke: var(--faint); stroke-width: 2.4; stroke-linecap: round; }
.caret { display: inline-block; width: 2px; height: 1.1em; background: var(--green); margin-left: 1px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.vs-body { padding: 18px; }
.vs-body > * { opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.vs.done .vs-body > * { opacity: 1; transform: none; }
.vs.done .vs-body > :nth-child(2) { transition-delay: .25s; }
.vs.done .vs-body > :nth-child(3) { transition-delay: .5s; }
.vs-empty { display: flex; gap: 10px; align-items: center; color: #b3413c; font-weight: 500; font-size: .95rem; }
.vs-empty svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.vs-guess { margin-top: 22px; padding: 18px; border-radius: 16px; border: 1.5px dashed #e0c9a0; background: #fffaf0; display: grid; gap: 2px; }
.vs-guess span { font-size: .78rem; color: var(--faint); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.vs-guess strong { font-size: 1.2rem; letter-spacing: -.02em; }
.vs-guess em { font-family: var(--sans); font-style: normal; font-weight: 500; color: #b07818; font-size: .92rem; }
.vs-bad { transform: rotate(-1.2deg); }
.vs-good { transform: rotate(1deg); box-shadow: var(--shadow-lg), 0 0 0 2px var(--green); }
.vs-good header { color: var(--green); }
.vs-hit { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 16px; background: var(--lime-soft); }
.vs-hit.ghost { background: transparent; margin-top: 6px; }
.vs-hit img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; }
.vs-hit div { flex: 1; min-width: 0; display: grid; }
.vs-hit strong { font-size: 1.05rem; }
.vs-hit span { font-size: .8rem; color: var(--muted); }
.vs-hit b { font-size: 1.1rem; white-space: nowrap; }
.vs-hit b small { font-size: .72rem; color: var(--faint); font-weight: 500; }
.vs-note { display: flex; gap: 8px; align-items: center; margin-top: 16px; font-size: .88rem; color: var(--green); font-weight: 500; }
.vs-note .ok { width: 18px; height: 18px; border-radius: 50%; flex: none; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat; }
.vs-mid { font: italic 600 clamp(1.6rem, 3vw, 2.4rem) var(--serif); color: var(--faint); }
.problem-punch { margin-top: var(--head-gap); font-size: clamp(1.25rem, 1rem + 1.1vw, 1.9rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.35; max-width: 30ch; margin-inline: auto; text-align: center; }
.u { background: linear-gradient(transparent 62%, var(--saffron) 62%); padding: 0 2px; }

/* ---------- Story (pinned plate) ---------- */
.story { background: var(--paper); border-block: 1px solid var(--line); }
.story-head { margin-bottom: var(--head-gap); }
.story-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
/* plate sits right under the heading, then stays vertically centred while the steps scroll */
.stage { position: sticky; top: max(96px, calc(50svh - 260px)); display: grid; place-items: center; padding-bottom: 40px; }
.stage-plate { position: relative; width: min(470px, 36vw); aspect-ratio: 1; }
.plate-img { position: absolute; inset: 9%; width: 82%; height: 82%; border-radius: 50%; filter: drop-shadow(0 30px 40px rgba(40, 50, 30, .22)); animation: plateSpin 60s linear infinite; }
@keyframes plateSpin { to { rotate: 360deg; } }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 7; }
.ring-bg { stroke: #ecece6; }
.arc { stroke-linecap: round; stroke-dasharray: 0 100; opacity: 0; transition: stroke-dasharray 1.1s var(--ease), opacity .3s; }
.a1 { stroke: var(--lime); stroke-dashoffset: 0; }
.a2 { stroke: var(--protein); stroke-dashoffset: -25; }
.a3 { stroke: var(--carbs); stroke-dashoffset: -50; }
.a4 { stroke: var(--green); stroke-dashoffset: -75; }
.stage[data-step="1"] .a1, .stage[data-step="2"] .a1, .stage[data-step="3"] .a1, .stage[data-step="4"] .a1 { stroke-dasharray: 23 100; }
.stage[data-step="2"] .a2, .stage[data-step="3"] .a2, .stage[data-step="4"] .a2 { stroke-dasharray: 23 100; }
.stage[data-step="3"] .a3, .stage[data-step="4"] .a3 { stroke-dasharray: 23 100; }
.stage[data-step="4"] .a4 { stroke-dasharray: 23 100; }
.stage[data-step] .a1, .stage[data-step="2"] .a2, .stage[data-step="3"] .a2, .stage[data-step="4"] .a2, .stage[data-step="3"] .a3, .stage[data-step="4"] .a3, .stage[data-step="4"] .a4 { opacity: 1; }

.scard {
  position: absolute; right: max(0px, calc(50% - min(470px, 36vw) / 2 - 60px)); bottom: calc(50% - min(470px, 36vw) / 2 - 24px);
  width: 290px; padding: 18px; border-radius: 22px; background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line);
  opacity: 0; transform: translateY(24px) scale(.95); transition: opacity .5s var(--ease), transform .7s var(--ease); pointer-events: none;
}
.stage[data-step="1"] .scard[data-for="1"], .stage[data-step="2"] .scard[data-for="2"],
.stage[data-step="3"] .scard[data-for="3"], .stage[data-step="4"] .scard[data-for="4"] { opacity: 1; transform: none; transition-delay: .12s; }
.s-search { height: 44px; display: flex; align-items: center; padding: 0 14px; border-radius: 12px; background: #f5f5f2; font-weight: 500; font-size: .95rem; margin-bottom: 8px; }
.s-row { display: flex; align-items: center; gap: 10px; padding: 8px 4px; font-size: .88rem; }
.s-row img { width: 40px; height: 40px; border-radius: 11px; object-fit: cover; }
.s-row span { flex: 1; display: grid; line-height: 1.25; }
.s-row small { color: var(--faint); }
.s-row em { font: 600 .9rem var(--sans); color: var(--green); }
.s-k { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.s-step { display: flex; align-items: center; justify-content: space-between; margin: 12px 0; }
.s-step button { width: 48px; height: 48px; border-radius: 14px; border: 0; background: var(--lime-soft); color: var(--green); font-size: 1.4rem; font-weight: 600; pointer-events: none; }
.s-step b { font-size: 2rem; letter-spacing: -.03em; margin-right: 6px; }
.s-chips { display: flex; gap: 8px; }
.s-chips span { flex: 1; text-align: center; padding: 8px 0; border-radius: 12px; box-shadow: 0 0 0 1px #d4d4d4; font-weight: 600; font-size: .9rem; }
.s-chips .on { background: var(--green); color: #fff; box-shadow: none; }
.s-sub { margin-top: 12px; font-size: .88rem; color: var(--muted); }
.s-big { font-size: 2.4rem; font-weight: 700; letter-spacing: -.04em; line-height: 1.1; margin-top: 4px; }
.s-big small { font-size: .9rem; font-weight: 500; color: var(--faint); margin-left: 6px; letter-spacing: 0; }
.s-bar { height: 10px; border-radius: 10px; background: #efefeb; margin: 12px 0; position: relative; }
.s-bar span { position: absolute; left: 42%; width: 17%; top: 0; bottom: 0; border-radius: 10px; background: linear-gradient(90deg, var(--lime), var(--green)); }
.s-conf { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); }
.s-conf span { width: 8px; height: 8px; border-radius: 50%; background: var(--carbs); }
.s-mac { display: flex; gap: 8px; margin-top: 12px; }
.s-mac span { flex: 1; text-align: center; padding: 6px 0; border-radius: 10px; font-size: .8rem; font-weight: 600; }
.s-mac .p { background: #ffe6eb; color: #c42a47; } .s-mac .c { background: #fff1d6; color: #9a6400; } .s-mac .f { background: #dcf6e6; color: #16804a; }
.s-dash { width: 240px; padding: 8px; }
.s-dash img { border-radius: 16px; height: 330px; width: 100%; object-fit: cover; object-position: top; }

.steps { counter-reset: s; }
/* inactive steps are dimmed by colour, not opacity, so every step stays readable (WCAG contrast) */
.step { min-height: 64svh; display: flex; flex-direction: column; justify-content: center; max-width: 30rem; }
.step h3, .step-n { color: var(--faint); transition: color .5s var(--ease); }
.step.active h3 { color: var(--ink); }
.step.active .step-n { color: var(--green); }
.step-n { font: italic 600 1.1rem var(--serif); margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.step-n::after { content: ''; width: 48px; height: 1.5px; background: currentColor; opacity: .4; }
.step h3 { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.4rem); letter-spacing: -.035em; line-height: 1.1; font-weight: 600; }
.step p { margin-top: 16px; color: var(--muted); font-size: 1.05rem; }

/* ---------- Honesty ---------- */
.honesty { background: var(--green-deep); color: #eef5ea; overflow: clip; }
.honesty::before { content: ''; position: absolute; width: 70vw; height: 70vw; right: -20vw; top: -30vw; border-radius: 50%; background: radial-gradient(circle, rgba(118, 187, 57, .22), transparent 65%); pointer-events: none; }
.honesty .h2 em { color: var(--lime); }
.honesty .lede { color: rgba(238, 245, 234, .72); }
.honesty .fine { color: rgba(238, 245, 234, .5); }
.honesty-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; position: relative; }
.tuner { padding: clamp(22px, 3vw, 36px); border-radius: var(--r-lg); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); backdrop-filter: blur(10px); }
.tuner-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.tuner-meal { font-weight: 600; }
.tuner-conf { font-size: .8rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(255, 176, 32, .16); color: #ffcf73; transition: background .3s, color .3s; }
.tuner-conf[data-level="high"] { background: rgba(118, 187, 57, .2); color: #b4e38a; }
.tuner-conf[data-level="low"] { background: rgba(255, 75, 107, .16); color: #ff9aac; }
.tuner-num { font-size: clamp(3rem, 2rem + 4vw, 5.2rem); font-weight: 700; letter-spacing: -.05em; line-height: 1; margin: 22px 0 18px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tuner-num .dash { opacity: .45; margin: 0 .04em; }
.tuner-num small { font-size: .26em; font-weight: 500; letter-spacing: 0; opacity: .6; margin-left: 10px; }
.tuner-track { position: relative; height: 14px; border-radius: 14px; background: rgba(255, 255, 255, .1); margin-bottom: 34px; }
.tuner-span { position: absolute; top: 0; bottom: 0; border-radius: 14px; background: linear-gradient(90deg, var(--lime), #c9f09c); box-shadow: 0 0 24px rgba(118, 187, 57, .5); transition: left .8s var(--spring), width .8s var(--spring); }
.tuner-ticks { position: absolute; left: 0; right: 0; top: 22px; display: flex; justify-content: space-between; font-size: .72rem; opacity: .45; }
.tuner-ticks i { font-style: normal; }
.tuner-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tuner-opts button {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; border: 0; border-radius: 14px; text-align: left;
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); color: #eef5ea; font-size: .9rem; font-weight: 500;
  transition: background .25s, box-shadow .25s, transform .3s var(--spring);
}
.tuner-opts button:hover { background: rgba(255, 255, 255, .1); }
.tuner-opts button:active { transform: scale(.97); }
.tuner-opts .sw { width: 30px; height: 18px; border-radius: 18px; background: rgba(255, 255, 255, .2); position: relative; flex: none; transition: background .25s; }
.tuner-opts .sw::after { content: ''; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .35s var(--spring); }
.tuner-opts [aria-pressed="true"] { background: rgba(118, 187, 57, .16); box-shadow: inset 0 0 0 1px rgba(118, 187, 57, .6); }
.tuner-opts [aria-pressed="true"] .sw { background: var(--lime); }
.tuner-opts [aria-pressed="true"] .sw::after { transform: translateX(12px); }
.tuner-foot { margin-top: 18px; font-size: .8rem; color: rgba(238, 245, 234, .5); }

/* ---------- Cuisines ---------- */
.cz-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 14px); margin: 0; flex: 0 1 520px; min-width: 0; }
.stats div { container-type: inline-size; display: grid; gap: 6px; text-align: center; padding: clamp(14px, 1.6vw, 20px) clamp(6px, .8vw, 12px); background: var(--white); border: 1px solid #d4d4d4; border-radius: var(--r-md); box-shadow: var(--shadow); }
.stats dt { order: 2; font-size: .8rem; color: var(--faint); font-weight: 500; }
.stats dd { order: 1; margin: 0; font-size: min(clamp(2rem, 1.4rem + 2vw, 3.2rem), 32cqi); /* 30cqi: a 5-character count (1,035) always fits its card */ font-weight: 700; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.cz-tabs { display: flex; gap: 8px; margin: var(--head-gap) 0 24px; overflow-x: auto; scrollbar-width: none; padding: 4px; margin-inline: -4px; }
.cz-tabs::-webkit-scrollbar { display: none; }
.cz-tabs button {
  flex: none; min-height: 46px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--white);
  box-shadow: 0 0 0 1px var(--line); font-weight: 500; font-size: .95rem; transition: background .25s, color .25s, box-shadow .25s;
}
.cz-tabs button:hover { box-shadow: 0 0 0 1px var(--green); }
.cz-tabs button[aria-selected="true"] { background: var(--green); color: #fff; box-shadow: 0 8px 20px -8px rgba(21, 115, 40, .6); }
.cz-panel { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.cz-photo { margin: 0; position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg); background: #222; }
.cz-photo img { width: 100%; height: 100%; object-fit: cover; transition: opacity .5s var(--ease), transform 1.2s var(--ease); }
.cz-photo.swap img { opacity: 0; transform: scale(1.06); }
.cz-photo figcaption { position: absolute; left: 16px; bottom: 16px; padding: 7px 12px; border-radius: 999px; background: rgba(0, 0, 0, .28); backdrop-filter: blur(10px); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.cz-blurb { font-size: 1.1rem; color: var(--muted); max-width: 34em; margin-bottom: 18px; }
.cz-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.cz-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); animation: pop .5s var(--ease) both; animation-delay: calc(var(--i) * 40ms); }
.cz-list .thumb { width: 44px; height: 44px; }
.cz-list span:not(.thumb) { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.cz-list b { font-weight: 600; }
.cz-list small { font-size: .8rem; color: var(--faint); }
.cz-list em { font: 600 .92rem var(--sans); color: var(--green); white-space: nowrap; }
.cz-guides { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; }
.cz-guides:empty { display: none; }
.cz-guides a { color: var(--green); font-weight: 500; text-underline-offset: 3px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-weight: 600; color: var(--green); text-decoration: none; }
.link-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
/* 22 countries = two even rows of 11: columns are at most 32px (a 24px-tall flag) and shrink on narrow phones. */
.flags { display: grid; grid-template-columns: repeat(11, minmax(0, 32px)); gap: 10px clamp(4px, 1.6vw, 10px); margin-top: 24px; font-size: 1.5rem; line-height: 1; }
.flags .fi { width: 100%; height: auto; aspect-ratio: 4 / 3; line-height: 0; border-radius: 4px; box-shadow: 0 1px 3px rgba(0, 0, 0, .18); transition: transform .3s var(--spring); }
/* flag-icons sizes each flag with a 1em-tall invisible character; drop it so the height follows the width (keeps 4:3). */
.flags .fi::before { content: none; }
.flags .fi:hover { transform: translateY(-3px) rotate(-4deg); }

/* ---------- Languages ---------- */
.langs { text-align: center; overflow: clip; }
.babel { min-height: clamp(130px, 18vw, 250px); display: grid; place-items: center; }
.babel-line {
  font-size: clamp(2.2rem, 1rem + 5.4vw, 6rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.15; color: var(--ink);
  transition: opacity .45s var(--ease), transform .6s var(--ease), filter .45s;
}
.babel-line.out { opacity: 0; transform: translateY(18px); filter: blur(8px); }
.babel-line:lang(ur), .babel-line:lang(ar) { font-family: 'Noto Naskh Arabic', 'Segoe UI', Tahoma, serif; letter-spacing: 0; }
.babel-line:lang(hi), .babel-line:lang(bn), .babel-line:lang(zh) { letter-spacing: 0; }
.lang-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.lang-pills button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--white); box-shadow: 0 0 0 1px var(--line); font-weight: 500; transition: background .25s, color .25s; }
.lang-pills button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* ---------- Final CTA ---------- */
.final { background: var(--green-ink); color: #eef5ea; overflow: hidden; min-height: 80svh; display: flex; align-items: center; }
.final-cols { position: absolute; inset: -10% -5% -10% 50%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; transform: rotate(8deg); opacity: .9; pointer-events: none; }
.final-cols::after { content: ''; position: absolute; inset: -20%; background: linear-gradient(90deg, var(--green-ink) 8%, rgba(6, 35, 15, .55) 40%, rgba(6, 35, 15, .2)); }
.col { display: grid; gap: 16px; align-content: start; animation: colUp 38s linear infinite; }
.col.down { animation-name: colDown; }
.col.slow { animation-duration: 50s; }
.col img { width: 100%; aspect-ratio: 10 / 15; object-fit: cover; border-radius: 20px; }
@keyframes colUp { to { transform: translateY(-50%); } }
@keyframes colDown { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.final-in { position: relative; z-index: 1; }
.final .h2 { max-width: 12ch; font-size: clamp(2.4rem, 1.2rem + 4.4vw, 5rem); }
.final .h2 em { color: var(--lime); }
.final .lede { color: rgba(238, 245, 234, .72); }
.wl { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; max-width: 520px; }
.wl input {
  flex: 1 1 240px; min-width: 0; height: 56px; padding: 0 20px; border-radius: 999px; border: 0; outline: none;
  background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); color: #fff; font: 500 1rem var(--sans);
}
.wl input::placeholder { color: rgba(255, 255, 255, .5); }
.wl input:focus { box-shadow: inset 0 0 0 2px var(--lime); background: rgba(255, 255, 255, .14); }
.wl .btn { min-height: 56px; }
/* honeypot: invisible to people, filled in by spam bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.wl-msg { flex-basis: 100%; min-height: 1.4em; font-size: .92rem; color: #b4e38a; }
.wl-msg.err { color: #ff9aac; }
.wl-msg a { color: #fff; font-weight: 600; }
.wl-fine { font-size: .82rem; color: rgba(238, 245, 234, .5); }
.wl-fine a { color: inherit; }
.final-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-grid > div:first-child { position: sticky; top: 110px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0; font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); font-weight: 600; letter-spacing: -.02em; min-height: 48px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ''; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23157328' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 16px no-repeat;
  box-shadow: 0 0 0 1px var(--line); transition: transform .4s var(--spring), background-color .3s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); background-color: var(--lime-soft); }
.faq-list p { padding: 0 48px 24px 0; color: var(--muted); }
.faq-list details[open] p { animation: fadeUp .5s var(--ease); }

/* ---------- Footer ---------- */
.ftr { padding: 64px 0 32px; background: var(--cream); border-top: 1px solid var(--line); overflow: clip; }
.ftr-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.ftr-tag { color: var(--muted); margin-top: 12px; max-width: 26ch; font-size: .95rem; }
.ftr nav { display: grid; gap: 4px; align-content: start; }
.ftr h3 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; font-weight: 600; }
.ftr nav a { text-decoration: none; color: var(--ink); padding: 6px 0; font-size: .95rem; width: fit-content; }
.ftr nav a:hover { color: var(--green); }
.ftr-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--faint); }

/* ---------- Mobile dock ---------- */
.dock {
  position: fixed; z-index: 105; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 18px; border-radius: 999px;
  background: rgba(31, 35, 32, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #fff; font-size: .88rem;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .4); transform: translateY(160%); transition: transform .5s var(--ease);
}
.dock.show { transform: none; }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; z-index: 150; left: 16px; bottom: 16px; max-width: 420px; padding: 18px; border-radius: 20px;
  background: var(--white); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); font-size: .86rem; color: var(--muted);
  transform: translateY(20px); opacity: 0; transition: transform .4s var(--ease), opacity .4s;
}
.cookie.in { transform: none; opacity: 1; }
.cookie__link { color: var(--green); }
.cookie__actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.cookie__btn { min-height: 44px; padding: 0 18px; font-size: .88rem; }
.btn-ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.btn-primary { background: var(--green); color: #fff; }


/* ---------- Legal / support pages ---------- */
.legal-hero { padding: calc(140px + env(safe-area-inset-top)) 0 clamp(32px, 5vw, 56px); text-align: center; }
.legal-hero h1 { font-size: clamp(2.4rem, 1.4rem + 4vw, 4.4rem); line-height: 1; letter-spacing: -.045em; font-weight: 600; }
.legal-hero .updated { margin-top: 16px; color: var(--faint); font-size: .95rem; }
.legal {
  max-width: 760px; margin: 0 auto clamp(72px, 10vw, 128px); padding: clamp(24px, 5vw, 56px);
  background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow), 0 0 0 1px var(--line);
  color: var(--muted); font-size: 1rem; line-height: 1.75;
}
@media (max-width: 800px) { .legal { margin-inline: var(--gutter); } }
.legal h2 { color: var(--ink); font-size: clamp(1.3rem, 1.1rem + .8vw, 1.65rem); letter-spacing: -.03em; line-height: 1.2; font-weight: 600; margin: 48px 0 14px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { color: var(--ink); font-size: 1.1rem; letter-spacing: -.02em; font-weight: 600; margin: 28px 0 8px; }
.legal p, .legal ul, .legal table { margin: 0 0 16px; }
.legal ul { padding-left: 1.2em; list-style: disc; }
.legal li { margin-bottom: 8px; }
.legal li::marker { color: var(--lime); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a:not(.btn) { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal code { font-size: .9em; background: #f3f3ef; padding: 2px 6px; border-radius: 6px; }
.legal table { width: 100%; border-collapse: collapse; font-size: .9rem; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { color: var(--ink); font-weight: 600; background: #f7f7f3; }
.legal .btn { margin-top: 4px; }


/* ---------- Password reset bridge ---------- */
.page-reset { min-height: 100svh; display: grid; place-items: center; padding: 24px var(--gutter); background: radial-gradient(60vw 50vw at 85% 0%, #e3f1d4, transparent 65%), radial-gradient(50vw 45vw at 0% 100%, #fff2c2, transparent 65%), var(--cream); }
.reset { width: 100%; max-width: 440px; padding: clamp(32px, 6vw, 48px) clamp(24px, 5vw, 40px); text-align: center; background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); }
.reset-logo { width: 64px; height: 64px; margin: 0 auto 22px; }
.reset h1 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.2rem); line-height: 1.1; letter-spacing: -.04em; font-weight: 600; }
.reset p { margin-top: 12px; color: var(--muted); }
.reset .btn { width: 100%; margin-top: 24px; }
.reset .reset-hint { font-size: .86rem; color: var(--faint); margin-top: 16px; }
.reset-hint:empty { display: none; }
.reset-foot { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .9rem; }
.reset-foot a { color: var(--green); text-decoration: none; font-weight: 500; }

/* ================= Responsive ================= */
@media (max-width: 1080px) {
  .nav { display: none; }
  .hdr-cta { margin-left: auto; }
  .burger { display: block; }
  .hdr.open { background: var(--cream); box-shadow: 0 1px 0 var(--line); }
  .hdr.open .nav {
    display: grid; position: absolute; top: 72px; left: 0; right: 0; padding: 8px var(--gutter) 20px; background: var(--cream);
    box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .2);
  }
  .hdr.open .nav a { font-size: 1.1rem; padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
}

@media (max-width: 960px), (max-width: 1100px) and (orientation: portrait) {
  .hero { min-height: 0; padding-top: calc(100px + env(safe-area-inset-top)); }
  .hero-grid, .honesty-grid, .faq-grid, .cz-panel { grid-template-columns: minmax(0, 1fr); }
  .cz-head { flex-wrap: wrap; }
  .hero { padding-bottom: 24px; }
  .hero-media { order: 2; padding: 8px 0 0; }
  .stack-dots { margin-top: 18px; }
  .vs-card { min-height: 0; }
  .faq-grid > div:first-child { position: static; }
  .vs { grid-template-columns: 1fr; }
  .vs-mid { text-align: center; }
  .vs-bad, .vs-good { transform: none; }
  .cz-photo { aspect-ratio: 16 / 11; max-height: 440px; }
  .cz-photo img { object-position: 50% 40%; }
  .final { align-items: flex-start; min-height: 0; padding-bottom: 330px; }
  .final-cols { inset: auto -15% -40px -15%; height: 340px; transform: rotate(6deg); overflow: hidden; }
  .final-cols::after { background: linear-gradient(180deg, var(--green-ink) 0%, rgba(6, 35, 15, .35) 45%, rgba(6, 35, 15, .1)); }

  /* Story on small screens: not pinned. Plate, then the card for the active step, then the steps,
     which auto-cycle while in view (home.js) and can be tapped. */
  .story-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .stage { position: relative; top: auto; display: grid; grid-template-areas: "plate" "card"; justify-items: center; padding: 0; }
  .stage-plate { grid-area: plate; width: min(250px, 64vw); }
  .scard { grid-area: card; position: relative; right: auto; bottom: auto; width: min(320px, 100%); margin-top: -48px; transform: translateY(14px) scale(.97); }
  .stage[data-step="1"] .scard[data-for="1"], .stage[data-step="2"] .scard[data-for="2"],
  .stage[data-step="3"] .scard[data-for="3"], .stage[data-step="4"] .scard[data-for="4"] { transform: none; }
  .s-dash { width: 210px; justify-self: center; }
  .s-dash img { height: 240px; }
  .steps { margin-top: 32px; display: grid; gap: 4px; }
  .step { min-height: 0; padding: 16px 18px; border-radius: var(--r-md); cursor: pointer; transition: background .4s var(--ease); }
  .step.active { background: var(--white); box-shadow: 0 0 0 1px var(--line); }
  .step-n { margin-bottom: 6px; font-size: 1rem; }
  .step h3 { font-size: 1.25rem; }
  .step p { margin-top: 6px; font-size: .95rem; }
}

/* Tablets in the single-column layout: steps as a centred 2x2 grid under a larger plate */
@media (min-width: 641px) and (max-width: 960px), (min-width: 641px) and (max-width: 1100px) and (orientation: portrait) {
  .stage-plate { width: 320px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 12px; max-width: 760px; margin-inline: auto; }
  .step { max-width: none; }
}

@media (max-width: 640px) {
  .hdr-in { height: 64px; gap: 12px; }
  .hdr.open .nav { top: 64px; }
  .hdr-cta { display: none; }
  .burger { margin-left: auto; }
  .brand { font-size: 1.15rem; }
  .try-box input { height: 58px; font-size: 1rem; }
  .result { padding: 16px; }
  .result-cal { font-size: 1.25rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn, .hero-cta .store { justify-content: center; }
  .stack { width: min(280px, 64vw); }
  .float-range { left: -14%; min-width: 180px; padding: 12px 14px; }
  .stats { width: 100%; gap: 8px; }
  .stats div { padding: 12px 4px; border-radius: var(--r-sm); }
  .stats dd { font-size: min(1.6rem, 32cqi); }
  .stats dt { font-size: .72rem; }
  .cz-head { gap: 28px; }
  .cz-tabs { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .vs-more { display: none; }
  .cz-list { grid-template-columns: 1fr; }
  .tuner-opts { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tuner-opts button { flex-direction: column; align-items: flex-start; gap: 8px; min-height: 84px; font-size: .86rem; line-height: 1.3; }
  .wl .btn { flex: 1 1 100%; }
  .final-badges .store { flex: 1 1 0; justify-content: center; padding: 0 12px; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .ftr-grid > div:first-child { grid-column: 1 / -1; }
  .dock { display: flex; }
  .ftr { padding-bottom: 100px; }
  .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

@media (min-width: 1800px) {
  :root { --max: 1520px; }
  body { font-size: 17px; }
  .stack { width: 460px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .rv, .js .split .w > span { opacity: 1; transform: none; }
  .js .intro { display: none; }
}

/* ==========================================================================
   Cuisine guides + hub (/cuisines/*, built by tools/build-guides.js)
   Full-photo hero, signature-dish spotlight, filterable dish list with a
   "build a plate" tray, image bands, waitlist. Motion = transform/opacity only.
   (Source of truth: tools/guides.css. build-guides.js copies it over this block.)
   ========================================================================== */

/* Crawlers (class set in <head> by user agent): show everything in its final state, no scroll-reveal fades */
.bot .rv, .bot .split .w > span { opacity: 1 !important; transform: none !important; transition: none !important; }
.bot .gx-track span, .bot .gx-macros em::after { transform: none; transition: none; }

/* Header sits on a photo until the page scrolls */
.on-photo .hdr:not(.scrolled):not(.open) .brand span { color: #fff; }
.on-photo .hdr:not(.scrolled):not(.open) .nav a { color: rgba(255, 255, 255, .86); }
.on-photo .hdr:not(.scrolled):not(.open) .nav a:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.on-photo .hdr:not(.scrolled):not(.open) .burger span { background: #fff; }

/* ---------- Hero ---------- */
.gx-hero { position: relative; isolation: isolate; min-height: min(100svh, 980px); display: flex; align-items: flex-end; padding: calc(132px + env(safe-area-inset-top)) 0 clamp(48px, 7vw, 96px); color: #fff; background: #0b1a10; overflow: clip; }
.gx-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: gxZoom 2.6s var(--ease) both; }
@keyframes gxZoom { from { transform: scale(1.08); } to { transform: none; } }
.gx-shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(5, 18, 9, .55), transparent 24%),
  linear-gradient(0deg, rgba(5, 18, 9, .7), transparent 46%),
  linear-gradient(90deg, rgba(5, 18, 9, .88) 0%, rgba(5, 18, 9, .62) 36%, rgba(5, 18, 9, .1) 68%, transparent); }
.gx-hero-in > * { max-width: 640px; } /* no fade-in: hero text must be visible at first paint (LCP, Googlebot) */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--faint); margin-bottom: 18px; }
.crumbs a { color: var(--green); text-decoration: none; }
.gx-hero .crumbs { color: rgba(255, 255, 255, .66); }
.gx-hero .crumbs a { color: #fff; }
.gx-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 999px; font-size: .85rem; font-weight: 500;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.gx-kicker:not(:has(.gx-flags)) { padding-left: 14px; }
.gx-flags { display: inline-flex; flex-wrap: wrap; gap: 4px; max-width: 100%; }
.gx-flags .fi:nth-child(n+8) { display: none; } /* 13 Arab flags would crowd any card; 7 say it */
.gx-flags .fi { width: 22px; height: 16px; border-radius: 3px; background-size: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.gx-h1 { margin-top: 18px; font-size: clamp(2.7rem, 1.3rem + 5.6vw, 6.2rem); line-height: .95; letter-spacing: -.045em; font-weight: 600; text-wrap: balance; }
.gx-h1 em, .gx-why .h2 em, .gx-final .h2 em { color: #b9e47f; }
.gx-lede { margin-top: 20px; font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem); color: rgba(255, 255, 255, .84); max-width: 34em; }
.gx-search { display: flex; align-items: center; gap: 10px; margin-top: 28px; max-width: 520px; padding: 6px 6px 6px 18px; border-radius: 999px; background: rgba(255, 253, 248, .96); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .45); transition: box-shadow .3s; }
.gx-search:focus-within { box-shadow: 0 0 0 3px #b9e47f, 0 18px 40px -12px rgba(0, 0, 0, .45); }
.gx-search svg, .gx-q svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--faint); stroke-width: 2; stroke-linecap: round; }
.gx-search input { flex: 1; min-width: 0; min-height: 44px; border: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--ink); outline: none; }
.gx-search .btn { min-height: 44px; }
.gx-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.gx-facts div { display: grid; padding: 10px 16px; border-radius: 16px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.gx-facts dt { order: 2; font-size: .76rem; color: rgba(255, 255, 255, .72); max-width: 22ch; }
.gx-facts dd { order: 1; margin: 0; font-size: 1.35rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.gx-facts dd small { font-size: .62em; font-weight: 600; opacity: .75; }
.gx-cap { position: absolute; right: var(--gutter); bottom: 22px; margin: 0; padding: 6px 12px; border-radius: 999px; font-size: .76rem; color: rgba(255, 255, 255, .82); background: rgba(5, 18, 9, .35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.gx-hero-cta { margin-top: 30px; }
.gx-hero-cta svg, .hub-go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Hub hero: the banquet-table photo, darker on the left for the headline */
.gx-hub-hero .gx-shade { background: linear-gradient(90deg, rgba(5, 18, 9, .92) 0%, rgba(5, 18, 9, .74) 45%, rgba(5, 18, 9, .45)), linear-gradient(0deg, rgba(5, 18, 9, .6), transparent 50%); }

/* ---------- Signature dish spotlight ---------- */
.gx-spot { padding: var(--sec-y) 0; }
.gx-spot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.gx-spot-img { position: relative; margin: 0; }
.gx-spot-img img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.gx-spot-img figcaption { position: absolute; top: 18px; left: 18px; padding: 7px 14px; border-radius: 999px; background: var(--paper); font-size: .8rem; font-weight: 600; color: var(--green); box-shadow: var(--shadow); }
.gx-spot-name { margin-top: 14px; font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.6rem); font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.gx-spot-name span { display: block; margin-top: 12px; font-size: .46em; font-weight: 500; letter-spacing: 0; color: var(--green); line-height: 1.4; }
.gx-spot-range { margin-top: 26px; color: var(--muted); font-weight: 500; }
.gx-spot-range b { font-size: clamp(2.4rem, 1.6rem + 2.6vw, 3.8rem); font-weight: 700; letter-spacing: -.045em; color: var(--green); font-variant-numeric: tabular-nums; }
.gx-spot-range small { color: var(--faint); font-size: .9rem; margin-left: 4px; }
.gx-track { position: relative; height: 14px; margin: 18px 0 34px; border-radius: 999px; background: #ebe7dc; }
.gx-track span { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, var(--lime), var(--green)); transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--ease) .2s; }
.gx-track.in span { transform: none; }
.gx-track i { position: absolute; left: 0; top: 22px; font: 500 .75rem var(--sans); color: var(--faint); }
.gx-track i:last-of-type { left: auto; right: 0; }
.gx-macros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gx-macros li { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--white); border: 1px solid #d4d4d4; }
.gx-macros span { font-size: .78rem; color: var(--faint); }
.gx-macros b { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }
.gx-macros em { display: block; height: 6px; margin-top: 6px; border-radius: 99px; background: #efece4; overflow: hidden; }
.gx-macros em::after { content: ''; display: block; height: 100%; width: var(--w); border-radius: inherit; background: currentColor; transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease) .5s; }
.gx-macros.in em::after { transform: none; }
.gx-macros .p, .gx-m .p { color: var(--protein); }
.gx-macros .c, .gx-m .c { color: var(--carbs); }
.gx-macros .f, .gx-m .f { color: var(--fat); }
.gx-spot-note { margin-top: 20px; color: var(--muted); max-width: 32em; }

/* ---------- Editorial intro ---------- */
.gx-intro { padding: 0 0 var(--sec-y); }
.gx-intro-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 5vw, 80px); align-items: start; padding-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line); }
.gx-intro-lead { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.25rem, 1rem + .8vw, 1.7rem); line-height: 1.4; letter-spacing: -.01em; color: var(--ink); }
.gx-intro-body { color: var(--muted); font-size: 1.05rem; }

/* ---------- Dish list ---------- */
.gx-list, .gx-hub { padding: var(--sec-y) 0; background: var(--paper); border-top: 1px solid var(--line); }
.gx-list-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 40px; flex-wrap: wrap; }
.gx-list-head .fine { max-width: 30em; margin: 0; }
.gx-tools { position: sticky; top: calc(72px + env(safe-area-inset-top)); z-index: 20; display: flex; align-items: center; gap: 12px; margin: 32px 0 4px; padding: 12px 0; background: rgba(255, 253, 248, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.gx-q { display: flex; align-items: center; gap: 8px; flex: 0 0 280px; padding: 0 16px; min-height: 48px; border-radius: 999px; background: var(--white); border: 1px solid #d4d4d4; }
.gx-q:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(21, 115, 40, .12); }
.gx-q input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--ink); outline: none; min-height: 44px; }
.gx-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; min-width: 0; padding: 2px 40px 2px 2px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
.gx-chips::-webkit-scrollbar { display: none; }
.gx-chips a { flex: none; padding: 9px 15px; border-radius: 999px; background: var(--white); box-shadow: 0 0 0 1px var(--line); font-size: .86rem; font-weight: 500; color: var(--ink); text-decoration: none; transition: color .2s, box-shadow .2s; }
.gx-chips a:hover { color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.gx-none { margin: 32px 0 0; color: var(--muted); }
.gx-none a { color: var(--green); }
.gd-group { margin-top: 36px; scroll-margin-top: 160px; }
.gd-group h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; margin: 0 0 12px; }
.gd-group h3 span { font-size: .85rem; color: var(--faint); font-weight: 500; margin-left: 6px; }
.gd-scroll { overflow-x: auto; background: var(--white); border: 1px solid #d4d4d4; border-radius: var(--r-md); box-shadow: var(--shadow); }
.gd-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.gd-table th, .gd-table td { padding: 10px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.gd-table thead th { font-size: .74rem; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; background: #f7f7f3; }
.gd-table tbody tr { transition: background .2s; }
.gd-table tbody tr:hover { background: #fafaf5; }
.gd-table tbody tr:last-child > * { border-bottom: 0; }
.gd-table tbody th { font-weight: 400; white-space: normal; width: 42%; }
.gd-dish { display: flex; align-items: center; gap: 12px; }
.gd-dish img, .gd-ph { width: 44px; height: 44px; border-radius: 12px; flex: none; object-fit: cover; }
.gd-ph { display: grid; place-items: center; background: var(--lime-soft); color: var(--green); font-weight: 600; }
.gd-dish b { display: block; font-weight: 600; }
.gd-dish small { display: block; color: var(--faint); font-size: .85rem; }
.gd-dish .gx-m { display: none; }
.gd-dish .gx-m i { font-style: normal; font-weight: 600; }
.gd-cal b { font-weight: 600; color: var(--green); font-variant-numeric: tabular-nums; }
.gx-mac i { font-style: normal; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.gx-mac i::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; vertical-align: 1px; }
.gx-mac i.p::before { background: var(--protein); }
.gx-mac i.c::before { background: var(--carbs); }
.gx-mac i.f::before { background: var(--fat); }
.gx-add { width: 1%; }
.gx-add button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--green); background: transparent; color: var(--green); cursor: pointer; transition: background .25s, color .25s, transform .35s var(--spring); }
.gx-add button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; transition: transform .35s var(--spring); }
.gx-add button:hover { background: var(--lime-soft); }
.gx-add button[aria-pressed="true"] { background: var(--green); color: #fff; }
.gx-add button[aria-pressed="true"] svg { transform: rotate(45deg); }
.gx-add button:active { transform: scale(.9); }

/* Plate tray */
.gx-plate { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 95; width: min(760px, calc(100% - 24px)); transform: translateX(-50%); color: #eef5ea; animation: gxUp .5s var(--spring) both; }
.gx-plate[hidden] { display: none; }
@keyframes gxUp { from { opacity: 0; transform: translate(-50%, 30px); } to { opacity: 1; transform: translate(-50%, 0); } }
.gx-plate-in { display: flex; align-items: center; gap: 14px 18px; padding: 14px 14px 14px 20px; border-radius: 22px; background: rgba(6, 35, 15, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .55); }
.gx-plate-sum { display: grid; flex: none; }
.gx-plate-sum span { font-size: .78rem; color: rgba(238, 245, 234, .7); }
.gx-plate-sum strong { font-size: 1.45rem; font-weight: 700; letter-spacing: -.03em; color: #b9e47f; font-variant-numeric: tabular-nums; }
.gx-plate-sum small { font-size: .7em; color: rgba(238, 245, 234, .7); }
.gx-plate-items { display: flex; gap: 6px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; margin: 0; padding: 0; list-style: none; }
.gx-plate-items::-webkit-scrollbar { display: none; }
.gx-plate-items button { flex: none; white-space: nowrap; padding: 7px 12px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; font: 500 .82rem var(--sans); cursor: pointer; }
.gx-plate-items button::after { content: '\00d7'; margin-left: 8px; opacity: .6; }
.gx-plate-act { display: flex; align-items: center; gap: 6px; flex: none; }
.gx-plate-clear { border: 0; background: none; color: rgba(238, 245, 234, .7); font: 500 .85rem var(--sans); padding: 10px; cursor: pointer; }
.has-plate .ftr { padding-bottom: 140px; }

/* ---------- "Why a range" band ---------- */
.gx-why { padding: var(--sec-y) 0; background: var(--green-deep); color: #eef5ea; }
.gx-why-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.gx-why .lede { color: rgba(238, 245, 234, .74); }
.gx-why-stat { display: flex; align-items: baseline; gap: 14px; margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(238, 245, 234, .16); }
.gx-why-stat b { flex: none; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); font-weight: 700; letter-spacing: -.04em; color: #b9e47f; }
.gx-why-stat span { color: rgba(238, 245, 234, .74); }
.gx-why-img { margin: 0; }
.gx-why-img img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }

/* ---------- More cuisines rail ---------- */
.gx-more { padding: var(--sec-y) 0 calc(var(--sec-y) * .8); overflow: hidden; }
.gx-more-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.gx-more-head .link-arrow { margin: 0; }
.gx-rail { --pad: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); display: flex; gap: 16px; margin-top: 32px; padding: 4px var(--pad) 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: thin; }
.gx-card { position: relative; flex: 0 0 clamp(230px, 24vw, 320px); aspect-ratio: 4 / 5; border-radius: var(--r-md); overflow: hidden; scroll-snap-align: start; color: #fff; text-decoration: none; background: #0b1a10; box-shadow: var(--shadow); }
.gx-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.gx-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(5, 18, 9, .88)); }
.gx-card:hover img { transform: scale(1.06); }
.gx-card-in { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 18px; display: grid; gap: 4px; }
.gx-card-in b { font-size: 1.15rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; margin-top: 6px; }
.gx-card-in small { font-size: .82rem; color: rgba(255, 255, 255, .78); }

/* ---------- Hub bento ---------- */
.hub-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.hub-tile { position: relative; min-height: clamp(320px, 30vw, 440px); border-radius: var(--r-lg); overflow: hidden; color: #fff; text-decoration: none; background: #0b1a10; box-shadow: var(--shadow); }
.js .hub-tile.rv { transition-delay: var(--d, 0ms); }
.hub-tile:nth-child(1), .hub-tile:nth-child(6), .hub-tile:nth-child(7), .hub-tile:nth-child(8) { grid-column: span 2; }
.hub-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hub-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 18, 9, .05) 12%, rgba(5, 18, 9, .55) 42%, rgba(5, 18, 9, .93)); }
.hub-tile-in, .gx-card-in { text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.hub-tile:hover img { transform: scale(1.06); }
.hub-tile-in { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 22px; display: grid; gap: 4px; }
.hub-tile-in > b { margin-top: 8px; font-size: clamp(1.25rem, 1rem + .8vw, 1.7rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.hub-tile-in > small { font-size: .85rem; color: rgba(255, 255, 255, .75); }
.hub-tile ul { margin: 10px 0 0; padding: 0; list-style: none; }
.hub-tile li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid rgba(255, 255, 255, .16); font-size: .86rem; }
.hub-tile li em { font-family: var(--sans); font-style: normal; font-weight: 600; color: #b9e47f; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hub-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 600; color: #b9e47f; }
.hub-go svg { transition: transform .3s var(--ease); }
.hub-tile:hover .hub-go svg { transform: translateX(4px); }

/* ---------- Final CTA with photo ---------- */
.gx-final { position: relative; isolation: isolate; min-height: min(84svh, 820px); display: flex; align-items: center; padding: var(--sec-y) 0; color: #eef5ea; background: var(--green-ink); overflow: hidden; }
.gx-final-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 75% 50%; z-index: -2; }
.gx-final::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 35, 15, .94) 0%, rgba(6, 35, 15, .8) 38%, rgba(6, 35, 15, .2) 72%, rgba(6, 35, 15, .05)); }
.gx-final-in > * { max-width: 560px; }
.gx-final .h2 { font-size: clamp(2.4rem, 1.2rem + 4.4vw, 5rem); max-width: 12ch; }
.gx-final .lede { color: rgba(238, 245, 234, .78); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hub-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-tile:nth-child(n) { grid-column: auto; }
  .hub-tile:nth-child(1), .hub-tile:nth-child(8) { grid-column: span 2; }
}
@media (max-width: 960px), (orientation: portrait) and (max-width: 1100px) {
  .gx-spot-grid, .gx-why-grid, .gx-intro-grid { grid-template-columns: minmax(0, 1fr); }
  .gx-spot-img { max-width: 560px; }
  .gx-tools { flex-wrap: wrap; }
  .gx-q, .gx-chips { flex: 1 1 100%; }
}
@media (max-width: 760px) {
  .gx-hero { min-height: min(100svh, 860px); } /* capped: Googlebot's viewport is page-tall */
  .gx-shade { background: linear-gradient(180deg, rgba(5, 18, 9, .55) 0%, rgba(5, 18, 9, .1) 22%, rgba(5, 18, 9, .2) 36%, rgba(5, 18, 9, .86) 62%, rgba(5, 18, 9, .96)); }
  .gx-cap { top: calc(84px + env(safe-area-inset-top)); bottom: auto; font-size: .7rem; }
  .gx-final { align-items: flex-end; min-height: min(92svh, 820px); }
  .gx-final::before { background: linear-gradient(180deg, rgba(6, 35, 15, .3) 0%, rgba(6, 35, 15, .8) 42%, rgba(6, 35, 15, .96)); }
  .gx-final-img { object-position: 80% 30%; }
  /* The dish table becomes compact cards: name + serving/macros line, calories, add button */
  .gd-table thead { display: none; }
  .gd-table, .gd-table tbody { display: block; }
  .gd-table tr { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .gd-table tbody tr:last-child { border-bottom: 0; }
  .gd-table th, .gd-table td { padding: 0; border: 0; }
  .gd-table tbody th { flex: 1; min-width: 0; width: auto; }
  .gx-serv, .gx-mac { display: none; }
  .gd-dish .gx-m { display: block; font-size: .76rem; margin-top: 2px; }
  .gd-dish .gx-m i { margin-right: 4px; }
  .gd-cal { flex: none; text-align: right; font-size: .88rem; }
  .gx-add { flex: none; width: auto; }
  .gd-dish img, .gd-ph { width: 40px; height: 40px; }
  .gx-add button { width: 38px; height: 38px; }
}
@media (max-width: 640px) {
  .hub-bento { grid-template-columns: minmax(0, 1fr); }
  .hub-tile:nth-child(n) { grid-column: auto; min-height: 340px; }
  .gx-macros { gap: 8px; }
  .gx-macros li { padding: 12px; }
  .gx-search .btn { padding: 0 18px; }
  .gx-facts div { padding: 8px 12px; }
  .gx-facts dd { font-size: 1.15rem; }
  .gx-kicker .fi:nth-child(n+4) { display: none; } /* Arabic has six flags; three keep the label on one line */
  .gx-plate-in { flex-wrap: wrap; padding: 12px 12px 12px 16px; }
  .gx-plate-items { order: 3; flex: 1 1 100%; }
  .gx-plate-act { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .gx-hero-img { animation: none; }
  .gx-track span, .gx-macros em::after { transform: none; transition: none; }
}
