/* ============================================================
   Self-hosted Nunito (assets/fonts/) — no Google Fonts request,
   so visitor IPs never reach a third party from these pages.
   Latin subset; the unicode-range matches what Google served so
   uncovered glyphs (e.g. arrows) fall back exactly as before.
   ============================================================ */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000; /* variable font — one file covers 400/600/700/800/900 */
  font-display: swap;
  src: url("./assets/fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito";
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url("./assets/fonts/nunito-latin-italic.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;
}

/* ============================================================
   Romby 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;
}

/* ---------- inline SVG icons (lucide-style strokes) ---------- */
.ic {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* ---------- 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); }
.nav-links a.nav-signin { color: var(--text); }

/* ============================================================
   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 .wrap { position: relative; z-index: 1; }
.hero-copy {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  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;
}
.eyebrow .ic { width: 15px; height: 15px; }
.hero h1 {
  font-size: clamp(2.35rem, 4.4vw, 3.4rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}
.nowrap { white-space: nowrap; }
.hero h1 .grad { display: block; margin-top: 6px; }
.lead {
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 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-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  padding: 0;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}
.hero-facts li { display: inline-flex; align-items: center; gap: 7px; }
.hero-facts .ic { width: 15px; height: 15px; stroke-width: 3; color: var(--protein); }

/* ---------- hero stage: the big centered dashboard ---------- */
.hero-stage {
  position: relative;
  margin: 58px auto 0;
  max-width: 1040px;
}
/* warm halo so the dark dashboard lifts off the dark canvas */
.hero-stage::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 92%;
  height: 90%;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 107, 53, 0.20), transparent 75%);
  filter: blur(46px);
  pointer-events: none;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* Coach Romby standing IN FRONT of the dashboard, presenting it */
.hero-mascot {
  position: absolute;
  z-index: 3;
  width: 240px;
  height: auto;
  left: -128px;
  bottom: -34px;
  filter: drop-shadow(0 26px 38px 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);
}
.macframe-xl {
  max-width: none;
  border-radius: 22px;
  box-shadow:
    0 60px 120px rgba(0, 0, 0, 0.6),
    0 24px 48px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.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);
}
.dash-rail {
  flex: none;
  width: 60px;
  background: var(--bg-2);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
}
.rail-logo { margin-bottom: 8px; display: grid; place-items: center; }
.rail-logo img { border-radius: 7px; }
.rail-i {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  color: var(--muted);
}
.rail-i .ic { width: 18px; height: 18px; }
.rail-i.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.dash-main { flex: 1; min-width: 0; padding: 20px 26px 24px; }
.dash-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.dash-title { font-size: 1.55rem; 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: 12px;
  margin-bottom: 20px;
}
.dstat {
  background: linear-gradient(160deg, var(--card) 0%, var(--card-2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 14px 16px;
}
.dstat b { display: block; font-size: 1.9rem; 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.74rem; font-weight: 700; margin-top: 5px; }

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

/* attention queue rows */
.qrow {
  display: flex; align-items: center; gap: 13px;
  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: 14px;
  padding: 11px 14px;
  margin-bottom: 9px;
}
/* the second attention row (the amber "Watch" client) sits directly after the first */
.qrow + .qrow { 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: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 1.25rem; }
.qname { flex: 0 0 170px; min-width: 0; display: flex; flex-direction: column; }
.qname b { font-size: 0.98rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qname i { font-style: normal; color: var(--muted); font-size: 0.76rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qflag {
  flex: none;
  font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em;
  padding: 4px 10px; 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 {
  flex: none;
  font-size: 0.78rem; font-weight: 800; color: #221a10;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  padding: 8px 14px; border-radius: 999px; white-space: nowrap;
}

/* roster table */
.thead, .crow {
  display: grid;
  grid-template-columns: 40px 1.15fr 1.3fr 0.55fr 0.55fr 0.75fr;
  align-items: center;
  gap: 14px;
}
.thead {
  padding: 2px 10px 8px;
  font-size: 0.62rem; font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em;
  opacity: 0.8;
}
.crow {
  padding: 11px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.crow:last-child { border-bottom: none; }
.cav { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem; }
.cname { min-width: 0; display: flex; flex-direction: column; }
.cname b { font-size: 0.92rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cname i { font-style: normal; color: var(--muted); font-size: 0.72rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cbars { display: flex; align-items: flex-end; gap: 4px; height: 30px; }
.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.92rem; font-weight: 800; }
.cwt small { font-size: 0.68rem; color: var(--muted); font-weight: 700; }
.cwt.down { color: var(--protein); }
.cwt.flat { color: var(--muted); }
.clast { font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.cflag { display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; font-weight: 800; }
.cflag i { width: 8px; height: 8px; border-radius: 50%; }
.cflag.good { color: var(--protein); }
.cflag.good i { background: var(--protein); }
.cflag.warn { color: var(--fat); }
.cflag.warn i { background: var(--fat); }

/* ---------- client Nutrition page (hero mockup) ---------- */
.cd-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.cd-av { width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; }
.cd-id { flex: 1; min-width: 0; }
.cd-id b { font-size: 1.25rem; font-weight: 900; display: flex; align-items: center; gap: 10px; }
.cd-id .detail-flag { font-size: 0.62rem; }
.cd-id i { font-style: normal; color: var(--muted); font-size: 0.82rem; font-weight: 700; }
.tabs-xl { margin-bottom: 16px; }
.tabs-xl .dtab { font-size: 0.82rem; padding: 8px 15px; }

.nut-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 14px; }
.nut-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ncard {
  background: linear-gradient(160deg, var(--card) 0%, var(--card-2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  padding: 16px 18px;
}
.nc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.nc-head span { font-size: 0.82rem; font-weight: 800; }
.nc-head i { font-style: normal; color: var(--muted); font-size: 0.72rem; font-weight: 700; }

.adh14 { display: flex; align-items: flex-end; gap: 6px; height: 108px; margin-bottom: 12px; }
.adh14 i { flex: 1; border-radius: 3px 3px 0 0; }
.adh14 i.g { background: var(--protein); }
.adh14 i.o { background: var(--danger); }
.adh14 i.u { background: var(--fat); }
.adh14 i.n { background: rgba(255, 255, 255, 0.09); }
.nc-foot {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 11px;
}
.nc-foot b { font-size: 0.8rem; font-weight: 800; }
.nc-foot i { font-style: normal; color: var(--muted); font-size: 0.74rem; font-weight: 700; }
.nc-streak { margin-top: 8px; font-size: 0.72rem; font-weight: 700; color: var(--muted); }

.pj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pj-tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 2.2rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.pj-tile i {
  position: absolute; bottom: 7px; left: 7px;
  font-style: normal; font-size: 0.6rem; font-weight: 800;
  padding: 2px 7px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.55); color: #fff;
}

.ring-day { position: relative; width: 168px; margin: 2px auto 14px; }
.ring-day svg { display: block; width: 100%; height: auto; }
.ring-day .ring-center {
  position: absolute; inset: 0;
  display: grid; place-content: center; text-align: center; gap: 2px;
}
.ring-day .ring-center span {
  font-size: 0.58rem; font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.ring-day .ring-center b { font-size: 2rem; font-weight: 900; line-height: 1; }
.ring-day .ring-center i { font-style: normal; font-size: 0.68rem; font-weight: 700; color: var(--muted); }
.nmac { display: flex; flex-direction: column; gap: 10px; }
.ncard .dmac { font-size: 0.78rem; }
.ncard .dmac > span:first-child { width: 56px; }
.ncard .dmac-bar { height: 8px; }

.meal-row {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.meal-row:last-child { border-bottom: none; padding-bottom: 2px; }
.m-emoji {
  width: 44px; height: 44px; flex: none;
  border-radius: 12px; display: grid; place-items: center; font-size: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.m-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.m-info b { font-size: 0.88rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-info i { font-style: normal; color: var(--muted); font-size: 0.7rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-kcal { font-weight: 900; font-size: 0.95rem; }
.m-kcal::after { content: " kcal"; font-size: 0.62rem; color: var(--muted); font-weight: 700; }

/* ---------- medium roster frame (triage showcase) ---------- */
.macframe-md { max-width: 640px; margin: 0 auto; }
.macframe-md .dash-main { padding: 16px 18px 18px; }
.macframe-md .dash-title { font-size: 1.3rem; }
.macframe-md .dash-stats { gap: 8px; margin-bottom: 14px; }
.macframe-md .dstat { padding: 10px 12px; border-radius: 13px; }
.macframe-md .dstat b { font-size: 1.45rem; }
.macframe-md .dstat span { font-size: 0.62rem; margin-top: 3px; }
.macframe-md .dash-label { font-size: 0.62rem; margin-bottom: 7px; }
.macframe-md .qrow { gap: 10px; padding: 8px 11px; border-radius: 12px; margin-bottom: 8px; }
.macframe-md .qav { width: 34px; height: 34px; font-size: 1.05rem; }
.macframe-md .qname { flex: 1; }
.macframe-md .qname b { font-size: 0.86rem; }
.macframe-md .qname i { font-size: 0.68rem; }
.macframe-md .qflag { font-size: 0.6rem; padding: 3px 8px; }
.macframe-md .qnudge { font-size: 0.68rem; padding: 6px 11px; }
.macframe-md .thead, .macframe-md .crow { grid-template-columns: 34px 1.2fr 1.1fr auto 0.9fr; gap: 10px; }
.macframe-md .thead span:nth-child(5), .macframe-md .clast { display: none; }
.macframe-md .thead { font-size: 0.56rem; padding: 2px 6px 6px; }
.macframe-md .crow { padding: 8px 6px; }
.macframe-md .cav { width: 32px; height: 32px; font-size: 1rem; }
.macframe-md .cname b { font-size: 0.82rem; }
.macframe-md .cname i { font-size: 0.66rem; }
.macframe-md .cbars { height: 24px; gap: 3px; }
.macframe-md .cwt { font-size: 0.82rem; }
.macframe-md .cflag { font-size: 0.7rem; gap: 5px; }

/* ---------- 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-dot {
  width: 12px; height: 12px; flex: none; border-radius: 50%;
  margin: 0 2px;
}
.co-dot.good { background: var(--protein); box-shadow: 0 0 0 5px rgba(74, 222, 128, 0.16); }
.co-dot.streak { background: var(--accent-2); box-shadow: 0 0 0 5px rgba(255, 182, 39, 0.16); }
.callout-1 { top: -30px; right: -26px; animation: floaty 5s ease-in-out infinite; }
.callout-2 { bottom: -34px; right: 82px; animation: floaty 5.6s ease-in-out infinite 0.4s; }
@media (prefers-reduced-motion: reduce) { .callout { animation: none; } }

/* ============================================================
   WHY STRIP — four concrete, honest reasons
   ============================================================ */
.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: 24px;
  padding: 30px 24px;
}
.why { display: flex; align-items: center; gap: 15px; }
.why-ico {
  flex: none;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 13px;
  color: var(--accent-2);
  background: linear-gradient(145deg, rgba(255, 107, 53, 0.18), rgba(255, 182, 39, 0.08));
  border: 1px solid rgba(255, 182, 39, 0.16);
}
.why b { display: block; font-size: 0.98rem; font-weight: 800; margin-bottom: 2px; }
/* scoped to the text column — a bare `.why span` would also hit the .why-ico chip */
.why div span { color: var(--muted); font-weight: 700; font-size: 0.82rem; line-height: 1.35; display: block; }

/* ============================================================
   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: 22px; right: 22px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 12px;
  font-size: 1.05rem; font-weight: 900;
  color: var(--accent-2);
  background: rgba(255, 182, 39, 0.1);
  border: 1px solid rgba(255, 182, 39, 0.16);
}
.step-ico {
  width: 58px; height: 58px;
  border-radius: 18px;
  display: grid; place-items: center;
  color: var(--accent-2);
  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-ico .ic { width: 26px; height: 26px; }
.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; min-width: 0; }
.show-grid.show-wide { grid-template-columns: 0.8fr 1.2fr; gap: 48px; }

/* ============================================================
   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; margin-top: 10px; }
.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; }

/* nudge feed + private note (Overview mockup) */
.nrow { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.nr-tone {
  width: 30px; height: 30px; flex: none;
  border-radius: 9px; display: grid; place-items: center; font-size: 0.95rem;
  background: color-mix(in srgb, var(--nt) 16%, rgba(255, 255, 255, 0.04));
  border: 1px solid color-mix(in srgb, var(--nt) 25%, transparent);
}
.nr-body { min-width: 0; display: flex; flex-direction: column; }
.nr-body b { font-size: 0.74rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nr-body i { font-style: normal; font-size: 0.62rem; font-weight: 700; color: var(--muted); }
.note-card {
  background:
    linear-gradient(160deg, rgba(167, 139, 250, 0.08), transparent 60%),
    linear-gradient(160deg, var(--card) 0%, var(--card-2) 100%);
  border-color: rgba(167, 139, 250, 0.18);
}
.note-text {
  margin: 0;
  font-size: 0.76rem; font-weight: 600; font-style: italic;
  color: var(--text); opacity: 0.85; line-height: 1.45;
}

/* ============================================================
   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-eyebrow {
  display: block;
  font-size: 0.64rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.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; }

/* ============================================================
   CONSENT / TRUST
   ============================================================ */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
}
.trust-card {
  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);
}
.trust-ico {
  display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 16px;
  margin-bottom: 16px;
  color: var(--weight-2);
  background: linear-gradient(145deg, rgba(167, 139, 250, 0.22), rgba(56, 189, 248, 0.1));
  border: 1px solid rgba(167, 139, 250, 0.2);
}
.trust-ico .ic { width: 25px; height: 25px; }
.trust-card h3 { font-size: 1.2rem; margin: 0 0 8px; letter-spacing: -0.01em; }
.trust-card p { color: var(--muted); margin: 0; font-size: 0.98rem; line-height: 1.5; }

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq details {
  background: linear-gradient(160deg, var(--card) 0%, var(--card-2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq details[open] { border-color: rgba(255, 182, 39, 0.28); }
.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 18px 22px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 1.2rem; font-weight: 800; line-height: 1;
  color: var(--accent-2);
  background: rgba(255, 182, 39, 0.12);
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { content: "−"; transform: rotate(180deg); }
.faq summary:hover { color: var(--accent-2); }
.faq summary:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: -2px;
  border-radius: 18px;
}
.faq details p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--muted);
  line-height: 1.55;
}

/* ============================================================
   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; display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; }
.foot-links a { color: var(--accent-2); white-space: nowrap; }
.foot-links a:hover { color: var(--accent); }
.foot-copy { margin-left: auto; color: var(--muted); font-size: 0.85rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  /* callouts hug the frame instead of hanging outside the wrap */
  .callout-1 { right: 14px; }
  .callout-2 { right: 10px; }
  .hero-mascot { left: -26px; }
}
@media (max-width: 980px) {
  .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; }
  .trust-grid { grid-template-columns: 1fr; max-width: 520px; }
  .hero-mascot { width: 180px; left: -14px; bottom: -22px; }
  /* the wide-table extras don't fit — collapse to the essential columns */
  .thead { display: none; }
  .qname { flex: 1; }
  .clast, .cflag { display: none; }
  .thead, .crow { grid-template-columns: 40px 1.2fr 1.3fr auto; }
  /* the medium roster also loses its flag column — match its grid so no empty column trails */
  .macframe-md .thead, .macframe-md .crow { grid-template-columns: 34px 1.2fr 1.1fr auto; }
}
@media (max-width: 680px) {
  .nav-links a:not(.nav-cta) { display: none; }
  /* "Romby Coach" is wider than the old one-word wordmark — shrink it and pin the
     CTA to one line so the two never collide on narrow phones. */
  .brand-name { font-size: 1.25rem; }
  .nav-cta { white-space: nowrap; padding: 9px 14px; font-size: 0.9rem; }
  .steps { grid-template-columns: 1fr; }
  .strip-inner { grid-template-columns: 1fr; gap: 20px; }
  .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 { top: 46px; }
  .callout-2 { bottom: 120px; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .dstat b { font-size: 1.5rem; }
  .dash-main { padding: 16px 16px 18px; }
  /* the real app drops the side rail + flag pills on phones — so do we */
  .dash-rail { display: none; }
  .qflag { display: none; }
  .qname { flex: 1 1 auto; }
  .hero-mascot { width: 124px; left: -12px; bottom: -32px; }
  /* nutrition mockup stacks; the photo journal goes — keep the hero digestible */
  .nut-grid { grid-template-columns: 1fr; }
  .ncard-journal { display: none; }
  .cd-id b { font-size: 1.05rem; }
  .cd-av { width: 44px; height: 44px; font-size: 1.35rem; }
  .tabs-xl .dtab { font-size: 0.74rem; padding: 7px 12px; }
}
@media (max-width: 420px) {
  .callout { display: none; }
}

/* =====================================================================
   Marketing Romby 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));
}
.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; }

/* anchored to the frame (not the column) so it never drifts over the card text */
.frame-anchor { position: relative; width: 100%; max-width: 440px; }
.coach-mascot {
  position: absolute;
  z-index: 3;
  width: 134px;
  height: auto;
  right: -56px;
  bottom: -34px;
  --rot: -6deg;
  filter: drop-shadow(0 20px 32px rgba(0, 0, 0, 0.55));
}
/* keep the private-note text clear of the mascot in the corner */
.note-card { padding-right: 92px; }

@media (max-width: 980px) {
  .coach-mascot { width: 114px; right: -14px; }
  .tile-mascot { width: 90px; }
}
@media (max-width: 680px) {
  .cta-mascot { width: 132px; }
  .tile-mascot { width: 82px; right: 2px; bottom: 2px; }
  .has-mascot .ft-copy { padding-right: 76px; }
  .coach-mascot { width: 96px; right: -8px; bottom: -26px; }
  .note-card { padding-right: 72px; }
}

/* ============================================================
   LEGAL DOCS (Privacy / Terms / DPA) — shared prose styling
   ============================================================ */
.legal-page { padding-top: 56px; padding-bottom: 40px; }
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 900; letter-spacing: -0.02em; margin: 0 0 6px; }
.legal .legal-updated { color: var(--muted); font-weight: 700; font-size: 0.85rem; margin: 0 0 18px; }
.legal-draft-notice {
  background: rgba(255, 90, 122, 0.12);
  border: 1px solid rgba(255, 90, 122, 0.35);
  color: #ffd7de;
  border-radius: 14px;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 32px;
}
.legal-draft-notice strong { color: #ff8fa3; }
.legal h2 { font-size: 1.35rem; font-weight: 900; margin: 40px 0 12px; letter-spacing: -0.01em; color: var(--text); }
.legal h3 { font-size: 1.05rem; font-weight: 800; margin: 24px 0 8px; color: var(--text); }
.legal p, .legal li { color: var(--muted); line-height: 1.7; font-size: 0.98rem; }
.legal strong { color: var(--text); }
.legal ul, .legal ol { padding-left: 22px; margin: 10px 0; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--accent); }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 0.9rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); color: var(--muted); vertical-align: top; }
.legal th { color: var(--text); font-weight: 800; }
.legal-tbd {
  color: var(--accent-2);
  border-bottom: 1px dashed var(--accent-2);
  font-weight: 700;
}
.legal-callout {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 18px 20px;
  margin: 20px 0;
}
.legal-callout p:last-child { margin-bottom: 0; }
@media (max-width: 640px) {
  .legal-page { padding-top: 36px; }
  .legal table, .legal thead, .legal tbody, .legal th, .legal td, .legal tr { display: block; }
  .legal thead { display: none; }
  .legal tr { border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding: 10px 0; }
  .legal td { border: 0; padding: 4px 0; }
  .legal td::before {
    content: attr(data-label);
    display: block;
    font-weight: 800;
    color: var(--text);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
  }
}

/* Legal pages: keep the brand + "Back to …" CTA on one uncramped line on phones */
@media (max-width: 480px) {
  .legal-nav .brand-name { font-size: 1.2rem; }
  .legal-nav .nav-cta { white-space: nowrap; padding: 9px 13px; font-size: 0.85rem; }
}
