/* Next Bite public pages: dark, neon, phone-first. No external files, fonts or scripts:
   the pages load fast, work offline once opened, and send nothing to third parties. */
:root {
  --bg: #07060d;
  --bg2: #0d0b18;
  --ink: #f4f1fb;
  --muted: #a9a3bd;
  --line: rgba(255, 255, 255, 0.1);
  --glass: rgba(255, 255, 255, 0.05);
  --pink: #ff3d9a;
  --violet: #8b5cff;
  --cyan: #22e6ff;
  --lime: #b6ff3b;
  --grad: linear-gradient(120deg, var(--pink), var(--violet) 55%, var(--cyan));
  --todo-bg: #ffe14d;
  --todo-ink: #2a2200;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  overflow-x: hidden;
}
/* Neon glow behind everything. Fixed, so it stays while the page scrolls. */
body::before, body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.38;
  pointer-events: none;
}
body::before { background: var(--violet); top: -35vmax; left: -25vmax; }
body::after { background: var(--pink); bottom: -40vmax; right: -30vmax; opacity: 0.3; }

a { color: var(--cyan); }
a:hover { color: var(--lime); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* ---------- shared header and footer ---------- */
header.site { display: flex; align-items: center; gap: 10px; max-width: 1080px; margin: 0 auto; padding: 22px 20px 0; }
header.site a { color: var(--ink); text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
header.site .lang { margin-left: auto; display: flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--glass); }
header.site .lang a { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--muted); padding: 5px 11px; border-radius: 999px; }
header.site .lang a:hover { color: var(--ink); }
header.site .lang a[aria-current] { color: #07060d; background: var(--grad); box-shadow: 0 0 14px rgba(255, 61, 154, 0.45); }
.translation-note { color: var(--muted); font-size: 14px; border-left: 2px solid var(--violet); padding-left: 12px; }
header.site .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 14px var(--pink), 0 0 28px rgba(139, 92, 255, 0.6); }
footer.site {
  max-width: 1080px; margin: 64px auto 0; padding: 22px 20px 40px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 22px;
}
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--ink); }

/* ---------- legal pages (privacy, terms, delete-account) ---------- */
main { max-width: 760px; margin: 0 auto; padding: 24px 20px 24px; }
h1 { font-size: clamp(34px, 7vw, 52px); line-height: 1.08; letter-spacing: -0.03em; margin: 22px 0 8px; }
main h1 { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-size: 22px; margin: 40px 0 8px; letter-spacing: -0.01em; scroll-margin-top: 16px; }
h3 { font-size: 17px; margin: 22px 0 4px; }
p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }
li::marker { color: var(--pink); }
.meta { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.summary {
  background: var(--glass); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; margin: 22px 0 8px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0 0 1px rgba(255, 61, 154, 0.15), 0 10px 40px -12px rgba(139, 92, 255, 0.5);
}
.summary ul { margin: 6px 0 0; }
.table-wrap { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--glass); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { font-weight: 700; color: var(--cyan); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
.todo { background: var(--todo-bg); color: var(--todo-ink); border-radius: 4px; padding: 0 4px; font-weight: 700; }
nav.toc { font-size: 15px; columns: 2 220px; margin: 22px 0 8px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--glass); }
nav.toc a { display: block; padding: 3px 0; color: var(--muted); text-decoration: none; }
nav.toc a:hover { color: var(--ink); }

/* ---------- landing page ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.hero { display: grid; gap: 44px; align-items: center; padding: 40px 0 24px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--lime); border: 1px solid rgba(182, 255, 59, 0.4); background: rgba(182, 255, 59, 0.08);
  padding: 6px 12px; border-radius: 999px; box-shadow: 0 0 18px rgba(182, 255, 59, 0.25);
}
.hero h1 { font-size: clamp(46px, 11vw, 92px); line-height: 0.98; letter-spacing: -0.045em; margin: 18px 0 16px; background: none; color: var(--ink); }
.neon { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 22px rgba(255, 61, 154, 0.55)); }
.lead { font-size: clamp(18px, 3.6vw, 22px); color: var(--muted); max-width: 30em; margin: 0 0 26px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 16px; color: var(--ink); text-decoration: none;
  background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  line-height: 1.2; min-width: 168px;
}
.store small { display: block; color: var(--muted); font-size: 12px; }
.store b { font-size: 16px; }
.store.soon { cursor: default; box-shadow: inset 0 0 0 1px rgba(34, 230, 255, 0.25), 0 0 24px -6px rgba(34, 230, 255, 0.5); }
.note-small { color: var(--muted); font-size: 14px; margin-top: 14px; }

/* the phone */
.stage { position: relative; display: grid; place-items: center; min-height: 640px; overflow-x: clip; padding: 24px 0; }
.ring { position: absolute; width: 420px; max-width: 92vw; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(from 180deg, var(--pink), var(--violet), var(--cyan), var(--lime), var(--pink)); filter: blur(70px); opacity: 0.5; animation: spin 18s linear infinite; }
.phone {
  position: relative; width: min(320px, 80vw); aspect-ratio: 375 / 812; border-radius: 46px; padding: 10px; background: #14111f;
  border: 2px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 2px #05040a, 0 0 38px rgba(255, 61, 154, 0.55), 0 0 90px rgba(139, 92, 255, 0.55), 0 40px 80px -20px rgba(0, 0, 0, 0.8);
  animation: float 6s ease-in-out infinite;
}
.screen { position: relative; height: 100%; border-radius: 37px; overflow: hidden; background: #0f141b; }
.screen img { position: absolute; inset: 24px 0 0 0; width: 100%; height: calc(100% - 24px); object-fit: cover; object-position: top; display: block; }
.island { position: absolute; z-index: 2; top: 10px; left: 50%; translate: -50% 0; width: 84px; height: 24px; background: #000; border-radius: 99px; }
/* the hero phone cycles through the real screens: Today, Add meal, Progress */
.screen.cycle img { opacity: 0; animation: cycle 15s infinite; }
.screen.cycle img:nth-child(2) { animation-delay: 0s; }
.screen.cycle img:nth-child(3) { animation-delay: 5s; }
.screen.cycle img:nth-child(4) { animation-delay: 10s; }
.chip {
  position: absolute; padding: 10px 14px; border-radius: 16px; font-weight: 700; font-size: 14px; white-space: nowrap;
  background: rgba(20, 17, 31, 0.78); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.chip.a { top: 0; left: 4%; color: var(--cyan); box-shadow: 0 0 26px -4px rgba(34, 230, 255, 0.7); animation: float 5s -1s ease-in-out infinite; }
.chip.b { bottom: 4%; right: 4%; color: var(--lime); box-shadow: 0 0 26px -4px rgba(182, 255, 59, 0.6); animation: float 7s -3s ease-in-out infinite; }

/* three real screens side by side; swipe on a phone */
.shots { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 28px 4px 40px; margin: 0 -20px; padding-inline: 20px; }
.shots figure { margin: 0; flex: 0 0 auto; scroll-snap-align: center; text-align: center; }
.shots .phone { width: 280px; animation: none; border-radius: 40px; padding: 8px; }
.shots .screen { border-radius: 32px; }
.shots .island { width: 68px; height: 20px; }
.shots figcaption { margin-top: 18px; font-weight: 700; }
.shots figcaption small { display: block; color: var(--muted); font-weight: 400; font-size: 14px; }
.shots figure:nth-child(2) .phone { box-shadow: 0 0 0 2px #05040a, 0 0 38px rgba(34, 230, 255, 0.5), 0 0 90px rgba(34, 230, 255, 0.3), 0 40px 80px -20px rgba(0, 0, 0, 0.8); }
.shots figure:nth-child(3) .phone { box-shadow: 0 0 0 2px #05040a, 0 0 38px rgba(182, 255, 59, 0.45), 0 0 90px rgba(139, 92, 255, 0.4), 0 40px 80px -20px rgba(0, 0, 0, 0.8); }
.section { padding: 64px 0 0; }
.section h2 { font-size: clamp(30px, 6vw, 46px); line-height: 1.08; letter-spacing: -0.035em; margin: 0 0 8px; }
.section > p.sub { color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.cards { display: grid; gap: 14px; }
.card {
  position: relative; padding: 22px; border-radius: 22px; background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); overflow: hidden;
}
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--grad); opacity: 0.9; box-shadow: 0 0 18px var(--pink); }
.card .n { font-size: 13px; font-weight: 800; letter-spacing: 0.1em; color: var(--pink); }
.card h3 { margin: 6px 0 6px; font-size: 20px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.legal-cards .card { text-decoration: none; color: var(--ink); transition: transform 0.2s, box-shadow 0.2s; display: block; }
.legal-cards .card:hover { transform: translateY(-3px); box-shadow: 0 0 30px -6px rgba(139, 92, 255, 0.8); color: var(--ink); }
.legal-cards .go { color: var(--cyan); font-weight: 700; font-size: 15px; display: inline-block; margin-top: 10px; }
.band {
  margin-top: 56px; padding: 28px 22px; border-radius: 26px; text-align: center; border: 1px solid rgba(255, 61, 154, 0.45);
  background: radial-gradient(120% 140% at 50% 0%, rgba(139, 92, 255, 0.28), rgba(255, 61, 154, 0.1) 60%, transparent);
  box-shadow: 0 0 60px -14px rgba(255, 61, 154, 0.7);
}
.band h2 { margin: 0 0 6px; font-size: clamp(26px, 5vw, 38px); letter-spacing: -0.03em; }
.band p { margin: 0 auto; color: var(--muted); max-width: 32em; }

@media (min-width: 880px) {
  .shots { justify-content: center; overflow: visible; margin: 0; }
  .hero { grid-template-columns: 1.05fr 0.95fr; padding-top: 72px; }
  .cards.three { grid-template-columns: repeat(3, 1fr); }
  .cards.four { grid-template-columns: repeat(2, 1fr); }
  .stage { overflow-x: visible; }
  .chip.a { top: 10%; left: -4%; }
  .chip.b { bottom: 16%; right: -4%; }
}
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes cycle { 0% { opacity: 0; } 6% { opacity: 1; } 31% { opacity: 1; } 38% { opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
