/* ==========================================================================
   AMedidaPyme — Mobile-First Motion Graphics Explainer
   Base styles target mobile (<720px); @media (min-width: 720px) switches to 16:9
   ========================================================================== */

.explainer-section {
  background: var(--bg);
}

.explainer-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.explainer-head .section-head-left {
  margin-bottom: 0;
}

.explainer-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.6rem;
  box-shadow: var(--shadow-lg);
}

.explainer-stage-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #0b1120;
  border-radius: 12px;
  overflow: hidden;
}

/* Mobile-First Stage: tall enough for all 5 scenes without clipping */
.mg-stage {
  position: relative;
  width: 100%;
  min-height: 590px;
  background: var(--bg);
  color: var(--ink);
  overflow: hidden;
  user-select: none;
  container-type: inline-size;
}

/* Subtle architectural grid background */
.mg-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 0;
}

/* Top HUD inside stage */
.mg-hud {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 20;
  pointer-events: none;
}

.mg-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  backdrop-filter: blur(6px);
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.mg-stage.is-dark-scene .mg-brand-pill {
  background: rgba(15, 23, 42, 0.78);
  border-color: rgba(255, 255, 255, 0.16);
  color: #f8fafc;
}

.mg-brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}

.mg-scene-tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--accent-ink);
  transition: background 0.35s ease, color 0.35s ease;
}

.mg-stage.is-dark-scene .mg-scene-tag {
  background: rgba(45, 212, 191, 0.16);
  color: #5eead4;
}

/* Scenes container (mobile-first padding clears HUD & caption bar) */
.mg-scene {
  position: absolute;
  inset: 0;
  padding: 48px 14px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: scale(0.97) translateY(10px);
  pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
}

.mg-scene.is-active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
  z-index: 5;
}

.mg-scene-dark {
  background: radial-gradient(circle at 80% 20%, rgba(15, 118, 110, 0.25), transparent 55%), var(--bg-deep);
  color: #f8fafc;
}

/* Typography inside scenes */
.mg-kicker {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.mg-scene-dark .mg-kicker {
  color: #5eead4;
}

.mg-headline {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: clamp(20px, 5.6vw, 26px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-align: center;
  margin: 0 0 0.5rem;
  max-width: 19ch;
}

.mg-headline em {
  font-style: normal;
  color: var(--accent);
}

.mg-scene-dark .mg-headline em {
  color: #5eead4;
}

.mg-sub {
  font-size: 12.5px;
  color: var(--ink-muted);
  text-align: center;
  max-width: 34ch;
  margin: 0;
}

.mg-scene-dark .mg-sub {
  color: #cbd5e1;
}

/* ---------------- Scene 1: Chaos (2x2 grid on mobile) ---------------- */
.mg-chaos-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 360px;
  margin-top: 12px;
}

.mg-chaos-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transform: translateY(16px) rotate(-2deg);
}

.mg-chaos-card.is-instagram {
  border-color: #fbcfe8;
  background: linear-gradient(180deg, #fff 0%, #fdf2f8 100%);
}

.mg-chaos-card.is-instagram .mg-chaos-badge {
  background: #fce7f3;
  color: #be185d;
}

.mg-scene.is-active .mg-chaos-card:nth-child(1) {
  animation: mgChaosIn 0.5s 0.1s forwards, mgJitter 2.4s 0.7s ease-in-out infinite;
}
.mg-scene.is-active .mg-chaos-card:nth-child(2) {
  animation: mgChaosIn 0.5s 0.25s forwards, mgJitterAlt 2.2s 0.85s ease-in-out infinite;
}
.mg-scene.is-active .mg-chaos-card:nth-child(3) {
  animation: mgChaosIn 0.5s 0.4s forwards, mgJitter 2.6s 1s ease-in-out infinite;
}
.mg-scene.is-active .mg-chaos-card:nth-child(4) {
  animation: mgChaosIn 0.5s 0.55s forwards, mgJitterAlt 2.3s 1.15s ease-in-out infinite;
}

.mg-chaos-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.mg-chaos-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.mg-chaos-badge {
  display: inline-flex;
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: #fef2f2;
  color: #b91c1c;
}

.mg-chaos-card strong {
  font-size: 12.5px;
  line-height: 1.2;
}

.mg-chaos-card span {
  font-size: 11px;
  line-height: 1.3;
  color: var(--ink-soft);
}

/* ---------------- Scene 2: Strike-through Pain ---------------- */
.mg-pain-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  width: 100%;
  max-width: 330px;
  margin-top: 12px;
}

.mg-pain-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  opacity: 0;
  transform: translateY(14px);
}

.mg-scene.is-active .mg-pain-card:nth-child(1) { animation: mgPopUp 0.45s 0.15s forwards; }
.mg-scene.is-active .mg-pain-card:nth-child(2) { animation: mgPopUp 0.45s 0.35s forwards; }
.mg-scene.is-active .mg-pain-card:nth-child(3) { animation: mgPopUp 0.45s 0.55s forwards; }

.mg-pain-card::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 50%;
  height: 3px;
  background: #dc2626;
  border-radius: 2px;
  transform: scaleX(0) rotate(-2deg);
  transform-origin: left center;
}

.mg-scene.is-active .mg-pain-card:nth-child(1)::after { animation: mgStrike 0.35s 1.1s forwards; }
.mg-scene.is-active .mg-pain-card:nth-child(2)::after { animation: mgStrike 0.35s 1.4s forwards; }
.mg-scene.is-active .mg-pain-card:nth-child(3)::after { animation: mgStrike 0.35s 1.7s forwards; }

.mg-pain-num {
  font-family: ui-monospace, monospace;
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-soft);
}

.mg-pain-card strong {
  display: block;
  margin-top: 2px;
  font-size: 13px;
}

.mg-pain-card small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.3;
  color: var(--ink-muted);
}

/* ---------------- Scene 3: Solution Devices ---------------- */
.mg-solution-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  max-width: 360px;
  text-align: center;
}

.mg-solution-copy {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mg-solution-copy .mg-headline,
.mg-solution-copy .mg-sub {
  text-align: inherit;
}

.mg-device-mockup {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(18px);
}

.mg-scene.is-active .mg-device-mockup {
  animation: mgPopUp 0.6s 0.2s forwards;
}

.mg-device-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 8px;
}

.mg-device-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.mg-device-url {
  margin-left: auto;
  font-family: ui-monospace, monospace;
  font-size: 10.5px;
  color: #5eead4;
}

.mg-device-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mg-device-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  text-align: left;
}

.mg-device-status {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  white-space: nowrap;
}

/* ---------------- Scene 4: Funcionalidades ---------------- */
.mg-stack-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  max-width: 350px;
  margin-top: 10px;
}

.mg-stack-blocks {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mg-stack-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 9px;
  box-shadow: var(--shadow-sm);
  opacity: 0.68;
  transform: translateX(0);
  transition: opacity 0.22s ease, border-color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.mg-stack-block.is-checked {
  opacity: 1;
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateX(3px);
}

.mg-stack-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mg-stack-check {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: var(--surface-muted);
  color: var(--ink-soft);
  border: 1px solid var(--border-strong);
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mg-stack-block.is-checked .mg-stack-check {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.mg-stack-block strong {
  display: block;
  font-size: 12px;
  line-height: 1.2;
}

.mg-stack-block small {
  display: block;
  font-size: 10px;
  color: var(--ink-soft);
}

.mg-stack-price {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

.mg-summary-card {
  background: var(--bg-deep);
  color: #f8fafc;
  border-radius: 12px;
  padding: 10px 14px;
  text-align: center;
  opacity: 0;
  transform: scale(0.92);
}

.mg-scene.is-active .mg-summary-card {
  animation: mgPopUp 0.5s 0.4s forwards;
}

.mg-summary-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

.mg-summary-amount {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #5eead4;
  margin: 4px 0;
}

.mg-summary-zero {
  display: inline-block;
  margin-top: 2px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
  font-size: 11px;
  font-weight: 700;
}

.mg-summary-fast {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #fde68a;
}

/* ---------------- Scene 5: Final PC + Mobile Showcase + CTA ---------------- */
.mg-final-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  gap: 10px;
  width: 100%;
  max-width: 360px;
  margin-top: 6px;
}

.mg-final-devices {
  position: relative;
  width: min(100%, 310px);
  padding-right: 22px;
  padding-bottom: 12px;
  opacity: 0;
  transform: translateY(16px);
}

.mg-scene.is-active .mg-final-devices {
  animation: mgPopUp 0.55s 0.25s forwards;
}

.mg-pc-frame {
  background: #1e293b;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 9px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
}

.mg-pc-top {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-bottom: 7px;
  margin-bottom: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mg-pc-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: ui-monospace, monospace;
  font-size: 10px;
  color: #5eead4;
}

.mg-pc-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.mg-pc-body {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 7px;
}

.mg-pc-sidebar {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mg-pc-nav-item {
  font-size: 9.5px;
  padding: 4px 6px;
  border-radius: 6px;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.45);
}

.mg-pc-nav-item.is-on {
  background: rgba(15, 118, 110, 0.35);
  color: #5eead4;
  font-weight: 700;
}

.mg-pc-main {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mg-pc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 7px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 10px;
  color: #e2e8f0;
}

.mg-phone-frame {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 92px;
  background: #0f172a;
  border: 2px solid #475569;
  border-radius: 14px;
  padding: 7px 6px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.55);
}

.mg-phone-notch {
  width: 24px;
  height: 3.5px;
  border-radius: 999px;
  background: #334155;
  margin: 0 auto 6px;
}

.mg-phone-card {
  background: rgba(15, 118, 110, 0.24);
  border: 1px solid rgba(94, 234, 212, 0.35);
  border-radius: 7px;
  padding: 5px;
  text-align: center;
}

.mg-phone-card strong {
  display: block;
  font-size: 9.5px;
  color: #5eead4;
}

.mg-phone-card span {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  color: #f8fafc;
}

.mg-cta-pulse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--accent);
  color: #ffffff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.65);
  animation: mgPulse 2s infinite;
  margin-top: 10px;
}

/* Kinetic Caption Bar */
.mg-caption-bar {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  justify-content: center;
  z-index: 20;
  pointer-events: none;
}

.mg-caption-text {
  background: rgba(17, 24, 39, 0.9);
  color: #f8fafc;
  padding: 6px 12px;
  border-radius: 9px;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  max-width: 58ch;
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
}

/* ==========================================================================
   Animated SVG Character (Same Person: Antes / La Idea / Después)
   ========================================================================== */
.mg-char-split {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  text-align: center;
  gap: 8px;
  width: 100%;
}

.mg-char-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  opacity: 0;
  transform: translateY(14px) scale(0.95);
}

.mg-scene.is-active .mg-char-wrap {
  animation: mgPopUp 0.5s 0.1s forwards;
}

.mg-char-svg {
  width: clamp(118px, 32vw, 155px);
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 12px 24px rgba(15, 23, 42, 0.16));
}

.mg-char-badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: 999px;
}

.mg-char-badge.is-before {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.mg-char-badge.is-after {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(110, 231, 183, 0.35);
}

.mg-char-badge.is-idea {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

/* Character Part Animations */
.mg-scene.is-active .mg-char-before .mg-char-body {
  animation: mgCharStress 0.45s ease-in-out infinite alternate;
  transform-origin: center bottom;
}

.mg-scene.is-active .mg-char-sweat {
  animation: mgSweatDrop 1.2s ease-in infinite;
}

.mg-scene.is-active .mg-char-write {
  animation: mgPenWrite 0.55s ease-in-out infinite alternate;
  transform-origin: 96px 116px;
}

.mg-scene.is-active .mg-char-search-q {
  animation: mgSearchFloat 1.4s ease-in-out infinite alternate;
}

.mg-scene.is-active .mg-char-after .mg-char-body,
.mg-scene.is-active .mg-char-cta .mg-char-body {
  animation: mgCharRelax 2.4s ease-in-out infinite;
  transform-origin: center bottom;
}

.mg-scene.is-active .mg-char-wave {
  animation: mgArmWave 1.1s ease-in-out infinite alternate;
  transform-origin: 108px 104px;
}

.mg-scene.is-active .mg-char-phone-screen {
  animation: mgScreenGlow 1.8s ease-in-out infinite alternate;
}

.mg-scene.is-active .mg-char-bulb {
  animation: mgBulbPop 0.9s ease-in-out infinite alternate;
  transform-origin: 75px 16px;
}

/* Keyframes */
@keyframes mgChaosIn {
  to {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
}

@keyframes mgJitter {
  0%, 100% { transform: rotate(-0.8deg) translateY(0); }
  50% { transform: rotate(0.8deg) translateY(-3px); }
}

@keyframes mgJitterAlt {
  0%, 100% { transform: rotate(0.8deg) translateY(-2px); }
  50% { transform: rotate(-0.8deg) translateY(2px); }
}

@keyframes mgPopUp {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes mgStrike {
  to {
    transform: scaleX(1) rotate(-2.5deg);
  }
}

@keyframes mgPulse {
  0% { box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(15, 118, 110, 0); }
  100% { box-shadow: 0 0 0 0 rgba(15, 118, 110, 0); }
}

@keyframes mgCharStress {
  from { transform: translateX(-1.5px) rotate(-0.8deg); }
  to { transform: translateX(1.5px) rotate(0.8deg); }
}

@keyframes mgSweatDrop {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

@keyframes mgCharRelax {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes mgArmWave {
  from { transform: rotate(-6deg); }
  to { transform: rotate(12deg); }
}

@keyframes mgScreenGlow {
  from { fill: #0f766e; }
  to { fill: #14b8a6; }
}

@keyframes mgPenWrite {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-5px, 2px) rotate(-8deg); }
  100% { transform: translate(4px, -2px) rotate(6deg); }
}

@keyframes mgSearchFloat {
  from { opacity: 0.45; transform: translateY(2px) rotate(-6deg); }
  to { opacity: 1; transform: translateY(-4px) rotate(6deg); }
}

@keyframes mgBulbPop {
  from { transform: scale(0.95); filter: drop-shadow(0 0 4px rgba(250, 204, 21, 0.45)); }
  to { transform: scale(1.08); filter: drop-shadow(0 0 12px rgba(250, 204, 21, 0.95)); }
}

/* ==========================================================================
   Desktop / Tablet Breakpoint (>= 720px): 16:9 Widescreen Layout
   ========================================================================== */
@media (min-width: 720px) {
  .explainer-head {
    margin-bottom: 2rem;
  }

  .explainer-shell {
    border-radius: 18px;
    padding: 1rem;
  }

  .mg-stage {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .mg-hud {
    top: clamp(12px, 2.2cqw, 22px);
    left: clamp(16px, 2.6cqw, 28px);
    right: clamp(16px, 2.6cqw, 28px);
  }

  .mg-brand-pill {
    font-size: clamp(11px, 1.3cqw, 13px);
    padding: 5px 11px;
  }

  .mg-scene-tag {
    font-size: clamp(10px, 1.15cqw, 12px);
    padding: 4px 10px;
  }

  .mg-scene {
    padding: clamp(38px, 5.5cqw, 56px) clamp(18px, 4cqw, 46px) clamp(54px, 7.5cqw, 74px);
  }

  .mg-kicker {
    font-size: clamp(10px, 1.25cqw, 13px);
    margin-bottom: 0.45rem;
  }

  .mg-headline {
    font-size: clamp(22px, 3.3cqw, 38px);
    max-width: 22ch;
    margin-bottom: 0.65rem;
  }

  .mg-sub {
    font-size: clamp(12.5px, 1.5cqw, 16px);
    max-width: 46ch;
  }

  .mg-char-split {
    grid-template-columns: minmax(165px, 240px) 1fr;
    gap: clamp(16px, 3cqw, 36px);
    width: min(100%, 880px);
    text-align: left;
  }

  .mg-char-split .mg-headline,
  .mg-char-split .mg-sub {
    text-align: left;
  }

  .mg-char-svg {
    width: clamp(165px, 22cqw, 240px);
  }

  .mg-chaos-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(8px, 1.4cqw, 14px);
    max-width: 880px;
    margin-top: clamp(12px, 2cqw, 20px);
  }

  .mg-chaos-card {
    padding: clamp(9px, 1.4cqw, 14px);
    border-radius: 12px;
  }

  .mg-chaos-icon {
    width: 24px;
    height: 24px;
  }

  .mg-chaos-card strong {
    font-size: clamp(13px, 1.45cqw, 15px);
  }

  .mg-chaos-card span {
    font-size: clamp(11px, 1.2cqw, 12.5px);
  }

  .mg-pain-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(10px, 1.8cqw, 18px);
    max-width: 780px;
    margin-top: clamp(14px, 2.2cqw, 22px);
  }

  .mg-pain-card {
    padding: clamp(12px, 1.8cqw, 18px);
    border-radius: 12px;
  }

  .mg-pain-card strong {
    font-size: clamp(13px, 1.5cqw, 15px);
  }

  .mg-pain-card small {
    font-size: clamp(11px, 1.2cqw, 12.5px);
  }

  .mg-solution-layout {
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(14px, 2.8cqw, 34px);
    max-width: none;
    text-align: left;
  }

  .mg-solution-copy {
    text-align: left;
    align-items: flex-start;
  }

  .mg-stack-layout {
    grid-template-columns: 1.3fr 0.7fr;
    gap: clamp(12px, 2.5cqw, 28px);
    max-width: 820px;
    margin-top: clamp(10px, 1.8cqw, 18px);
  }

  .mg-stack-block {
    padding: clamp(7px, 1.05cqw, 10px) 13px;
  }

  .mg-stack-block strong {
    font-size: clamp(12px, 1.35cqw, 14px);
  }

  .mg-summary-card {
    padding: clamp(14px, 2cqw, 22px);
    border-radius: 14px;
  }

  .mg-summary-amount {
    font-size: clamp(22px, 2.8cqw, 30px);
  }

  .mg-final-grid {
    grid-template-columns: auto 1fr;
    gap: clamp(16px, 3cqw, 34px);
    max-width: 880px;
    margin-top: clamp(6px, 1cqw, 12px);
  }

  .mg-final-devices {
    width: min(100%, 450px);
    padding-right: 36px;
  }

  .mg-pc-body {
    grid-template-columns: 78px 1fr;
  }

  .mg-phone-frame {
    width: clamp(92px, 12.5cqw, 120px);
  }

  .mg-cta-pulse {
    padding: 12px 24px;
    font-size: clamp(13px, 1.5cqw, 16px);
    margin-top: clamp(10px, 1.5cqw, 16px);
  }

  .mg-caption-bar {
    left: clamp(12px, 3cqw, 36px);
    right: clamp(12px, 3cqw, 36px);
    bottom: clamp(10px, 2cqw, 20px);
  }

  .mg-caption-text {
    font-size: clamp(12px, 1.45cqw, 15px);
    padding: 7px 14px;
  }
}
