/* nutribot.life — one stylesheet. Dark-first tokens (like the app), light via prefers-color-scheme.
   Works without JS; site.js (Motion) only enhances. Hide-before-reveal styles live under html.js-anim,
   which the script sets — so JS-off visitors see everything. Animations touch transform/opacity only (no blur/filter
   animation); the paint-only exception is a tiny box: the headline's shimmer (background-position). */

@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/assets/fonts/manrope-cyrillic-ext.woff2) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/assets/fonts/manrope-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/assets/fonts/manrope-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/assets/fonts/manrope-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; }

:root {
  color-scheme: dark light;
  --bg: #0b0d10;
  --bg-elev: #0f1216;
  --surface: #16191e;
  --surface-2: #1c2026;
  --text: #f4f5f7;
  --muted: #a7aeb9;
  --faint: #7c8491;
  --border: #252a32;
  --border-strong: #323843;
  --accent: #2dd4a3;
  --on-accent: #063d2d;
  --accent-ink: #6bf0c7;
  --accent-soft: rgba(45, 212, 163, 0.13);
  --accent-line: rgba(45, 212, 163, 0.35);
  --warn: #fbbf5a;
  --warn-ink: #fbbf5a;
  --warn-soft: rgba(251, 191, 90, 0.14);
  --water: #7aa8f0;
  --grid: rgba(45, 212, 163, 0.06);
  --blob-a: rgba(45, 212, 163, 0.20);
  --blob-b: rgba(251, 191, 90, 0.10);
  --header-bg: rgba(11, 13, 16, 0.72);
  --au-1: rgba(45, 212, 163, 0.55);
  --au-2: rgba(94, 234, 212, 0.35);
  --au-3: rgba(125, 211, 252, 0.30);
  --au-4: rgba(129, 140, 248, 0.22);
  --aurora-opacity: .95;
  --spot: rgba(206, 255, 238, 0.17);
  --lamp: rgba(45, 212, 163, 0.38);
  --glow: rgba(45, 212, 163, 0.85);
  --glow-soft: rgba(45, 212, 163, 0.07);
  --noise-opacity: .05;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 24px 48px -32px rgba(0, 0, 0, 0.7);
  --shadow-pop: 0 30px 60px -28px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --radius: 20px;
  --radius-lg: 28px;
  --pill: 999px;
  --gutter: 16px;
  --max: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --accent-grad: linear-gradient(100deg, var(--accent-ink), var(--accent) 60%, #a6f5dc);
  --shine: rgba(240, 255, 250, .95);
  --cursor-glow: rgba(45, 212, 163, .26);
}
/* an underdamped spring (~23% overshoot) where linear() easing exists; the cubic-bezier above is the fallback */
@supports (animation-timing-function: linear(0, 1)) {
  :root { --spring: linear(0, 0.054, 0.193, 0.381, 0.585, 0.781, 0.95, 1.081, 1.17, 1.22, 1.234, 1.22, 1.187, 1.142, 1.095,
    1.049, 1.01, 0.98, 0.959, 0.948, 0.945, 0.949, 0.957, 0.967, 0.978, 0.989, 0.998, 1.005, 1); }
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f8fa;
    --bg-elev: #f1f3f6;
    --surface: #ffffff;
    --surface-2: #f3f5f8;
    --text: #0f1115;
    --muted: #4f5664;
    --faint: #6a7280;
    --border: #e3e6eb;
    --border-strong: #d4d8df;
    --accent-ink: #0a6b4f;
    --accent-soft: rgba(45, 212, 163, 0.15);
    --accent-line: rgba(10, 107, 79, 0.28);
    --warn-ink: #8a5300;
    --warn-soft: rgba(251, 191, 90, 0.22);
    --water: #2f5fb3;
    --grid: rgba(16, 140, 104, 0.07);
    --blob-a: rgba(45, 212, 163, 0.16);
    --blob-b: rgba(251, 191, 90, 0.14);
    --header-bg: rgba(247, 248, 250, 0.78);
    --au-1: rgba(45, 212, 163, 0.45);
    --au-2: rgba(94, 234, 212, 0.30);
    --au-3: rgba(125, 211, 252, 0.30);
    --au-4: rgba(129, 140, 248, 0.22);
    --aurora-opacity: .7;
    --spot: rgba(45, 212, 163, 0.12);
    --lamp: rgba(16, 160, 118, 0.20);
    --glow: rgba(14, 143, 105, 0.75);
    --glow-soft: rgba(45, 212, 163, 0.08);
    --noise-opacity: .035;
    --shadow-card: 0 1px 2px rgba(15, 17, 21, 0.04), 0 18px 40px -28px rgba(15, 17, 21, 0.22);
    --shadow-pop: 0 30px 60px -30px rgba(15, 17, 21, 0.35), 0 0 0 1px rgba(15, 17, 21, 0.06);
    --accent-grad: linear-gradient(100deg, #0a6b4f, #0e8f69 70%);
    --shine: #45e8b8;
    --cursor-glow: rgba(45, 212, 163, .2);
  }
}

@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; min-height: 100vh; overflow-x: clip;
  background: var(--bg); color: var(--text);
  font: 400 16px/1.6 Manrope, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
.ic { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; font-weight: 800; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--accent); color: var(--on-accent); }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px;
  background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Ambient backdrop: accent grid fading out + two soft blobs (like the app's Backdrop) */
.backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.backdrop::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
}
/* film grain (static SVG turbulence, data: URI is allowed by img-src) */
.backdrop::after { content: ""; position: absolute; inset: 0; opacity: var(--noise-opacity);
  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%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: light) { .backdrop::after { filter: invert(1); } }
.blob { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; }
.blob-a { top: -38vmax; left: -22vmax; background: radial-gradient(closest-side, var(--blob-a), transparent); }
.blob-b { top: 10vmax; right: -34vmax; background: radial-gradient(closest-side, var(--blob-b), transparent); }
@media (prefers-reduced-motion: no-preference) {
  .blob-a { animation: drift-a 15s ease-in-out infinite alternate; }
  .blob-b { animation: drift-b 19s ease-in-out infinite alternate; }
  @keyframes drift-a { to { transform: translate(14vmax, 9vmax) scale(1.18); } }
  @keyframes drift-b { to { transform: translate(-13vmax, -10vmax) scale(.86); } }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: var(--pill);
  font: inherit; font-weight: 700; font-size: 16px; line-height: 1; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap; border: 1px solid transparent;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, box-shadow .2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-accent { position: relative; overflow: hidden; isolation: isolate; }
.btn-accent::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-110%); }
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .btn-accent::after { transition: transform .8s var(--ease); }
  .btn-accent:hover::after { transform: translateX(110%); }
}
@media (prefers-reduced-motion: no-preference) {
  .cta-row .btn-accent::after { animation: shine 5s var(--ease) 2.6s infinite; }
  @keyframes shine { 0% { transform: translateX(-110%); } 22%, 100% { transform: translateX(110%); } }
  /* magnetic buttons (site.js, fine pointers): follow quickly, spring back on leave */
  .js-anim .cta-row .btn { transition: transform .8s var(--spring), background-color .2s, border-color .2s, box-shadow .2s; }
  .js-anim .cta-row .btn.is-magnet { transition-duration: .2s, .2s, .2s, .2s; transition-timing-function: var(--ease); }
}
.btn-accent { background: var(--accent); color: var(--on-accent);
  box-shadow: 0 10px 30px -12px rgba(45, 212, 163, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-accent:hover { background: #46dfb2; transform: translateY(-1px); text-decoration: none; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent-line); transform: translateY(-1px); }
html[data-platform="ios"] [data-store="android"], html[data-platform="android"] [data-store="ios"] { display: none; }
.btn-soon { background: transparent; color: var(--muted); border: 1px dashed var(--border-strong); cursor: default; gap: 12px; }
.btn-soon .soon-k { display: block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.btn-soon .soon-v { display: block; font-size: 15px; font-weight: 700; color: var(--text); margin-top: 3px; }
.btn-soon > span { text-align: left; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover { transition: none; transform: none; } html { scroll-behavior: auto; } }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent); }
.scroll-progress { display: none; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--accent) 30%, #a6f5dc); transform-origin: 0 50%; transform: scaleX(0); }
.js-anim .scroll-progress { display: block; }
.header-row { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none;
  font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; }
.brand-mark rect { fill: var(--accent); }
.brand-mark path { fill: var(--on-accent); stroke: var(--on-accent); stroke-width: 7.5; stroke-linecap: round; stroke-linejoin: round; }
.main-nav { display: none; gap: 4px; margin-left: 20px; }
.main-nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.main-nav a:hover { color: var(--text); background: var(--surface); }
.header-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
/* Language switcher: <details> menu (no JS needed; site.js adds outside-click / Escape to close) */
.lang { position: relative; }
.lang-btn { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 40px;
  padding: 0 10px 0 11px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--border);
  color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .04em; line-height: 1; user-select: none;
  transition: color .2s, border-color .2s, background-color .2s; }
.lang-btn::-webkit-details-marker { display: none; }
.lang-btn:hover, .lang[open] > .lang-btn { color: var(--text); border-color: var(--accent-line); }
.lang-btn:focus-visible { border-radius: var(--pill); }
.lang-btn svg { flex: none; }
.lang-globe { width: 17px; height: 17px; color: var(--accent-ink); }
.lang-cur { min-width: 2ch; }
.lang-chev { width: 14px; height: 14px; opacity: .7; transition: transform .2s var(--ease); }
.lang[open] .lang-chev { transform: rotate(180deg); }
.lang-menu { position: absolute; z-index: 60; top: calc(100% + 10px); right: 0; margin: 0; padding: 6px; list-style: none;
  width: max-content; min-width: 236px; max-width: calc(100vw - 2 * var(--gutter));
  max-height: min(72vh, 560px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 18px; box-shadow: var(--shadow-pop); }
.lang-menu a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 12px; border-radius: 12px;
  color: var(--text); text-decoration: none; font-size: 15px; font-weight: 600; line-height: 1.25; }
.lang-menu a:hover { background: var(--surface-2); text-decoration: none; }
.lang-menu a:focus-visible { outline-offset: -2px; border-radius: 12px; }
.lang-name { flex: 1; }
.lang-code { color: var(--faint); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.lang-check { width: 16px; height: 16px; flex: none; stroke-width: 2.4; color: var(--accent-ink); visibility: hidden; }
.lang-menu a[aria-current] { background: var(--accent-soft); color: var(--accent-ink); }
.lang-menu a[aria-current] .lang-code { color: var(--accent-ink); }
.lang-menu a[aria-current] .lang-check { visibility: visible; }
@media (prefers-reduced-motion: no-preference) {
  .lang[open] .lang-menu { animation: lang-in .18s var(--ease); transform-origin: top right; }
  @keyframes lang-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
}
@media (prefers-reduced-motion: reduce) { .lang-btn, .lang-chev { transition: none; } }
@media print { .lang-nav { display: none; } }
.header-cta { display: none; }
@media (min-width: 880px) { .main-nav { display: flex; } }
@media (min-width: 560px) { .header-cta { display: inline-flex; } }

/* ---------- generic sections ---------- */
.section { padding-block: 48px; }
@media (min-width: 640px) { .section { padding-block: 64px; } }
@media (min-width: 1024px) { .section { padding-block: 80px; } }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-ink); font-weight: 700;
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.h2 { font-size: clamp(30px, 2.4vw + 18px, 48px); letter-spacing: -0.03em; }
.lead { color: var(--muted); font-size: clamp(16px, .4vw + 14.5px, 19px); margin-top: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-card); }

/* ---------- hero ---------- */
.hero { padding-block: 32px 24px; position: relative; isolation: isolate; }
/* Ambient light: a one-off spotlight beam from the top-left + a slow aurora behind the phone.
   Starts behind the (translucent, blurred) header; fades out towards the next section. */
.hero-fx { position: absolute; inset: -65px 0 0; z-index: -1; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
.spotlight { position: absolute; top: -260px; left: -340px; width: 1180px; height: 460px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--spot), transparent); transform: rotate(32deg); transform-origin: 30% 50%; }
.aurora { position: absolute; top: -10%; right: -12%; width: 80%; height: 90%; opacity: var(--aurora-opacity);
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 58% 40%, #000 25%, transparent 72%);
  mask-image: radial-gradient(ellipse 60% 55% at 58% 40%, #000 25%, transparent 72%); }
.aurora::before { content: ""; position: absolute; inset: 0 -60% 0 -10%;
  background: repeating-linear-gradient(100deg, transparent 0, var(--au-1) 6%, transparent 11%, var(--au-3) 16%,
    transparent 21%, var(--au-2) 26%, transparent 31%, var(--au-4) 36%, transparent 41%);
  filter: blur(36px); }
.aurora::after { content: ""; position: absolute; inset: 12% -50% -12% -30%; opacity: .75;
  background: repeating-linear-gradient(78deg, transparent 0, var(--au-2) 7%, transparent 13%, var(--au-1) 19%,
    transparent 25%, var(--au-3) 31%, transparent 37%);
  filter: blur(44px); }
/* cursor spotlight (site.js sets --hx/--hy on fine pointers; transform only) */
.hero-fx::after { content: ""; position: absolute; left: 0; top: 0; width: 720px; height: 720px; margin: -360px 0 0 -360px;
  border-radius: 50%; background: radial-gradient(closest-side, var(--cursor-glow), transparent);
  transform: translate(var(--hx, 50vw), var(--hy, 40vh)); opacity: 0; transition: opacity .6s var(--ease); }
.hero.is-lit .hero-fx::after { opacity: 1; }
@media (max-width: 1023px) {
  .spotlight { top: -200px; left: -420px; width: 900px; height: 360px; }
  .aurora { top: 34%; right: -30%; width: 140%; height: 70%; }
}
@media (prefers-reduced-motion: no-preference) {
  .spotlight { animation: spot-in 2.2s var(--ease) .3s both, spot-sway 11s ease-in-out 2.5s infinite alternate; }
  @keyframes spot-in { from { opacity: 0; transform: translate(-140px, -110px) rotate(32deg) scale(.45); } }
  @keyframes spot-sway { from { transform: rotate(32deg); } to { transform: translate(90px, 30px) rotate(25deg) scale(1.12); } }
  .aurora::before { animation: aurora 13s ease-in-out infinite alternate; will-change: transform; }
  .aurora::after { animation: aurora-b 17s ease-in-out -6s infinite alternate; will-change: transform; }
  @keyframes aurora { from { transform: translateX(-22%) skewX(-6deg); } to { transform: translateX(20%) skewX(4deg); } }
  @keyframes aurora-b { from { transform: translateX(16%) rotate(-5deg); } to { transform: translateX(-24%) rotate(4deg); } }
  /* entrance (CSS, so it runs from the first frame and without JS): the copy rises in sequence. site.js
     swaps the headline's rise for a word-by-word reveal when it runs before the first paint. */
  .pill-status, .hero h1, .hero .lead, .hero .cta-row, .facts { animation: rise 1s var(--ease-out) both; }
  .hero h1 { animation-delay: .1s; }
  .hero h1.is-split { animation: none; perspective: 900px; }
  .hero .lead { animation-delay: .45s; }
  .hero .cta-row { animation-delay: .6s; }
  .facts { animation-delay: .75s; }
  @keyframes rise { from { opacity: 0; transform: translateY(40px); } }
  /* phone: rises out of a 3D tilt; site.js holds it (.is-wait) until it is on screen */
  .hero-visual { animation: phone-in 1.6s var(--ease-out) .25s both; }
  @keyframes phone-in { from { opacity: 0; transform: perspective(1400px) translateY(120px) rotateX(28deg) rotateY(-22deg) scale(.86); } }
  .js-anim .hero-visual.is-wait, .js-anim .hero-visual.is-wait .device { animation-play-state: paused; }
  /* pause the infinite effects while the hero is off screen (site.js toggles .is-on) */
  .js-anim .hero:not(.is-on) .aurora::before, .js-anim .hero:not(.is-on) .aurora::after, .js-anim .hero:not(.is-on) .spotlight,
  .js-anim .hero:not(.is-on) .device, .js-anim .hero:not(.is-on) h1 .accent { animation-play-state: paused; }
}
.hero h1 .w { display: inline-block; transform-origin: 50% 100%; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.pill-status { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: var(--pill);
  background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-size: 14px; font-weight: 600; }
.pill-status b { color: var(--text); font-weight: 700; }
/* a phone gets two tidy lines (platforms / stores) instead of a wrap in the middle of a store name */
@media (max-width: 479px) {
  .pill-status { border-radius: 18px; padding-block: 8px; }
  .pill-status b, .pill-more { display: block; }
  .pill-sep { display: none; }
}
.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0;
    animation: ping 2.4s var(--ease) infinite; }
  @keyframes ping { 0% { transform: scale(.5); opacity: .8; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
}
.hero h1 { font-size: clamp(42px, 5.2vw + 18px, 84px); line-height: 1.02; letter-spacing: -0.045em; margin-top: 22px; }
.hero h1 .accent { white-space: nowrap; color: var(--accent-ink); background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
@media (prefers-reduced-motion: no-preference) {
  /* the accent phrase: a light sweeps across it every few seconds */
  .hero h1 .accent { background-image: linear-gradient(100deg, transparent 40%, var(--shine) 50%, transparent 60%), var(--accent-grad);
    background-size: 250% 100%, 100% 100%; background-repeat: no-repeat; background-position: 100% 0, 0 0;
    animation: shimmer 5.5s ease-in-out 1.5s infinite; }
  @keyframes shimmer { 0% { background-position: 100% 0, 0 0; } 30%, 100% { background-position: 0% 0, 0 0; } }
}
.hero .lead { font-size: clamp(17px, .5vw + 15px, 20px); max-width: 34em; margin-top: 22px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cta-row .btn { flex: 1 1 100%; }
@media (min-width: 480px) { .cta-row .btn { flex: 0 0 auto; } }
.facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 32px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; font-weight: 600; }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts svg { width: 18px; height: 18px; color: var(--accent-ink); }
@media (min-width: 1024px) {
  .hero { padding-block: 72px 32px; }
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; }
}

/* ---------- hero: real app screenshots (Today's menu) in both themes; the visitor's theme in front ---------- */
.hero-visual { position: relative; display: flex; justify-content: center; padding-block: 8px; }
.hero-visual::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; top: 50%; left: 50%; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(closest-side, rgba(45, 212, 163, .32), transparent 70%); }
.phone-stage { position: relative; width: min(100%, 440px); }
.phone-stage::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: -26px; height: 40px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); z-index: -1; }
.shots { display: grid; --gx: 30%; --gy: 0%; transition: transform .7s var(--ease); }
.shots.is-tilting { transition-duration: .25s; }
/* a plain device frame around a 1320×2868 screenshot: 2.6% bezel, iPhone screen corners (14% of the width),
   the Dynamic Island (screenshots leave it out) */
.device { grid-area: 1 / 1; align-self: start; position: relative; width: 70%; padding: 2.6%; border-radius: 15.9% / 7.5%;
  background: linear-gradient(145deg, #3a404a, #15181d 40%, #2a2f37);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), inset 0 0 0 3px #0d0f12, 0 50px 90px -40px rgba(0, 0, 0, .65),
    0 30px 60px -30px rgba(6, 61, 45, .55), 0 0 0 1px rgba(45, 212, 163, .10); }
.device img { display: block; width: 100%; height: auto; border-radius: 14% / 6.44%; background: var(--surface); }
.device::before { content: ""; position: absolute; z-index: 1; top: 2.35%; left: 50%; width: 26.5%; aspect-ratio: 126 / 37;
  transform: translateX(-50%); border-radius: 999px; background: #000; }
/* glass glare that follows the tilt (site.js sets --gx/--gy on .shots) */
.device::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: radial-gradient(60% 45% at var(--gx) var(--gy), rgba(255, 255, 255, .10), transparent 70%),
    linear-gradient(155deg, rgba(255, 255, 255, .07), transparent 35%); }
/* front = the site's theme (dark-first), lower left; the other theme peeks out behind, upper right */
.device-dark { z-index: 2; justify-self: start; margin-top: 12%; }
.device-light { z-index: 1; justify-self: end; }
@media (prefers-color-scheme: light) {
  .device-light { z-index: 2; justify-self: start; margin-top: 12%; }
  .device-dark { z-index: 1; justify-self: end; margin-top: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .device { animation: hover-float 6s ease-in-out 1.8s infinite; }
  .device-light { animation-delay: 3.3s; }
  @media (prefers-color-scheme: light) { .device-light { animation-delay: 1.8s; } .device-dark { animation-delay: 3.3s; } }
  @keyframes hover-float { 50% { translate: 0 -16px; } }
}
@media (min-width: 1180px) {
  .hero-visual { justify-content: flex-end; }
  .phone-stage { width: min(100%, 470px); }
}

/* ---------- features (bento) ---------- */
/* lamp: a lit line with a soft cone of light above the section title */
.lamp { position: relative; height: 72px; max-width: 760px; margin: -8px auto 0; pointer-events: none; }
.lamp::before { content: ""; position: absolute; left: 0; right: 0; top: 1px; height: 170px;
  background: radial-gradient(46% 100% at 50% 0%, var(--lamp), transparent 72%); }
.lamp::after { content: ""; position: absolute; left: 18%; right: 18%; top: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent) 25%, #b9f8e3 50%, var(--accent) 75%, transparent);
  box-shadow: 0 0 18px 2px rgba(45, 212, 163, .45); }
.js-anim .lamp::before, .js-anim .lamp::after { transition: transform 1.2s var(--ease) .1s, opacity 1.2s var(--ease) .1s; }
.js-anim .lamp:not(.is-in)::after { transform: scaleX(.1); }
.js-anim .lamp:not(.is-in)::before { transform: scaleX(.25); opacity: 0; }
.features { display: grid; gap: 16px; grid-template-columns: 1fr; }
.feature { padding: 26px; display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; isolation: isolate;
  --mx: 50%; --my: -200px; }
/* glowing border + soft inner spotlight that follow the pointer across the whole grid (site.js sets --mx/--my) */
.feature::before, .feature::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity .4s var(--ease); }
.feature::before { z-index: 1; padding: 1px;
  background: radial-gradient(340px circle at var(--mx) var(--my), var(--glow), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.feature::after { z-index: -1; background: radial-gradient(480px circle at var(--mx) var(--my), var(--glow-soft), transparent 55%); }
.features.is-hot .feature::before { opacity: 1; }
.feature:hover::after { opacity: 1; }
.feature .f-ic { transition: transform .5s var(--ease); }
.js-anim .feature { transition: transform .7s var(--ease-out); }
.js-anim .feature.is-tilting { transition-duration: .2s; }
@media (prefers-reduced-motion: no-preference) {
  .feature:hover .f-ic { transform: translateY(-2px) rotate(-6deg) scale(1.06); }
}
.feature h3 { font-size: 20px; letter-spacing: -0.02em; }
.feature p { color: var(--muted); font-size: 15.5px; }
.f-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink);
  box-shadow: inset 0 0 0 1px var(--accent-line); margin-bottom: 6px; }
.f-ic svg { width: 24px; height: 24px; }
.f-ic.warm { background: var(--warn-soft); color: var(--warn-ink); box-shadow: inset 0 0 0 1px rgba(251, 191, 90, .35); }
.f-tag { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--muted); border: 1px solid var(--border-strong); border-radius: var(--pill); padding: 2px 10px; }
.feature.wide { gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.chips li { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: var(--pill); background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }
.mini-macros { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.mini-macros div { background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 12px; }
.mini-macros b { display: block; font-size: 18px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mini-macros span { font-size: 12px; color: var(--muted); font-weight: 600; }
.mini-macros i { display: block; height: 4px; border-radius: 4px; margin-top: 10px; transform-origin: 0 50%; }
.mini-macros .k i { background: var(--accent); } .mini-macros .p i { background: var(--accent); opacity: .7; }
.mini-macros .f i { background: var(--warn); } .mini-macros .c i { background: var(--water); }
@media (max-width: 420px) { .mini-macros { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px) { .features { grid-template-columns: repeat(2, 1fr); } .feature.wide { grid-column: span 2; } }
@media (min-width: 1024px) {
  .features { grid-template-columns: repeat(6, 1fr); }
  .feature { grid-column: span 2; }
  .feature.wide { grid-column: span 3; }
}
.extras { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.extras li, .langs li, .chips li { transition: border-color .25s, color .25s, transform .25s var(--ease); }
.extras li:hover, .langs li:hover, .chips li:hover { border-color: var(--accent-line); color: var(--text); }
@media (prefers-reduced-motion: no-preference) { .extras li:hover, .langs li:hover { transform: translateY(-2px); } }
.extras li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--border); font-size: 14px; font-weight: 600; color: var(--muted); }
.extras svg { width: 16px; height: 16px; color: var(--accent-ink); }

/* ---------- how it works ---------- */
.steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step { padding: 28px; position: relative; }
.step-n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; font-weight: 800; font-size: 18px;
  background: var(--accent); color: var(--on-accent); margin-bottom: 20px; box-shadow: 0 10px 24px -12px rgba(45, 212, 163, .7); }
.step h3 { font-size: 21px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15.5px; }
@media (min-width: 880px) { .steps { grid-template-columns: repeat(3, 1fr); }
  .step:not(:last-child)::after { content: ""; position: absolute; top: 49px; left: calc(28px + 44px + 14px); right: -2px; height: 2px;
    border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-line) 55%, transparent);
    box-shadow: 0 0 12px rgba(45, 212, 163, .35); transform-origin: 0 50%; }
  /* site.js sets --draw (0→1) while the steps scroll through: the first line draws, then the second */
  .js-anim .step:nth-child(1)::after { transform: scaleX(clamp(0, calc(var(--draw, 0) * 1.7), 1)); }
  .js-anim .step:nth-child(2)::after { transform: scaleX(clamp(0, calc(var(--draw, 0) * 1.7 - .7), 1)); } }
/* step numbers spring in once their card is revealed */
.js-anim .step-n { transition: scale .9s var(--spring) .3s, opacity .3s ease .3s; }
.js-anim .step:not(.is-in) .step-n { scale: .3; opacity: 0; }

/* ---------- languages ---------- */
.langs-band { padding: 40px 24px; text-align: center; border-radius: var(--radius-lg); position: relative; overflow: hidden; }
.langs-band::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 120% at 50% 0%, var(--accent-soft), transparent 70%); }
.langs-band::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 36px 36px; background-position: center;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 30%, #000, transparent 75%); mask-image: radial-gradient(ellipse 60% 70% at 50% 30%, #000, transparent 75%); }
.langs-band > * { position: relative; z-index: 1; }
.langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 28px auto 0; padding: 0; list-style: none; max-width: 860px; }
.langs li { padding: 9px 16px; border-radius: var(--pill); background: var(--bg-elev); border: 1px solid var(--border); font-weight: 700; font-size: 15px; }
.units-note { margin-top: 22px; color: var(--muted); font-size: 15px; }
@media (min-width: 1024px) { .langs-band { padding: 64px 48px; } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 32px; }
@media (min-width: 1024px) { .faq-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; } }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; transition: border-color .2s; }
.faq details[open] { border-color: var(--accent-line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px; font-weight: 700; font-size: 16.5px; line-height: 1.35; border-radius: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background-color: var(--surface-2);
  background-image: linear-gradient(var(--accent-ink), var(--accent-ink)), linear-gradient(var(--accent-ink), var(--accent-ink));
  background-size: 12px 2px, 2px 12px; background-position: center; background-repeat: no-repeat; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 20px 20px; color: var(--muted); font-size: 15.5px; }
.faq .answer p + p { margin-top: 10px; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* ---------- final CTA ---------- */
.final-frame { position: relative; isolation: isolate; overflow: hidden; padding: 2px; border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--accent-line) 55%, var(--border));
  box-shadow: 0 0 0 1px rgba(45, 212, 163, .12), 0 0 60px -12px rgba(45, 212, 163, .35), 0 40px 120px -50px rgba(45, 212, 163, .7); }
/* a beam of light running along the border: a rotating conic gradient under the 1px gap (transform only) */
.final-beam { position: absolute; z-index: -1; top: 50%; left: 50%; width: max(150%, 1500px); aspect-ratio: 1;
  background: conic-gradient(from 0deg, transparent 0 8%, rgba(45, 212, 163, .9) 22%, #f2fffa 27%, rgba(45, 212, 163, .9) 32%, transparent 44% 58%,
    rgba(45, 212, 163, .9) 72%, #f2fffa 77%, rgba(45, 212, 163, .9) 82%, transparent 94%);
  transform: translate(-50%, -50%) rotate(30deg); }
@media (prefers-reduced-motion: no-preference) {
  .js-anim .final-frame.is-on .final-beam { animation: beam 6s linear infinite; }
  @keyframes beam { from { transform: translate(-50%, -50%) rotate(30deg); } to { transform: translate(-50%, -50%) rotate(390deg); } }
}
.final { position: relative; overflow: hidden; border-radius: calc(var(--radius-lg) - 2px); padding: 56px 24px; text-align: center;
  background: radial-gradient(80% 140% at 50% 0%, rgba(45, 212, 163, .24), transparent 65%), var(--surface); }
.final::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px; -webkit-mask-image: radial-gradient(closest-side, #000, transparent); mask-image: radial-gradient(closest-side, #000, transparent); }
.final > * { position: relative; }
.final .h2 { max-width: 760px; margin-inline: auto; }
.final .lead { max-width: 560px; margin-inline: auto; }
.final .cta-row { justify-content: center; }
.final .small { margin-top: 20px; color: var(--faint); font-size: 14px; }
@media (min-width: 1024px) { .final { padding: 88px 48px; } }

/* ---------- documents (support / legal) ---------- */
.doc { padding-block: 32px 72px; max-width: calc(820px + 2 * var(--gutter)); }
.prose { padding: 28px 22px 32px; }
@media (min-width: 640px) { .prose { padding: 44px 48px 48px; } }
.prose h1 { font-size: clamp(30px, 2vw + 20px, 42px); letter-spacing: -0.03em; margin-bottom: 18px; }
.prose h2 { font-size: 21px; margin: 36px 0 10px; padding-top: 24px; border-top: 1px solid var(--border); }
.prose h3 { font-size: 17px; margin: 26px 0 8px; letter-spacing: -0.01em; }
.prose p, .prose ul, .prose ol { margin: 0 0 12px; color: color-mix(in srgb, var(--text) 86%, var(--bg)); }
.prose ul, .prose ol { padding-left: 22px; }
.join-code { font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.prose li + li { margin-top: 6px; }
.prose .note { background: var(--warn-soft); border: 1px solid rgba(251, 191, 90, .45); border-radius: 14px; padding: 12px 16px; margin: 14px 0; font-size: 15px; }
.prose .contact-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 22px 0 8px; padding: 18px 20px;
  border-radius: 16px; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.prose .contact-card p { margin: 0; color: var(--text); font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding-block: 48px 40px; margin-top: 24px; background: color-mix(in srgb, var(--bg) 70%, transparent); }
.footer-grid { display: grid; gap: 28px; }
.footer-brand p { color: var(--muted); font-size: 15px; margin-top: 12px; max-width: 26em; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.footer-links a, .footer-contact a { color: var(--text); text-decoration: none; font-weight: 600; }
.footer-links a:hover, .footer-contact a:hover { color: var(--accent-ink); text-decoration: underline; }
.foot-note { color: var(--faint); font-size: 14px; }
.footer-contact h2 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.footer-bottom { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border); }
.disclaimer { color: var(--faint); font-size: 13.5px; max-width: 760px; }
.rights { margin-top: 10px; color: var(--faint); font-size: 13.5px; }
@media (min-width: 880px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; } }

/* ---------- 404 ---------- */
.nf { padding-block: 96px; text-align: center; }
.nf .h2 { margin-top: 8px; }
.nf .cta-row { justify-content: center; }

/* ---------- scroll reveal (site.js) ---------- */
/* Only elements the script marks with data-r start hidden, and only once it has set html.js-anim. */
.js-anim [data-r] { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .js-anim [data-r] { opacity: 1; } }
/* section titles rise out of a slot: the heading clips vertically (padding/negative margin give the glyphs
   room without moving anything) and its wrapped content slides up inside it */
.js-anim .mask { overflow-y: clip; padding-block: .12em .16em; margin-block: -.12em -.16em; }
.mask-in { display: block; }

/* Print: anything hidden until revealed must be visible on paper. */
@media print {
  .js-anim [data-r], .js-anim .step-n { opacity: 1 !important; }
  .js-anim .hero-visual .ring .val { stroke-dashoffset: 87.5 !important; }
  .js-anim .step-n { scale: none !important; }
  .js-anim .hero-visual .bar i, .js-anim .steps .step::after { transform: none !important; }
  .js-anim .lamp::before, .js-anim .lamp::after { transform: none !important; opacity: 1 !important; }
}
