/* ============================================================
   Kuby landing — design tokens lifted straight from the app
   ============================================================ */
:root {
  --bg: #14121f;
  --bg-2: #1d1a2e;
  --card: #241f38;
  --card-2: #2c2745;
  --text: #f4f1ff;
  --muted: #a79fce;
  --accent: #ff6b35;
  --accent-2: #ffb627;
  --protein: #4ade80;
  --carbs: #38bdf8;
  --fat: #fbbf24;
  --water: #38bdf8;
  --water-2: #22d3ee;
  --weight: #a78bfa;
  --weight-2: #c4b5fd;
  --danger: #ff5a7a;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 40px 90px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 80% -10%, #2a2342 0%, transparent 55%),
    radial-gradient(1000px 700px at 0% 10%, #241b33 0%, transparent 50%),
    var(--bg);
  overflow-x: hidden;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.grad {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(20, 18, 31, 0.55);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.nav.scrolled {
  background: rgba(20, 18, 31, 0.86);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}
.brand-mark {
  display: grid;
  place-items: center;
  filter: drop-shadow(0 6px 14px rgba(255, 107, 53, 0.35));
}
.brand-name {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand-tld {
  color: var(--accent);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-weight: 700;
}
.nav-links a {
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  color: #221a10 !important;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.32);
}
.nav-cta:hover { transform: translateY(-1px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 70px 0 90px;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.orb-a {
  width: 520px; height: 520px;
  top: -160px; right: -120px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.4), transparent 70%);
}
.orb-b {
  width: 480px; height: 480px;
  bottom: -180px; left: -160px;
  background: radial-gradient(circle, rgba(120, 90, 220, 0.32), transparent 70%);
}
.orb-c {
  width: 600px; height: 600px;
  top: -160px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 107, 53, 0.28), transparent 70%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 150px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--accent-2);
  background: rgba(255, 182, 39, 0.12);
  border: 1px solid rgba(255, 182, 39, 0.22);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}
.lead {
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 0 30px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}
.btn-primary {
  display: inline-block;
  padding: 16px 28px;
  border-radius: 16px;
  font-weight: 800;
  font-size: 1.05rem;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  color: #221a10;
  box-shadow: 0 14px 34px rgba(255, 107, 53, 0.4);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(255, 107, 53, 0.5);
}
.btn-ghost {
  display: inline-block;
  padding: 16px 26px;
  border-radius: 16px;
  font-weight: 800;
  font-size: 1.05rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  transition: background 0.18s ease, transform 0.18s ease;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); }
.btn-primary.big, .btn-ghost.big { padding: 18px 34px; font-size: 1.12rem; }

/* ---------- official app-store badges ----------
   Apple & Google supply the artwork; we only scale it. Google's badge ships
   with ~12% built-in clear space, so it needs a taller box to optically match
   Apple's badge height (Apple ~48 ≈ Google ~70). */
.store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.store { display: inline-block; transition: transform 0.18s ease, filter 0.18s ease; }
.store:hover { transform: translateY(-2px); filter: brightness(1.08); }
.store img { display: block; }
.badge-apple { height: 48px; width: auto; }
.badge-google { height: 70px; width: auto; }
.hero-how {
  display: inline-block;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.92rem;
  margin-bottom: 24px;
  transition: color 0.18s ease;
}
.hero-how:hover { color: var(--text); }
.store-row.center { justify-content: center; }

.hero-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 0;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}

/* ---------- hero phone stage ---------- */
.hero-stage {
  position: relative;
  display: flex;
  justify-content: center;
}
.floaty { animation: floaty 6s ease-in-out infinite; position: relative; }
/* Kuby peeking out from behind the phone, waving */
.hero-peek {
  position: absolute;
  z-index: 1;
  width: 200px;
  height: auto;
  top: 320px;
  left: -140px;
  transform: rotate(-16deg) scale(-1, 1);
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.55));
  pointer-events: none;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
@media (prefers-reduced-motion: reduce) { .floaty { animation: none; } }

/* ============================================================
   PHONE FRAME + recreated app UI
   ============================================================ */
.phone {
  position: relative;
  z-index: 2;
  width: 340px;
  height: 726px;
  border-radius: 48px;
  padding: 12px;
  background: linear-gradient(160deg, #2b2740, #16131f);
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255, 255, 255, 0.05);
}
.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 24px;
  background: #0c0a14;
  border-radius: 0 0 16px 16px;
  z-index: 5;
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  padding: 18px 14px 20px;
  position: relative;
}
.app-bg {
  background:
    radial-gradient(600px 300px at 50% -10%, #2a2342 0%, var(--bg) 60%),
    var(--bg);
}
.phone-fab {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 28px rgba(255, 107, 53, 0.5);
  display: grid;
  place-items: center;
  z-index: 6;
}
.phone-fab span { font-size: 2rem; font-weight: 300; color: #fff; margin-top: -3px; }

.app-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.app-topbar .app-title { flex: 1; font-size: 1.05rem; }
.iconbtn {
  background: var(--card);
  width: 34px; height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  box-shadow: var(--shadow);
}

.ui-card {
  background: linear-gradient(160deg, var(--card) 0%, var(--card-2) 100%);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.ui-card + .ui-card { margin-top: 12px; }
.hero-card { text-align: center; }

.daynav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.dn-arrow {
  width: 32px; height: 32px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
  display: grid; place-items: center;
  font-size: 1.3rem; font-weight: 800;
}
.dn-arrow.dim { opacity: 0.3; }
.dn-mid { display: flex; flex-direction: column; }
.dn-mid b { font-size: 1.05rem; }
.dn-mid i { color: var(--muted); font-size: 0.72rem; font-style: normal; font-weight: 700; }

/* rings */
.rings { width: 168px; height: 168px; margin: 2px auto 0; }
.rings-sm { width: 116px; height: 116px; margin: 0; }
.ring-label {
  color: var(--muted); font-weight: 800; letter-spacing: 0.04em;
  text-transform: uppercase; font-size: 0.66rem; margin-top: 2px;
}
.ring-big {
  font-size: 2.2rem; font-weight: 900; line-height: 1;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ring-sub { color: var(--muted); font-size: 0.76rem; margin-top: 2px; }
.ring-sub .ok { color: var(--protein); font-weight: 800; }
.ring-pill {
  display: inline-block; margin-top: 8px;
  padding: 5px 13px; border-radius: 999px; font-weight: 800; font-size: 0.78rem;
  background: rgba(74, 222, 128, 0.16); color: var(--protein);
}

.macros {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.macro {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 9px 10px 10px;
  text-align: left;
}
.m-name {
  color: var(--mc, var(--muted));
  font-size: 0.62rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.05em;
  display: block;
}
.m-val {
  font-weight: 900;
  font-size: 1.15rem;
  display: flex;
  align-items: baseline;
  gap: 1px;
  margin-top: 2px;
  white-space: nowrap;
}
.m-val small { font-size: 0.58rem; color: var(--muted); font-weight: 700; }
.m-bar {
  display: block; height: 5px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); margin-top: 7px; overflow: hidden;
}
.m-bar b { display: block; height: 100%; border-radius: 999px; }

/* water card (phone) */
.water-card { position: relative; overflow: hidden; padding: 0; border: 1px solid rgba(56, 189, 248, 0.18); }
.water-fill {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.42) 0%, rgba(34, 211, 238, 0.24) 100%);
}
.water-wave {
  position: absolute; top: -12px; left: 0; width: 200%; height: 15px;
  fill: rgba(56, 189, 248, 0.42);
  animation: wave 3.2s linear infinite;
}
@keyframes wave { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .water-wave { animation: none; } }
.water-canvas { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
/* Soft dark shadow keeps text legible over both the cyan water and the dark card.
   The % uses amber (complementary to cyan) so it pops in both states. */
.water-content { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-shadow: 0 1px 4px rgba(8, 14, 30, 0.55); }
.wc-main { flex: 1; }
.wc-top { display: flex; justify-content: space-between; }
.wc-title { font-weight: 800; font-size: 0.9rem; }
.wc-pct { font-weight: 900; font-size: 0.78rem; color: var(--accent-2); }
.wc-amount { font-weight: 900; font-size: 1.35rem; margin-top: 2px; }
.wc-amount i { font-style: normal; font-weight: 700; font-size: 0.78rem; color: rgba(244, 241, 255, 0.72); }
.wc-sub { color: rgba(244, 241, 255, 0.82); font-size: 0.72rem; margin-top: 2px; }
.wc-add {
  flex: 0 0 auto; position: relative; width: 44px; height: 44px; border-radius: 50%;
  font-size: 0; color: #06283a;
  background: linear-gradient(145deg, var(--water), var(--water-2));
  box-shadow: 0 6px 16px rgba(34, 211, 238, 0.4);
  text-shadow: none;
}
/* "+" drawn with two absolutely-centred bars — pixel-centred in every browser. */
.wc-add::before, .wc-add::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); background: currentColor; border-radius: 2px;
}
.wc-add::before { width: 18px; height: 3px; }
.wc-add::after { width: 3px; height: 18px; }

/* meals card (phone) */
.meals-card { padding: 12px 14px; }
.meals-h { font-weight: 800; font-size: 0.9rem; margin-bottom: 6px; }
.meal {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, 0.035);
  border-radius: 14px; padding: 8px 11px;
}
.meal + .meal { margin-top: 6px; }
.meal .me { font-size: 1.25rem; }
.meal .mi { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.meal .mi b { font-size: 0.85rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meal .mi i { font-style: normal; color: var(--muted); font-size: 0.7rem; font-weight: 700; }
.meal .mk { font-weight: 800; color: var(--accent-2); font-size: 0.95rem; }

/* ---------- hero floating callouts ---------- */
.callout {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(36, 31, 56, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  font-weight: 700;
}
.callout b { display: block; font-size: 0.92rem; }
.callout small { color: var(--muted); font-size: 0.74rem; font-weight: 700; }
.co-emoji { font-size: 1.5rem; }
.co-badge {
  background: rgba(74, 222, 128, 0.18); color: var(--protein);
  font-size: 0.62rem; font-weight: 800; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
}
.callout-1 { top: 96px; left: -34px; animation: floaty 5s ease-in-out infinite; }
.callout-2 { bottom: 122px; right: -34px; animation: floaty 5.6s ease-in-out infinite 0.4s; }
@media (prefers-reduced-motion: reduce) { .callout { animation: none; } }

/* ============================================================
   TRUST STRIP
   ============================================================ */
.strip {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.015);
}
.strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 34px 24px;
  text-align: center;
}
.stat b {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { color: var(--muted); font-weight: 700; font-size: 0.88rem; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 96px 0; position: relative; }
.head { text-align: center; max-width: 660px; margin: 0 auto 56px; }
.kicker {
  display: inline-block;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.06;
  margin: 0 0 16px;
}
.sub { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.step {
  position: relative;
  background: linear-gradient(160deg, var(--card) 0%, var(--card-2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
}
.step-no {
  position: absolute;
  top: 20px; right: 22px;
  font-size: 2.4rem; font-weight: 900;
  color: rgba(255, 255, 255, 0.06);
}
.step-ico {
  width: 58px; height: 58px;
  border-radius: 18px;
  display: grid; place-items: center;
  font-size: 1.8rem;
  background: linear-gradient(145deg, rgba(255, 107, 53, 0.22), rgba(255, 182, 39, 0.12));
  border: 1px solid rgba(255, 182, 39, 0.18);
  margin-bottom: 18px;
}
.step h3 { font-size: 1.25rem; margin: 0 0 8px; }
.step p { color: var(--muted); margin: 0; }

/* ============================================================
   SHOWCASE (alternating)
   ============================================================ */
.show-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.showcase.alt .show-grid { grid-template-columns: 1fr 1fr; }
.show-copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.show-copy p { color: var(--muted); font-size: 1.1rem; margin: 0 0 22px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ticks li {
  position: relative;
  padding-left: 34px;
  font-weight: 700;
  color: var(--text);
}
.ticks li::before {
  content: "✓";
  position: absolute; left: 0; top: -1px;
  width: 24px; height: 24px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.8rem; font-weight: 900;
  color: #08210f;
  background: linear-gradient(145deg, var(--protein), #34d399);
}

/* ---------- snap photo visual ---------- */
.show-visual { position: relative; display: flex; justify-content: center; }
.snap-photo {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.snap-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 182, 39, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 182, 39, 0.12) 1px, transparent 1px);
  background-size: 40px 40px;
  mix-blend-mode: overlay;
}
.scan-line {
  position: absolute; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
  box-shadow: 0 0 18px 3px rgba(255, 182, 39, 0.6);
  animation: scan 3.4s ease-in-out infinite;
}
@keyframes scan {
  0%, 100% { top: 6%; }
  50% { top: 94%; }
}
@media (prefers-reduced-motion: reduce) { .scan-line { animation: none; top: 50%; } }
.tag {
  position: absolute;
  background: rgba(20, 18, 31, 0.86);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 182, 39, 0.35);
  color: var(--text);
  font-weight: 800;
  font-size: 0.78rem;
  padding: 7px 12px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: var(--shadow);
}
.tag::after {
  content: "";
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 10px 2px rgba(255, 182, 39, 0.7);
}
.tag-a { top: 22%; left: 14%; }
.tag-a::after { right: -16px; top: 50%; transform: translateY(-50%); }
.tag-b { top: 12%; right: 8%; }
.tag-b::after { left: -16px; top: 50%; transform: translateY(-50%); }
.tag-c { bottom: 20%; left: 22%; }
.tag-c::after { right: -16px; top: 50%; transform: translateY(-50%); }

.confirm-sheet {
  position: absolute;
  right: -18px;
  bottom: -28px;
  width: 250px;
  background: linear-gradient(160deg, var(--card) 0%, var(--card-2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow-lg);
}
.cs-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.cs-head strong { font-size: 1rem; }
.badge-high {
  background: rgba(74, 222, 128, 0.18); color: var(--protein);
  font-size: 0.6rem; font-weight: 800; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px;
}
.cs-total { display: flex; align-items: baseline; gap: 4px; margin-bottom: 12px; }
.cs-num { font-size: 1.9rem; font-weight: 900; color: var(--accent); }
.cs-unit { font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.cs-macros { font-size: 0.72rem; color: var(--muted); margin-left: auto; }
.cs-macros b { color: var(--text); }
.cs-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.85rem; font-weight: 700;
  padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.cs-row b { color: var(--accent-2); }
.cs-btn {
  margin-top: 12px; text-align: center;
  padding: 11px; border-radius: 13px; font-weight: 800; font-size: 0.9rem;
  background: linear-gradient(145deg, var(--accent), var(--accent-2)); color: #221a10;
}

/* ============================================================
   BENTO GRID
   ============================================================ */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.ftile {
  --tc: var(--accent);
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--card) 0%, var(--card-2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 26px;
  padding: 26px 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}
.ftile:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--tc) 45%, transparent);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}
/* themed corner glow that gives each tile its “moment” */
.ft-glow {
  position: absolute;
  top: -45%;
  right: -18%;
  width: 65%;
  height: 90%;
  background: radial-gradient(circle, color-mix(in srgb, var(--tc) 36%, transparent), transparent 70%);
  filter: blur(46px);
  opacity: 0.65;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.ftile:hover .ft-glow { opacity: 1; }
.ft-copy { position: relative; z-index: 1; }
.ft-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--tc);
  margin-bottom: 9px;
}
.ftile h3 {
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0 0 9px;
}
.ftile p { color: var(--muted); margin: 0; font-size: 1rem; line-height: 1.5; max-width: 46ch; }

/* spans (12-col): every row sums to 12 — no holes */
.ft-span-7 { grid-column: span 7; }
.ft-span-5 { grid-column: span 5; }
.ft-span-4 { grid-column: span 4; }
.ft-span-8 { grid-column: span 8; }

/* rings hero: big rings beside copy */
.ft-rings { position: relative; z-index: 1; display: flex; align-items: center; gap: 28px; }
.ft-rings .rings { flex: 0 0 auto; }
/* coach: copy beside a stack of live coach bars */
.ft-coach-row { position: relative; z-index: 1; display: flex; align-items: center; gap: 30px; }
.ft-coach-row .ft-copy { flex: 1; }
.ft-coach-stack { flex: 0 0 300px; display: flex; flex-direction: column; gap: 10px; }
/* water showcase card: reuse the real app component; just give it a taller body */
.ft-watercard { position: relative; z-index: 1; }
.ft-watercard .water-content { min-height: 116px; }

/* barcode scanbox — grows to fill the tile so there's no dead space */
.scanbox {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 168px;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 42%, #1c1828, #0a0810);
  display: grid; place-items: center;
  overflow: hidden;
}
.scan-emoji { font-size: 3.6rem; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.5)); }
.scanframe {
  position: absolute; inset: 20% 22%;
  border: 3px solid rgba(255, 255, 255, 0.85);
  border-radius: 14px;
}
.scan-line2 {
  position: absolute; left: 22%; right: 22%; height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 14px 2px rgba(255, 107, 53, 0.65);
  animation: scan2 2.2s ease-in-out infinite;
}
@keyframes scan2 { 0%,100% { top: 26%; } 50% { top: 72%; } }
@media (prefers-reduced-motion: reduce) { .scan-line2 { animation: none; top: 50%; } }

/* weight: a tight, aligned stat block (header → number → trend bars) */
.weight-viz { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; }
.weight-head { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 0.95rem; }
.weight-head .down { color: var(--protein); }
.weight-num { font-size: 2.1rem; font-weight: 900; line-height: 1; }
.weight-num i { font-style: normal; font-size: 0.85rem; color: var(--muted); font-weight: 700; margin-left: 2px; }
.weight-bars {
  display: flex; align-items: flex-end; gap: 6px; height: 72px;
}
.weight-bars span {
  flex: 1; border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, var(--weight-2) 0%, rgba(167, 139, 250, 0.18) 100%);
  opacity: 0.5;
}
.weight-bars .last {
  opacity: 1;
  background: linear-gradient(180deg, var(--weight) 0%, var(--weight-2) 100%);
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.6);
}

/* mini water */
.mini-water {
  position: relative; height: 96px; border-radius: 16px; overflow: hidden;
  background: rgba(56, 189, 248, 0.08); border: 1px solid rgba(56, 189, 248, 0.2);
  display: grid; place-items: center; margin-bottom: 4px;
}
.mw-fill {
  position: absolute; left: 0; right: 0; bottom: 0; height: 70%;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.45), rgba(34, 211, 238, 0.25));
}
.mw-label { position: relative; font-weight: 800; color: var(--water-2); z-index: 1; }

/* coach bar (tile) */
.coachbar {
  --cb: var(--accent);
  display: flex; align-items: center; gap: 12px;
  border-radius: 16px; padding: 12px 14px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--cb) 14%, transparent), transparent 46%),
    linear-gradient(160deg, var(--card-2), #322c4e);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--cb);
}
.coachbar.tone-win { --cb: var(--protein); }
.coachbar.tone-tip { --cb: var(--carbs); }
.coachbar.tone-nudge { --cb: var(--accent); }
.cb-emoji {
  width: 38px; height: 38px; flex: 0 0 auto;
  display: grid; place-items: center; border-radius: 12px; font-size: 1.3rem;
  background: color-mix(in srgb, var(--cb) 16%, rgba(255, 255, 255, 0.04));
}
.cb-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cb-kicker { font-size: 0.6rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cb); }
.cb-text { font-weight: 700; font-size: 0.86rem; line-height: 1.3; }

/* habit grid */
.habit-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 6px;
}
.habit-grid i {
  aspect-ratio: 1;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
}
.habit-grid i.l1 { background: rgba(255, 107, 53, 0.3); }
.habit-grid i.l2 { background: rgba(255, 107, 53, 0.55); }
.habit-grid i.l3 { background: rgba(255, 140, 53, 0.8); }
.habit-grid i.l4 { background: linear-gradient(145deg, var(--accent), var(--accent-2)); }

/* ============================================================
   COACH SHOWCASE phone
   ============================================================ */
.phone-static { width: 300px; height: 620px; }
.coach-day {
  color: var(--muted); font-weight: 800; font-size: 0.74rem;
  text-transform: uppercase; letter-spacing: 0.05em; margin: 12px 4px 8px;
}
.coach-card {
  --cb: var(--accent);
  background: linear-gradient(160deg, var(--card) 0%, var(--card-2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--cb);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}
.coach-card.tone-win { --cb: var(--protein); }
.coach-card.tone-tip { --cb: var(--carbs); }
.coach-card.tone-nudge { --cb: var(--accent); }
.cc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.cc-chip {
  font-size: 0.66rem; font-weight: 800;
  color: var(--cb);
  background: color-mix(in srgb, var(--cb) 16%, transparent);
  padding: 3px 9px; border-radius: 999px;
}
.cc-new {
  font-size: 0.58rem; font-weight: 800; color: #221a10;
  background: var(--accent-2); padding: 2px 7px; border-radius: 999px;
}
.cc-time { margin-left: auto; color: var(--muted); font-size: 0.7rem; font-weight: 700; }
.coach-card p { margin: 0; font-size: 0.85rem; font-weight: 600; line-height: 1.35; }

/* ============================================================
   PRIVACY
   ============================================================ */
.privacy {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  background: linear-gradient(160deg, var(--card) 0%, var(--card-2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 28px;
  padding: 50px 40px;
  box-shadow: var(--shadow);
}
.pv-ico {
  width: 64px; height: 64px; margin: 0 auto 18px;
  border-radius: 20px; display: grid; place-items: center; font-size: 2rem;
  background: linear-gradient(145deg, rgba(167, 139, 250, 0.25), rgba(56, 189, 248, 0.12));
  border: 1px solid rgba(167, 139, 250, 0.2);
}
.privacy h2 { font-size: 2rem; margin: 0 0 14px; }
.privacy p { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* ============================================================
   CTA
   ============================================================ */
.cta { text-align: center; overflow: hidden; }
.cta-inner { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0 0 16px; }
.cta p { color: var(--muted); font-size: 1.15rem; margin: 0 0 30px; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-fine { color: var(--muted); font-size: 0.88rem; margin-top: 22px !important; }
.link-inline { color: var(--accent-2); font-weight: 800; text-decoration: underline; }
.link-inline:hover { color: var(--accent); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 34px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.foot-tag { color: var(--muted); font-weight: 700; }
.foot-copy { margin-left: auto; color: var(--muted); font-size: 0.85rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 60px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-cta, .hero-chips { justify-content: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .show-grid { grid-template-columns: 1fr !important; gap: 70px; }
  .showcase.alt .show-visual { order: -1; }
  /* tablet: two balanced columns */
  .bento { grid-template-columns: repeat(2, 1fr); }
  .ft-span-7, .ft-span-5, .ft-span-4, .ft-span-8 { grid-column: span 1; }
  .ft-rings, .ft-coach-row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .ft-coach-stack { flex: 1 1 auto; width: 100%; }
  .confirm-sheet { right: 0; }
}
@media (max-width: 680px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .steps { grid-template-columns: 1fr; }
  .strip-inner { grid-template-columns: repeat(2, 1fr); gap: 28px 14px; }
  .bento { grid-template-columns: 1fr; }
  .ft-span-7, .ft-span-5, .ft-span-4, .ft-span-8 { grid-column: auto; }
  .ft-rings, .ft-coach-row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .ft-coach-stack { flex: 1 1 auto; width: 100%; }
  .section { padding: 70px 0; }
  .confirm-sheet { position: static; width: 100%; margin-top: 26px; right: auto; bottom: auto; }
  .footer-inner { justify-content: center; text-align: center; }
  .foot-copy { margin-left: 0; width: 100%; }
}
@media (max-width: 380px) {
  .phone { width: 290px; }
}

/* =====================================================================
   Marketing Kuby mascots
   ===================================================================== */
@keyframes mascotBob {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-9px) rotate(var(--rot, 0deg)); }
}
.float-soft { animation: mascotBob 4.8s ease-in-out infinite; }
.float-soft:hover { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .float-soft { animation: none; } }

/* CTA — waving Kuby above the headline */
.cta-mascot {
  display: block;
  width: 156px;
  height: auto;
  margin: 0 auto 10px;
  filter: drop-shadow(0 20px 34px rgba(0, 0, 0, 0.5));
}

/* How it works — Kuby snapping a photo, above the heading */
.head-mascot { position: relative; }
.head-mascot-img {
  display: block;
  width: 132px;
  height: auto;
  margin: 0 auto 16px;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.45));
}

/* Bento tiles — peeking mascot in the bottom-right corner */
.tile-mascot {
  position: absolute;
  z-index: 2;
  width: 104px;
  height: auto;
  right: 6px;
  bottom: 6px;
  pointer-events: none;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.m-water { --rot: -5deg; transform: rotate(-5deg); }
.m-scan { --rot: 5deg; transform: rotate(5deg); }
.ftile.has-mascot:hover .tile-mascot { transform: translateY(-5px) rotate(0deg); }
.has-mascot .ft-copy { padding-right: 92px; }

/* Coach showcase — flexing Kuby leaning on the phone */
.show-visual-mascot { position: relative; }
.coach-mascot {
  position: absolute;
  z-index: 3;
  width: 158px;
  height: auto;
  left: -46px;
  bottom: -12px;
  --rot: 6deg;
  filter: drop-shadow(0 20px 32px rgba(0, 0, 0, 0.55));
}

@media (max-width: 900px) {
  .coach-mascot { width: 120px; left: -10px; bottom: -10px; }
  .tile-mascot { width: 90px; }
  .hero-peek { display: none; }
}
@media (max-width: 680px) {
  .cta-mascot { width: 132px; }
  .head-mascot-img { width: 112px; }
  .tile-mascot { width: 82px; right: 2px; bottom: 2px; }
  .has-mascot .ft-copy { padding-right: 76px; }
  .coach-mascot { width: 108px; left: 0; }
}
