/* TrakN site — plain CSS, no build step. */
:root {
  --bg: #0a0e14;
  --bg-raised: #121821;
  --card: #18202b;
  --line: #263140;
  --text: #eef2f6;
  --muted: #9aa7b6;
  --amber: #e8a33d;
  --amber-ink: #0a0e14;
  --protein: #9b45e5;
  --carbs: #14dcf0;
  --fat: #f01e96;
  --radius: 18px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--amber); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 14, 20, 0.86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--text); }

/* Hero */
.hero { padding: 72px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.badge {
  display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase;
}
.badge b { color: var(--amber); font-weight: 600; }
h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -0.03em; margin: 18px 0 18px; }
h1 em { font-style: normal; color: var(--amber); }
.lede { font-size: 20px; color: var(--muted); max-width: 34ch; margin: 0 0 30px; }
.btn {
  display: inline-block; background: var(--amber); color: var(--amber-ink);
  font-weight: 700; text-decoration: none; padding: 14px 24px; border-radius: 14px;
}
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { color: var(--muted); font-size: 14px; margin-top: 14px; }

/* 3D stage */
.stage { perspective: 1400px; display: flex; justify-content: center; padding: 20px 0 40px; }
.device {
  --rx: 6deg; --ry: -18deg;
  position: relative; width: 290px; aspect-ratio: 290 / 600;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.25s ease-out;
  will-change: transform;
}
.device-body {
  position: absolute; inset: 0; border-radius: 44px; background: #05070a;
  border: 2px solid #2b3644;
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.85), 0 0 0 10px #0d1219;
  overflow: hidden;
}
.screen { position: absolute; inset: 10px; border-radius: 34px; background: var(--bg); overflow: hidden; }
.screen img { width: 100%; height: 100%; object-fit: cover; }
.float {
  position: absolute; background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 12px 14px; font-size: 13px; color: var(--muted); white-space: nowrap;
  box-shadow: 0 24px 40px -18px rgba(0, 0, 0, 0.8);
}
.float strong { display: block; color: var(--text); font-size: 20px; letter-spacing: -0.01em; }
.float.a { top: 60%; right: -50%; transform: translateZ(130px); }
.float.b { top: 37%; left: -28%; transform: translateZ(90px); }
.float.c { bottom: 12%; left: -26%; transform: translateZ(60px); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }

/* Screenshot gallery */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; perspective: 1200px; }
.shot { margin: 0; padding: 10px 10px 14px; }
.shot img { border-radius: 14px; width: 100%; height: auto; }
.shot figcaption { color: var(--muted); font-size: 14px; text-align: center; margin-top: 10px; }
@media (max-width: 900px) { .shots { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* Placeholder screen content (unused once real screenshots are in place) */
.mock { padding: 26px 16px; display: grid; gap: 12px; }
.mock .m-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.mock .m-title { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.mock .m-big { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.bars { display: grid; gap: 7px; margin-top: 10px; }
.bars span { height: 7px; border-radius: 4px; display: block; }
.spark { height: 46px; margin-top: 8px; border-radius: 10px;
  background: linear-gradient(180deg, rgba(232,163,61,0.28), rgba(232,163,61,0) 85%);
  clip-path: polygon(0 70%, 14% 62%, 28% 66%, 42% 48%, 56% 52%, 70% 34%, 84% 38%, 100% 18%, 100% 100%, 0 100%); }

/* Sections */
section { padding: 72px 0; }
.eyebrow { color: var(--amber); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.02em; line-height: 1.12; margin: 10px 0 14px; }
.section-lede { color: var(--muted); max-width: 60ch; margin: 0 0 36px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; perspective: 1200px; }
.card {
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transform-style: preserve-3d; transition: transform 0.2s ease-out, border-color 0.2s;
}
.card:hover { border-color: #3a4a5e; }
.card h3 { margin: 14px 0 8px; font-size: 20px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.card li { margin: 4px 0; }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(232, 163, 61, 0.12); color: var(--amber); transform: translateZ(30px);
}
.icon svg { width: 24px; height: 24px; }
.card.wide { grid-column: span 2; }

/* Feature bento (workouts) */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 28px;
  padding: 32px; border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, #141b26 0%, #0d131b 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 30px 60px -40px rgba(0, 0, 0, 0.9);
  transition: border-color 0.3s;
}
.tile::before {
  content: ""; position: absolute; inset: -1px; pointer-events: none; opacity: 0.55; transition: opacity 0.3s;
  background: radial-gradient(420px 220px at 85% 0%, rgba(20, 220, 240, 0.10), transparent 70%),
              radial-gradient(380px 220px at 0% 100%, rgba(155, 69, 229, 0.10), transparent 70%);
}
.tile:hover { border-color: rgba(255, 255, 255, 0.14); }
.tile:hover::before { opacity: 1; }
.tile > * { position: relative; }
.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.tile-row { flex-direction: row; align-items: center; gap: 32px; }
.tile-row .tile-copy { flex: 1 1 52%; }
.tile-row .tile-art { flex: 1 1 48%; }
.tile-art { margin-top: auto; }
.tile-row .tile-art { margin-top: 0; }
.kicker { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.kicker::before { content: ""; display: inline-block; width: 18px; height: 2px; margin-right: 10px; vertical-align: middle; border-radius: 2px; background: var(--amber); }
.tile h3 { margin: 14px 0 10px; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; letter-spacing: -0.02em; }
.tile p { margin: 0; color: var(--muted); font-size: 16px; }

.figure-num {
  font-size: clamp(64px, 8vw, 104px); font-weight: 800; line-height: 0.95; letter-spacing: -0.04em;
  background: linear-gradient(115deg, #b77bf3 0%, #14dcf0 70%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.figure-num small { display: block; margin-top: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); -webkit-text-fill-color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips span { padding: 6px 11px; border-radius: 999px; font-size: 13px; color: #c9d3de; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); }
.chips .more { color: var(--amber); border-color: rgba(232, 163, 61, 0.4); background: rgba(232, 163, 61, 0.08); }

.sets { border-radius: 16px; padding: 6px 16px 14px; background: rgba(0, 0, 0, 0.28); border: 1px solid rgba(255, 255, 255, 0.06); font-size: 15px; font-variant-numeric: tabular-nums; }
.sets-head, .sets-row { display: grid; grid-template-columns: 0.6fr 1.2fr 0.8fr 1.1fr; align-items: center; padding: 10px 0; }
.sets-head { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.sets-row { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.sets-row span:first-child { color: var(--muted); }
.rir { display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 8px; border-radius: 999px; font-style: normal; font-weight: 700; font-size: 13px; }
.rir.easy { color: #4ade80; background: rgba(74, 222, 128, 0.14); }
.rir.mid { color: var(--amber); background: rgba(232, 163, 61, 0.16); }
.rir.hard { color: #f87171; background: rgba(248, 113, 113, 0.16); }
.rest { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.rest-bar { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.rest-bar span { display: block; width: 62%; height: 100%; border-radius: 4px; background: var(--amber); }

.muscle-map { width: 100%; max-width: 340px; height: auto; margin: 0 auto; }
.heat-legend { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.heat-legend i { width: 120px; height: 6px; border-radius: 6px; background: linear-gradient(90deg, #2e3b4c, var(--amber)); }

.chart { border-radius: 16px; padding: 18px 18px 14px; background: rgba(0, 0, 0, 0.28); border: 1px solid rgba(255, 255, 255, 0.06); }
.chart-bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.chart-bars i { position: relative; flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, rgba(20, 220, 240, 0.55), rgba(20, 220, 240, 0.12)); }
.chart-bars .peak { background: linear-gradient(180deg, var(--amber), rgba(232, 163, 61, 0.25)); }
.chart-bars b { position: absolute; top: -24px; left: 50%; transform: translateX(-50%); font-size: 11px; font-style: normal; letter-spacing: 0.06em; color: var(--amber); }
.chart-foot { display: flex; justify-content: space-between; margin-top: 12px; font-size: 13px; color: var(--muted); }
.chart-foot .up { color: #4ade80; font-weight: 600; }

.sync { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 14px; color: #c9d3de; }
.sync-step { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); white-space: nowrap; }
.sync-line { width: 1px; height: 14px; margin-left: 16px; background: rgba(255, 255, 255, 0.2); }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.off { background: #6b7786; }
.dot.save { background: var(--amber); }
.dot.on { background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.15); }

.tile-note { margin: -8px 0 0 !important; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.07); font-size: 13px !important; color: #7f8c9b !important; }
.well, .logger, .macros, .snap, .recipes, .water, .numbers { border-radius: 16px; background: rgba(0, 0, 0, 0.28); border: 1px solid rgba(255, 255, 255, 0.06); }

.logger { padding: 14px; font-size: 14px; }
.logger svg { width: 14px; height: 14px; flex: none; }
.logger-search { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); color: var(--text); }
.logger-search svg { color: var(--muted); }
.logger-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.logger-row small { display: block; color: var(--muted); font-size: 12px; }
.logger-row b { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.logger-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.logger-modes span { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 9px 2px; border-radius: 10px; font-size: 12px; white-space: nowrap; color: var(--muted); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07); }
.logger-modes .on { color: var(--amber); border-color: rgba(232, 163, 61, 0.4); background: rgba(232, 163, 61, 0.08); }

.macros { padding: 18px 18px 8px; }
.macros-top b { display: block; font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.macros-top span { display: block; margin: 6px 0 8px; font-size: 13px; color: var(--muted); }
.macros .macro-row b { min-width: 58px; font-weight: 500; color: #c9d3de; }
.macros .macro-row .track { background: rgba(255, 255, 255, 0.07); height: 8px; }

.snap { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; padding: 14px; }
.snap-frame { position: relative; aspect-ratio: 1; border-radius: 12px; display: grid; place-items: end center; padding-bottom: 10px;
  background: radial-gradient(circle at 38% 40%, rgba(232, 163, 61, 0.38) 0 22%, transparent 23%), radial-gradient(circle at 66% 36%, rgba(238, 242, 246, 0.26) 0 17%, transparent 18%), radial-gradient(circle at 56% 66%, rgba(74, 222, 128, 0.32) 0 16%, transparent 17%), radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.07) 0 46%, transparent 47%), #0b1017; }
.snap-frame i { position: absolute; width: 14px; height: 14px; border: 2px solid var(--carbs); }
.snap-frame i:nth-child(1) { top: 8px; left: 8px; border-right: 0; border-bottom: 0; border-radius: 4px 0 0 0; }
.snap-frame i:nth-child(2) { top: 8px; right: 8px; border-left: 0; border-bottom: 0; border-radius: 0 4px 0 0; }
.snap-frame i:nth-child(3) { bottom: 8px; left: 8px; border-right: 0; border-top: 0; border-radius: 0 0 0 4px; }
.snap-frame i:nth-child(4) { bottom: 8px; right: 8px; border-left: 0; border-top: 0; border-radius: 0 0 4px 0; }
.snap-frame span { font-size: 9px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--carbs); }
.snap-list { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.snap-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.snap-list li:last-child { border-bottom: 0; }
.snap-list b { font-weight: 600; color: var(--muted); white-space: nowrap; }

.recipes { padding: 6px 16px; }
.recipe { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.recipe:last-child { border-bottom: 0; }
.recipe .tag { grid-column: 1; font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.tag.mine { color: var(--amber); } .tag.community { color: var(--carbs); } .tag.web { color: #b77bf3; }
.recipe b { grid-column: 1; font-size: 15px; }
.recipe small { grid-column: 1; font-size: 12px; color: var(--muted); }
.recipe i { grid-column: 2; grid-row: 1 / span 3; font-style: normal; font-size: 13px; font-weight: 700; padding: 7px 14px; border-radius: 999px; color: var(--amber-ink); background: var(--amber); }

.water { display: flex; align-items: center; gap: 22px; padding: 20px; }
.water-glass { position: relative; flex: none; width: 74px; height: 110px; border: 2px solid rgba(255, 255, 255, 0.22); border-top: 0; border-radius: 4px 4px 16px 16px; overflow: hidden; }
.water-glass span { position: absolute; left: 0; right: 0; bottom: 0; height: 60%; background: linear-gradient(180deg, rgba(20, 220, 240, 0.85), rgba(20, 130, 240, 0.55)); border-radius: 60% 40% 0 0 / 10px 12px 0 0; }
.water-read b { display: block; font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.water-read b small { font-size: 18px; font-weight: 600; color: var(--muted); }
.water-read span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.water-read em { display: inline-block; margin-top: 10px; padding: 3px 9px; border-radius: 999px; font-style: normal; font-size: 12px; font-weight: 700; color: var(--carbs); background: rgba(20, 220, 240, 0.12); }

.numbers { display: grid; grid-template-columns: repeat(3, 1fr); }
.numbers div { padding: 16px 14px; border-right: 1px solid rgba(255, 255, 255, 0.06); }
.numbers div:last-child { border-right: 0; }
.numbers small { display: block; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.numbers b { display: block; margin-top: 6px; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.numbers .hl b { color: var(--amber); }

@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .span-7, .span-5 { grid-column: auto; }
  .tile { padding: 24px; }
  .tile-row { flex-direction: column; align-items: stretch; }
}

/* Health & Progress: sticky summary panel beside a numbered list */
.progress { background: linear-gradient(180deg, transparent, rgba(20, 27, 38, 0.55) 18%, rgba(20, 27, 38, 0.55) 82%, transparent); }
.progress-layout { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; align-items: start; margin-top: 12px; }
.dash {
  position: sticky; top: 96px; padding: 26px; border-radius: 28px;
  background: linear-gradient(160deg, #18212d, #0c1118); border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.dash small { display: block; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.dash em { font-style: normal; font-size: 0.5em; font-weight: 600; color: var(--muted); }
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.dash-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border-radius: 999px; color: #c9d3de; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); }
.dash-pill i { width: 7px; height: 7px; border-radius: 50%; background: #f0466e; box-shadow: 0 0 0 4px rgba(240, 70, 110, 0.16); }
.dash-weight { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 24px; }
.dash-weight b { display: block; margin-top: 4px; font-size: 52px; font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
.dash-delta { padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #4ade80; background: rgba(74, 222, 128, 0.13); }
.dash-chart { display: block; width: 100%; height: 130px; margin: 14px 0 4px; }
.dash-goal { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, 0.07); border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.ring { width: 60px; height: 60px; flex: none; }
.dash-goal b { display: block; margin: 3px 0 2px; font-size: 17px; letter-spacing: -0.01em; }
.dash-goal span { font-size: 13px; color: var(--muted); }
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-top: 18px; }
.dash-stats b { display: block; margin-top: 5px; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.dash-stats em { font-size: 0.6em; }

.ledger { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.ledger li { display: grid; grid-template-columns: 76px 1fr; gap: 8px; padding: 30px 0; border-top: 1px solid rgba(255, 255, 255, 0.09); }
.ledger li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.09); }
.ledger-num { font-size: 15px; font-weight: 600; letter-spacing: 0.08em; color: var(--amber); padding-top: 6px; font-variant-numeric: tabular-nums; }
.ledger h3 { margin: 0 0 8px; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.15; letter-spacing: -0.02em; transition: color 0.2s; }
.ledger p { margin: 0; color: var(--muted); font-size: 16px; max-width: 52ch; }
.ledger li:hover h3 { color: var(--amber); }

@media (max-width: 900px) {
  .progress-layout { grid-template-columns: 1fr; gap: 28px; }
  .dash { position: static; padding: 20px; }
  .dash-weight b { font-size: 44px; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); row-gap: 16px; }
  .ledger li { grid-template-columns: 44px 1fr; padding: 24px 0; }
}

/* Intelligent Insights: centred heading, one spotlight panel, four columns */
.insights-head { text-align: center; }
.insights-head .section-lede { margin-left: auto; margin-right: auto; max-width: 68ch; }
.spotlight {
  position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center;
  padding: 52px; border-radius: 32px; background: #0d121a; isolation: isolate;
}
.spotlight::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px;
  background: linear-gradient(130deg, rgba(183, 123, 243, 0.9), rgba(20, 220, 240, 0.55) 45%, rgba(240, 30, 150, 0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.spotlight::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(600px 320px at 100% 0%, rgba(20, 220, 240, 0.13), transparent 70%), radial-gradient(520px 320px at 0% 100%, rgba(155, 69, 229, 0.16), transparent 70%);
}
.spotlight-tag { display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #d9c2fa; background: rgba(155, 69, 229, 0.16); border: 1px solid rgba(183, 123, 243, 0.35); }
.spotlight h3 { margin: 20px 0 14px; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.08; letter-spacing: -0.025em; }
.spotlight-copy p { margin: 0; color: var(--muted); font-size: 18px; max-width: 44ch; }

.report { padding: 24px; border-radius: 22px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)); border: 1px solid rgba(255, 255, 255, 0.09); box-shadow: 0 40px 70px -40px rgba(0, 0, 0, 0.9); }
.report small { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.report-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 18px; }
.report-head b { display: block; margin-top: 4px; font-size: 20px; letter-spacing: -0.01em; }
.report-score { position: relative; width: 68px; height: 68px; flex: none; }
.report-score svg { width: 100%; height: 100%; }
.report-score span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.report-block { padding: 16px 0 4px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.report-block p { margin: 8px 0; font-size: 15px; color: #d3dbe4; line-height: 1.5; }
.report .good { color: #4ade80; } .report .warn { color: var(--amber); }

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 44px; }
.pillars article { padding: 6px 28px 6px 28px; border-left: 1px solid rgba(255, 255, 255, 0.1); }
.pillars article:first-child { border-left: 0; padding-left: 0; }
.pillars article:last-child { padding-right: 0; }
.pillars svg { width: 28px; height: 28px; color: var(--carbs); }
.pillars h3 { margin: 16px 0 10px; font-size: 20px; line-height: 1.2; letter-spacing: -0.015em; }
.pillars p { margin: 0; color: var(--muted); font-size: 15.5px; }
.insights-fine { margin: 44px auto 0; max-width: 86ch; text-align: center; font-size: 13.5px; color: #7f8c9b; }

@media (max-width: 900px) {
  .insights-head { text-align: left; }
  .spotlight { grid-template-columns: 1fr; gap: 28px; padding: 26px; border-radius: 24px; }
  .pillars { grid-template-columns: 1fr 1fr; row-gap: 32px; margin-top: 32px; }
  .pillars article { padding: 0 16px; }
  .pillars article:nth-child(odd) { border-left: 0; padding-left: 0; }
  .insights-fine { text-align: left; }
}
@media (max-width: 520px) {
  .pillars { grid-template-columns: 1fr; }
  .pillars article { border-left: 0; padding: 0; }
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.panel { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.macro-row { display: flex; align-items: center; gap: 12px; margin: 14px 0; font-size: 15px; color: var(--muted); }
.macro-row .track { flex: 1; height: 10px; background: #0d1219; border-radius: 6px; overflow: hidden; }
.macro-row .fill { height: 100%; border-radius: 6px; }
.macro-row b { color: var(--text); width: 70px; }

.steps { counter-reset: s; display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: s; position: relative; padding-left: 46px; color: var(--muted); }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(232,163,61,0.14); color: var(--amber); font-weight: 700; font-size: 14px;
}
.steps b { color: var(--text); }

.beta { text-align: center; }
.beta .panel { max-width: 720px; margin: 0 auto; padding: 44px 28px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 56px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }
.fineprint { width: 100%; font-size: 12.5px; color: #6f7c8b; margin: 6px 0 0; }

/* Text pages (privacy, terms, support) */
.doc { padding: 56px 0 72px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(32px, 4vw, 44px); margin-top: 0; }
.doc h2 { font-size: 22px; margin: 36px 0 8px; }
.doc p, .doc li { color: #c7d0da; }
.doc .updated { color: var(--muted); font-size: 14px; }
.doc details { border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin: 12px 0; background: var(--bg-raised); }
.doc summary { cursor: pointer; font-weight: 600; color: var(--text); }

@media (max-width: 1150px) { .float.a { right: -36%; } }
@media (max-width: 900px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 44px; text-align: left; }
  .grid { grid-template-columns: 1fr; }
  .card.wide { grid-column: auto; }
  .device { width: 240px; }
  .float { padding: 9px 11px; font-size: 11.5px; border-radius: 13px; }
  .float strong { font-size: 16px; }
  .float.a { top: 66%; right: -36%; }
  .float.b { top: 30%; left: -17%; }
  .float.c { bottom: 5%; left: -19%; }
  .stage { padding: 30px 0 30px; }
  .nav { display: none; }
  section { padding: 52px 0; }
}

@media (max-width: 440px) { .float.a { right: -24%; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .device, .card { transition: none; }
}
