/* ============================================
   Measurement Product Website — Page Styles
   Extends styles.css design system
   ============================================ */

/* ---------- Nav Logo Text ---------- */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

/* ============================================
   HERO — Report Card
   ============================================ */
.hero-report-card {
  padding: 0;
  overflow: hidden;
  animation: heroFloat 6s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.report-card-header {
  padding: 20px;
  border-bottom: 1px solid var(--glass-border);
}
.report-video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a2a3d, #0f1922);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-play-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text);
  backdrop-filter: blur(8px);
}
.video-timeline {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}
.timeline-progress {
  width: 47%;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--pink));
  border-radius: 2px;
}
.timeline-marker {
  position: absolute;
  top: -3px;
  width: 9px;
  height: 9px;
  background: var(--pink);
  border-radius: 50%;
  border: 2px solid var(--bg);
}

/* Metric Pills */
.report-card-metrics {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.metric-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  opacity: 0;
  transform: translateX(20px);
  animation: pillFadeIn 0.6s ease forwards;
}
.metric-pill-1 { animation-delay: 0.3s; }
.metric-pill-2 { animation-delay: 0.6s; }
.metric-pill-3 { animation-delay: 0.9s; }

@keyframes pillFadeIn {
  to { opacity: 1; transform: translateX(0); }
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pill-label {
  color: var(--text-muted);
  flex-shrink: 0;
}
.pill-value {
  font-weight: 700;
  margin-left: auto;
}
.pill-delta {
  font-size: 10px;
}
.pill-green { color: var(--green); }
.pill-pink { color: var(--pink); }
.pill-blue { color: var(--blue); }

/* Mini emotion curve */
.report-emotion-mini {
  padding: 0 20px 16px;
}
.emotion-curve-svg {
  width: 100%;
  height: 40px;
}
.emotion-curve-path {
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: drawCurve 2s ease forwards 1.2s;
}
@keyframes drawCurve {
  to { stroke-dashoffset: 0; }
}

/* ============================================
   LOGO WALL — Animated Marquee
   ============================================ */
.logo-wall-section {
  padding: 32px 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  overflow: hidden;
}
.marquee-wrapper {
  overflow: hidden;
  position: relative;
}
.marquee-wrapper::before,
.marquee-wrapper::after {
  display: none;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 60s linear infinite;
}
.marquee-track:hover {
  animation-play-state: paused;
}
.marquee-content {
  display: flex;
  flex-shrink: 0;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.logo-wall-item {
  padding: 16px 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: default;
  transition: opacity 0.3s ease, filter 0.3s ease;
  opacity: 0.55;
  filter: grayscale(100%) brightness(1.8);
}
.logo-wall-item:hover {
  opacity: 0.85;
  filter: grayscale(0%) brightness(1);
}
.logo-wall-item img {
  max-height: 60px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ============================================
   PROBLEM SECTION
   ============================================ */
.problem-section {
  padding: 100px 0 60px;
}
.problem-intro {
  text-align: center;
  font-size: 17px;
  color: var(--text-muted);
  max-width: 700px;
  margin: -32px auto 48px;
  line-height: 1.7;
}
.problem-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.problem-card {
  text-align: center;
  padding: 40px 24px;
  transition: transform 0.3s, border-color 0.3s;
}
.problem-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.15);
}
.problem-icon {
  margin-bottom: 20px;
}
.problem-stat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}
.problem-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}
.problem-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}
.problem-summary {
  text-align: center;
  font-size: 18px;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

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

/* ============================================
   PRODUCT — Aha-Moment Scroll Experience
   ============================================ */
.aha-section {
  padding: 0;
}

/* Headline block (inside sticky left) */
.aha-headline-block {
  margin-bottom: 0.5rem;
}
.aha-headline-block .eyebrow {
  margin-bottom: 0.4rem;
}
.aha-sfra {
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  position: relative;
  display: flex;
  gap: 0 0.4em;
  line-height: 1.3;
  padding-bottom: clamp(7rem, 12vw, 10rem);
}
.sfra-word {
  display: inline-block;
  color: rgba(255,255,255,0.25);
  transform-origin: 0 0;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.4s ease,
              text-shadow 0.4s ease;
  will-change: transform;
}
.sfra-word.done {
  color: rgba(255,255,255,0.35);
}
.sfra-word.active {
  font-weight: 700;
  z-index: 2;
  position: relative;
}
.sfra-word.active[data-phase="1"] {
  color: var(--blue);
  text-shadow: 0 0 25px rgba(0,122,255,0.35);
}
.sfra-word.active[data-phase="2"] {
  color: var(--pink);
  text-shadow: 0 0 25px rgba(255,33,152,0.35);
}
.sfra-word.active[data-phase="3"] {
  color: var(--teal);
  text-shadow: 0 0 25px rgba(16,168,183,0.35);
}
.sfra-word.active[data-phase="4"] {
  color: var(--green);
  text-shadow: 0 0 25px rgba(84,228,43,0.35);
}

/* Scroller + Pinned */
.aha-scroller {
  position: relative;
  height: 500vh;
}
.aha-pinned {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
}

/* Split layout */
.aha-split {
  display: grid;
  grid-template-columns: 38% 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
  padding: 0 3.5rem;
}

/* Left side: narration */
.aha-left {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 3rem 0;
  max-height: 90vh;
}
.aha-story-col {
  position: relative;
  flex: 1;
  min-height: 200px;
}
.aha-story-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
  pointer-events: none;
}
.aha-story-card.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.aha-pill {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: .25rem .75rem;
  border-radius: 5px;
  margin-bottom: .8rem;
  width: fit-content;
}
.aha-pill-blue { color: var(--blue); background: rgba(0,122,255,.12); }
.aha-pill-pink { color: var(--pink); background: rgba(255,33,152,.12); }
.aha-pill-teal { color: var(--teal); background: rgba(16,168,183,.12); }
.aha-pill-green { color: var(--green); background: rgba(84,228,43,.12); }

.aha-story-card h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: .7rem;
}
.aha-story-card p {
  font-size: clamp(.95rem, 1.1vw, 1.1rem);
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: .6rem;
}
.aha-story-card p:last-child { margin-bottom: 0; }
.aha-q {
  color: var(--blue) !important;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1rem, 1.2vw, 1.15rem) !important;
}
.aha-insight {
  color: var(--text) !important;
  font-weight: 500;
  padding: .7rem 1rem;
  background: rgba(0,122,255,.06);
  border-left: 3px solid var(--blue);
  border-radius: 0 8px 8px 0;
  font-size: clamp(.9rem, 1vw, 1rem) !important;
  margin-top: .4rem;
}

/* Progress dots */
.aha-dots-row {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}
.aha-dot {
  position: relative;
  cursor: default;
  display: flex;
  align-items: center;
  gap: .45rem;
}
.aha-dot::before {
  content: '';
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 2px solid rgba(255,255,255,.1);
  transition: all .3s;
  flex-shrink: 0;
}
.aha-dot span {
  font-size: .6rem; font-weight: 500;
  color: rgba(255,255,255,0.28);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color .3s, opacity .3s;
}
.aha-dot.active::before {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 0 10px rgba(0,122,255,.45);
}
.aha-dot.active span { color: var(--text); }
.aha-dot.done::before {
  background: rgba(0,122,255,.3);
  border-color: rgba(0,122,255,.35);
}
.aha-dot.done span { color: rgba(255,255,255,0.28); }

/* Right side: video + chart */
.aha-right {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}
.aha-creative-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  border-bottom: none;
  box-shadow: 0 4px 50px rgba(0,0,0,.35);
}
.aha-bg-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  background: #111b27;
}
.aha-c-controls {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: .5rem;
  padding: .55rem 1rem;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
  z-index: 30;
  font-size: .6rem; color: rgba(255,255,255,0.28);
  font-family: 'JetBrains Mono', monospace;
}
.aha-c-play { font-size: .65rem; }
.aha-c-bar { flex: 1; height: 3px; background: rgba(255,255,255,.12); border-radius: 2px; overflow: hidden; }
.aha-c-bar-fill { height: 100%; width: 0%; background: var(--blue); border-radius: 2px; transition: width .1s linear; }

/* Overlay layers */
.aha-layer {
  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;
}
.aha-layer.visible { opacity: 1; }
.aha-heat-dim {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: rgba(0,0,0,.65);
}
.aha-layer-heat {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  mix-blend-mode: screen;
}
.aha-layer-memory {
  position: absolute;
  top: 8%; right: 4%;
  width: 46%;
  max-width: 320px;
  z-index: 20;
}
.aha-layer-uplift {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(.95);
  width: 72%;
  max-width: 400px;
  z-index: 25;
  transition: opacity .5s ease, transform .5s ease;
}
.aha-layer-uplift.visible {
  transform: translate(-50%,-50%) scale(1);
}

/* Memory card */
.aha-mem-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
}
.aha-mem-title { font-size: .88rem; font-weight: 600; margin-bottom: .8rem; color: #fff; }
.aha-mem-row {
  display: flex; justify-content: space-between;
  align-items: center;
  font-size: .75rem; color: rgba(255,255,255,.85);
  margin-bottom: .15rem;
}
.aha-mem-val {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700; color: #fff;
  font-size: .78rem;
}
.aha-mem-track {
  width: 100%; height: 4px;
  background: rgba(255,255,255,.06);
  border-radius: 2px; overflow: hidden;
  margin-bottom: .55rem;
}
.aha-mem-fill {
  height: 100%; width: 0%; border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  transition: width .9s cubic-bezier(.16,1,.3,1);
}

/* Uplift card */
.aha-uplift-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
}
.aha-uplift-head { font-size: .9rem; font-weight: 600; margin-bottom: .12rem; }
.aha-uplift-sub {
  font-size: .58rem; color: rgba(255,255,255,0.28);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: .8rem;
}
.aha-uplift-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: .6rem;
}
.aha-u-metric {
  text-align: center;
  padding: .6rem .4rem;
  background: rgba(255,255,255,.025);
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,.04);
}
.aha-u-val {
  font-size: 1.4rem; font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: var(--green); line-height: 1;
  margin-bottom: .12rem;
}
.aha-u-label { font-size: .6rem; color: var(--text-muted); margin-bottom: .18rem; }
.aha-u-sig {
  font-size: .45rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
  padding: .1rem .4rem; border-radius: 3px;
  color: var(--green);
  background: rgba(84,228,43,.1);
}

/* Emotion chart */
.aha-emotion-wrap {
  width: 100%;
  flex-shrink: 0;
  border-radius: 0 0 10px 10px;
  border: 1px solid rgba(255,255,255,0.12);
  border-top: none;
  overflow: hidden;
  background: rgba(8,14,22,.85);
  box-shadow: 0 8px 50px rgba(0,0,0,.3);
}
.aha-emotion-chart-wrap {
  position: relative;
  width: 100%;
}
.aha-emotion-svg {
  width: 100%;
  height: 160px;
  display: block;
}
.aha-gl { stroke: rgba(255,255,255,.04); stroke-width: 1; }
.aha-curve {
  fill: none; stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 2000; stroke-dashoffset: 2000;
}
.aha-c-blue { stroke: var(--blue); }
.aha-c-white { stroke: rgba(255,255,255,0.6); }
.aha-c-green { stroke: var(--green); }
.aha-c-cyan { stroke: var(--cyan); }
.aha-c-red { stroke: var(--red); stroke-width: 1.8; }
.aha-c-purple { stroke: var(--purple); }
.aha-c-amber { stroke: var(--amber); }
.aha-c-teal { stroke: var(--teal); }
.aha-c-gray { stroke: rgba(255,255,255,0.35); }
.aha-ph { stroke: rgba(255,255,255,.4); stroke-width: 1.5; stroke-dasharray: 3 3; }
.aha-pk-dot { fill: var(--green); opacity: 0; transition: opacity .3s; }
.aha-pk-dot.visible { opacity: 1; }
.aha-pk-label {
  position: absolute;
  left: 37%; top: 8%;
  font-size: .6rem; font-weight: 600;
  color: var(--green);
  font-family: 'Poppins', sans-serif;
  opacity: 0; transition: opacity .3s;
  pointer-events: none;
}
.aha-pk-label.visible { opacity: 1; }
.aha-legend {
  display: flex; gap: .9rem;
  justify-content: center;
  padding: .5rem 0;
  font-size: .58rem; color: var(--text-muted);
  opacity: 0; transition: opacity .3s;
}
.aha-legend.visible { opacity: 1; }
.aha-legend span { display: flex; align-items: center; gap: .25rem; }
.aha-d { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.aha-d-blue { background: var(--blue); }
.aha-d-white { background: rgba(255,255,255,0.6); }
.aha-d-green { background: var(--green); }
.aha-d-cyan { background: var(--cyan); }
.aha-d-red { background: var(--red); }
.aha-d-purple { background: var(--purple); }
.aha-d-amber { background: var(--amber); }
.aha-d-teal { background: var(--teal); }
.aha-d-gray { background: rgba(255,255,255,0.35); }
.aha-legend-group {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  font-weight: 600;
}
.aha-legend-sep {
  width: 1px;
  height: 10px;
  background: rgba(255,255,255,0.12);
  margin: 0 4px;
}

/* Aha responsive */
@media (max-width: 1100px) {
  .aha-split { gap: 2rem; padding: 0 2rem; }
  .aha-story-card h2 { font-size: 1.5rem; }
}
@media (max-width: 860px) {
  .aha-split {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1.5rem;
  }
  .aha-left { padding: 1rem 0 0; max-height: none; }
  .aha-story-col { min-height: 120px; }
  .aha-right { max-width: 600px; margin: 0 auto; }
  .aha-dots-row { justify-content: center; }
}
@media (max-width: 600px) {
  .aha-split { padding: 0 1rem; }
  .aha-sfra { font-size: 0.9rem; }
  .sfra-word.active { transform: translateY(1.6em) scale(4.5); }
  .aha-story-card h2 { font-size: 1.3rem; }
  .aha-story-card p { font-size: .88rem; }
  .aha-dots-row { gap: 1rem; }
  .aha-dot span { display: none; }
  .aha-creative-wrap { aspect-ratio: 16/10; }
  .aha-emotion-svg { height: 120px; }
}

/* ============================================
   HOW IT WORKS — Platform Demo (6 Platforms)
   ============================================ */
.how-intro {
  text-align: center;
  font-size: 17px;
  color: var(--text-muted);
  max-width: 700px;
  margin: -32px auto 48px;
  line-height: 1.7;
}
.platform-demo-wide {
  max-width: 700px;
  margin: 0 auto;
}
.platform-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 16px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-sm);
  padding: 4px;
  flex-wrap: wrap;
}
.platform-tab {
  padding: 8px 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s;
  white-space: nowrap;
}
.platform-tab.active {
  background: rgba(0,122,255,0.15);
  color: var(--blue);
}
.platform-tab:hover:not(.active) {
  color: var(--text);
}

/* Platform mockup — Custom HTML/CSS frames */
.platform-mockup-custom {
  padding: 24px;
  display: flex;
  justify-content: center;
  min-height: 480px;
}
.platform-screen {
  display: none;
  width: 100%;
  justify-content: center;
}
.platform-screen.active {
  display: flex;
  animation: mockFadeIn 0.4s ease;
}
@keyframes mockFadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

/* Shared: phone frame */
.phone-frame {
  width: 280px;
  background: #111b27;
  border-radius: 36px;
  border: 3px solid rgba(255,255,255,0.12);
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 40px rgba(0,0,0,.4);
  display: flex;
  flex-direction: column;
}
.phone-frame-dark { background: #000; }
.phone-notch {
  width: 120px;
  height: 28px;
  background: #000;
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}
.phone-status-bar {
  display: flex;
  justify-content: space-between;
  padding: 2px 20px 6px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  font-family: 'JetBrains Mono', monospace;
}
.status-right { font-size: 9px; }
.phone-content { flex: 1; overflow: hidden; }
.phone-home-bar {
  width: 100px;
  height: 4px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
  margin: 8px auto 10px;
}

/* Shared: ad placeholder */
.mock-ad-area {
  border: 2px dashed rgba(0,122,255,0.3);
  background: rgba(0,122,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.mock-ad-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(0,122,255,0.5);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.mock-ad-square { width: 100%; aspect-ratio: 1; }
.mock-ad-full { position: absolute; inset: 0; }
.mock-ad-wide { width: 100%; aspect-ratio: 16/9; }

/* Shared: mock elements */
.mock-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,122,255,0.3), rgba(16,168,183,0.3));
  flex-shrink: 0;
}
.mock-avatar-sm { width: 24px; height: 24px; }
.mock-handle {
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.8);
  display: block;
}
.mock-meta {
  font-size: 9px; color: rgba(255,255,255,0.35);
  display: block;
}
.mock-more {
  font-size: 14px; color: rgba(255,255,255,0.3);
  margin-left: auto;
}

/* Instagram */
.ig-content { display: flex; flex-direction: column; }
.ig-stories-bar {
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ig-story { width: 44px; height: 44px; border-radius: 50%; padding: 2px; }
.ig-story-ring {
  width: 100%; height: 100%; border-radius: 50%;
  border: 2px solid rgba(255,33,152,0.4);
  background: rgba(255,255,255,0.05);
}
.ig-post-header {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
}
.ig-actions {
  display: flex; gap: 14px; padding: 10px 14px;
  font-size: 18px;
  color: rgba(255,255,255,0.6);
}
.ig-save { margin-left: auto; }

/* TikTok */
.tt-content { position: relative; min-height: 500px; }
.tt-sidebar {
  position: absolute; right: 10px; bottom: 120px;
  display: flex; flex-direction: column; gap: 16px;
  align-items: center;
}
.tt-action { text-align: center; }
.tt-icon { font-size: 22px; display: block; }
.tt-count { font-size: 9px; color: rgba(255,255,255,0.6); font-family: 'JetBrains Mono', monospace; }
.tt-bottom {
  position: absolute; bottom: 50px; left: 12px; right: 60px;
  display: flex; flex-direction: column; gap: 4px;
}
.tt-caption { font-size: 10px; color: rgba(255,255,255,0.6); }
.tt-music { font-size: 9px; color: rgba(255,255,255,0.4); }
.tt-nav {
  display: flex; justify-content: space-around; padding: 10px 0;
  font-size: 9px; color: rgba(255,255,255,0.5);
  border-top: 1px solid rgba(255,255,255,0.08);
  background: #000;
}
.tt-plus {
  width: 28px; height: 18px; line-height: 18px; text-align: center;
  background: linear-gradient(90deg, var(--teal), var(--pink));
  border-radius: 4px;
  font-weight: 700; font-size: 13px; color: #fff;
}

/* YouTube Shorts */
.yt-content { position: relative; min-height: 500px; }
.yt-sidebar {
  position: absolute; right: 10px; bottom: 100px;
  display: flex; flex-direction: column; gap: 16px;
  align-items: center;
}
.yt-action { text-align: center; }
.yt-icon { font-size: 20px; display: block; }
.yt-count { font-size: 9px; color: rgba(255,255,255,0.6); font-family: 'JetBrains Mono', monospace; }
.yt-bottom { position: absolute; bottom: 20px; left: 12px; right: 60px; }
.yt-channel {
  display: flex; align-items: center; gap: 6px;
}
.yt-name { font-size: 10px; color: rgba(255,255,255,0.7); }
.yt-subscribe {
  background: #ff0000; color: #fff; border: none;
  border-radius: 12px; padding: 3px 10px;
  font-size: 9px; font-weight: 700; font-family: 'Poppins', sans-serif;
  margin-left: auto;
}
.yt-shorts-label {
  position: absolute; top: 12px; left: 12px;
  font-size: 14px; font-weight: 700;
  color: rgba(255,255,255,0.8);
}

/* Facebook */
.fb-content { display: flex; flex-direction: column; }
.fb-header {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.fb-logo {
  font-size: 18px; font-weight: 700;
  color: #1877F2;
}
.fb-post-header {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
}
.fb-reactions {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  font-size: 10px; color: rgba(255,255,255,0.4);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.fb-react-icons { font-size: 12px; }
.fb-react-count { font-family: 'JetBrains Mono', monospace; }
.fb-action-bar {
  display: flex; justify-content: space-around;
  padding: 8px 14px;
  font-size: 11px; color: rgba(255,255,255,0.5);
}

/* TV frame (CTV + Prime Video) */
.tv-frame {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tv-screen {
  width: 100%;
  background: #0a0f16;
  border: 3px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.tv-progress {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.08);
}
.tv-progress-fill {
  height: 100%;
  width: 30%;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  border-radius: 2px;
}
.tv-controls {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 16px;
  font-size: 14px; color: rgba(255,255,255,0.4);
  background: rgba(0,0,0,0.6);
}
.tv-play { font-size: 16px; color: rgba(255,255,255,0.7); }
.tv-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; margin-left: auto;
}
.tv-vol { margin-left: 8px; }
.tv-stand {
  width: 80px; height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 0 0 4px 4px;
  margin-top: -1px;
}

/* Prime Video */
.prime-header {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.prime-logo {
  font-size: 13px; font-weight: 700;
  color: #00a8e1;
  font-family: 'Poppins', sans-serif;
}
.prime-nav {
  display: flex; gap: 12px;
  font-size: 10px; color: rgba(255,255,255,0.4);
}
.prime-xray {
  padding: 8px 16px;
  background: rgba(0,0,0,0.7);
  display: flex; align-items: center; gap: 10px;
}
.xray-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; font-weight: 700;
  color: #00a8e1;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.xray-product { display: flex; align-items: center; gap: 8px; }
.xray-thumb {
  width: 36px; height: 36px; border-radius: 4px;
  background: rgba(255,255,255,0.08);
}
.xray-name { font-size: 10px; color: rgba(255,255,255,0.6); display: block; }
.xray-action { font-size: 9px; color: #00a8e1; display: block; }

/* Mockup responsive */
@media (max-width: 600px) {
  .platform-mockup-custom { padding: 16px; min-height: 400px; }
  .phone-frame { width: 240px; border-radius: 28px; }
  .tt-content, .yt-content { min-height: 420px; }
}

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

/* ============================================
   DELIVERABLE — Sample Report (Tab-Switched)
   ============================================ */
.deliverable-section {
  padding: 100px 0;
  position: relative;
  z-index: 2;
}

/* Report Tab Switcher */
.report-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 28px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-sm);
  padding: 4px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.report-tab {
  padding: 10px 24px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s;
  white-space: nowrap;
}
.report-tab.active {
  background: rgba(0,122,255,0.15);
  color: var(--blue);
}
.report-tab:hover:not(.active) {
  color: var(--text);
}

/* Report Panels */
.report-panel {
  display: none;
  animation: reportFadeIn 0.4s ease;
}
.report-panel.active {
  display: block;
}
@keyframes reportFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.report-panel-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.report-panel-intro p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 600px;
}
.btn-sm {
  font-size: 13px;
  padding: 8px 18px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Deliverable Grid */
.deliverable-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.deliverable-grid-full {
  grid-template-columns: 1fr 1fr;
}
.deliverable-card {
  padding: 28px;
}
.deliverable-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}
.card-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ---- Scorecard (Enhanced) ---- */
.scorecard-card {
  grid-column: 1 / -1;
}
.scorecard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.scorecard-table th {
  text-align: left;
  padding: 10px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--glass-border);
}
.scorecard-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: top;
}
.scorecard-table tr:last-child td {
  border-bottom: none;
}
.sc-platform-header {
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  font-size: 13px;
  font-weight: 700;
}
.sc-plat-tiktok {
  background: rgba(255,255,255,0.03);
  border-left: 1px solid rgba(255,255,255,0.08);
  border-right: 1px solid rgba(255,255,255,0.04);
}
.sc-plat-insta {
  border-left: 1px solid rgba(255,255,255,0.04);
}
.sc-col-tiktok {
  background: rgba(255,255,255,0.02);
  border-left: 1px solid rgba(255,255,255,0.06);
}
.sc-col-insta {
  border-left: 1px solid rgba(255,255,255,0.04);
}
/* First insta column gets the left separator */
.sc-col-insta:nth-of-type(odd) {
  border-left: 1px solid rgba(255,255,255,0.06);
}
.sc-platform-icon {
  font-size: 8px;
  margin-right: 4px;
  opacity: 0.5;
}
.sc-sub-header th {
  font-size: 9px;
  color: rgba(255,255,255,0.3);
  text-align: center;
  padding: 6px 12px;
}
.sc-sub-header th:first-child { border: none; }
.sc-metric-col { width: 28%; }
.sc-stage-row td {
  padding: 8px 12px 4px;
  border-bottom: none;
}
.sc-stage-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.sc-stage-upper { color: var(--teal); }
.sc-stage-mid { color: var(--pink); }
.sc-stage-lower { color: var(--green); }
.score-value {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}
.score-bench {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
  text-align: center;
}
.score-delta {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  text-align: center;
}
.score-delta.above {
  color: var(--green);
}
.score-delta.below {
  color: #ff4444;
}
.sc-legend {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  font-family: 'JetBrains Mono', monospace;
}
.sc-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}
.sc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sc-dot-green { background: var(--green); }
.sc-dot-red { background: #ff4444; }

/* Scorecard Metric Tooltips */
.sc-tip-wrap {
  position: relative;
  cursor: help;
  border-bottom: 1px dashed rgba(255,255,255,0.2);
  padding-bottom: 1px;
}
.sc-tip {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  width: 280px;
  padding: 12px 14px;
  background: rgba(12,21,32,0.96);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.6;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  pointer-events: none;
  z-index: 20;
}
.sc-tip strong {
  color: var(--text);
  font-weight: 600;
}
.sc-tip-wrap:hover .sc-tip {
  opacity: 1;
  visibility: visible;
}
/* Flip tooltip below for rows near the top */
.sc-stage-upper ~ tr:nth-child(-n+3) .sc-tip {
  bottom: auto;
  top: calc(100% + 8px);
}

/* ---- SSP Scatter Plot ---- */
.ssp-card {
  grid-column: 1 / -1;
}
.ssp-chart {
  position: relative;
}
.ssp-svg {
  width: 100%;
  max-width: 500px;
  height: auto;
  margin: 0 auto;
  display: block;
}
.ssp-dot {
  transition: opacity 0.5s ease, r 0.3s ease;
}
.ssp-dot.visible {
  opacity: 0.85;
}
.ssp-dot.visible:hover {
  r: 9;
  opacity: 1;
}
.ssp-label {
  transition: opacity 0.5s ease 0.3s;
}
.ssp-label.visible {
  opacity: 1;
}
.ssp-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 12px;
  font-size: 11px;
  color: var(--text-muted);
}
.ssp-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ssp-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* ---- Full Funnel Visualization ---- */
.funnel-card {
  grid-column: 1;
}
.funnel-viz {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.funnel-stage {
  display: flex;
  align-items: stretch;
  gap: 12px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
}
.funnel-stage-bar {
  width: 4px;
  flex-shrink: 0;
}
.funnel-awareness .funnel-stage-bar { background: linear-gradient(180deg, var(--teal), var(--blue)); }
.funnel-interest .funnel-stage-bar { background: linear-gradient(180deg, var(--pink), var(--purple)); }
.funnel-desire .funnel-stage-bar { background: linear-gradient(180deg, var(--blue), var(--purple)); }
.funnel-action .funnel-stage-bar { background: linear-gradient(180deg, var(--green), var(--teal)); }
.funnel-stage-content {
  padding: 12px 14px;
  flex: 1;
}
.funnel-stage-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 6px;
}
.funnel-awareness .funnel-stage-label { color: var(--teal); }
.funnel-interest .funnel-stage-label { color: var(--pink); }
.funnel-desire .funnel-stage-label { color: var(--blue); }
.funnel-action .funnel-stage-label { color: var(--green); }
.funnel-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.funnel-metric {
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.03);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.04);
}
.funnel-methods {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  font-size: 10px;
  color: rgba(255,255,255,0.35);
}
.funnel-method {
  display: flex;
  align-items: center;
  gap: 5px;
}
.fm-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---- Creative Diagnostics ---- */
.diagnostics-card {
  grid-column: 2;
  display: flex;
  flex-direction: column;
}
.diag-section {
  margin-bottom: 20px;
}
.diag-section:last-child { margin-bottom: 0; }
.diag-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 10px;
}

/* Emotion Timeline Chart */
.emotion-timeline-chart { position: relative; }
.timeline-svg {
  width: 100%;
  height: 120px;
}
.timeline-area { opacity: 0; animation: fadeArea 1s ease forwards 0.5s; }
@keyframes fadeArea { to { opacity: 0.15; } }
.timeline-line {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawLine 2s ease forwards 0.3s;
}
@keyframes drawLine { to { stroke-dashoffset: 0; } }
.timeline-peak-dot {
  opacity: 0;
  animation: peakPop 0.4s ease forwards 2s;
}
@keyframes peakPop {
  0% { opacity: 0; r: 0; }
  50% { r: 7; }
  100% { opacity: 1; r: 5; }
}
.timeline-labels {
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
}
.timeline-peak-label {
  position: absolute;
  top: 10px;
  left: 38%;
  transform: translateX(-50%);
}
.peak-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--pink);
  background: rgba(255,33,152,0.1);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255,33,152,0.2);
  opacity: 0;
  animation: fadeIn 0.5s ease forwards 2.2s;
}
@keyframes fadeIn { to { opacity: 1; } }

/* Diagnostics Emotion Legend */
.diag-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: center;
  margin-top: 8px;
  font-size: 10px;
  color: var(--text-muted);
}
.diag-legend-group {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.35);
  font-weight: 600;
}
.dl-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 3px;
  vertical-align: middle;
}

/* Key Moments */
.moment-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.moment-item:first-of-type { padding-top: 0; }
.moment-item:last-child { border-bottom: none; padding-bottom: 0; }
.moment-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  background: rgba(0,122,255,0.1);
  padding: 3px 8px;
  border-radius: 5px;
  flex-shrink: 0;
  white-space: nowrap;
}
.moment-item p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Per-Creator Performance Bars */
.creator-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.creator-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.creator-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  width: 72px;
  flex-shrink: 0;
  text-align: right;
}
.creator-bar-track {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.04);
  border-radius: 3px;
  overflow: hidden;
}
.creator-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1s cubic-bezier(.16,1,.3,1);
}
.creator-score {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  width: 32px;
  text-align: right;
}
.creator-bars-legend {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  font-size: 10px;
  color: var(--text-muted);
}
.creator-bars-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Eye-tracking Heatmap Preview */
.heatmap-preview {
  margin-bottom: 12px;
}
.heatmap-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #0a1018 0%, #111b27 100%);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}
.heatmap-base-blue {
  position: absolute;
  inset: 0;
  background: rgba(0,50,180,0.25);
}
.heatmap-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.85;
}
.heatmap-blob-1 {
  width: 130px; height: 130px;
  top: 20%; left: 32%;
  background: radial-gradient(circle,
    rgba(180,0,0,0.95) 0%,
    rgba(255,80,0,0.8) 18%,
    rgba(255,200,0,0.6) 35%,
    rgba(80,200,0,0.35) 52%,
    rgba(0,100,220,0.15) 72%,
    transparent 100%);
}
.heatmap-blob-2 {
  width: 90px; height: 90px;
  top: 35%; left: 55%;
  background: radial-gradient(circle,
    rgba(200,10,0,0.9) 0%,
    rgba(255,120,0,0.7) 20%,
    rgba(255,210,0,0.5) 38%,
    rgba(60,190,0,0.3) 55%,
    rgba(0,80,200,0.12) 75%,
    transparent 100%);
}
.heatmap-blob-3 {
  width: 70px; height: 70px;
  top: 45%; left: 22%;
  background: radial-gradient(circle,
    rgba(255,160,0,0.8) 0%,
    rgba(200,220,0,0.5) 25%,
    rgba(0,180,80,0.3) 50%,
    rgba(0,80,200,0.12) 75%,
    transparent 100%);
}
.heatmap-blob-4 {
  width: 60px; height: 60px;
  top: 15%; left: 60%;
  background: radial-gradient(circle,
    rgba(100,200,0,0.6) 0%,
    rgba(0,150,120,0.3) 40%,
    rgba(0,60,200,0.1) 70%,
    transparent 100%);
}
.heatmap-blob-5 {
  width: 50px; height: 50px;
  top: 55%; left: 45%;
  background: radial-gradient(circle,
    rgba(255,100,0,0.7) 0%,
    rgba(255,200,0,0.45) 25%,
    rgba(0,180,60,0.25) 50%,
    rgba(0,70,200,0.1) 75%,
    transparent 100%);
}
.heatmap-timestamp {
  position: absolute;
  bottom: 8px; left: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  background: rgba(0,0,0,0.5);
  padding: 2px 6px;
  border-radius: 3px;
}
.heatmap-badge {
  position: absolute;
  top: 8px; right: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  font-weight: 600;
  color: var(--amber);
  background: rgba(249,190,0,0.1);
  border: 1px solid rgba(249,190,0,0.2);
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Diagnostic description */
.diag-desc {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  margin-bottom: 10px;
  line-height: 1.4;
}

/* Implicit Association Trait Bars */
.iat-traits {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.iat-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.iat-trait {
  font-size: 11px;
  color: var(--text-muted);
  width: 80px;
  flex-shrink: 0;
  text-align: right;
}
.iat-bar-track {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,0.04);
  border-radius: 3px;
  overflow: hidden;
}
.iat-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
}
.iat-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--teal);
  width: 40px;
  text-align: right;
}

/* Custom Question Tags */
.custom-q-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cq-tag {
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 4px 10px;
  border-radius: 5px;
}

/* Workbench Preview */
.workbench-preview {
  margin-top: 64px;
  text-align: center;
}
.workbench-preview h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.workbench-desc {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 24px;
  line-height: 1.6;
}
.workbench-card {
  padding: 0;
  overflow: hidden;
}

/* Workbench Dashboard Mockup */
.workbench-card {
  padding: 32px !important;
  background: transparent !important;
  border: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.wb-dashboard {
  background: #0d1520;
  border-radius: 12px;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
  text-align: left;
  max-width: 1091px;
  margin: 0 auto;
  transform: perspective(1200px) rotateX(1.5deg);
  box-shadow:
    0 4px 8px rgba(0,0,0,0.2),
    0 16px 40px rgba(0,0,0,0.35),
    0 32px 80px rgba(0,0,0,0.25),
    0 0 0 1px rgba(255,255,255,0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.wb-dashboard:hover {
  transform: perspective(1200px) rotateX(0deg);
  box-shadow:
    0 4px 8px rgba(0,0,0,0.15),
    0 20px 50px rgba(0,0,0,0.3),
    0 40px 100px rgba(0,0,0,0.2),
    0 0 80px rgba(0,122,255,0.08),
    0 0 0 1px rgba(255,255,255,0.08);
}
.wb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: #080d14;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.wb-logo-section {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wb-logo-mark {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
}
.wb-logo-text {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}
.wb-user-section {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: rgba(255,255,255,0.5);
}
.wb-user-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 9px;
  color: #fff;
}
.wb-body {
  display: flex;
  min-height: 280px;
}
.wb-sidebar {
  width: 140px;
  background: #0b1119;
  border-right: 1px solid rgba(255,255,255,0.06);
  padding: 12px 0;
  flex-shrink: 0;
}
.wb-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  cursor: default;
  transition: background 0.2s, color 0.2s;
  position: relative;
}
.wb-nav-item.wb-interactive { cursor: pointer; }
.wb-nav-item.wb-interactive:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.7);
}
.wb-nav-item.active {
  background: rgba(0,122,255,0.15);
  color: #fff;
  border-left: 2px solid var(--blue);
  padding-left: 12px;
}
.wb-nav-icon {
  font-size: 11px;
  width: 14px;
  text-align: center;
}
.wb-main {
  flex: 1;
  padding: 16px 20px;
  background: #080d14;
  min-width: 0;
}
.wb-welcome {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-bottom: 14px;
}
.wb-activities-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 8px;
  flex-wrap: wrap;
}
.wb-activities-title {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 4px;
}
.wb-activities-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.wb-add-btn {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 500;
  font-family: inherit;
  cursor: default;
}
.wb-legend {
  display: flex;
  gap: 8px;
  font-size: 8px;
  color: rgba(255,255,255,0.35);
}
.wb-legend-item {
  display: flex;
  align-items: center;
  gap: 3px;
}
.wb-ldot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}
.wb-ldot-orange { background: #ff6b35; }
.wb-ldot-blue { background: var(--blue); }
.wb-ldot-green { background: var(--green); }
.wb-ldot-red { background: var(--red); }

/* Activity Cards */
.wb-cards {
  display: flex;
  gap: 8px;
}
.wb-card {
  flex: 1;
  min-width: 0;
  background: #0d1520;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.wb-card-status {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  position: absolute;
  top: 12px;
  left: 12px;
}
.wb-status-orange { background: #ff6b35; }
.wb-status-blue { background: var(--blue); }
.wb-card-title {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-bottom: 5px;
  padding-left: 14px;
}
.wb-card-desc {
  font-size: 8px;
  color: rgba(255,255,255,0.38);
  line-height: 1.45;
  flex: 1;
  margin-bottom: 8px;
}
.wb-card-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}
.wb-btn-primary {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 7px;
  font-weight: 500;
  font-family: inherit;
  cursor: default;
}
.wb-btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 7px;
  font-weight: 500;
  font-family: inherit;
  cursor: default;
}
.wb-action-icons {
  display: flex;
  gap: 3px;
  margin-left: auto;
  opacity: 0.25;
}
.wb-action-icons span {
  width: 14px;
  height: 14px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7px;
}

/* Benchmark Mini-Chart */
.wb-benchmark-chart {
  display: flex;
  gap: 8px;
  width: 100%;
}
.wb-bench-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.wb-bench-label {
  font-size: 6px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
}
.wb-bench-bars {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  width: 100%;
  min-height: 60px;
}
.wb-bar {
  flex: 1;
  border-radius: 3px;
  min-width: 0;
}
.wb-bar-base {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.04);
}
.wb-bar-current {
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  box-shadow: 0 4px 12px rgba(0,160,255,0.3);
}
.wb-bench-val {
  font-size: 7px;
  font-weight: 600;
  color: var(--green);
  font-family: 'JetBrains Mono', monospace;
  background: rgba(84,228,43,0.1);
  border: 1px solid rgba(84,228,43,0.2);
  border-radius: 3px;
  padding: 1px 4px;
}

/* Workbench Tooltips */
.wb-interactive { position: relative; }
.wb-tip {
  position: absolute;
  background: #0c1420;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 10px 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 30;
  pointer-events: none;
}
.wb-tip h4 {
  font-size: 9px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-bottom: 3px;
}
.wb-tip p {
  font-size: 8px;
  color: rgba(255,255,255,0.45);
  line-height: 1.45;
}
.wb-interactive:hover .wb-tip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-2px);
}

/* Sidebar tooltip — appears to the right */
.wb-tip-side {
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 6px;
  width: 180px;
}
.wb-interactive:hover .wb-tip-side {
  transform: translateY(-50%) translateX(2px);
}

/* Add-button tooltip — appears above */
.wb-add-wrap {
  display: inline-block;
}
.wb-tip-above {
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 6px;
  width: 190px;
  text-align: center;
}
.wb-interactive:hover .wb-tip-above {
  transform: translateX(-50%) translateY(-2px);
}

/* Activity Card Hover Overlay */
.wb-card-hover {
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.3s;
}
.wb-card-hover:hover {
  border-color: rgba(0,122,255,0.2);
}
.wb-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: opacity 0.3s;
}
.wb-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8,13,20,0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 5;
}
.wb-card-hover:hover .wb-card-inner {
  opacity: 0.2;
}
.wb-card-hover:hover .wb-card-overlay {
  opacity: 1;
  visibility: visible;
}
.wb-btn-lg {
  padding: 8px 16px;
  font-size: 9px;
  border-radius: 5px;
}

/* Workbench Responsive */
@media (max-width: 860px) {
  .wb-dashboard { max-width: 100%; transform: none; }
  .wb-dashboard:hover { transform: none; }
  .wb-sidebar { display: none; }
  .wb-body { min-height: auto; }
  .wb-activities-bar { flex-direction: column; align-items: flex-start; gap: 6px; }
  .wb-tip-side { display: none; }
}
@media (max-width: 600px) {
  .workbench-card { padding: 16px !important; }
  .wb-header { padding: 8px 12px; }
  .wb-main { padding: 12px; }
  .wb-welcome { font-size: 11px; }
  .wb-legend { display: none; }
  .wb-cards { flex-direction: column; gap: 6px; }
  .wb-card-overlay { display: none; }
  .wb-card-hover:hover .wb-card-inner { opacity: 1; }
  .wb-card-hover:hover { border-color: rgba(255,255,255,0.06); }
  .wb-tip { display: none; }
}

@media (max-width: 860px) {
  .deliverable-grid,
  .deliverable-grid-full { grid-template-columns: 1fr; }
  .scorecard-card,
  .ssp-card,
  .funnel-card,
  .diagnostics-card { grid-column: auto; }
  .report-panel-intro { flex-direction: column; align-items: flex-start; }
  .funnel-methods { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .report-tabs { width: 100%; }
  .report-tab { flex: 1; text-align: center; font-size: 13px; padding: 8px 12px; }
  .deliverable-card { padding: 20px; }
  .scorecard-table { font-size: 12px; }
  .scorecard-table th { font-size: 8px; padding: 8px 6px; }
  .scorecard-table td { padding: 8px 6px; }
  .sc-legend { flex-wrap: wrap; gap: 8px; }
  .ssp-svg { max-width: 100%; }
  .creator-name { width: 60px; font-size: 9px; }
}

/* ============================================
   WHY US — Competitor Comparison Table
   ============================================ */
.why-section {
  padding: 100px 0;
}
.comparison-table-card {
  padding: 0;
  overflow: hidden;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.comparison-table thead th {
  padding: 20px 16px;
  border-bottom: 1px solid var(--glass-border);
  vertical-align: middle;
}
.comparison-table .feature-col {
  width: 30%;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.comparison-table .company-col {
  width: 23.33%;
  text-align: center;
}
.comparison-table .table-logo {
  height: 28px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  opacity: 0.7;
  filter: brightness(1.8);
}
.comparison-table .eh-col .table-logo {
  opacity: 1;
  filter: brightness(1);
}
.comparison-table tbody td {
  padding: 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  vertical-align: top;
}
.comparison-table tbody tr:last-child td {
  border-bottom: none;
}
.comparison-table .feature-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}
.comparison-table tbody td:not(.feature-name) {
  text-align: center;
}
.comparison-table .eh-col {
  background: rgba(0,122,255,0.05);
}
.comparison-table thead .eh-col {
  background: rgba(0,122,255,0.08);
}
.status-icon {
  display: block;
  font-size: 20px;
  margin-bottom: 4px;
  line-height: 1;
}
.status-yes {
  color: var(--green);
}
.status-warning {
  color: var(--amber);
}
.status-no {
  color: #ff4444;
}
.status-text {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}
.comparison-table tbody tr {
  transition: background 0.2s ease;
}
.comparison-table tbody tr:hover {
  background: rgba(255,255,255,0.02);
}

@media (max-width: 768px) {
  .comparison-table .feature-col { width: 35%; }
  .comparison-table .company-col { width: 21.67%; }
  .comparison-table thead th { padding: 16px 10px; }
  .comparison-table tbody td { padding: 14px 10px; }
  .comparison-table .table-logo { height: 22px; max-width: 90px; }
  .comparison-table .feature-name { font-size: 13px; }
  .status-text { font-size: 11px; }
}
@media (max-width: 480px) {
  .comparison-table-card { border-radius: 12px; }
  .comparison-table .feature-col { width: 40%; }
  .comparison-table .company-col { width: 20%; }
  .comparison-table thead th { padding: 12px 6px; }
  .comparison-table tbody td { padding: 12px 6px; }
  .comparison-table .table-logo { height: 18px; max-width: 60px; }
  .comparison-table .feature-name { font-size: 12px; }
  .status-icon { font-size: 16px; }
  .status-text { font-size: 10px; }
}

/* ============================================
   RESULTS — Stats & Testimonials (4 cards)
   ============================================ */
.results-section {
  padding: 100px 0;
}
.results-stats {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin-bottom: 64px;
  text-align: center;
}
.result-stat-value,
.result-stat-value-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.result-stat-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* 2x2 testimonial grid */
.testimonials-grid-4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.testimonial-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.testimonial-quote {
  flex: 1;
  margin-bottom: 20px;
}
.testimonial-quote p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  overflow: hidden;
}
.testimonial-avatar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.testimonial-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.testimonial-title {
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .results-stats { gap: 40px; flex-wrap: wrap; }
  .testimonials-grid-4 { grid-template-columns: 1fr; }
}

/* ============================================
   PRICING — Credit Calculator
   ============================================ */
.pricing-section {
  padding: 100px 0;
}
.pricing-subtext {
  text-align: center;
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 48px;
  margin-top: -32px;
}

.pricing-calculator {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto 24px;
}

/* Left — Credit table */
.calc-left h3,
.calc-right h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}
.credit-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}
.credit-table th {
  text-align: left;
  padding: 8px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--glass-border);
}
.credit-table td {
  padding: 10px 12px;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: top;
}
.credit-table td strong {
  display: block;
  margin-bottom: 2px;
}
.credit-desc {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  opacity: 0.7;
}
.credit-val {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
}

.volume-tiers h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-muted);
}
.vol-tier {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-muted);
}
.vol-tier:last-child { border-bottom: none; }
.vol-price {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--text);
}
.vol-discount {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--green);
}
.payment-tiers {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.payment-tiers h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-muted);
}
.payment-tiers .vol-tier {
  grid-template-columns: 1fr auto;
}
.pay-highlight {
  color: var(--green);
}

/* Right — Calculator */
.currency-switch {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
  padding: 3px;
  width: fit-content;
}
.currency-btn {
  padding: 6px 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s;
}
.currency-btn.active {
  background: rgba(0,122,255,0.15);
  color: var(--blue);
}

.calc-slider-group {
  margin-bottom: 16px;
}
.calc-slider-group label {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.slider-val {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--text);
}
.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  outline: none;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: var(--blue);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0,122,255,0.4);
}
.calc-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--blue);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 10px rgba(0,122,255,0.4);
}

.calc-select-group {
  margin-bottom: 24px;
}
.calc-select-group label {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.calc-select {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  cursor: pointer;
}
.calc-select option {
  background: var(--bg-surface);
}

.calc-results {
  border-top: 1px solid var(--glass-border);
  padding-top: 16px;
  margin-bottom: 20px;
}
.calc-result-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.calc-result-row:last-child { border-bottom: none; }
.calc-result-val {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: var(--text);
}
.calc-result-total {
  font-size: 16px;
  font-weight: 700;
  padding-top: 12px;
}
.calc-result-total .calc-result-val {
  font-size: 20px;
  color: var(--green);
}
.calc-cta {
  width: 100%;
  justify-content: center;
}

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

/* ============================================
   FINAL CTA
   ============================================ */
.final-cta-section {
  padding: 120px 0 100px;
  text-align: center;
}
.final-cta-section h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.final-cta-section p {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.final-cta-sub {
  font-size: 14px !important;
  color: var(--text-muted) !important;
  margin-top: 24px !important;
}

/* ============================================
   FULL-FUNNEL — Scroll-Driven Visualization
   ============================================ */
.fn-scroller {
  height: 350vh;
  position: relative;
}
.fn-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.fn-sticky > .container {
  width: 100%;
}

.fn-header {
  text-align: center;
  margin-bottom: 48px;
}

/* Two-column split */
.fn-split {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: start;
}

/* ---------- Left: Funnel Shape ---------- */
.fn-funnel {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: center;
  position: relative;
  padding-top: 8px;
}

/* Stage colors */
.fn-stage { --stage-color: var(--blue); --stage-color-rgb: 0,122,255; }
.fn-stage[data-stage="0"] { --stage-color: var(--green); --stage-color-rgb: 84,228,43; }
.fn-stage[data-stage="1"] { --stage-color: var(--pink); --stage-color-rgb: 255,33,152; }
.fn-stage[data-stage="2"] { --stage-color: var(--teal); --stage-color-rgb: 16,168,183; }
.fn-stage[data-stage="3"] { --stage-color: var(--green); --stage-color-rgb: 84,228,43; }

.fn-stage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-left: 3px solid rgba(255,255,255,0.06);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
  position: relative;
}
/* Shapes: trapezoid tapering via border-radius */
.fn-stage[data-stage="0"] {
  width: 100%;
  border-radius: 12px 12px 4px 4px;
}
.fn-stage[data-stage="1"] {
  width: 88%;
  border-radius: 4px;
}
.fn-stage[data-stage="2"] {
  width: 74%;
  border-radius: 4px;
}
.fn-stage[data-stage="3"] {
  width: 58%;
  border-radius: 4px 4px 12px 12px;
}

/* Connector lines between stages */
.fn-stage::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 9px;
  background: rgba(255,255,255,0.06);
  transition: background 0.5s;
  z-index: 1;
}
.fn-stage:last-of-type::after {
  display: none;
}

/* Active state — dramatic glow */
.fn-stage.active {
  background: rgba(var(--stage-color-rgb), 0.10);
  border-color: rgba(var(--stage-color-rgb), 0.25);
  border-left: 3px solid var(--stage-color);
  box-shadow:
    0 0 24px rgba(var(--stage-color-rgb), 0.12),
    inset 0 0 20px rgba(var(--stage-color-rgb), 0.04);
}
.fn-stage.active::after {
  background: rgba(var(--stage-color-rgb), 0.3);
}

/* Done state */
.fn-stage.done {
  background: rgba(var(--stage-color-rgb), 0.04);
  border-color: rgba(var(--stage-color-rgb), 0.10);
  border-left: 3px solid rgba(var(--stage-color-rgb), 0.3);
}
.fn-stage.done::after {
  background: rgba(var(--stage-color-rgb), 0.15);
}

.fn-stage-name {
  font-weight: 600;
  font-size: 15px;
  color: rgba(255,255,255,0.35);
  transition: all 0.5s;
}
.fn-stage.active .fn-stage-name {
  color: var(--text);
  text-shadow: 0 0 20px rgba(var(--stage-color-rgb), 0.4);
}
.fn-stage.done .fn-stage-name {
  color: rgba(255,255,255,0.5);
}

.fn-stage-pos {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.15);
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.02);
  transition: all 0.5s;
}
.fn-stage.active .fn-stage-pos {
  color: var(--stage-color);
  background: rgba(var(--stage-color-rgb), 0.08);
}
.fn-stage.done .fn-stage-pos {
  color: rgba(255,255,255,0.3);
}

/* Legend below funnel */
.fn-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
  margin-top: 28px;
  width: 100%;
  padding: 16px 20px;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.04);
}
.fn-leg {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
}
.fn-leg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px currentColor;
}
.fn-c-attention { --mc: var(--amber); }
.fn-c-emotion   { --mc: var(--pink); }
.fn-c-memory    { --mc: var(--teal); }
.fn-c-uplift    { --mc: var(--green); }
.fn-leg-dot { background: var(--mc); color: var(--mc); }

/* ---------- Right: Metric Content ---------- */
.fn-content {
  position: relative;
  min-height: 380px;
}
.fn-panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fn-panel.active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.fn-panel h3 {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 10px;
  background: linear-gradient(135deg, var(--text) 0%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.fn-panel > p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 32px;
  max-width: 540px;
}

/* Metric cards */
.fn-metrics {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fn-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.05);
  border-left: 3px solid var(--mc);
  border-radius: 10px;
  transition: all 0.3s ease;
}
.fn-metric:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
  border-left-color: var(--mc);
  transform: translateX(4px);
}
.fn-metric-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}
.fn-metric-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .fn-split {
    grid-template-columns: 240px 1fr;
    gap: 36px;
  }
}
@media (max-width: 768px) {
  .fn-scroller {
    height: auto;
    padding: 80px 0;
  }
  .fn-sticky {
    position: relative;
    height: auto;
  }
  .fn-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .fn-funnel {
    align-items: stretch;
  }
  .fn-stage {
    width: 100% !important;
  }
  .fn-stage::after {
    display: none;
  }
  /* On mobile, show all panels stacked */
  .fn-content {
    min-height: auto;
  }
  .fn-panel {
    position: relative !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    margin-bottom: 32px;
  }
  .fn-panel:last-child {
    margin-bottom: 0;
  }
  .fn-legend {
    margin-top: 16px;
    margin-bottom: 8px;
  }
}

/* ============================================
   CAMPAIGN LIFECYCLE — Scroll-Driven Use-Cases
   ============================================ */
.lc-scroller {
  height: 300vh;
  position: relative;
}
.lc-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.lc-sticky > .container {
  width: 100%;
}

/* Dots — no connecting lines */
.lc-dots {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 40px;
  margin-bottom: 32px;
}
.lc-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.lc-dot-pip {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  background: transparent;
  transition: all 0.4s ease;
}
.lc-dot.active .lc-dot-pip {
  border-color: var(--teal);
  background: linear-gradient(135deg, var(--blue), var(--teal));
  box-shadow: 0 0 14px rgba(16, 168, 183, 0.5);
}
.lc-dot.done .lc-dot-pip {
  border-color: rgba(16, 168, 183, 0.4);
  background: rgba(16, 168, 183, 0.25);
}
.lc-dot-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.3s;
}
.lc-dot.active .lc-dot-label {
  color: var(--text);
}

/* Panels — stacked, crossfade */
.lc-panels {
  position: relative;
  min-height: 280px;
}
.lc-panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 40px;
}
.lc-panel.active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.lc-panel h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
}
.lc-panel > p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 24px;
  max-width: 600px;
}

.lc-actions {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lc-actions li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}
.lc-actions li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
  font-size: 15px;
}

.lc-best-for {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px !important;
  color: var(--text-muted) !important;
  padding-top: 16px;
  border-top: 1px solid var(--glass-border);
  margin: 0 !important;
}

@media (max-width: 600px) {
  .lc-dots {
    gap: 32px;
  }
  .lc-dot-label {
    font-size: 10px;
  }
  .lc-panel {
    padding: 28px 20px;
  }
  .lc-panel h3 {
    font-size: 20px;
  }
}

/* ============================================
   FOOTER (overrides for measurement)
   ============================================ */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
