/* PepsiCo v2 overlay · layered on top of pepsico.css + pg.css.
 * New bits: teaser hero, Scenario Runner, story cards, Microsoft strip.
 * Emil design engineering polish: strong ease-out, scale-on-active, transform/opacity only.
 */

body[data-brand="pepsico"] {
  --ease-strong-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snap: cubic-bezier(0.77, 0, 0.175, 1);
}

/* ==================== TEASER HERO ==================== */
body[data-brand="pepsico"] .opening { min-height: 92vh; padding-bottom: 80px; }
body[data-brand="pepsico"] .opening__teaser {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
body[data-brand="pepsico"] .opening__date {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 7.5vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--enmovil-ink);
  margin: 0;
}
body[data-brand="pepsico"] .opening__date--accent {
  color: var(--enmovil-green);
  font-style: italic;
}
body[data-brand="pepsico"] .opening__tagline {
  margin-top: 40px;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.65;
  color: var(--text);
  max-width: 720px;
}
body[data-brand="pepsico"] .opening__tagline em {
  font-style: italic;
  color: var(--enmovil-blue-deep);
  font-weight: 600;
}
body[data-brand="pepsico"] .opening__source {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  max-width: 720px;
}

/* Superscript cite · microscopic */
sup:has(.sup-cite) { font-size: 100%; vertical-align: baseline; line-height: 0; }
.sup-cite {
  display: inline-block;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.4em;
  opacity: 0.45;
  text-decoration: none;
  padding: 0 0.5px;
  vertical-align: 0.5em;
  line-height: 0;
  transition: color 160ms var(--ease-strong-out), opacity 160ms var(--ease-strong-out);
}
.sup-cite:hover { color: var(--enmovil-green); opacity: 1; }

/* ==================== BLOCK TWEAKS (make POV note readable) ==================== */
.block__pov-note {
  margin-top: 18px;
  padding: 14px 18px;
  background: rgba(89, 192, 152, 0.08);
  border-left: 3px solid var(--enmovil-green);
  border-radius: 0 10px 10px 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.55;
}

/* ==================== SCENARIO RUNNER ==================== */
.sec--scenario {
  padding: 120px 0;
  background: linear-gradient(180deg, #0B1F2E 0%, #0F2F42 100%);
  color: white;
  position: relative;
  overflow: hidden;
}
.sec--scenario::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(89, 192, 152, 0.12), transparent 60%);
  pointer-events: none;
}
.sec--scenario .sec__title { color: white; }
.sec--scenario .sec__sub { color: rgba(255,255,255,0.72); }

.scenario-picker {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  position: relative;
}
@media (max-width: 900px) { .scenario-picker { grid-template-columns: 1fr; } }
.scenario-picker__btn {
  text-align: left;
  padding: 22px 22px 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  color: white;
  cursor: pointer;
  transition:
    border-color 200ms var(--ease-strong-out),
    background-color 200ms var(--ease-strong-out),
    transform 220ms var(--ease-strong-out),
    box-shadow 220ms var(--ease-strong-out);
  will-change: transform;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.scenario-picker__btn:hover {
  border-color: rgba(89, 192, 152, 0.35);
  background: rgba(89, 192, 152, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -18px rgba(89, 192, 152, 0.45);
}
.scenario-picker__btn:active {
  transform: translateY(-1px) scale(0.985);
  transition-duration: 120ms;
}
.scenario-picker__btn.is-active {
  border-color: var(--enmovil-green);
  background: rgba(89, 192, 152, 0.08);
  box-shadow: 0 10px 28px -14px rgba(89, 192, 152, 0.4);
}
.scenario-picker__tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--enmovil-green);
  text-transform: uppercase;
  font-weight: 700;
}
.scenario-picker__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.28;
  letter-spacing: -0.015em;
  margin-top: 4px;
}
.scenario-picker__body {
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.66);
}

/* Chain strip */
.scenario-stage {
  position: relative;
  margin-top: 40px;
  padding: 32px 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
}
.scenario-stage__chain { width: 100%; }
.scenario-stage__chain svg { width: 100%; height: auto; display: block; max-width: 820px; margin: 0 auto; overflow: visible; }
.scenario-chain__line {
  fill: none;
  stroke: rgba(255,255,255,0.18);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 720;
  stroke-dashoffset: 720;
}
.scenario-chain__flow {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0;
  stroke-dasharray: 150 600;
  stroke-dashoffset: 720;
}
.scenario-chain__node {
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
}
.scenario-chain__ring {
  fill: rgba(255,255,255,0.04);
  stroke: rgba(255,255,255,0.28);
  stroke-width: 1.6;
  transition: fill 200ms var(--ease-strong-out), stroke 200ms var(--ease-strong-out), stroke-width 200ms var(--ease-strong-out);
}
.scenario-chain__node.is-firing .scenario-chain__ring {
  fill: rgba(89, 192, 152, 0.18);
  stroke: var(--enmovil-green);
  stroke-width: 2.4;
}
.scenario-chain__label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  fill: rgba(255,255,255,0.7);
  pointer-events: none;
}
.scenario-chain__node.is-firing .scenario-chain__label { fill: var(--enmovil-green); }
.scenario-chain__name {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.05em;
  fill: rgba(255,255,255,0.5);
  text-transform: uppercase;
  pointer-events: none;
}
.scenario-chain__node.is-firing .scenario-chain__name { fill: rgba(255,255,255,0.88); }

/* Summary cards */
.scenario-stage__summary {
  position: relative;
  margin-top: 40px;
  min-height: 260px;
}
.scenario-summary__card {
  position: absolute;
  inset: 0;
  padding: 28px 28px 26px;
  background: linear-gradient(180deg, rgba(89, 192, 152, 0.08), rgba(32, 116, 155, 0.04));
  border: 1px solid rgba(89, 192, 152, 0.22);
  border-radius: 14px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 280ms var(--ease-strong-out), transform 320ms var(--ease-strong-out);
}
.scenario-summary__card.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scenario-summary__tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--enmovil-green);
  text-transform: uppercase;
  font-weight: 700;
}
.scenario-summary__title {
  margin-top: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: white;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.scenario-summary__grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.scenario-summary__tile {
  padding: 16px 18px;
  background: rgba(255,255,255,0.05);
  border-left: 3px solid var(--enmovil-green);
  border-radius: 0 10px 10px 0;
}
.scenario-summary__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  color: var(--enmovil-green);
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.scenario-summary__num span {
  font-size: 0.45em;
  margin-left: 4px;
  color: rgba(255,255,255,0.6);
  font-weight: 700;
}
.scenario-summary__label {
  margin-top: 10px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.72);
}
.scenario-summary__note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.55);
}
.scenario-note {
  margin-top: 28px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.6);
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

@media (prefers-reduced-motion: reduce) {
  .scenario-chain__line { stroke-dashoffset: 0; }
  .scenario-chain__node { opacity: 1; }
  .scenario-chain__flow { opacity: 0.4; stroke-dashoffset: 0; }
  .scenario-summary__card { transition: none; }
}

/* ==================== STORY CARDS ==================== */
.story-stack { margin-top: 44px; display: grid; gap: 18px; }
.story-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 30px 32px;
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  box-shadow: 0 2px 8px -4px rgba(15, 23, 42, 0.06);
  transition: border-color 200ms var(--ease-strong-out), box-shadow 280ms var(--ease-strong-out);
}
.story-card:hover { border-color: var(--enmovil-green); box-shadow: 0 14px 30px -12px rgba(15, 23, 42, 0.1); }
@media (max-width: 900px) { .story-card { grid-template-columns: 1fr; gap: 20px; padding: 26px; } }
.story-card__left { display: flex; flex-direction: column; gap: 12px; }
.story-card__badge {
  display: inline-flex;
  padding: 6px 12px;
  background: var(--enmovil-blue);
  color: white;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 999px;
  align-self: flex-start;
}
.story-card__who { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--enmovil-ink); letter-spacing: -0.015em; line-height: 1.3; }
.story-card__tag { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); line-height: 1.5; }
.story-card__right { display: flex; flex-direction: column; gap: 14px; }
.story-card__line { display: grid; grid-template-columns: 90px 1fr; gap: 18px; align-items: baseline; }
@media (max-width: 540px) { .story-card__line { grid-template-columns: 1fr; gap: 4px; } }
.story-card__line-label { font-family: var(--font-mono); font-size: 0.66rem; color: var(--enmovil-green); letter-spacing: 0.12em; font-weight: 700; text-transform: uppercase; }
.story-card__line-text { font-size: 0.9rem; color: var(--text); line-height: 1.55; }
.story-card__line-text strong { color: var(--enmovil-ink); font-weight: 700; }
.story-card__transfer {
  margin-top: 6px;
  padding: 14px 18px;
  background: rgba(89, 192, 152, 0.08);
  border-left: 3px solid var(--enmovil-green);
  border-radius: 0 10px 10px 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--enmovil-ink);
  line-height: 1.5;
}

/* ==================== MICROSOFT STRIP ==================== */
.msft-strip {
  margin-top: 32px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(0, 120, 212, 0.06), rgba(89, 192, 152, 0.04));
  border: 1px solid rgba(0, 120, 212, 0.22);
  border-radius: 12px;
  flex-wrap: wrap;
}
.msft-strip__badge {
  flex-shrink: 0;
  padding: 6px 14px;
  background: #0078D4;
  color: white;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
}
.msft-strip__text {
  flex: 1;
  min-width: 240px;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
}

/* ==================== ASK CTA polish ==================== */
body[data-brand="pepsico"] .btn--primary {
  transition: transform 160ms var(--ease-strong-out), box-shadow 200ms var(--ease-strong-out);
}
body[data-brand="pepsico"] .btn--primary:hover {
  box-shadow: 0 12px 28px -12px rgba(89, 192, 152, 0.6);
}
body[data-brand="pepsico"] .btn--primary:active {
  transform: scale(0.97);
  transition-duration: 100ms;
}

/* MCQ options · subtle press feedback */
body[data-brand="pepsico"] .mcq__option { transition: background-color 160ms var(--ease-strong-out), transform 160ms var(--ease-strong-out); }
body[data-brand="pepsico"] .mcq__option:active { transform: scale(0.985); transition-duration: 90ms; }
