/* ── LIVE DEMO ROW ── */
.demo-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 32px;
}

.demo-phone-wrap {
  width: 260px;
  height: 562px;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.demo-phone {
  width: 390px;
  height: 844px;
  border: none;
  transform: scale(0.6667);
  transform-origin: top left;
}

.demo-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.demo-step {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  transition: border-color 0.25s;
}

.demo-step:hover {
  border-color: var(--border-hover);
}

.demo-step-num {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.demo-step h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.demo-step p {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .demo-row {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .demo-steps {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .demo-phone-wrap {
    width: 195px;
    height: 422px;
  }
  .demo-phone {
    transform: scale(0.5);
  }
}

/* ── BEFORE / AFTER ── */
.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.before-card {
  border-top: 3px solid var(--unfilled);
}

.after-card {
  border-top: 3px solid var(--verified);
}

.ba-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.before-card .ba-title { color: var(--unfilled); }
.after-card .ba-title { color: var(--verified); }

.ba-list {
  list-style: none;
  padding: 0;
}

.ba-list li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 10px;
}

.ba-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--unfilled);
  opacity: 0.6;
}

.ba-list.after li::before {
  background: var(--verified);
}

/* ── BRANDED EXPERIENCE FORMATS ── */
.brand-formats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.brand-format-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-format-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
}
.brand-format-card h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  margin-top: 16px;
}
.brand-format-card p {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.5;
}

.bf-mockup { margin-bottom: 4px; }

.bf-screen {
  aspect-ratio: 16/9;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.bf-screen-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--bg-card);
  position: relative;
}
.bf-brand-area {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.bf-qr {
  width: 36px;
  height: 36px;
}
.bf-qr .qr-sq { width: 100%; height: 100%; }
.bf-cta {
  font-size: 7px;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}
.bf-legal {
  font-size: 6px;
  color: var(--text-muted);
}
.bf-content-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: var(--text-muted);
  width: 100%;
}
.bf-banner {
  width: 100%;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.bf-banner-text {
  font-size: 6px;
  letter-spacing: 0.03em;
  flex: 1;
}
.bf-qr-small {
  width: 20px;
  height: 20px;
}
.bf-sidebar {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* ── FUNNEL STAGES ── */
.funnel-stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.funnel-stage-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.25s, transform 0.25s cubic-bezier(0.16,1,0.3,1);
}
.funnel-stage-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
}
.funnel-stage-card.active {
  border-color: rgba(34, 197, 94, 0.15);
}

.fs-num {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.fs-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.fs-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.funnel-stage-card.active .fs-value {
  color: var(--verified);
}
.fs-unit {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.fs-desc {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.55;
}

.funnel-visual {
  margin-bottom: 32px;
}

/* ── CATEGORY TABS ── */
.category-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
}

.cat-tab {
  padding: 5px 12px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: var(--surface);
  color: var(--text-tertiary);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s;
}

.cat-tab:hover {
  border-color: var(--border-hover);
  color: var(--text-secondary);
}

.cat-tab.active {
  background: var(--verified-dim);
  color: var(--verified);
  border-color: rgba(34,197,94,0.15);
}

/* ── VERTICAL DETAIL ── */
.vertical-detail {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}

.vd-field {
  margin-bottom: 20px;
}

.vd-field:last-child {
  margin-bottom: 0;
}

.vd-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.vd-value {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.vd-value.cpm-highlight {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: var(--verified);
}

.vd-value.brands-list {
  color: var(--text-tertiary);
  font-size: 13px;
}

/* ── CPM BARS ── */
.cpm-bar-wrap {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}

.cpm-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.cpm-bar-row:last-child {
  margin-bottom: 0;
}

.cpm-bar-label {
  font-size: 10px;
  letter-spacing: 0.04em;
  min-width: 110px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.cpm-bar {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: var(--surface);
  overflow: hidden;
}

.cpm-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--text-tertiary);
  width: 0;
  transition: width 0.6s ease;
}

.cpm-bar-fill.verified {
  background: var(--verified);
}

.cpm-bar-value {
  font-size: 12px;
  min-width: 60px;
  text-align: right;
  color: var(--text-secondary);
  flex-shrink: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .brand-formats { grid-template-columns: 1fr 1fr; }
  .funnel-stages { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .before-after { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .brand-formats { grid-template-columns: 1fr; }
  .category-tabs { flex-wrap: wrap; }
  .cpm-bar-label { min-width: 80px; font-size: 9px; }
  .cpm-bar-value { min-width: 50px; font-size: 11px; }
  .vertical-detail { padding: 20px 16px; }
  .fs-value { font-size: 22px; }
}

@media (max-width: 480px) {
  .cat-tab { padding: 10px 14px; font-size: 11px; }
}
