/* PepsiCo microsite v3 — horizontal scroll paired, pain callouts, pepsico splash */

body { background: var(--bg); color: var(--text); overflow-x: hidden; }
html, body { max-width: 100vw; }

/* ==================== STICKY NAV ==================== */
.micro-nav {
  position: fixed; top: 0; left: 0; right: 0;
  padding: 14px 0;
  background: rgba(250, 251, 252, 0.82);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  z-index: 80;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s;
}
.micro-nav.is-scrolled { border-bottom-color: var(--border-soft); }
.micro-nav--on-dark {
  background: rgba(20, 20, 20, 0.78);
  border-bottom-color: rgba(255,255,255,0.08);
}
.micro-nav__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.micro-nav__back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--text-muted); font-weight: 500;
  padding: 7px 14px 7px 10px;
  border-radius: var(--radius-pill);
  transition: background 0.2s, color 0.2s;
}
.micro-nav__back:hover { background: white; box-shadow: var(--shadow-sm); color: var(--enmovil-ink); }
.micro-nav--on-dark .micro-nav__back { color: rgba(255,255,255,0.65); }
.micro-nav--on-dark .micro-nav__back:hover { background: rgba(255,255,255,0.1); color: white; }
.micro-nav__meta { font-size: 0.75rem; color: var(--text-muted); letter-spacing: 0.02em; display: inline-flex; align-items: center; gap: 6px; }
.micro-nav--on-dark .micro-nav__meta { color: rgba(255,255,255,0.55); }
.micro-nav__pepsi { height: 22px; width: auto; filter: saturate(1.1); }
.brand-mark { height: 28px; }

/* ==================== SHARED ==================== */
.sec { padding: 120px 0; position: relative; overflow: hidden; }
@media (max-width: 1024px) { .sec { padding: 90px 0; } }
@media (max-width: 768px) { .sec { padding: 72px 0; } }

.sec__eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--enmovil-blue);
  margin-bottom: 24px;
}
.sec__eyebrow::before { content: ''; width: 32px; height: 2px; background: currentColor; border-radius: 2px; }

.sec__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.06;
  max-width: 24ch;
  overflow-wrap: break-word;
}
.sec__sub {
  margin-top: 18px;
  font-size: clamp(0.96rem, 1.15vw, 1.08rem);
  color: var(--text-muted);
  max-width: 56ch;
  line-height: 1.6;
  overflow-wrap: break-word;
}

/* ==================== OPENING (pinned) ==================== */
.opening {
  min-height: 100vh;
  padding: 0;
  background: var(--bg);
  position: relative;
}
.opening__pin {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 1023px) {
  .opening { min-height: auto; }
  .opening__pin { min-height: auto; overflow: visible; padding: 100px 0 60px; }
}
.opening__context {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 40px;
}
.opening__context-line {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  font-weight: 500;
}
.opening__context-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--enmovil-green);
  box-shadow: 0 0 0 4px rgba(89, 192, 152, 0.18);
}
.opening__pepsi {
  height: clamp(160px, 22vw, 260px);
  width: auto;
  display: block;
  filter: saturate(1.1);
}
@media (max-width: 768px) {
  .opening__pepsi { height: clamp(120px, 30vw, 180px); }
}

.opening__date-row {
  display: flex; align-items: baseline;
  flex-wrap: wrap; gap: 0.12em;
}
.opening__date {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 13vw, 11rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  color: var(--enmovil-ink);
  line-height: 0.9;
}
.opening__date-green { color: var(--enmovil-green); }
.opening__date-pepsi { color: var(--pepsico-blue); }

.opening__tagline {
  margin-top: 32px;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.9vw, 1.75rem);
  font-weight: 600;
  max-width: 40ch;
  color: var(--text-muted);
  line-height: 1.35;
  letter-spacing: -0.015em;
  overflow-wrap: break-word;
}
.opening__tagline strong { color: var(--enmovil-ink); font-weight: 700; }
.opening__tagline .hl-blue { color: var(--pepsico-blue); }

.opening__source {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  max-width: 48ch;
}
.opening__source a { color: var(--pepsico-blue); text-decoration: underline; text-underline-offset: 3px; }
.opening__wave {
  position: absolute; right: -10%; top: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle at 50% 50%,
    rgba(89, 192, 152, 0.1) 0%,
    rgba(0, 75, 147, 0.06) 40%,
    transparent 65%);
  pointer-events: none;
  animation: drift 20s ease-in-out infinite alternate;
}
@keyframes drift { 0% { transform: translate(0, 0); } 100% { transform: translate(-40px, 30px); } }

/* ==================== INSIGHTS container ==================== */
.insights {
  background: var(--enmovil-ink);
  color: white;
  padding-top: 120px;
}
.insights__head { max-width: 780px; padding-bottom: 80px; }

/* ==================== HORIZONTAL-SCROLL BLOCK ==================== */
/* Desktop (>=1024): pinned section, two slides side-by-side on a 200vw track,
   with a frozen stats bar at top that stays visible throughout the horizontal scroll */
.block {
  position: relative;
  height: 100vh;
  min-height: 760px;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
}
.block:first-of-type { border-top: none; }

/* Stats bar — pinned inside the block, persists during horizontal scroll.
   padding-top clears the fixed nav (~56px) so content isn't hidden during pin */
.block__stats {
  flex-shrink: 0;
  padding: 76px 0 22px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(227,41,52,0.04) 0%, transparent 100%);
  position: relative;
  z-index: 2;
}
.block__stats-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  align-items: start;
}
.block__stats-label {
  grid-column: 1 / -1;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.42);
  margin-bottom: -8px;
}
.block__stats-label::before {
  content: ''; width: 20px; height: 1px; background: currentColor;
}
.stat-chip {
  display: flex; gap: 14px; align-items: baseline;
}
.stat-chip__num {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--pepsico-red-bright);
  white-space: nowrap;
}
.stat-chip--positive .stat-chip__num { color: var(--enmovil-green); }
.stat-chip__num-unit { font-size: 0.45em; color: rgba(255,255,255,0.65); font-weight: 700; margin-left: 0.1em; }
.stat-chip__body { flex: 1; min-width: 0; }
.stat-chip__label {
  font-size: 0.82rem;
  color: white;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.stat-chip__sub {
  margin-top: 2px;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.4;
}
@media (max-width: 1023px) {
  /* No pin on tablet — don't need 76px nav clearance. Scrolls normally. */
  .block__stats { padding: 28px 0 20px; border-top: 1px solid rgba(255,255,255,0.08); }
  .block__stats-inner { gap: 18px; }
}

/* Track wrapper fills remaining space */
.block__track-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.block__track {
  display: flex;
  height: 100%;
  width: 200%;
  will-change: transform;
}
.block__slide {
  width: 50%;
  flex-shrink: 0;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 60px 0 60px;
  position: relative;
}
.block__slide > .container {
  width: 100%;
  max-width: 1280px;
}

/* Observation slide inner grid */
.block__obs {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}
.block--reverse .block__obs { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
.block--reverse .block__obs-text { order: 2; }
.block--reverse .block__obs-viz { order: 1; }

/* Responsive: stack vertically on <1024, disable horizontal scroll via JS */
@media (max-width: 1023px) {
  .block { height: auto; min-height: 0; padding: 20px 0 60px; border-top: 1px solid rgba(255,255,255,0.08); overflow: visible; display: block; }
  .block__track-wrap { overflow: visible; }
  .block__track { display: block; width: 100%; height: auto; transform: none !important; }
  .block__slide { display: block; width: 100%; padding: 40px 0 0; height: auto; }
  .block__slide + .block__slide { margin-top: 32px; }
  .block__obs { grid-template-columns: 1fr; gap: 40px; }
  .block--reverse .block__obs { grid-template-columns: 1fr; }
  .block--reverse .block__obs-text, .block--reverse .block__obs-viz { order: unset; }
}

.block__count {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--enmovil-green);
  font-weight: 700;
  margin-bottom: 20px;
}
.block__count::before { content: ''; width: 40px; height: 2px; background: var(--enmovil-green); }
.block__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.35rem);
  font-weight: 800;
  color: white;
  letter-spacing: -0.025em;
  line-height: 1.08;
  max-width: 22ch;
  overflow-wrap: break-word;
}
.block__body {
  margin-top: 20px;
  font-size: 0.96rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
  max-width: 46ch;
  overflow-wrap: break-word;
}
.block__body strong { color: white; font-weight: 600; }
.block__body .hl-red { color: var(--pepsico-red-bright); font-weight: 600; }
.block__source {
  margin-top: 20px;
  padding: 12px 14px;
  background: rgba(89, 192, 152, 0.08);
  border-left: 2px solid var(--enmovil-green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.62);
  max-width: 58ch;
  line-height: 1.65;
  overflow-wrap: break-word;
}
.block__source strong { color: var(--enmovil-green); font-family: var(--font-body); font-weight: 700; }

/* Viz container */
.block__obs-viz {
  position: relative;
  min-height: 380px;
  padding: 30px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-card);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
@media (max-width: 768px) { .block__obs-viz { min-height: 300px; padding: 24px; } }
.viz-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  position: absolute; top: 22px; left: 30px;
}
.viz-pulse {
  position: absolute; top: 22px; right: 30px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.66rem; color: var(--enmovil-green);
}
.viz-pulse::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--enmovil-green);
  box-shadow: 0 0 0 4px rgba(89,192,152,0.2);
  animation: pulse 1.4s ease-in-out infinite;
}
@media (max-width: 768px) {
  .viz-label { left: 22px; top: 18px; }
  .viz-pulse { right: 22px; top: 18px; }
}

/* ---- Viz A: Route merge ---- */
.viz-routes { width: 100%; padding-top: 36px; }
.viz-routes svg { width: 100%; height: auto; max-height: 280px; }
.viz-routes .node { fill: rgba(255,255,255,0.85); }
.viz-routes .node--hub { fill: var(--enmovil-green); }
.viz-routes .path--a { stroke: #FF6B9D; stroke-width: 2; fill: none; opacity: 0; }
.viz-routes .path--b { stroke: #4ECDC4; stroke-width: 2; fill: none; opacity: 0; }
.viz-routes .path--merged { stroke: url(#routeMergedG); stroke-width: 3; fill: none; opacity: 0; }
.viz-routes-legend {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-top: 18px; font-size: 0.74rem;
}
.viz-routes-legend__item { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.72); }
.viz-routes-legend__sw { width: 20px; height: 2px; border-radius: 2px; }
.viz-routes-legend__sw--a { background: #FF6B9D; }
.viz-routes-legend__sw--b { background: #4ECDC4; }
.viz-routes-legend__sw--merged { background: linear-gradient(90deg, #FF6B9D, #4ECDC4); height: 3px; }

/* ---- Viz B: Counter ---- */
.viz-counter { width: 100%; text-align: center; padding: 36px 0 10px; }
.viz-counter__big {
  font-family: var(--font-display);
  font-size: clamp(3.75rem, 8vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: white;
  display: inline-flex; align-items: baseline; gap: 0.02em;
}
.viz-counter__big span[data-num] {
  display: inline-block;
  min-width: 1.1em; text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--enmovil-green);
}
.viz-counter__dollar { color: var(--enmovil-green); font-weight: 800; }
.viz-counter__unit { font-size: 0.38em; color: rgba(255,255,255,0.72); font-weight: 700; vertical-align: top; }
.viz-counter__years {
  margin-top: 22px;
  display: inline-flex; gap: 10px;
  padding: 9px 14px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap; justify-content: center;
}
.viz-counter__years span { transition: color 0.4s, font-weight 0.4s, opacity 0.4s; opacity: 0.4; }
.viz-counter__years span.is-on { color: var(--enmovil-green); opacity: 1; font-weight: 700; }
.viz-counter__closures {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  text-align: left;
}
.closure-chip {
  padding: 10px 12px;
  background: var(--pepsico-red-soft);
  border: 1px solid rgba(227, 41, 52, 0.3);
  border-radius: 10px;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.3;
}
.closure-chip strong { display: block; color: var(--pepsico-red-bright); font-weight: 700; margin-bottom: 2px; font-size: 0.72rem; letter-spacing: 0.01em; }

/* ---- Viz C: Stack grid redesign ---- */
.viz-stack { width: 100%; padding-top: 36px; display: flex; flex-direction: column; gap: 18px; }
.viz-stack__group {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 16px 16px 18px;
  position: relative;
}
.viz-stack__group-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.viz-stack__group-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.64rem; font-weight: 700;
  letter-spacing: 0.06em;
}
.viz-stack__group-tag--ok { background: rgba(89,192,152,0.15); color: var(--enmovil-green); border: 1px solid rgba(89,192,152,0.3); }
.viz-stack__group-tag--gap { background: var(--pepsico-red-soft); color: var(--pepsico-red-bright); border: 1px solid rgba(227,41,52,0.35); }
.viz-stack__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media (max-width: 640px) { .viz-stack__row { grid-template-columns: repeat(3, 1fr); } }
.viz-stack__cell {
  padding: 12px 8px;
  text-align: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  min-height: 76px;
}
.viz-stack__cell-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 0.82rem; letter-spacing: -0.01em; color: white;
}
.viz-stack__cell-role { margin-top: 2px; font-size: 0.6rem; color: rgba(255,255,255,0.5); line-height: 1.3; }
.viz-stack__cell--gap {
  background: linear-gradient(135deg, var(--enmovil-green), var(--enmovil-blue));
  border-color: var(--enmovil-green);
  box-shadow: 0 10px 30px -10px rgba(89, 192, 152, 0.45);
  min-height: 96px;
}
.viz-stack__cell--gap .viz-stack__cell-name { font-size: 1rem; }
.viz-stack__cell--gap .viz-stack__cell-role { color: rgba(255,255,255,0.95); font-size: 0.7rem; margin-top: 4px; }
.viz-stack__gap-block {
  padding: 14px 16px;
  display: flex; flex-direction: row; align-items: center; gap: 18px;
  flex-wrap: wrap;
}
.viz-stack__gap-annotation {
  flex: 1; min-width: 200px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
}
.viz-stack__gap-annotation strong { color: var(--pepsico-red-bright); font-weight: 700; }
.viz-stack__gap-annotation em {
  font-style: normal; color: var(--enmovil-green); font-weight: 600;
}
.viz-stack__gap-pill {
  flex: 0 0 auto;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--enmovil-green), var(--enmovil-blue));
  color: white;
  font-family: var(--font-display); font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  box-shadow: 0 8px 24px -8px rgba(89, 192, 152, 0.45);
}

/* ==================== POV slide ==================== */
.block__pov-slide { background: linear-gradient(135deg, #1a1a1a 0%, #111 100%); }
.block__pov-inner {
  padding: 60px;
  background: linear-gradient(135deg, rgba(89,192,152,0.12), rgba(32,116,155,0.08));
  border: 1px solid rgba(89,192,152,0.25);
  border-radius: var(--radius-card);
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 900px) {
  .block__pov-inner { grid-template-columns: 0.4fr 0.6fr; gap: 64px; align-items: center; }
}
@media (max-width: 768px) { .block__pov-inner { padding: 32px 28px; gap: 28px; } }

.block__pov-label {
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--enmovil-green);
  font-weight: 700;
}
.block__pov-label-big {
  display: block; margin-top: 10px;
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 800; letter-spacing: -0.03em;
  color: white; line-height: 1;
  font-family: var(--font-display);
  overflow-wrap: break-word;
}
.block__pov-label-big em { font-style: normal; color: var(--enmovil-green); }
.block__pov-content h4 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  font-weight: 700;
  color: white;
  letter-spacing: -0.015em;
  line-height: 1.28;
  overflow-wrap: break-word;
}
.block__pov-content p {
  margin-top: 14px;
  color: rgba(255,255,255,0.72);
  font-size: 0.95rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}
.block__pov-content p strong { color: white; font-weight: 600; }

/* ==================== Magnetic BOTTOM BAR ==================== */
/* Sibling to the stats bar at top — both magnetic to block edges during pinned horizontal scroll */
.block__bottom {
  flex-shrink: 0;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(0deg, rgba(89,192,152,0.04) 0%, transparent 100%);
  position: relative;
  z-index: 2;
}
.block__bottom-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
}
.block__bottom-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-weight: 600;
}
.block__bottom-hint {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
}
.block__progress {
  display: flex; gap: 6px;
}
.block__progress-dot {
  width: 32px; height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  transition: background 0.3s, width 0.3s;
}
.block__progress-dot.is-on { background: var(--enmovil-green); width: 44px; }
@media (max-width: 1023px) {
  .block__bottom { display: none; }
}

/* (scream stats now live inside each block as persistent bars) */

/* ==================== PEER PROOF ==================== */
.peer {
  background: linear-gradient(135deg, var(--enmovil-blue-deep) 0%, #081828 100%);
  color: white;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.peer::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(89,192,152,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 90%, rgba(32,116,155,0.3) 0%, transparent 55%);
  pointer-events: none;
}
.peer__inner { position: relative; z-index: 1; }
.peer__head { max-width: 720px; margin-bottom: 50px; }
.peer__card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding: 40px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-card);
  backdrop-filter: blur(14px);
}
@media (min-width: 900px) { .peer__card { grid-template-columns: 0.75fr 1.25fr; align-items: center; } }
@media (max-width: 768px) { .peer__card { padding: 28px 24px; } }
.peer__metric { text-align: center; }
.peer__metric-num {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8.5vw, 7.5rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.9;
  color: var(--enmovil-green);
}
.peer__metric-unit { font-size: 0.42em; color: rgba(255,255,255,0.65); }
.peer__metric-label {
  margin-top: 14px; font-size: 0.93rem; color: rgba(255,255,255,0.68);
  max-width: 22ch; margin-left: auto; margin-right: auto; line-height: 1.5;
}
.peer__body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.7vw, 1.55rem);
  font-weight: 700; letter-spacing: -0.015em;
  line-height: 1.3; margin-bottom: 16px; color: white;
  overflow-wrap: break-word;
}
.peer__mods { display: flex; flex-wrap: wrap; gap: 8px; }
.peer__mod {
  padding: 6px 12px;
  background: rgba(89, 192, 152, 0.12);
  border: 1px solid rgba(89, 192, 152, 0.3);
  border-radius: var(--radius-pill);
  font-size: 0.74rem; color: rgba(255,255,255,0.88); font-weight: 500;
}
.peer__footnote {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255,255,255,0.12);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

/* Secondary supporting metric under the hero number */
.peer__metric-sub {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255,255,255,0.14);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  max-width: 28ch;
  margin-left: auto; margin-right: auto;
  letter-spacing: 0.02em;
}
.peer__metric-sub strong {
  color: var(--enmovil-green); font-weight: 700;
}

/* Pull quote from anonymised customer call (Enmovil Read AI record) */
.peer__quote {
  margin-top: 22px;
  padding: 16px 20px 16px 22px;
  background: rgba(89, 192, 152, 0.08);
  border-left: 3px solid var(--enmovil-green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-display);
  font-size: clamp(0.92rem, 1.1vw, 1.08rem);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.45;
  color: white;
  font-style: italic;
  position: relative;
}
.peer__quote::before {
  content: '"';
  position: absolute;
  top: -4px; left: 10px;
  font-size: 2.4rem; line-height: 1;
  font-family: var(--font-display);
  color: var(--enmovil-green);
  opacity: 0.55;
  font-style: normal;
}
.peer__quote-attr {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-weight: 500; font-style: normal;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}

/* Challenge / solution micro-narrative above the metric */
.peer__narrative {
  margin-bottom: 18px;
  font-size: 0.86rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
}
.peer__narrative-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--enmovil-green);
  font-weight: 700;
  margin-right: 6px;
}

/* ==================== FOOTER ==================== */
.micro-footer {
  padding: 40px 0;
  background: var(--enmovil-ink);
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem;
}
.micro-footer__inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
}

/* ==================== FLOATING WIDGET (FAB) ==================== */
.fab {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 90;
  max-width: 380px;
  width: calc(100vw - 48px);
  transition: transform 0.35s var(--ease-out), opacity 0.3s;
  transform-origin: bottom right;
  opacity: 0;
  pointer-events: none;
}
.fab.is-visible { opacity: 1; pointer-events: auto; }
.fab__frame {
  background: white;
  border-radius: 22px;
  box-shadow:
    0 40px 100px -30px rgba(0,0,0,0.55),
    0 12px 30px -15px rgba(0,0,0,0.3),
    0 0 0 1px rgba(0,0,0,0.04);
  overflow: hidden;
  display: flex; flex-direction: column;
  max-height: calc(100vh - 120px);
}
.fab__header {
  padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(180deg, #FFFFFF, #F7F9FB);
  border-bottom: 1px solid var(--border-soft);
  cursor: pointer;
  flex-shrink: 0;
}
.fab__avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--enmovil-green), var(--enmovil-blue));
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-family: var(--font-display); font-size: 0.82rem;
  flex-shrink: 0;
  box-shadow: 0 4px 10px -2px rgba(89,192,152,0.4);
}
.fab__title-wrap { flex: 1; min-width: 0; }
.fab__title { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; letter-spacing: -0.01em; }
.fab__subtitle { font-size: 0.7rem; color: var(--text-muted); margin-top: 1px; }
.fab__pulse {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.66rem; color: var(--enmovil-green); font-weight: 600;
  padding: 3px 9px 3px 7px;
  background: var(--enmovil-green-soft);
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}
.fab__pulse::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--enmovil-green);
  animation: pulse 1.4s ease-in-out infinite;
}
.fab__toggle {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.fab__toggle:hover { background: var(--border-soft); color: var(--enmovil-ink); }
.fab__toggle svg { width: 14px; height: 14px; transition: transform 0.3s; }
.fab__body { overflow: hidden; transition: max-height 0.4s var(--ease-out); }
.fab__messages {
  padding: 18px 16px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 12px;
  -webkit-overflow-scrolling: touch;
  max-height: 360px;
  min-height: 240px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.15) transparent;
}
.fab__messages::-webkit-scrollbar { width: 6px; }
.fab__messages::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 3px; }
.fab__messages::-webkit-scrollbar-track { background: transparent; }
.fab__messages .msg {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.5;
  max-width: 88%;
  opacity: 0;
  transform: translateY(8px);
}
.fab__messages .msg--ai {
  background: var(--border-soft);
  color: var(--enmovil-ink);
  align-self: flex-start;
  border-bottom-left-radius: 5px;
}
.fab__messages .msg--user {
  background: var(--enmovil-ink);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 5px;
  font-weight: 500;
}
.fab__messages .msg-typing {
  display: inline-flex; gap: 5px;
  padding: 12px 16px;
  background: var(--border-soft);
  align-self: flex-start;
  border-radius: 16px; border-bottom-left-radius: 5px;
  opacity: 0;
}
.fab__messages .msg-typing span {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--text-muted);
  animation: bounce 1.2s ease-in-out infinite;
}
.fab__messages .msg-typing span:nth-child(2) { animation-delay: 0.15s; }
.fab__messages .msg-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.3; }
  30% { transform: translateY(-4px); opacity: 1; }
}
.fab__input {
  padding: 12px 14px 14px;
  border-top: 1px solid var(--border-soft);
  display: flex; flex-direction: column; gap: 10px;
  background: #FAFBFC;
  flex-shrink: 0;
}
.fab__input-row {
  display: flex; align-items: center; gap: 8px;
}
.fab__input-box {
  flex: 1;
  height: 36px; padding: 0 12px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; align-items: center;
  font-size: 0.82rem;
  color: var(--text-soft);
}
.fab__send {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--enmovil-ink);
  color: white;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}
.fab__send:hover { background: var(--enmovil-green); }

/* Hold-to-Talk button — modelled after voice-gating pattern */
.fab__hold {
  width: 100%;
  height: 42px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--enmovil-green) 0%, var(--enmovil-blue) 100%);
  color: white;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  transition: transform 0.12s ease, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 6px 16px -6px rgba(89, 192, 152, 0.5);
}
.fab__hold:hover { box-shadow: 0 8px 22px -6px rgba(89, 192, 152, 0.65); }
.fab__hold:active,
.fab__hold.is-pressed {
  transform: scale(0.97);
  background: linear-gradient(135deg, #E32934 0%, #B01E28 100%);
  box-shadow: 0 4px 16px -4px rgba(227, 41, 52, 0.55);
}
.fab__hold-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: white;
  opacity: 0.8;
}
.fab__hold.is-pressed .fab__hold-dot {
  animation: holdPulse 0.9s ease-in-out infinite;
}
@keyframes holdPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.2); }
}
.fab__hold-label-default { display: inline; }
.fab__hold-label-listening { display: none; }
.fab__hold.is-pressed .fab__hold-label-default { display: none; }
.fab__hold.is-pressed .fab__hold-label-listening { display: inline; }
.fab--collapsed .fab__frame { border-radius: var(--radius-pill); max-height: 64px; }
.fab--collapsed .fab__header { border-bottom: none; }
.fab--collapsed .fab__body { max-height: 0; height: 0; overflow: hidden; }
.fab--collapsed .fab__toggle svg { transform: rotate(180deg); }
@media (max-width: 768px) {
  .fab { right: 16px; bottom: 16px; max-width: calc(100vw - 32px); }
  .fab__messages { padding: 14px 12px; }
  .fab__frame { max-height: calc(100vh - 90px); }
}

/* ==================== TOUCH DEVICES ==================== */
/* iPad keeps the full magnetic header + horizontal scroll. Pinned content has to
   fit in ~834px (landscape) / ~1024px (portrait) minus nav + stats + bottom bar,
   so we pack tighter: top-align content, reduce padding, shrink viz. */
body.is-touch .opening { min-height: auto; }
body.is-touch .opening__pin { min-height: auto; overflow: visible; padding: 100px 0 60px; }

/* Top-align slide content so the observation label + title are never clipped.
   Reduced padding so the source block at the bottom stays visible. */
body.is-touch .block__slide {
  align-items: flex-start;
  padding: 18px 0 28px;
}
/* Tighter nav clearance on touch (nav is 56px; 64px is ample).
   z-index 3 ensures the magnetic header sits above the sliding track on iPad Safari. */
body.is-touch .block__stats {
  padding: 64px 0 14px;
  position: relative;
  z-index: 3;
  background: var(--enmovil-ink);
}
body.is-touch .block__stats-inner { gap: 14px; }
body.is-touch .block__stats-label { margin-bottom: -4px; font-size: 0.6rem; }
body.is-touch .stat-chip__num { font-size: clamp(1.2rem, 2vw, 1.6rem); }
body.is-touch .stat-chip__label { font-size: 0.76rem; line-height: 1.25; }
body.is-touch .stat-chip__sub { font-size: 0.64rem; }

/* Compact viz and tighter source on touch */
body.is-touch .block__obs-viz {
  min-height: 260px;
  padding: 22px;
}
body.is-touch .viz-label,
body.is-touch .viz-pulse { top: 16px; }
body.is-touch .viz-label { left: 22px; }
body.is-touch .viz-pulse { right: 22px; }
body.is-touch .block__obs { gap: 28px; }
body.is-touch .block__body { font-size: 0.88rem; line-height: 1.5; margin-top: 16px; }
body.is-touch .block__source {
  margin-top: 12px;
  padding: 9px 12px;
  font-size: 0.64rem;
  line-height: 1.5;
}
body.is-touch .block__title {
  font-size: clamp(1.2rem, 2.1vw, 1.6rem);
  line-height: 1.12;
  /* hard ceiling on title height so source always reaches */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body.is-touch .block__count { margin-bottom: 14px; font-size: 0.72rem; }
body.is-touch .block__bottom { padding: 8px 0; }
