/* ============================================================
   Kuby.coach landing — design tokens lifted straight from the
   coach app (coach/src/theme.css), itself ported from the eater
   app. Warm dark plum theme, rounded Nunito, orange→amber brand.
   ============================================================ */
: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;
}
em { font-style: italic; color: var(--text); }

.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: 0.92fr 1.08fr;
  gap: 70px;
  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.5rem, 5.4vw, 4rem);
  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: 540px;
  margin: 0 0 30px;
}

/* ---------- buttons ---------- */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}
.cta-row.center { justify-content: center; }
.btn-primary {
  display: inline-block;
  padding: 15px 26px;
  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: 15px 24px;
  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: 17px 32px; font-size: 1.12rem; }

.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 stage ---------- */
.hero-stage {
  position: relative;
  display: flex;
  justify-content: center;
}
/* warm halo so the dark dashboard lifts off the dark canvas */
.hero-stage::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 78%;
  height: 78%;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 107, 53, 0.22), transparent 75%);
  filter: blur(40px);
  pointer-events: none;
}
.floaty { animation: floaty 6s ease-in-out infinite; position: relative; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@media (prefers-reduced-motion: reduce) { .floaty { animation: none; } }

/* Coach Kuby peeking out from behind the dashboard, waving — brings the
   first-impression to life and bridges the gap between copy and frame. */
.hero-peek {
  position: absolute;
  z-index: 1; /* behind the frame (macframe is z-index 2) so the frame crops its body */
  width: 226px;
  height: auto;
  left: -132px;
  bottom: -22px;
  transform: rotate(-6deg);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.6));
  pointer-events: none;
}

/* ============================================================
   MAC / BROWSER FRAME + recreated dashboard UI
   ============================================================ */
.macframe {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 620px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(160deg, #2b2740, #16131f);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.macbar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: rgba(12, 10, 20, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.macbar .dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.r { background: #ff5f57; }
.dot.y { background: #febc2e; }
.dot.g { background: #28c840; }
.macurl {
  margin-left: 12px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 14px;
  border-radius: 999px;
}

.dash {
  display: flex;
  background:
    radial-gradient(600px 300px at 70% -10%, #2a2342 0%, var(--bg) 60%),
    var(--bg);
  min-height: 430px;
}
.dash-rail {
  flex: none;
  width: 54px;
  background: var(--bg-2);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
}
.rail-logo { margin-bottom: 8px; display: grid; place-items: center; }
.rail-logo img { border-radius: 7px; }
.rail-i {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 11px;
  font-size: 1rem;
  opacity: 0.55;
}
.rail-i.active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.dash-main { flex: 1; min-width: 0; padding: 16px 18px 18px; }
.dash-h {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 14px;
}
.dash-eyebrow {
  display: block;
  font-size: 0.62rem; font-weight: 800;
  color: var(--accent-2);
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 3px;
}
.dash-title { font-size: 1.3rem; font-weight: 900; letter-spacing: -0.02em; }
.dash-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.68rem; font-weight: 800; color: var(--protein);
  background: rgba(74, 222, 128, 0.14);
  padding: 4px 10px; border-radius: 999px;
}
.dash-live i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--protein);
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
@media (prefers-reduced-motion: reduce) { .dash-live i { animation: none; } }

.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.dstat {
  background: linear-gradient(160deg, var(--card) 0%, var(--card-2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 10px 11px;
}
.dstat b { display: block; font-size: 1.5rem; font-weight: 900; line-height: 1; }
.dstat b.ok { color: var(--protein); }
.dstat b.warn { color: var(--fat); }
.dstat b.info { color: var(--water-2); }
.dstat span { display: block; color: var(--muted); font-size: 0.6rem; font-weight: 700; margin-top: 3px; }

.dash-label {
  font-size: 0.6rem; font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin: 0 2px 7px;
}

/* attention queue rows */
.qrow {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(90deg, rgba(255, 90, 122, 0.07), transparent 60%),
              linear-gradient(160deg, var(--card) 0%, var(--card-2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--danger);
  border-radius: 12px;
  padding: 8px 11px;
  margin-bottom: 8px;
}
.qrow:nth-child(3) { border-left-color: var(--fat); background: linear-gradient(90deg, rgba(251, 191, 36, 0.07), transparent 60%), linear-gradient(160deg, var(--card) 0%, var(--card-2) 100%); }
.qav { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 1rem; }
.qname { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.qname b { font-size: 0.84rem; font-weight: 800; }
.qname i { font-style: normal; color: var(--muted); font-size: 0.66rem; font-weight: 700; }
.qflag {
  font-size: 0.58rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em;
  padding: 3px 8px; border-radius: 999px;
}
.qflag.urgent { background: rgba(255, 90, 122, 0.18); color: var(--danger); }
.qflag.warn { background: rgba(251, 191, 36, 0.18); color: var(--fat); }
.qnudge {
  font-size: 0.66rem; font-weight: 800; color: #221a10;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  padding: 6px 10px; border-radius: 999px; white-space: nowrap;
}

/* roster rows */
.crow {
  display: grid;
  grid-template-columns: auto 1.5fr 1.4fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 9px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.cav { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 0.95rem; }
.cname { min-width: 0; display: flex; flex-direction: column; }
.cname b { font-size: 0.8rem; font-weight: 800; }
.cname i { font-style: normal; color: var(--muted); font-size: 0.64rem; font-weight: 700; }
.cbars { display: flex; align-items: flex-end; gap: 3px; height: 26px; }
.cbars i {
  flex: 1; min-width: 4px; border-radius: 2px 2px 0 0; height: 100%;
}
.cbars i.g { background: var(--protein); }
.cbars i.o { background: var(--danger); }
.cbars i.u { background: var(--fat); }
.cbars i.n { background: rgba(255, 255, 255, 0.1); height: 28%; }
.cwt { font-size: 0.82rem; font-weight: 800; text-align: right; }
.cwt.down { color: var(--protein); }
.cwt.flat { color: var(--muted); }
.cdot { width: 9px; height: 9px; border-radius: 50%; justify-self: end; }
.cdot.good { background: var(--protein); }
.cdot.warn { background: var(--fat); }

/* ---------- hero floating callouts ---------- */
.callout {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  background: rgba(36, 31, 56, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  font-weight: 700;
  z-index: 4;
}
.callout b { display: block; font-size: 0.88rem; }
.callout small { color: var(--muted); font-size: 0.72rem; font-weight: 700; }
.co-emoji { font-size: 1.3rem; }
.callout-1 { top: -24px; left: -40px; animation: floaty 5s ease-in-out infinite; }
.callout-2 { bottom: -22px; right: -32px; 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: 680px; 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;
}
.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(--muted);
}
.ticks li b { 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);
}

.show-visual { position: relative; display: flex; justify-content: center; }

/* ---------- triage queue card ---------- */
.queue-card {
  width: 100%;
  max-width: 460px;
  background: linear-gradient(160deg, var(--card) 0%, var(--card-2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow-lg);
}
.qc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 800; }
.qc-count { font-size: 0.74rem; font-weight: 800; color: var(--muted); }
.qc-row {
  --tone: var(--danger);
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--tone) 10%, transparent), transparent 55%),
              linear-gradient(160deg, var(--card-2), #322c4e);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--tone);
  border-radius: 16px;
  padding: 13px 14px;
}
.qc-row + .qc-row { margin-top: 10px; }
.qc-row.warn { --tone: var(--fat); }
.qc-row.good { --tone: var(--protein); }
.qc-av { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; }
.qc-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.qc-mid b { font-size: 0.96rem; font-weight: 800; }
.qc-mid i { font-style: normal; color: var(--muted); font-size: 0.74rem; font-weight: 700; }
.qc-note { font-size: 0.76rem; font-weight: 700; color: var(--text); margin-top: 3px; line-height: 1.3; }
.qc-btn {
  flex: none;
  font-size: 0.74rem; font-weight: 800; color: #221a10;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  border: none; padding: 9px 13px; border-radius: 999px; cursor: pointer; white-space: nowrap;
}
.qc-btn.ghost { background: rgba(255, 255, 255, 0.08); color: var(--text); }

/* ============================================================
   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);
}
.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.5rem;
  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; }

.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; }

/* overview rings: 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 focus: copy beside a stack of 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 320px; display: flex; flex-direction: column; gap: 10px; }

/* 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-nudge { --cb: var(--carbs); }
.coachbar.tone-over { --cb: var(--danger); }
.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; }

/* push notification preview (nudge tile) */
.push-preview {
  position: relative; z-index: 1;
  background: rgba(20, 18, 31, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 13px 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}
.pp-top { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.05em; color: var(--muted); }
.pp-top img { border-radius: 6px; }
.pp-top i { margin-left: auto; font-style: normal; font-weight: 700; }
.pp-title { display: block; font-size: 0.92rem; font-weight: 800; margin-bottom: 3px; }
.pp-body { margin: 0; font-size: 0.8rem; font-weight: 600; color: var(--muted); line-height: 1.35; }

/* weight: header → number → trend sparkline */
.weight-viz { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; }
.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; }
.trend-svg { width: 100%; height: 64px; display: block; overflow: visible; }

/* activity: 2x2 health metric grid */
.health-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.hcell {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 12px 13px;
}
.hc-ico { font-size: 1.2rem; }
.hcell b { display: block; font-size: 1.35rem; font-weight: 900; line-height: 1; margin-top: 6px; }
.hcell b small { font-size: 0.7rem; color: var(--muted); font-weight: 700; }
.hcell i { display: block; font-style: normal; color: var(--muted); font-size: 0.68rem; font-weight: 700; margin-top: 4px; }

/* nutrition adherence strip */
.adh-grid {
  position: relative; z-index: 1;
  display: flex; align-items: flex-end; gap: 5px; height: 88px;
}
.adh-grid i {
  flex: 1; border-radius: 3px 3px 0 0;
  background: var(--protein);
}
.adh-grid i.o { background: var(--danger); }
.adh-grid i.u { background: var(--fat); }
.adh-grid i.n { background: rgba(255, 255, 255, 0.09); }
.adh-legend {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; gap: 14px;
  font-size: 0.72rem; font-weight: 700; color: var(--muted);
}
.adh-legend span { display: inline-flex; align-items: center; gap: 6px; }
.adh-legend i { width: 10px; height: 10px; border-radius: 3px; }
.lg-g { background: var(--protein); }
.lg-o { background: var(--danger); }
.lg-u { background: var(--fat); }
.lg-n { background: rgba(255, 255, 255, 0.16); }

/* ============================================================
   SHOWCASE 2 — client detail mockup
   ============================================================ */
.macframe-sm { max-width: 440px; }
.detail {
  background: radial-gradient(500px 260px at 70% -10%, #2a2342 0%, var(--bg) 60%), var(--bg);
  padding: 16px 16px 18px;
}
.detail-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.detail-av { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 1.35rem; }
.detail-id b { font-size: 1.02rem; font-weight: 900; display: flex; align-items: center; gap: 8px; }
.detail-id i { font-style: normal; color: var(--muted); font-size: 0.74rem; font-weight: 700; }
.detail-flag {
  font-size: 0.56rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--protein); background: rgba(74, 222, 128, 0.16);
  padding: 3px 8px; border-radius: 999px;
}
.detail-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.dtab {
  font-size: 0.72rem; font-weight: 800; color: var(--muted);
  padding: 7px 12px; border-radius: 999px; border: 1px solid transparent;
}
.dtab.active { color: var(--text); background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.06); }
.detail-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.dcard {
  background: linear-gradient(160deg, var(--card) 0%, var(--card-2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 13px 14px;
}
.dcard.wide { display: block; }
.dc-label { display: block; font-size: 0.62rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 8px; }
.dc-big { display: block; font-size: 1.5rem; font-weight: 900; line-height: 1; margin-bottom: 9px; }
.dc-big small { font-size: 0.66rem; color: var(--muted); font-weight: 700; }
.dc-big.down { color: var(--protein); }
.dc-sub { font-size: 0.7rem; font-weight: 700; color: var(--muted); }
.dcard.wide .cbars { display: none; }
.dcard .cbars { height: 24px; margin-top: 2px; }
.dmac { display: flex; align-items: center; gap: 10px; font-size: 0.72rem; font-weight: 800; }
.dmac + .dmac { margin-top: 8px; }
.dmac > span:first-child { width: 52px; color: var(--muted); }
.dmac-bar { flex: 1; height: 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.dmac-bar b { display: block; height: 100%; border-radius: 999px; }
.dmac i { font-style: normal; white-space: nowrap; }
.dmac i small { color: var(--muted); font-weight: 700; }

/* ============================================================
   INSIGHTS
   ============================================================ */
.insight-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.insight {
  background: linear-gradient(160deg, var(--card) 0%, var(--card-2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 28px 26px;
  box-shadow: var(--shadow);
}
.in-emoji {
  display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 16px;
  font-size: 1.7rem; margin-bottom: 16px;
  background: linear-gradient(145deg, rgba(255, 107, 53, 0.2), rgba(255, 182, 39, 0.1));
  border: 1px solid rgba(255, 182, 39, 0.16);
}
.insight h3 { font-size: 1.2rem; margin: 0 0 8px; letter-spacing: -0.01em; }
.insight p { color: var(--muted); margin: 0; font-size: 0.98rem; line-height: 1.5; }

/* ============================================================
   PRIVACY / ACCESS
   ============================================================ */
.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-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-links { font-weight: 700; }
.foot-links a { color: var(--accent-2); }
.foot-links a:hover { color: var(--accent); }
.foot-copy { margin-left: auto; color: var(--muted); font-size: 0.85rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .cta-row, .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; }
  .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%; }
  .insight-row { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}
@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; }
  .section { padding: 70px 0; }
  .footer-inner { justify-content: center; text-align: center; }
  .foot-copy { margin-left: 0; width: 100%; }
  .callout-1 { left: -8px; top: 40px; }
  .callout-2 { right: -8px; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  /* full-width frame leaves no gap for the peeking mascot — hide it cleanly */
  .hero-peek { display: none; }
}
@media (max-width: 420px) {
  .callout { display: none; }
}

/* =====================================================================
   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-mascot {
  display: block;
  width: 156px;
  height: auto;
  margin: 0 auto 10px;
  filter: drop-shadow(0 20px 34px rgba(0, 0, 0, 0.5));
}
.head-mascot { position: relative; }
.head-mascot-img {
  display: block;
  width: 138px;
  height: auto;
  margin: 0 auto 16px;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.45));
}
.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-whistle { --rot: 5deg; transform: rotate(5deg); }
.ftile.has-mascot:hover .tile-mascot { transform: translateY(-5px) rotate(0deg); }
.has-mascot .ft-copy { padding-right: 92px; }

.show-visual-mascot { position: relative; }
.coach-mascot {
  position: absolute;
  z-index: 3;
  width: 150px;
  height: auto;
  left: -42px;
  bottom: -18px;
  --rot: -6deg;
  filter: drop-shadow(0 20px 32px rgba(0, 0, 0, 0.55));
}

@media (max-width: 980px) {
  .coach-mascot { width: 118px; left: -8px; bottom: -12px; }
  .tile-mascot { width: 90px; }
}
@media (max-width: 680px) {
  .cta-mascot { width: 132px; }
  .head-mascot-img { width: 116px; }
  .tile-mascot { width: 82px; right: 2px; bottom: 2px; }
  .has-mascot .ft-copy { padding-right: 76px; }
  .coach-mascot { width: 104px; left: 0; }
}
