@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700&family=JetBrains+Mono:wght@400;500&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #050505;
  --bg-elevated: #0a0a0a;
  --bg-card: #111111;
  --bg-hover: #111;
  --surface: #161616;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.1);
  --text-primary: #fafafa;
  --text-secondary: #aaa;
  --text-tertiary: #999;
  --text-muted: #777;
  --verified: #22c55e;
  --verified-dim: rgba(34,197,94,0.1);
  --unfilled: #ef4444;
  --unfilled-dim: rgba(239,68,68,0.08);
  --qr: #f59e0b;
  --qr-dim: rgba(245,158,11,0.12);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'DM Sans', -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: 'JetBrains Mono', monospace; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  background: rgba(5,5,5,0.75);
  backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
nav .logo { font-weight: 600; font-size: 15px; letter-spacing: -0.3px; }
nav .links { display: flex; gap: 28px; }
nav .links a {
  color: var(--text-tertiary); text-decoration: none; font-size: 13px;
  font-weight: 400; transition: color 0.2s;
  position: relative;
}
nav .links a:hover { color: var(--text-primary); }
nav .links a.active {
  color: var(--text-primary);
}
nav .links a.active::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1px; background: var(--verified); opacity: 0.5;
}

/* ── HAMBURGER MENU ── */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  margin: 4px 0;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* ── NAV DROPDOWN ── */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--text-tertiary);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer; transition: all 0.15s;
  white-space: nowrap;
}
.nav-dropdown-toggle:hover { border-color: var(--border-hover); color: var(--text-secondary); }
.nav-dropdown-toggle .dd-arrow {
  font-size: 8px; transition: transform 0.2s;
}
.nav-dropdown.open .dd-arrow { transform: rotate(180deg); }
.nav-dropdown-menu {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 180px;
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px;
  z-index: 200;
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 4px;
  font-size: 12px; color: var(--text-tertiary);
  text-decoration: none; transition: all 0.12s;
}
.nav-dropdown-menu a:hover {
  background: rgba(255,255,255,0.04); color: var(--text-primary);
}
.nav-dropdown-menu a.dd-active {
  color: var(--verified);
}
.nav-dropdown-menu a .dd-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; color: var(--text-muted);
  margin-left: auto; letter-spacing: 0.04em;
}
.nav-dropdown-sep {
  height: 1px; background: var(--border);
  margin: 4px 8px;
}

/* ── HERO ── */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 100px 40px 80px;
}
.hero-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 500; letter-spacing: 0.1em;
  color: var(--verified); margin-bottom: 32px;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700; line-height: 1.12;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #fafafa 30%, #666 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  max-width: 480px; font-size: 16px; color: var(--text-secondary);
  line-height: 1.7;
}
.hero-stats {
  margin-top: 32px;
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: 0.06em;
  color: var(--text-tertiary);
}
.hero-dot { color: var(--text-muted); }

/* ── SECTIONS ── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 40px;
}
section { padding: 120px 0; }
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 500;
  color: var(--text-tertiary); margin-bottom: 10px;
  letter-spacing: 0.08em;
}
.section-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600; line-height: 1.2;
  letter-spacing: -0.8px;
  margin-bottom: 10px;
  color: var(--text-primary);
}
.section-sub {
  font-size: 15px; color: #bbb;
  max-width: 560px; margin-bottom: 48px;
  line-height: 1.65;
}
.section-annotation {
  display: inline-block; margin-top: 8px;
  font-size: 11px; color: var(--text-muted);
  letter-spacing: 0.02em;
}
.divider {
  height: 1px; background: rgba(255,255,255,0.08);
  max-width: 1080px; margin: 0 auto;
}

/* ── TIMELINE ── */
.timeline-wrap {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 28px 24px;
}
.timeline-legend {
  display: flex; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 24px;
}
.timeline-legend .leg {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; color: var(--text-secondary);
}
.leg-dot { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }

/* Timeline Controls */
.tl-controls {
  display: grid; grid-template-columns: 1fr auto auto auto;
  align-items: end; gap: 20px;
  margin-bottom: 28px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
}
@media (max-width: 900px) {
  .tl-controls { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .tl-controls { grid-template-columns: 1fr; }
}
.tl-control-group { }
.tl-control-label {
  font-size: 10px; font-weight: 500; letter-spacing: 0.06em;
  color: var(--text-muted); margin-bottom: 8px;
  white-space: nowrap;
}
.tl-fill-display {
  color: var(--text-secondary); font-weight: 600;
  margin-left: 6px;
}
.tl-pills { display: flex; gap: 4px; }
.tl-pill {
  padding: 5px 10px; border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 500; letter-spacing: 0.04em;
  background: var(--surface); color: var(--text-muted);
  border: 1px solid var(--border);
  cursor: pointer; transition: all 0.15s;
  white-space: nowrap;
}
.tl-pill:hover { border-color: var(--border-hover); color: var(--text-tertiary); }
.tl-pill.active {
  background: var(--verified-dim); color: var(--verified);
  border-color: rgba(34,197,94,0.15);
}
.tl-slider {
  width: 140px;
}
.tl-slider-range {
  display: flex; justify-content: space-between;
  font-size: 10px; color: var(--text-muted);
  margin-top: 3px;
}

/* Pod label above each pod segment */
.pod-label-row {
  display: flex; width: 100%;
  gap: 1px; margin-bottom: 4px;
}
.pod-label-cell {
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; color: var(--text-secondary);
  white-space: nowrap;
}
.pod-label-cell.content-label {
  color: var(--text-muted);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.tl-row { margin-bottom: 24px; }
.tl-row:last-of-type { margin-bottom: 0; }

.tl-label {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px;
}
.tl-badge {
  display: inline-block;
  padding: 3px 8px; border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 500; letter-spacing: 0.04em;
  flex-shrink: 0;
}
.tl-badge.off { color: var(--text-muted); background: var(--surface); }
.tl-badge.on { color: var(--verified); background: var(--verified-dim); }
.tl-scan-note {
  font-size: 11px; color: var(--text-tertiary);
}

.timeline-track {
  display: flex; width: 100%;
  height: 60px; border-radius: 6px; overflow: hidden;
  gap: 1px; background: var(--bg);
  transition: opacity 0.2s;
}

/* Base segment */
.t-seg {
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted); overflow: hidden;
  position: relative; white-space: nowrap;
  transition: flex 0.3s ease;
}

/* Content blocks */
.t-seg.content { background: #0e0e0e; }
.t-seg.content span { opacity: 0.5; font-size: 8px; letter-spacing: 0.06em; color: var(--text-muted); }

/* Simple pod (pre/post, no slot breakdown) */
.t-seg.pod {
  background: #1a1a1a;
  position: relative;
  flex-direction: column; gap: 1px;
}
.t-seg.pod .pod-label {
  font-size: 8px; color: var(--text-muted);
  white-space: nowrap; letter-spacing: 0.02em;
}
/* Top bar on simple pods */
.t-seg.pod::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--text-muted); opacity: 0.5;
}
/* Green top bar on verified pods */
.t-seg.pod.v-pod::before {
  background: var(--verified);
}

/* Pod with individual ad slot stripes */
.t-seg.pod-detail {
  display: flex; gap: 2px; background: rgba(255,255,255,0.18);
  position: relative; overflow: hidden;
}
/* Top bar indicator on pods */
.t-seg.pod-detail::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--text-muted); opacity: 0.5;
  z-index: 2;
}
/* Green top bar on verified pods */
.t-seg.pod-detail.v-pod::before {
  background: var(--verified); opacity: 0.8;
}

/* Slot colors */
.pd-slot { flex: 1; min-width: 0; }
.pd-slot.general { background: #1a1a1a; }
.pd-slot.unfilled { background: rgba(239,68,68,0.15); }
.pd-slot.premium { background: rgba(34,197,94,0.15); }

/* Ad count overlay inside pod */
.pod-count {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 600;
  color: var(--text-muted);
  z-index: 1; pointer-events: none;
  text-shadow: 0 0 4px rgba(0,0,0,0.8);
}
.pod-count.on { color: var(--verified); }
.pod-count.neg { color: var(--unfilled); opacity: 0.7; }

/* Removed pod placeholder in verified track */
.t-seg.pod-removed {
  background: transparent;
  border: 1px dashed rgba(255,255,255,0.06);
  border-radius: 3px;
  margin: 4px 0;
}
.pod-removed-x {
  font-size: 9px; color: var(--text-muted); opacity: 0.4;
}

/* Stats row below track */
.tl-stats {
  display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--text-muted);
}
.tl-stats .hl { font-weight: 500; }
.tl-stats .hl.on { color: var(--verified); }
.tl-stats .hl.neg { color: var(--unfilled); }

/* Timeline delta row */
.tl-delta-row {
  display: flex; align-items: center; gap: 16px;
  margin-top: 24px; margin-bottom: 16px;
  padding: 16px 20px;
  background: var(--verified-dim);
  border: 1px solid rgba(34,197,94,0.1);
  border-radius: 8px;
}
.tl-delta-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 32px; font-weight: 700;
  color: var(--verified); letter-spacing: -1px;
  flex-shrink: 0;
}
.tl-delta-label {
  font-size: 13px; color: var(--text-secondary);
}

.time-axis {
  display: flex; justify-content: space-between;
  margin-top: 16px; padding-top: 12px;
  border-top: 1px solid var(--border);
}
.time-axis span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--text-primary);
}

/* ── UNFILLED INVENTORY CALLOUT ── */
.unfilled-callout {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 32px;
}
.unfilled-title {
  font-size: 10px; font-weight: 500; letter-spacing: 0.06em;
  color: var(--text-muted); margin-bottom: 4px;
}
.unfilled-subtitle {
  font-size: 14px; color: var(--text-secondary); margin-bottom: 20px;
}
.unfilled-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin-bottom: 16px;
}
@media (max-width: 700px) { .unfilled-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .unfilled-grid { grid-template-columns: 1fr; } }
.unfilled-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}
.unfilled-icon {
  font-size: 18px; color: var(--text-muted); margin-bottom: 8px;
  opacity: 0.4;
}
.unfilled-card-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 500; letter-spacing: 0.06em;
  color: var(--text-tertiary); margin-bottom: 6px;
}
.unfilled-card-desc {
  font-size: 11px; color: var(--text-muted); line-height: 1.5;
  margin-bottom: 10px;
}
.unfilled-card-rev {
  font-size: 16px; font-weight: 600; color: var(--unfilled);
}
.unfilled-card-rev.positive { color: var(--text-tertiary); }
.unfilled-footnote {
  font-size: 12px; color: var(--text-tertiary); line-height: 1.6;
  padding-top: 12px; border-top: 1px solid var(--border);
}
.unfilled-footnote .source {
  display: block; margin-top: 6px;
  font-size: 10px; color: var(--text-muted);
}

/* ── POD COMPARISON ── */
.pod-context {
  font-size: 10px; letter-spacing: 0.08em;
  color: var(--text-muted); margin-bottom: 12px;
  text-align: center;
  padding: 8px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.pod-break-label {
  font-size: 11px; letter-spacing: 0.06em;
  color: var(--text-muted); margin-bottom: 4px;
}
.pod-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
@media (max-width: 860px) { .pod-grid { grid-template-columns: 1fr; } }

.pod-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.pod-panel.verified { border-color: rgba(34,197,94,0.1); }

.pod-badge {
  display: inline-block;
  padding: 3px 8px; border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 500; letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.pod-badge.off { color: var(--text-muted); background: var(--surface); }
.pod-badge.on { color: var(--verified); background: var(--verified-dim); }

.pod-panel h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.3px; margin-bottom: 2px; }
.pod-panel .pod-sub { font-size: 12px; color: var(--text-tertiary); margin-bottom: 16px; }

.pod-rows { display: flex; flex-direction: column; }
.pod-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.pod-row:last-child { border-bottom: none; }
.row-bar { width: 2px; height: 24px; border-radius: 1px; flex-shrink: 0; }
.row-bar.g { background: var(--text-muted); }
.row-bar.p { background: var(--verified); }
.row-bar.u { background: var(--unfilled); opacity: 0.6; }
.row-bar.q { background: var(--qr); opacity: 0.7; }
.row-info { flex: 1; min-width: 0; }
.row-name { font-size: 13px; font-weight: 500; }
.row-meta { font-size: 10px; color: var(--text-tertiary); font-family: 'JetBrains Mono', monospace; }
.row-cpm { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 500; flex-shrink: 0; }
.row-cpm.dim { color: var(--text-muted); }
.row-cpm.std { color: var(--text-secondary); }
.row-cpm.hi { color: var(--verified); }
.row-cpm.zero { color: var(--unfilled); }

.pod-footer {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--border);
}
.pod-footer .pf-label { font-size: 12px; color: var(--text-tertiary); }
.pod-footer .pf-val { font-family: 'JetBrains Mono', monospace; font-size: 20px; font-weight: 600; }
.pf-val.lo { color: var(--text-tertiary); }
.pf-val.hi { color: var(--text-primary); }

.pod-note {
  margin-top: 6px;
  font-size: 11px; color: var(--text-tertiary);
  font-family: 'JetBrains Mono', monospace;
}
.pod-note.good { color: var(--verified); opacity: 0.8; }

.lift-row {
  margin-top: 16px;
  display: flex; align-items: center; gap: 20px;
  padding: 20px 24px;
  background: var(--bg-elevated);
  border: 1px solid rgba(34,197,94,0.1);
  border-radius: 12px;
}
.lift-num { font-size: 36px; font-weight: 700; color: var(--verified); letter-spacing: -1px; flex-shrink: 0; }
.lift-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* ── ECONOMICS ── */
.force-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-bottom: 32px;
}
@media (max-width: 760px) { .force-grid { grid-template-columns: 1fr; } }

.force-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.force-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 500; letter-spacing: 0.06em;
  color: var(--text-muted); margin-bottom: 12px;
}
.force-arrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; color: var(--text-tertiary);
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 8px;
}
.force-arrow .from { color: var(--text-muted); }
.force-arrow .to { color: var(--text-secondary); font-weight: 500; }
.force-delta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px; font-weight: 700; letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.force-delta.up { color: var(--verified); }
.force-delta.down { color: var(--unfilled); }
.force-delta.neutral { color: var(--text-secondary); }
.force-desc { font-size: 12px; color: var(--text-tertiary); line-height: 1.55; }
.force-source {
  font-size: 10px; color: var(--text-muted); margin-top: 8px;
  letter-spacing: 0.02em;
}

.net-card {
  background: var(--bg-elevated);
  border: 1px solid rgba(34,197,94,0.1);
  border-radius: 12px;
  padding: 28px;
  display: flex; align-items: center; gap: 28px;
  margin-bottom: 48px;
}
.net-num {
  font-size: 48px; font-weight: 700; color: var(--verified);
  letter-spacing: -2px; flex-shrink: 0; line-height: 1;
}
.net-body h4 {
  font-size: 16px; font-weight: 600; letter-spacing: -0.3px; margin-bottom: 4px;
}
.net-body p { font-size: 13px; color: var(--text-tertiary); line-height: 1.6; }

/* ── INTERACTIVE CALCULATOR ── */
.calc-wrap {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}

/* Presets */
.calc-presets {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.calc-presets-label {
  font-size: 10px; font-weight: 500; letter-spacing: 0.06em;
  color: var(--text-muted); margin-right: 4px;
}
.calc-preset {
  padding: 5px 12px; border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 500;
  background: var(--surface); color: var(--text-tertiary);
  border: 1px solid var(--border);
  cursor: pointer; transition: all 0.15s;
}
.calc-preset:hover { border-color: var(--border-hover); color: var(--text-secondary); }
.calc-preset.active {
  background: var(--verified-dim); color: var(--verified);
  border-color: rgba(34,197,94,0.15);
}

.calc-results {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px;
  margin-bottom: 28px;
}
@media (max-width: 660px) { .calc-results { grid-template-columns: 1fr; } }

.calc-col {
  padding: 20px; border-radius: 10px;
  background: var(--bg-card); border: 1px solid var(--border);
  transition: border-color 0.3s;
}
.calc-col.active { border-color: rgba(34,197,94,0.12); }

.calc-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--text-muted); margin-bottom: 10px;
  white-space: nowrap;
}
.calc-num {
  font-size: 28px; font-weight: 700; letter-spacing: -1px;
  margin-bottom: 4px;
  transition: color 0.3s;
}
.calc-col:not(.active) .calc-num { color: var(--text-muted); }
.calc-col.active .calc-num { color: var(--text-primary); }
.calc-num.delta.up { color: var(--verified); }
.calc-num.delta.down { color: var(--unfilled); }
.calc-detail {
  font-size: 11px; color: var(--text-tertiary);
  font-family: 'JetBrains Mono', monospace;
}

.calc-sliders {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px;
  margin-bottom: 20px;
}
@media (max-width: 700px) { .calc-sliders { grid-template-columns: 1fr; } }

.slider-row { }
.slider-label {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 8px;
  font-size: 13px; color: var(--text-secondary);
}
.slider-val {
  font-size: 14px; font-weight: 600; color: var(--text-primary);
}
.slider-range {
  display: flex; justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--text-muted);
  margin-top: 4px;
}

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 3px;
  background: var(--surface); border-radius: 2px;
  outline: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--text-primary);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--border-hover);
  cursor: pointer;
  transition: transform 0.15s ease;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--text-primary);
  border: 2px solid var(--bg);
  cursor: pointer;
}

.calc-footnote {
  font-size: 11px; color: var(--text-muted);
  margin-bottom: 24px; line-height: 1.6;
  letter-spacing: 0.02em;
}

/* Matrix */
.calc-matrix { }
.matrix-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 500; letter-spacing: 0.06em;
  color: var(--text-muted); margin-bottom: 12px;
}
#matrix-table {
  width: 100%; border-collapse: collapse;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}
#matrix-table th {
  padding: 8px 12px; text-align: center;
  font-size: 10px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
#matrix-table .matrix-corner {
  text-align: left; color: var(--text-muted); font-size: 10px;
}
#matrix-table td {
  padding: 10px 12px; text-align: center;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
#matrix-table .matrix-row-label {
  text-align: left; color: var(--text-tertiary); font-weight: 500;
  font-size: 11px;
}
.matrix-cell { font-weight: 600; transition: background 0.2s; cursor: default; }
.matrix-cell.hot { color: var(--verified); }
.matrix-cell.warm { color: #86efac; }
.matrix-cell.neutral { color: var(--text-secondary); }
.matrix-cell.cold { color: var(--unfilled); }
.matrix-cell.current {
  background: rgba(34,197,94,0.08);
  border-radius: 4px;
}
.matrix-min {
  display: block;
  font-size: 10px; font-weight: 400;
  color: var(--text-muted);
  margin-top: 2px;
}
/* Matrix hover highlighting */
#matrix-table tr:hover td { background: rgba(255,255,255,0.02); }
#matrix-table td.col-highlight { background: rgba(255,255,255,0.02); }
#matrix-table tr:hover td.col-highlight { background: rgba(255,255,255,0.04); }

/* ── BUSINESS MODEL TIERS ── */
.tier-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px;
  margin-bottom: 20px;
}
@media (max-width: 760px) { .tier-grid { grid-template-columns: 1fr; } }

.tier-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.tier-card.tier-highlight { border-color: rgba(34,197,94,0.12); }
.tier-num {
  font-size: 10px; font-weight: 500; letter-spacing: 0.06em;
  color: var(--text-muted); margin-bottom: 10px;
}
.tier-title {
  font-size: 16px; font-weight: 600; letter-spacing: -0.3px;
  margin-bottom: 6px;
}
.tier-value {
  font-size: 22px; font-weight: 700; color: var(--verified);
  letter-spacing: -0.5px; margin-bottom: 10px;
}
.tier-unit { font-size: 12px; font-weight: 400; color: var(--text-tertiary); }
.tier-desc { font-size: 12px; color: var(--text-tertiary); line-height: 1.55; }

.tier-multiplier {
  display: flex; align-items: center; gap: 20px;
  padding: 20px 24px;
  background: var(--bg-elevated);
  border: 1px solid rgba(34,197,94,0.1);
  border-radius: 12px;
  margin-bottom: 32px;
}
.tier-mult-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px; font-weight: 700; color: var(--verified);
  letter-spacing: -1px; flex-shrink: 0;
}
.tier-mult-desc { font-size: 13px; color: var(--text-secondary); }

/* Vertical Table */
.vertical-table-wrap {
  overflow-x: auto;
  margin-bottom: 32px;
}
.vertical-table {
  width: 100%; border-collapse: collapse;
  font-size: 12px;
}
.vertical-table th {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 10px 12px; text-align: left;
  border-bottom: 1px solid var(--border);
}
.vertical-table td {
  padding: 12px; border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.vertical-table td:first-child { white-space: nowrap; }
.vertical-table td.mono { color: var(--text-primary); font-size: 12px; }
.vert-badge {
  display: inline-block;
  padding: 2px 6px; border-radius: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 500; letter-spacing: 0.04em;
}
.vert-badge.spirits { background: rgba(34,197,94,0.1); color: var(--verified); }
.vert-badge.betting { background: rgba(177,150,97,0.12); color: #B19661; }
.vert-badge.cannabis { background: rgba(139,92,246,0.1); color: #8b5cf6; }
.vert-badge.pharma { background: rgba(26,43,74,0.15); color: #6B7FA0; }

/* Conversion Funnel */
.funnel-wrap {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.funnel-label {
  font-size: 10px; font-weight: 500; letter-spacing: 0.06em;
  color: var(--text-muted); margin-bottom: 16px;
}
.funnel {
  display: flex; flex-direction: column; gap: 6px;
}
.funnel-stage {
  display: flex; align-items: center; gap: 12px;
}
.funnel-bar {
  height: 24px; border-radius: 4px;
  width: var(--width);
  background: linear-gradient(90deg, rgba(34,197,94,0.15), rgba(34,197,94,0.05));
  border: 1px solid rgba(34,197,94,0.08);
  transition: width 0.5s ease;
}
.funnel-stage-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--text-tertiary);
  white-space: nowrap; flex-shrink: 0;
}

/* ── FLOW ── */
.flow { max-width: 580px; margin: 0 auto; }
.flow-step {
  display: flex; gap: 16px;
  position: relative;
}
.flow-step:not(:last-child) { padding-bottom: 0; }
.flow-step:not(:last-child)::after {
  content: ''; position: absolute;
  left: 13px; top: 36px; bottom: 0;
  width: 1px; background: var(--border);
}
.flow-step.on:not(:last-child)::after { background: rgba(34,197,94,0.12); }
.flow-num {
  width: 28px; height: 28px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; flex-shrink: 0;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-tertiary);
  font-family: 'JetBrains Mono', monospace; font-weight: 500;
  position: relative; z-index: 1;
}
.flow-num.on { border-color: rgba(34,197,94,0.15); color: var(--verified); }
.flow-num.done { border-color: rgba(34,197,94,0.2); color: var(--verified); background: var(--verified-dim); }
.flow-body { padding: 2px 0 32px; flex: 1; }
.flow-body h4 { font-size: 14px; font-weight: 600; letter-spacing: -0.2px; margin-bottom: 3px; }
.flow-body p { font-size: 13px; color: var(--text-tertiary); line-height: 1.55; }
.flow-body .tag {
  display: inline-block; margin-top: 6px;
  padding: 2px 6px; border-radius: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  background: var(--surface); color: var(--text-tertiary);
  border: 1px solid var(--border);
}
.flow-body .tag.on {
  background: var(--verified-dim); color: var(--verified);
  border-color: rgba(34,197,94,0.12);
}
.flow-callout {
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 11px; color: var(--text-tertiary); line-height: 1.5;
  font-family: 'JetBrains Mono', monospace;
}
.flow-benchmarks {
  margin-top: 10px;
  display: flex; flex-direction: column; gap: 4px;
}
.flow-bench {
  font-size: 11px; color: var(--text-tertiary); line-height: 1.5;
}
.flow-bench .mono {
  color: var(--verified); font-weight: 600; margin-right: 4px;
}
.flow-paths {
  margin-top: 10px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.flow-path {
  padding: 12px; border-radius: 8px;
  background: var(--bg-card); border: 1px solid var(--border);
}
.flow-path .fp-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--text-muted); letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.flow-path .fp-text { font-size: 12px; color: var(--text-tertiary); line-height: 1.5; }

/* ── PLACEMENTS ── */
.place-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 800px) { .place-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .place-grid { grid-template-columns: 1fr; } }

.place-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  transition: border-color 0.25s, transform 0.25s cubic-bezier(0.16,1,0.3,1);
}
.place-card:hover { border-color: var(--border-hover); transform: translateY(-1px); }

.tv {
  aspect-ratio: 16/9;
  background: var(--bg);
  border-radius: 4px;
  position: relative; overflow: hidden;
  margin-bottom: 12px;
}
.tv .tv-bg {
  position: absolute; inset: 0;
  background: #0a0a0a;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}
.tv .qr-area {
  position: absolute;
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
}
.qr-sq {
  width: 16px; height: 16px;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  gap: 1.5px;
}
.qr-sq i { background: var(--qr); border-radius: 1px; opacity: 0.5; display: block; }
.qr-sq i:nth-child(4) { opacity: 0.2; }

.place-card h4 { font-size: 13px; font-weight: 600; letter-spacing: -0.2px; margin-bottom: 3px; }
.place-card p { font-size: 11px; color: var(--text-tertiary); line-height: 1.5; }

/* ── SECTION 06: BRANDED QR CODES ── */
.brand-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
@media (max-width: 760px) { .brand-grid { grid-template-columns: 1fr; } }

.brand-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: border-color 0.25s, transform 0.25s cubic-bezier(0.16,1,0.3,1);
}
.brand-card:hover { border-color: var(--border-hover); transform: translateY(-1px); }
.brand-card h4 { font-size: 13px; font-weight: 600; letter-spacing: -0.2px; margin-top: 12px; margin-bottom: 2px; }
.brand-card p { font-size: 11px; color: var(--text-tertiary); }

.brand-badge {
  display: inline-block;
  padding: 3px 8px; border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 500; letter-spacing: 0.04em;
  margin-bottom: 12px;
}

/* Brand logo areas */
.brand-logo-area {
  margin-bottom: 8px;
}
.brand-logo-area svg {
  height: 24px; width: auto;
}

/* Heineken: TV Takeover */
.brand-tv {
  aspect-ratio: 16/9;
  background: var(--bg);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.brand-tv-inner {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
}
.brand-qr {
  display: flex; align-items: center; justify-content: center;
}
.brand-qr-sq {
  width: 32px; height: 32px;
}
.brand-qr-sq i { background: var(--brand); opacity: 0.6; }
.brand-tv-cta {
  font-size: 8px; letter-spacing: 0.08em;
  color: var(--text-tertiary);
}
.brand-tv-legal {
  font-size: 7px; color: var(--text-muted);
  opacity: 0.6;
}

/* BetMGM: QR Close-Up */
.brand-qr-closeup {
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.brand-qr-frame {
  border: 1px solid;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  width: 100%;
}
.brand-qr-lg {
  width: 48px; height: 48px;
}
.brand-qr-lg i { background: var(--brand); opacity: 0.6; }
.brand-qr-offer {
  font-size: 14px; font-weight: 600; letter-spacing: 0.04em;
}
.brand-qr-sub {
  font-size: 11px; color: var(--text-tertiary);
}

/* Bud Light: Split Screen */
.brand-split {
  display: flex; align-items: center; gap: 8px;
}
.brand-split-tv {
  flex: 1;
  aspect-ratio: 16/9;
  background: var(--bg);
  border-radius: 4px;
  border: 1px solid var(--border);
  display: flex; overflow: hidden;
  position: relative;
}
.brand-split-content {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  background: #0a0a0a;
}
.brand-split-lbar {
  width: 28%;
  display: flex; align-items: center; justify-content: center;
}
.brand-split-lbar .brand-qr-sq { width: 20px; height: 20px; }
.brand-split-connector {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  flex-shrink: 0;
}
.brand-split-connector span {
  font-size: 8px; color: var(--text-muted);
}
.brand-split-connector::before {
  content: '';
  width: 20px; height: 1px;
  border-top: 1px dashed var(--text-muted);
}
.brand-split-phone {
  width: 56px;
  aspect-ratio: 9/19.5;
  border-radius: 10px;
  border: 2px solid var(--border);
  background: var(--bg);
  overflow: hidden;
  flex-shrink: 0;
}
.brand-phone-inner {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px; padding: 4px;
}
.brand-phone-inner .brand-logo-area svg { height: 12px; }
.brand-phone-text { font-size: 5px; color: var(--text-muted); }
.brand-phone-check { font-size: 12px; color: var(--verified); }

@media (max-width: 640px) {
  .brand-split { flex-direction: column; }
  .brand-split-connector { flex-direction: row; }
  .brand-split-connector::before { width: 1px; height: 20px; border-top: none; border-left: 1px dashed var(--text-muted); }
  .brand-split-phone { width: 100%; aspect-ratio: auto; height: 60px; flex-direction: row; border-radius: 8px; }
  .brand-phone-inner { flex-direction: row; }
}

/* Bud Light: Bottom Banner */
.brand-banner {
  aspect-ratio: 16/9;
  display: flex; flex-direction: column;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
}
.brand-banner-content {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  background: #0a0a0a;
  font-size: 8px; color: var(--text-muted);
}
.brand-banner-bar {
  height: 28%;
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 0 12px;
}
.brand-banner-bar .brand-logo-area svg { height: 16px; }
.brand-banner-bar .brand-qr-sq { width: 22px; height: 22px; }
.brand-banner-text {
  font-size: 6px; letter-spacing: 0.06em;
  color: var(--text-tertiary);
}
.brand-banner-legal {
  font-size: 6px; color: var(--text-muted); opacity: 0.6;
}

/* Ro: Side Vertical (L-Bar) */
.brand-lbar {
  aspect-ratio: 16/9;
  display: flex;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
}
.brand-lbar-content {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  background: #0a0a0a;
  font-size: 8px; color: var(--text-muted);
}
.brand-lbar-side {
  width: 28%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px;
  padding: 8px 4px;
}
.brand-lbar-side .brand-logo-area svg { height: 22px; }
.brand-lbar-side .brand-logo-area svg path { fill: #8BA3C7; }
.brand-lbar-side .brand-qr-sq { width: 28px; height: 28px; }
.brand-lbar-cta {
  font-size: 6px; letter-spacing: 0.06em;
  color: var(--text-tertiary);
  text-align: center; line-height: 1.4;
}
.brand-lbar-legal {
  font-size: 6px; color: var(--text-muted); opacity: 0.6;
}

/* ── FOOTER ── */
footer {
  padding: 48px 40px; text-align: center;
  border-top: 1px solid var(--border);
}
footer p {
  font-size: 11px; color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

/* ── ANIMATION ── */
.fade-up {
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  nav { padding: 0 16px; height: 56px; }
  .nav-hamburger { display: block; }
  nav .links {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(5,5,5,0.95);
    backdrop-filter: blur(24px) saturate(1.4);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 0;
  }
  nav .links.open { display: flex; }
  nav .links a {
    font-size: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  nav .links a:last-child { border-bottom: none; }
  nav .links a.active::after { display: none; }
  .hero h1 { font-size: clamp(28px, 7vw, 36px); }
  .hero p { max-width: 100%; }
  .hero { padding: 80px 20px 60px; }
  .hero-stats { flex-wrap: wrap; justify-content: center; gap: 8px; }
  .container { padding: 0 16px; }
  section { padding: 80px 0; }
  .tl-controls { flex-direction: column; align-items: flex-start; }
  .tl-pills { flex-wrap: wrap; }
  .net-card { flex-direction: column; gap: 16px; text-align: center; }
  .lift-row { flex-direction: column; text-align: center; }
  .tier-multiplier { flex-direction: column; text-align: center; }
  .flow-paths { grid-template-columns: 1fr; }
  .brand-data-card { flex-direction: column; text-align: center; }
}

/* ── PHONE (≤480px) ── */
@media (max-width: 480px) {
  section { padding: 60px 0; }
  .hero { padding: 70px 16px 48px; }
  .container { padding: 0 12px; }
  .force-card { padding: 16px; }

  /* Timeline scrollable within card */
  .timeline-wrap {
    overflow-x: auto;
    padding: 16px 12px 12px;
    -webkit-overflow-scrolling: touch;
  }
  .timeline-track,
  #tl-pod-labels .pod-label-row,
  .time-axis {
    min-width: 600px;
  }
  #tl-pod-labels {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  #tl-pod-labels::-webkit-scrollbar { display: none; }

  /* Matrix table scrollable */
  .calc-matrix { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  #matrix-table { min-width: 400px; }

  /* Touch targets enlarged */
  .tl-pill { padding: 10px 14px; font-size: 11px; }
  .tl-pills { gap: 6px; }
  .calc-preset { padding: 10px 14px; font-size: 11px; }

  /* Slider thumb larger for touch */
  input[type="range"] { height: 6px; }
  input[type="range"]::-webkit-slider-thumb {
    width: 24px; height: 24px;
  }
  input[type="range"]::-moz-range-thumb {
    width: 24px; height: 24px;
  }

  /* Brand card text legible */
  .brand-tv-cta { font-size: 10px; }
  .brand-tv-legal { font-size: 9px; }
  .brand-banner-text { font-size: 9px; }
  .brand-banner-legal { font-size: 8px; }
  .brand-lbar-cta { font-size: 9px; }
  .brand-lbar-legal { font-size: 8px; }
  .brand-qr-offer { font-size: 12px; }
  .brand-qr-sub { font-size: 10px; }

  /* Spacing tightened */
  .calc-wrap { padding: 16px 12px; }
  .unfilled-callout { padding: 16px; }
  footer { padding: 32px 16px; }

  /* Small font bumps — base sizes already raised, no overrides needed */

  /* Hero stats cleanup */
  .hero-dot { display: none; }
  .hero-stats { gap: 6px 16px; }

  /* Vertical table tighter */
  .vertical-table th,
  .vertical-table td {
    padding: 8px;
    font-size: 11px;
  }
}
