/* =====================================================================
   GMR Power Trading — inline carousel
   Ported from public/gmr-power-trading-carousel.html inline <style>.
   Every selector is scoped under .gmr-croot so styles do not leak into
   the host product page (and the host page's /styles.css and
   product-page.css do not bleed into the carousel).
   ===================================================================== */

/* CORE TOKENS — Energy-Trading Terminal Palette (was :root) */
.gmr-croot {
  --ind-950: #ffffff;
  --ind-900: #ffffff;
  --ind-800: #ffffff;
  --ind-700: #ffffff;
  --ind-600: #ffffff;
  --ind-500: #ffffff;

  --slate-300: #000000;
  --slate-200: #000000;
  --slate-100: #000000;

  --amber: #f58a22;
  --amber-dark: #f58a22;
  --amber-glow: rgba(245, 138, 34, 0.18);

  --green: #000000;
  --green-dark: #000000;

  --violet: #000000;
  --violet-dark: #000000;
  --indigo: #000000;
  --rose: #f58a22;

  --ink: #000000;
  --ink-dim: #000000;
  --ink-mute: #000000;

  --display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', monospace;

  --slide-duration: 8s;
  --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scoped reset + body styling re-applied locally (no global leakage) */
.gmr-croot,
.gmr-croot *,
.gmr-croot *::before,
.gmr-croot *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.gmr-croot {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ind-950);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =====================================================================
   CAROUSEL FRAME
   ===================================================================== */
.gmr-croot .carousel {
  position: relative;
  width: 100%;
  /* Height override: match the iframe-era rendered height instead of 100vh */
  min-height: clamp(545px, 74vh, 760px);
  height: clamp(545px, 74vh, 760px);
  overflow: hidden;
  background: #ffffff;
  isolation: isolate;
}

/* Subtle dot-grid texture */
.gmr-croot .carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0, 0, 0, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

.gmr-croot .slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  column-gap: clamp(16px, 2.4vw, 32px);
  row-gap: 0;
  padding: clamp(28px, 3.6vw, 56px) clamp(24px, 4.2vw, 72px);
  opacity: 0;
  visibility: hidden;
  transform: translateX(40px);
  transition:
    opacity 0.7s var(--transition),
    transform 0.7s var(--transition),
    visibility 0s linear 0.7s;
  z-index: 1;
}
.gmr-croot .slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  padding-left: clamp(48px, 7vw, 120px);
  padding-right: clamp(48px, 7vw, 120px);
  transition:
    opacity 0.7s var(--transition),
    transform 0.7s var(--transition),
    visibility 0s linear 0s;
}

/* Top bar — brand lockup */
.gmr-croot .slide__topbar {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: clamp(14px, 2.2vw, 24px);
}
.gmr-croot .brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: clamp(8px, 1.2vw, 18px);
  padding: 8px 14px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
  text-transform: uppercase;
}
.gmr-croot .brand-chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: gmr-pulse 2s ease-in-out infinite;
}
@keyframes gmr-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
/* Copy column */
.gmr-croot .slide__copy {
  align-self: center;
  max-width: 620px;
  margin-left: clamp(0px, 1vw, 18px);
  padding-left: 0;
  padding-right: clamp(0px, 3vw, 48px);
  min-width: 0;
  min-height: 0;
}
.gmr-croot .eyebrow {
  display: inline-block;
  padding: 5px 10px;
  margin-bottom: clamp(14px, 2.2vw, 20px);
  border: 1px solid var(--amber);
  border-radius: 4px;
  background: var(--amber-glow);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--amber);
  text-transform: uppercase;
}
.gmr-croot .slide__copy h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(36px, 4.9vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 clamp(16px, 2.2vw, 22px) 0;
  color: var(--ink);
}
.gmr-croot .slide__copy h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--amber) 0%, var(--violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gmr-croot .slide__copy p {
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.55;
  color: var(--ink-dim);
  margin: 0 0 clamp(18px, 2.8vw, 26px) 0;
  max-width: 540px;
}
.gmr-croot .slide__copy p strong {
  color: var(--ink);
  font-weight: 600;
}

/* CTAs */
.gmr-croot .ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.gmr-croot .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: all 0.2s var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
}
.gmr-croot .btn--primary {
  background: var(--amber);
  color: var(--ink);
}
.gmr-croot .btn--primary:hover {
  background: var(--amber-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(245, 138, 34, 0.32);
}
.gmr-croot .btn--secondary {
  background: transparent;
  border-color: rgba(0, 0, 0, 0.18);
  color: var(--ink);
}
.gmr-croot .btn--secondary:hover {
  border-color: var(--ink);
  background: rgba(0, 0, 0, 0.04);
}
.gmr-croot .btn svg { width: 14px; height: 14px; }

/* Visual column */
.gmr-croot .slide__visual {
  align-self: center;
  height: 100%;
  width: auto;
  max-width: 100%;
  max-height: 560px;
  aspect-ratio: 1 / 1;
  justify-self: center;
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

/* Footer KPI strip */
.gmr-croot .slide__foot {
  grid-column: 1 / -1;
  display: flex;
  gap: 0;
  padding-top: clamp(18px, 2.8vw, 30px);
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
  margin-right: clamp(40px, 7vw, 120px);
  margin-top: auto;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}
.gmr-croot .stat {
  flex: 1;
  padding: 0 clamp(16px, 2vw, 28px);
  border-left: 1px solid rgba(0, 0, 0, 0.12);
}
.gmr-croot .stat:first-child { border-left: none; padding-left: 0; }
.gmr-croot .stat__num {
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 6px;
}
.gmr-croot .stat__num span {
  font-size: 0.6em;
  color: var(--amber);
  font-weight: 600;
}
.gmr-croot .stat__label {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  text-transform: uppercase;
  line-height: 1.4;
}

/* =====================================================================
   SLIDE 1 — HERO · 96-block forecast HUD
   ===================================================================== */
.gmr-croot #slide-1 .visual-terminal {
  width: 100%;
  height: 100%;
  position: relative;
  background: var(--ind-900);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 18px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
  overflow: hidden;
}
.gmr-croot .term-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.gmr-croot .term-header__left {
  display: flex; align-items: center; gap: 8px;
  color: var(--green);
  font-weight: 700;
}
.gmr-croot .live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: gmr-pulse 1.6s ease-in-out infinite;
}
.gmr-croot .term-header__right { color: var(--ink-mute); font-weight: 500; }

/* MCP price + delta */
.gmr-croot .term-price {
  display: flex; align-items: baseline; gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.14);
}
.gmr-croot .term-price__big {
  font-family: var(--display);
  font-size: 38px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.gmr-croot .term-price__big span {
  font-size: 0.45em;
  color: var(--ink-mute);
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-left: 4px;
}
.gmr-croot .term-price__delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.14);
  color: var(--green);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}
.gmr-croot .term-price__lbl {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.gmr-croot .term-price__lbl strong {
  color: var(--amber);
  font-weight: 600;
}

/* Forecast chart — pure SVG */
.gmr-croot .term-chart {
  position: relative;
  min-height: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0, transparent 24px, rgba(0, 0, 0, 0.03) 24px, rgba(0, 0, 0, 0.03) 25px);
  border-radius: 6px;
  overflow: hidden;
}
.gmr-croot .term-chart svg {
  width: 100%;
  height: 100%;
  display: block;
}
.gmr-croot .term-chart__yaxis {
  position: absolute;
  top: 0; bottom: 0; right: 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
  pointer-events: none;
}
.gmr-croot .term-chart__xlabel {
  position: absolute;
  bottom: 4px; left: 8px;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Bottom strip — segments */
.gmr-croot .term-segments {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.gmr-croot .seg {
  padding: 8px 6px;
  background: var(--ind-800);
  border-radius: 5px;
  border-left: 2px solid var(--amber);
  text-align: left;
}
.gmr-croot .seg:nth-child(1) { border-left-color: var(--indigo); }
.gmr-croot .seg:nth-child(2) { border-left-color: var(--green); }
.gmr-croot .seg:nth-child(3) { border-left-color: var(--amber); }
.gmr-croot .seg:nth-child(4) { border-left-color: var(--rose); }
.gmr-croot .seg:nth-child(5) { border-left-color: var(--violet); }
.gmr-croot .seg__name {
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 600;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.gmr-croot .seg__val {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

/* Corner brackets */
.gmr-croot .visual-terminal .corner {
  position: absolute;
  width: 14px; height: 14px;
  border: 1.5px solid var(--amber);
  z-index: 5;
  pointer-events: none;
}
.gmr-croot .visual-terminal .corner.tl { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.gmr-croot .visual-terminal .corner.tr { top: 8px; right: 8px; border-left: none; border-bottom: none; }
.gmr-croot .visual-terminal .corner.bl { bottom: 8px; left: 8px; border-right: none; border-top: none; }
.gmr-croot .visual-terminal .corner.br { bottom: 8px; right: 8px; border-left: none; border-top: none; }

/* =====================================================================
   SLIDE 2 — DATA FOUNDATION · 6 categories converging on MCP
   ===================================================================== */
.gmr-croot .visual-data {
  width: 100%;
  height: 100%;
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 14px;
}
.gmr-croot .data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
}
.gmr-croot .data-tile {
  position: relative;
  padding: 16px 14px;
  background: var(--ind-900);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  transition: transform 0.3s var(--transition), border-color 0.3s var(--transition);
}
.gmr-croot .data-tile:hover {
  transform: translateY(-2px);
}
.gmr-croot .data-tile__icon {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 6px;
  margin-bottom: 8px;
  font-size: 16px;
}
.gmr-croot .data-tile__name {
  font-family: var(--display);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
  line-height: 1.2;
}
.gmr-croot .data-tile__src {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.gmr-croot .data-tile__rows {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-top: auto;
}

/* Category-specific accents matching the actual GMR dashboard */
.gmr-croot .data-tile.market   { border-color: rgba(0, 0, 0, 0.4); }
.gmr-croot .data-tile.market   .data-tile__icon { background: rgba(0, 0, 0, 0.18); color: var(--indigo); }
.gmr-croot .data-tile.market   .data-tile__rows { color: var(--indigo); }

.gmr-croot .data-tile.grid     { border-color: rgba(0, 0, 0, 0.4); }
.gmr-croot .data-tile.grid     .data-tile__icon { background: rgba(0, 0, 0, 0.18); color: var(--green); }
.gmr-croot .data-tile.grid     .data-tile__rows { color: var(--green); }

.gmr-croot .data-tile.weather  { border-color: rgba(245, 138, 34, 0.45); }
.gmr-croot .data-tile.weather  .data-tile__icon { background: rgba(245, 138, 34, 0.18); color: var(--amber); }
.gmr-croot .data-tile.weather  .data-tile__rows { color: var(--amber); }

.gmr-croot .data-tile.hydro    { border-color: rgba(0, 0, 0, 0.4); }
.gmr-croot .data-tile.hydro    .data-tile__icon { background: rgba(0, 0, 0, 0.18); color: #000000; }
.gmr-croot .data-tile.hydro    .data-tile__rows { color: #000000; }

.gmr-croot .data-tile.coal     { border-color: rgba(0, 0, 0, 0.4); }
.gmr-croot .data-tile.coal     .data-tile__icon { background: rgba(0, 0, 0, 0.18); color: var(--violet); }
.gmr-croot .data-tile.coal     .data-tile__rows { color: var(--violet); }

.gmr-croot .data-tile.events   { border-color: rgba(245, 138, 34, 0.4); }
.gmr-croot .data-tile.events   .data-tile__icon { background: rgba(245, 138, 34, 0.18); color: var(--rose); }
.gmr-croot .data-tile.events   .data-tile__rows { color: var(--rose); }

/* MCP target callout below the grid */
.gmr-croot .data-target {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: linear-gradient(90deg, rgba(245, 138, 34, 0.12) 0%, rgba(0, 0, 0, 0.12) 100%);
  border: 1px solid rgba(245, 138, 34, 0.4);
  border-radius: 8px;
}
.gmr-croot .data-target__arrow {
  width: 36px; height: 36px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ind-950);
}
.gmr-croot .data-target__arrow svg { width: 20px; height: 20px; }
.gmr-croot .data-target__text { display: flex; flex-direction: column; gap: 2px; }
.gmr-croot .data-target__lbl {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--amber);
  text-transform: uppercase;
}
.gmr-croot .data-target__val {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.gmr-croot .data-target__val span {
  color: var(--ink-mute);
  font-weight: 500;
  font-size: 14px;
}

/* =====================================================================
   SLIDE 3 — THE MLOPS STACK · 9-tool layered visualization
   ===================================================================== */
.gmr-croot .visual-stack {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gmr-croot .stack-layer {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--ind-900);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.gmr-croot .stack-layer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: var(--accent, var(--amber));
}
.gmr-croot .stack-layer__num {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent, var(--amber));
  flex-shrink: 0;
  width: 28px;
}
.gmr-croot .stack-layer__body {
  flex: 1;
  min-width: 0;
}
.gmr-croot .stack-layer__title {
  font-family: var(--display);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
  letter-spacing: -0.005em;
}
.gmr-croot .stack-layer__tools {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}
.gmr-croot .stack-layer__metric {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent, var(--amber));
  flex-shrink: 0;
  text-align: right;
}
.gmr-croot .stack-layer__metric small {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  margin-top: 2px;
  text-transform: uppercase;
}

/* =====================================================================
   CONTROLS
   ===================================================================== */
.gmr-croot .carousel__dots {
  position: absolute;
  top: clamp(28px, 4vw, 64px);
  right: clamp(24px, 5vw, 80px);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.gmr-croot .carousel__dot {
  width: 28px;
  height: 4px;
  padding: 0;
  border: none;
  background: rgba(0, 0, 0, 0.14);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.3s var(--transition), width 0.3s var(--transition);
}
.gmr-croot .carousel__dot:hover { background: rgba(0, 0, 0, 0.22); }
.gmr-croot .carousel__dot.is-active {
  background: var(--amber);
  width: 44px;
}

.gmr-croot .carousel__nav {
  position: absolute;
  bottom: clamp(28px, 4vw, 48px);
  right: clamp(24px, 5vw, 80px);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.gmr-croot .carousel__nav button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  color: var(--ink);
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s var(--transition);
}
.gmr-croot .carousel__nav button:hover {
  border-color: var(--amber);
  color: var(--amber);
  background: rgba(245, 138, 34, 0.08);
}
.gmr-croot .carousel__nav svg { width: 16px; height: 16px; }

.gmr-croot .carousel__progress {
  position: absolute;
  bottom: clamp(28px, 4vw, 48px);
  left: clamp(50px, 7vw, 120px);
  width: 200px;
  height: 4px;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 2px;
  overflow: hidden;
  z-index: 10;
}
.gmr-croot .carousel__progress-fill {
  height: 100%;
  width: 0;
  background: var(--amber);
  border-radius: 2px;
  transition: width 0.1s linear;
}

/* =====================================================================
   SHORT VIEWPORT HEIGHT (embed-friendly)
   ===================================================================== */
@media (max-height: 840px) {
  .gmr-croot .slide { padding: 22px 26px; }
  .gmr-croot .slide__topbar { padding-bottom: 12px; }
  .gmr-croot .slide__copy h1 { font-size: clamp(32px, 4.2vw, 54px); }
  .gmr-croot .slide__copy p { font-size: 14px; margin-bottom: 16px; }
  .gmr-croot .btn { padding: 10px 16px; font-size: 13px; }
  .gmr-croot .slide__visual { max-width: 480px; }
  .gmr-croot .slide__foot { padding-top: 14px; }
  .gmr-croot .stat__num { font-size: 20px; }
  .gmr-croot .stat__label { font-size: 9px; }
}

/* =====================================================================
   MOBILE
   ===================================================================== */
@media (max-width: 880px) {
  .gmr-croot .slide {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    padding: 24px 20px 96px 20px;
    gap: 24px;
    min-height: 100%;
    overflow-y: auto;
  }
  .gmr-croot .slide__copy,
  .gmr-croot .slide__foot,
  .gmr-croot .slide__visual { grid-column: 1 / -1; }

  .gmr-croot .slide__visual {
    order: 1;
    max-width: 340px;
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: 1 / 1;
    justify-self: center;
  }
  .gmr-croot .slide__copy {
    order: 2;
    margin-left: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .gmr-croot .slide__copy h1 { font-size: clamp(34px, 9vw, 52px); }
  .gmr-croot .slide__foot { order: 3; gap: 0; flex-wrap: wrap; padding-top: 24px; }
  .gmr-croot .stat {
    flex: 1 1 48%;
    padding: 0 12px 16px 12px;
    border-left: none;
  }
  .gmr-croot .stat:nth-child(odd) { padding-left: 0; }
  .gmr-croot .stat:nth-child(even) {
    border-left: 1px solid rgba(0, 0, 0, 0.12);
  }

  .gmr-croot .carousel__dots { top: 20px; right: 20px; }
  .gmr-croot .carousel__nav { bottom: 24px; right: 20px; }
  .gmr-croot .carousel__progress { bottom: 32px; left: 42px; width: 120px; }

  /* Slide 1 trading terminal — scale content for narrow viewport */
  .gmr-croot #slide-1 .visual-terminal { padding: 14px; gap: 8px; }
  .gmr-croot .term-header { font-size: 9px; letter-spacing: 0.08em; }
  .gmr-croot .term-price__big { font-size: 26px; }
  .gmr-croot .term-price__big span { font-size: 0.4em; margin-left: 2px; }
  .gmr-croot .term-price__delta { font-size: 9.5px; padding: 2px 5px; }
  .gmr-croot .term-price__lbl { display: none; }
  .gmr-croot .term-chart__yaxis { font-size: 8px; }
  .gmr-croot .term-chart__xlabel { font-size: 8px; }
  .gmr-croot .term-segments { gap: 4px; }
  .gmr-croot .seg { padding: 5px 4px; }
  .gmr-croot .seg__name { font-size: 7.5px; }
  .gmr-croot .seg__val { font-size: 11px; }

  /* Slide 2 data tile — narrower spacing */
  .gmr-croot .data-tile { padding: 10px 10px; }
  .gmr-croot .data-tile__icon { width: 22px; height: 22px; font-size: 13px; margin-bottom: 6px; }
  .gmr-croot .data-tile__name { font-size: 11.5px; }
  .gmr-croot .data-tile__src { font-size: 8.5px; }
  .gmr-croot .data-tile__rows { font-size: 9.5px; }
  .gmr-croot .data-target { padding: 10px 12px; gap: 10px; }
  .gmr-croot .data-target__arrow { width: 28px; height: 28px; }
  .gmr-croot .data-target__lbl { font-size: 9px; }
  .gmr-croot .data-target__val { font-size: 13px; }
  .gmr-croot .data-target__val span { font-size: 11px; }

  /* Slide 3 stack layers — tighter rows */
  .gmr-croot .stack-layer { padding: 8px 12px; gap: 8px; }
  .gmr-croot .stack-layer__num { font-size: 9px; width: 22px; }
  .gmr-croot .stack-layer__title { font-size: 11.5px; }
  .gmr-croot .stack-layer__tools { font-size: 9px; }
  .gmr-croot .stack-layer__metric { font-size: 12px; }
  .gmr-croot .stack-layer__metric small { font-size: 7.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .gmr-croot .slide,
  .gmr-croot .live-dot,
  .gmr-croot .brand-chip__dot {
    animation: none !important;
    transition: none !important;
  }
}

/* ---- Host-page isolation shim ----------------------------------------
   These carousels used to live in an <iframe>, so global element rules
   from /styles.css and product-page.css never reached them. Inline, two
   bare-element rules leak in: `footer { background: var(--ink-950); … }`
   (styles.css) and `a { color: var(--electric-bright) }` (product-page.css).
   Neutralize them; class-based carousel rules still override these. */
.gmr-croot footer { background: transparent; border-top: 0; padding: 0; }
.gmr-croot a { color: inherit; }
