/* ============================================================
   MathBall Brochure — Design System & Print Styles
   A4 Portrait: 210mm × 297mm
   ============================================================ */

:root {
  /* Colour */
  --page-bg: #121416;
  --page-bg-elevated: #181b1e;
  --text-primary: #ffffff;
  --text-secondary: #9a9ea3;
  --text-muted: #6e7378;
  --accent: #4ecdc4;
  --accent-cyan: var(--accent);
  --accent-soft: rgba(78, 205, 196, 0.35);
  --accent-glow: rgba(78, 205, 196, 0.18);
  --accent-orange: #ff8a3d;
  --brand-math: #c85e22;
  --brand-paren: #5a7a4a;
  --line-subtle: rgba(255, 255, 255, 0.12);
  --line-faint: rgba(255, 255, 255, 0.06);
  --panel-glass: rgba(255, 255, 255, 0.04);
  --panel-bg: var(--panel-glass);
  --panel-border: rgba(255, 255, 255, 0.14);
  --dashboard-bg: rgba(20, 26, 36, 0.95);
  --dashboard-panel-bg: #1a2230;
  --heatmap-low: #2d6a4f;
  --heatmap-mid: #e9c46a;
  --heatmap-high: #e76f51;

  /* Typography */
  --font-sans: Inter, Arial, Helvetica, sans-serif;
  --headline-size: 42px;
  --headline-weight: 700;
  --subtitle-size: 16px;
  --subtitle-weight: 400;
  --body-size: 13px;
  --body-weight: 400;
  --body-leading: 1.65;
  --footer-size: 10px;
  --brand-size: 22px;
  --tagline-size: 11px;
  --cover-headline-size: 52px;

  /* Spacing */
  --page-padding: 18mm;
  --page-padding-top: 16mm;
  --page-padding-bottom: 14mm;
  --space-xs: 6px;
  --space-sm: 10px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 36px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Layout */
  --page-width: 210mm;
  --page-height: 297mm;
  --footer-gap: 10px;
  --content-max: 100%;
}

/* ------------------------------------------------------------
   Reset & Base
   ------------------------------------------------------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  overflow: hidden;
  background: #070809;
}

body {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: var(--body-size);
  font-weight: var(--body-weight);
  line-height: var(--body-leading);
  color: var(--text-primary);
  background: #070809;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ------------------------------------------------------------
   Site top bar (viewer chrome only — not part of brochure pages)
   ------------------------------------------------------------ */

.site-topbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    rgba(10, 12, 16, 0.96);
  z-index: 20;
}

.site-topbar__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.site-topbar__logo {
  display: block;
  height: 28px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.site-topbar__pdf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid rgba(78, 205, 196, 0.45);
  background: rgba(78, 205, 196, 0.1);
  color: #4ecdc4;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.site-topbar__pdf:hover {
  background: rgba(78, 205, 196, 0.18);
  border-color: #4ecdc4;
  color: #6fe0d8;
}

.site-topbar__pdf-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ------------------------------------------------------------
   Horizontal brochure viewer (screen)
   ------------------------------------------------------------ */

.viewer {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  height: auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  grid-template-rows: 1fr auto;
  align-items: stretch;
  background: radial-gradient(ellipse at center, #12151a 0%, #070809 70%);
}

.viewer-stage {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  padding: 6px 4px 2px;
}

.viewer-frame {
  /* sized by JS to fit A4 while preserving aspect */
  width: var(--viewer-page-w, 210mm);
  height: var(--viewer-page-h, 297mm);
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.65);
}

.brochure {
  position: relative;
  width: 210mm;
  height: 297mm;
  padding: 0;
  gap: 0;
  transform-origin: top left;
  transform: scale(var(--viewer-scale, 1));
}

.viewer-nav {
  grid-row: 1;
  align-self: center;
  justify-self: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(78, 205, 196, 0.35);
  background: rgba(18, 22, 28, 0.85);
  color: #4ecdc4;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease, opacity 160ms;
}

.viewer-nav:hover:not(:disabled) {
  background: rgba(78, 205, 196, 0.12);
  border-color: #4ecdc4;
  transform: scale(1.04);
}

.viewer-nav:disabled {
  opacity: 0;
  cursor: default;
  pointer-events: none;
  visibility: hidden;
}

.viewer-nav--prev {
  grid-column: 1;
}

.viewer-nav--next {
  grid-column: 3;
}

.viewer-nav svg {
  width: 22px;
  height: 22px;
}

.viewer-chrome {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 4px 16px 12px;
}

.viewer-indicator {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #8a9096;
  font-variant-numeric: tabular-nums;
}

.viewer-dots {
  display: flex;
  gap: 7px;
  align-items: center;
}

.viewer-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
}

.viewer-dot.is-active {
  background: #4ecdc4;
  box-shadow: 0 0 8px rgba(78, 205, 196, 0.55);
}

@media (max-width: 900px) {
  .site-topbar {
    padding: 8px 12px;
  }

  .site-topbar__logo {
    height: 24px;
  }

  .site-topbar__pdf {
    padding: 7px 10px;
    font-size: 11px;
  }

  .viewer {
    grid-template-columns: 48px 1fr 48px;
  }

  .viewer-nav {
    width: 40px;
    height: 40px;
  }
}

/* ------------------------------------------------------------
   Page Shell
   ------------------------------------------------------------ */

.brochure-page {
  position: absolute;
  inset: 0;
  width: var(--page-width);
  height: var(--page-height);
  min-width: var(--page-width);
  min-height: var(--page-height);
  max-width: var(--page-width);
  max-height: var(--page-height);
  background: var(--page-bg);
  color: var(--text-primary);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: none; /* shadow on frame instead */
  page-break-after: always;
  break-after: page;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(28px);
  transition: opacity 280ms ease, transform 280ms ease, visibility 280ms;
}

/* Soft radial vignette on cover + intel pages for depth */
.page-cover::before,
.intel-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 72% 68% at 50% 42%,
    transparent 35%,
    rgba(0, 0, 0, 0.22) 72%,
    rgba(0, 0, 0, 0.35) 100%
  );
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.brochure-page.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  z-index: 2;
}

.brochure-page.is-exit-left {
  transform: translateX(-28px);
  opacity: 0;
}

.brochure-page.is-exit-right {
  transform: translateX(28px);
  opacity: 0;
}

.brochure-page__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: var(--page-padding-top) var(--page-padding) var(--page-padding-bottom);
  overflow: hidden;
}

/* ------------------------------------------------------------
   Reusable Components (Pages 4–12 ready)
   ------------------------------------------------------------ */

.page-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  margin-bottom: var(--space-xl);
  position: relative;
}

.page-header__meta {
  position: absolute;
  top: 0;
  right: 0;
  font-size: var(--footer-size);
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.page-title {
  font-size: var(--headline-size);
  font-weight: var(--headline-weight);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.page-title .accent-period {
  display: inline-block;
  width: 0.22em;
  height: 0.22em;
  margin-left: 0.08em;
  margin-bottom: 0.08em;
  background: var(--accent);
  vertical-align: baseline;
}

.page-subtitle {
  font-size: var(--subtitle-size);
  font-weight: var(--subtitle-weight);
  color: var(--text-secondary);
  line-height: 1.45;
  max-width: 42em;
}

.page-body {
  font-size: var(--body-size);
  font-weight: var(--body-weight);
  color: var(--text-secondary);
  line-height: var(--body-leading);
}

.page-body p + p {
  margin-top: var(--space-md);
}

.hero-area {
  flex: 1;
  position: relative;
  min-height: 0;
}

.callout {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.callout__label {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.callout__line {
  display: block;
  height: 1px;
  width: 28px;
  background: linear-gradient(90deg, rgba(78, 205, 196, 0.2), #4ecdc4 40%, rgba(78, 205, 196, 0.85));
  opacity: 0.95;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(78, 205, 196, 0.45);
}

.callout__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px rgba(78, 205, 196, 0.7);
  flex-shrink: 0;
}

.callout--top {
  top: 2px;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.callout--top .callout__line {
  width: 1px;
  height: 14px;
  background: linear-gradient(180deg, rgba(78, 205, 196, 0.2), #4ecdc4 40%, rgba(78, 205, 196, 0.85));
}

.callout--bottom {
  bottom: 2px;
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: 3px;
}

.callout--bottom .callout__line {
  width: 1px;
  height: 14px;
  background: linear-gradient(180deg, rgba(78, 205, 196, 0.85), #4ecdc4 40%, rgba(78, 205, 196, 0.2));
}

.callout--left {
  left: 0;
}

.callout--right {
  right: 0;
  align-items: flex-end;
  text-align: right;
}

.callout--center {
  left: 50%;
  transform: translateX(-50%);
  align-items: center;
  text-align: center;
}

.accent-rule {
  display: block;
  width: 48px;
  height: 1.5px;
  margin: var(--space-md) 0;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
  border: none;
}

.page-footer {
  margin-top: auto;
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-md);
  border-top: 1px solid var(--line-subtle);
  position: relative;
}

.page-footer::before {
  content: "";
  position: absolute;
  top: -5px;
  right: 0;
  width: 8px;
  height: 8px;
  background: var(--accent);
  clip-path: polygon(50% 0%, 65% 35%, 100% 50%, 65% 65%, 50% 100%, 35% 65%, 0% 50%, 35% 35%);
  opacity: 0.85;
}

.page-footer__left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.page-footer__primary {
  font-size: var(--footer-size);
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.page-footer__secondary {
  font-size: 9px;
  color: var(--accent);
}

.page-footer__right {
  font-size: var(--footer-size);
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

/* Brand marks */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-lockup__wordmark {
  font-size: var(--brand-size);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand-lockup__wordmark .math {
  color: var(--brand-math);
  font-weight: 600;
}

.brand-lockup__wordmark .ball {
  color: var(--text-primary);
  font-weight: 700;
}

.brand-lockup__wordmark--plain {
  color: var(--text-primary);
  font-weight: 600;
}

.brand-tagline {
  font-size: var(--tagline-size);
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  text-transform: none;
  margin-top: 6px;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  height: 28px;
  flex-shrink: 0;
}

.logo-mark svg,
.logo-mark__img {
  height: 100%;
  width: auto;
  display: block;
}

.brand-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-logo--cover {
  width: 400px;
  height: auto;
  max-width: 100%;
}

.brand-logo--header {
  width: 240px;
  height: auto;
  max-width: 100%;
  margin: 0 auto;
}

/* ------------------------------------------------------------
   PAGE 1 — Cover
   ------------------------------------------------------------ */

.page-cover .brochure-page__inner {
  padding-top: 18mm;
}

.cover-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.cover-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 58%;
  padding-bottom: 18mm;
}

.cover-hero .page-title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.cover-hero .page-title .accent-period {
  box-shadow: 0 0 10px rgba(78, 205, 196, 0.65);
}

.cover-hero .page-subtitle {
  margin-top: var(--space-lg);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
}

.cover-hero .accent-rule {
  width: 56px;
  height: 2px;
  margin-top: var(--space-md);
  background: var(--accent);
  box-shadow: 0 0 10px rgba(78, 205, 196, 0.55);
}

.cover-footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: var(--space-md);
  border-top: 1px solid var(--line-subtle);
  position: relative;
}

.cover-footer::after {
  content: "";
  position: absolute;
  top: -5px;
  right: 0;
  width: 8px;
  height: 8px;
  background: var(--text-secondary);
  clip-path: polygon(50% 0%, 65% 35%, 100% 50%, 65% 65%, 50% 100%, 35% 65%, 0% 50%, 35% 35%);
  opacity: 0.7;
}

.cover-footer__primary {
  font-size: 11px;
  color: var(--text-primary);
}

.cover-footer__secondary {
  font-size: 10px;
  color: var(--text-secondary);
}

.cover-dot {
  position: absolute;
  right: var(--page-padding);
  bottom: 10mm;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  z-index: 3;
}

/* Cover background graphics */
.cover-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 58% 68% at 78% 52%, rgba(55, 72, 82, 0.28) 0%, transparent 68%);
}

.cover-bg__pitch {
  position: absolute;
  right: -8%;
  top: 10%;
  width: 76%;
  height: 74%;
  opacity: 0.67;
  filter: drop-shadow(0 0 18px rgba(78, 205, 196, 0.1));
}

.cover-bg__pitch svg,
.cover-bg > svg.cover-bg__pitch {
  width: 100%;
  height: 100%;
}

.cover-bg__grid {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 58%;
  height: 48%;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.17) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.17) 1px, transparent 1px);
  background-size: 11px 11px;
  mask-image: radial-gradient(ellipse 92% 92% at 100% 100%, #000 22%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 92% 92% at 100% 100%, #000 22%, transparent 78%);
}

.page-cover {
  background:
    radial-gradient(ellipse 70% 55% at 72% 48%, rgba(40, 52, 62, 0.35) 0%, transparent 62%),
    radial-gradient(ellipse 50% 40% at 20% 30%, rgba(20, 28, 34, 0.5) 0%, transparent 70%),
    var(--page-bg);
}

/* ------------------------------------------------------------
   PAGE 2 — Football Has Changed
   ------------------------------------------------------------ */

.page-changed .page-header {
  margin-bottom: var(--space-lg);
}

.page-changed-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: var(--space-lg);
  flex: 1;
  min-height: 0;
  align-items: start;
}

.page-changed-copy {
  padding-top: 4px;
  max-width: 28em;
}

.page-changed-copy .page-title {
  font-size: 36px;
  margin-bottom: var(--space-md);
}

.page-changed-copy .page-subtitle {
  font-size: 14px;
  margin-bottom: var(--space-sm);
}

.page-changed-copy .page-body {
  font-size: 12.5px;
  max-width: 26em;
}

.fragment-scene {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}

.fragment-scene__glow {
  position: absolute;
  left: 48%;
  top: 42%;
  width: 96%;
  height: 90%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(
      ellipse 55% 45% at 52% 28%,
      rgba(78, 205, 196, 0.26) 0%,
      transparent 62%
    ),
    radial-gradient(
      ellipse at center,
      rgba(78, 205, 196, 0.16) 0%,
      rgba(78, 205, 196, 0.055) 48%,
      transparent 72%
    );
  pointer-events: none;
}

.fragment-scene__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: scale(1.23);
  transform-origin: 58% 46%;
  filter:
    drop-shadow(0 12px 32px rgba(0, 0, 0, 0.4))
    drop-shadow(0 0 22px rgba(78, 205, 196, 0.28));
}

/* Page 2 only: enlarge the complete right-side fragment composition ~11% */
.page-02 .fragment-scene__svg {
  transform: scale(1.35);
  transform-origin: 68% 44%;
}

.page-02 .fragment-scene__glow {
  transform: translate(-48%, -52%) scale(1.1);
}

/* ------------------------------------------------------------
   PAGE 3 — From Information to Understanding
   ------------------------------------------------------------ */

.page-understanding .page-header-block {
  margin-bottom: var(--space-xl);
}

.page-understanding .page-title {
  font-size: 34px;
  margin-bottom: var(--space-sm);
}

.page-understanding .page-subtitle {
  font-size: 15px;
}

.page-understanding-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  gap: var(--space-xl);
  flex: 1;
  min-height: 0;
}

.understanding-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding-top: 4px;
  max-width: 28em;
}

.understanding-copy__lead {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
}

.understanding-copy__sources {
  list-style: none;
  margin-top: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.understanding-copy__sources li {
  color: var(--text-secondary);
  font-size: 12.5px;
  padding-left: 0;
}

.understanding-copy p {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.understanding-copy .emphasis {
  color: var(--text-primary);
}

.transform-scene {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}

.transform-scene__glow {
  position: absolute;
  left: 50%;
  top: 40%;
  width: 70%;
  height: 55%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(
      ellipse at 50% 48%,
      rgba(78, 205, 196, 0.28) 0%,
      rgba(78, 205, 196, 0.1) 38%,
      transparent 68%
    );
  pointer-events: none;
}

.transform-scene__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter:
    drop-shadow(0 8px 24px rgba(0, 0, 0, 0.28))
    drop-shadow(0 0 22px rgba(78, 205, 196, 0.28));
}

.page-footer--centered {
  justify-content: center;
  text-align: center;
}

.page-footer--centered .page-footer__left {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  width: 100%;
}

.page-footer--centered .page-footer__primary,
.page-footer--centered .page-footer__secondary,
.page-footer--centered .page-footer__right {
  display: inline;
  font-size: 9.5px;
  color: var(--text-muted);
}

.page-footer--centered .sep {
  margin: 0 8px;
  color: var(--text-muted);
  opacity: 0.6;
}

.page-footer--centered::before {
  right: 4px;
}

/* ------------------------------------------------------------
   Shared chart / dashboard primitives (Pages 4–12)
   ------------------------------------------------------------ */

.intel-page .brochure-page__inner {
  padding-top: 14mm;
  padding-bottom: 10mm;
}

.intel-intro {
  flex-shrink: 0;
  max-height: 38%;
  overflow: hidden;
  text-align: left;
  margin-bottom: var(--space-sm);
  position: relative;
}

.intel-page-meta {
  position: absolute;
  top: 0;
  right: 0;
}

.intel-intro .page-title {
  font-size: 34px;
  margin-bottom: 6px;
  padding-right: 48px;
  letter-spacing: -0.025em;
}

.intel-intro .page-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.intel-intro .accent-rule {
  margin: 8px 0 10px;
}

.intel-copy {
  font-size: 12.2px;
  line-height: 1.45;
  color: var(--text-secondary);
  max-width: 52em;
}

.intel-copy p + p {
  margin-top: 4px;
}

.page-05 .intel-copy p + p,
.page-06 .intel-copy p + p {
  margin-top: 3px;
}

.intel-stage {
  flex: 1;
  position: relative;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 18px 8px 16px;
}

.dashboard-shell {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.045) 0%, transparent 36%),
    linear-gradient(145deg, rgba(34, 46, 64, 0.94) 0%, rgba(16, 22, 34, 0.96) 48%, rgba(10, 14, 22, 0.98) 100%);
  border: 1px solid rgba(140, 185, 220, 0.16);
  border-radius: 14px;
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(78, 205, 196, 0.05),
    0 0 22px rgba(78, 205, 196, 0.035),
    0 0 18px rgba(255, 138, 61, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 -1px 0 rgba(0, 0, 0, 0.28);
  padding: 11px 13px;
  overflow: hidden;
  position: relative;
}

.dashboard-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(ellipse 88% 48% at 50% -4%, rgba(78, 205, 196, 0.08), transparent 56%),
    radial-gradient(ellipse 42% 34% at 96% 92%, rgba(255, 138, 61, 0.045), transparent 55%);
  z-index: 0;
}

.dashboard-shell::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 13px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.035);
  z-index: 0;
}

.dashboard-shell > * {
  position: relative;
  z-index: 1;
}

.dashboard-shell__header {
  flex-shrink: 0;
  margin-bottom: 8px;
}

.dashboard-shell__title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.dashboard-shell__desc {
  font-size: 9.5px;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: 3px;
  max-width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dashboard-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  gap: 9px;
  width: 100%;
  height: 100%;
}

.dashboard-panel {
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.055) 0%, transparent 40%),
    linear-gradient(180deg, rgba(36, 48, 66, 0.78) 0%, rgba(18, 26, 40, 0.82) 100%);
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 9px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.075),
    inset 0 0 0 1px rgba(78, 205, 196, 0.03),
    0 8px 18px rgba(0, 0, 0, 0.26),
    0 0 14px rgba(78, 205, 196, 0.025);
  padding: 8px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.dashboard-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(78, 205, 196, 0.035) 0%, transparent 32%);
  z-index: 0;
}

.dashboard-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18);
  z-index: 0;
}

.dashboard-panel > * {
  position: relative;
  z-index: 1;
}

.dashboard-panel__head {
  flex-shrink: 0;
  margin-bottom: 6px;
}

.panel-title {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.panel-subtitle {
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 2px;
}

.panel-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 4px 0 6px;
}

.panel-tab {
  font-size: 8.5px;
  line-height: 1;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-muted);
  background: transparent;
  white-space: nowrap;
}

.panel-tab--active {
  background: rgba(78, 205, 196, 0.16);
  border-color: rgba(78, 205, 196, 0.85);
  color: #fff;
  box-shadow:
    0 0 10px rgba(78, 205, 196, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 6px;
}

.metric {
  font-size: 9px;
  color: var(--text-secondary);
  line-height: 1.3;
}

.metric strong,
.metric__value {
  color: var(--text-primary);
  font-weight: 600;
}

.callout-label {
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.pitch,
.pass-network,
.heatmap,
.radar-chart,
.line-chart,
.metric-bar,
.player-table,
.sparkline,
.chart-radar,
.chart-line,
.chart-bars,
.pitch-diagram,
.event-timeline,
.tactical-diagram {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  min-height: 0;
}

.pitch,
.pass-network,
.heatmap,
.radar-chart,
.line-chart,
.tactical-diagram {
  flex: 1;
  min-height: 0;
}

.pitch svg,
.pass-network svg,
.heatmap svg,
.radar-chart svg,
.line-chart svg,
.tactical-diagram svg,
.sparkline svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Soft halo for pass-network nodes when SVG filters are unavailable */
.pass-network svg circle {
  filter: drop-shadow(0 0 2.5px rgba(78, 205, 196, 0.45));
}

.page-05 .pass-network svg circle {
  filter: drop-shadow(0 0 2.5px rgba(255, 138, 61, 0.5));
}

.legend {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 8.5px;
  color: var(--text-muted);
  margin-top: 4px;
  flex-shrink: 0;
}

.legend__item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.legend__swatch {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}

.legend__swatch--spain,
.legend__swatch--cyan {
  background: var(--accent-cyan);
}

.legend__swatch--opponent,
.legend__swatch--orange {
  background: var(--accent-orange);
}

.legend__swatch--league {
  background: #8a9096;
}

.legend__swatch--opp-fill {
  background: linear-gradient(135deg, #b8d44a, #6fbf73);
}

.metric-bar {
  margin: 3px 0;
}

.metric-bar__label {
  display: flex;
  justify-content: space-between;
  font-size: 8.5px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.metric-bar__track {
  width: 100%;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.metric-bar__fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #3db8b0, #4ecdc4 55%, #7ee8e0);
  box-shadow: 0 0 6px rgba(78, 205, 196, 0.22);
}

.metric-bar__fill--orange {
  background: linear-gradient(90deg, #e07030 0%, #ff8a3d 55%, #ffb070);
  box-shadow: 0 0 6px rgba(255, 138, 61, 0.2);
}

.metric-bar__fill--opp {
  background: linear-gradient(90deg, #a8c43a, #b8d44a 45%, #6fbf73);
  box-shadow: 0 0 5px rgba(184, 212, 74, 0.18);
}

.player-table {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.player-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9px;
  line-height: 1.25;
}

.player-table th,
.player-table td {
  padding: 2px 4px;
  text-align: left;
  border-bottom: 1px solid rgba(120, 160, 190, 0.1);
  white-space: nowrap;
}

.player-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

.player-table tbody tr:hover td {
  background: rgba(78, 205, 196, 0.04);
}

.page-07 .player-table tbody tr:nth-child(odd) td {
  background: rgba(0, 0, 0, 0.08);
}

.page-07 .player-table tbody tr:nth-child(even) td {
  background: rgba(78, 205, 196, 0.03);
}

.player-table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 8.5px;
}

.player-table td {
  color: var(--text-secondary);
}

.player-table td:first-child {
  color: var(--text-primary);
  font-weight: 500;
}

.player-table th:not(:first-child),
.player-table td:not(:first-child) {
  text-align: right;
}

.sparkline-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 6px;
  flex-shrink: 0;
}

.sparkline-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 55%),
    rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 5px 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.sparkline-card__label {
  font-size: 8px;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.sparkline {
  height: 28px;
}

.balance-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  flex: 1;
  min-height: 0;
}

.balance-columns > div {
  padding: 6px 7px 4px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.balance-col__title {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  text-align: center;
}

.threat-row {
  margin-bottom: 8px;
}

.threat-row:last-child {
  margin-bottom: 0;
}

.threat-row__role {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.heatmap-scale {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 8px;
  color: var(--text-muted);
  margin-top: 4px;
  flex-shrink: 0;
}

.heatmap-scale__bar {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--heatmap-low), var(--heatmap-mid), var(--heatmap-high));
}

/* ---- Page 4: real MatchStudy screenshot + readable intro ---- */
.page-04 .intel-intro {
  max-height: none;
  overflow: visible;
  margin-bottom: 20px;
  flex: 0 0 auto;
}

.page-04 .intel-intro .page-title {
  font-size: 46px;
  margin-bottom: 14px;
  line-height: 1.1;
}

.page-04 .intel-intro .page-subtitle {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--text-primary);
  font-weight: 500;
}

.page-04 .intel-intro .accent-rule {
  margin: 14px 0 18px;
  width: 56px;
}

.page-04 .intel-copy {
  font-size: 15px;
  line-height: 1.65;
  max-width: 40em;
}

.page-04 .intel-copy p + p {
  margin-top: 10px;
}

.page-04 .intel-stage.page-04-stage {
  flex: 1;
  min-height: 0;
  padding: 16px 4px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-04-product {
  position: relative;
  z-index: 1;
  width: 100%;
  flex: 0 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
}

.page-04-product__frame {
  position: relative;
  width: 100%;
  flex: 0 0 auto;
  border-radius: 12px;
  overflow: hidden;
  background: #0b1018;
  border: 1px solid rgba(130, 175, 210, 0.22);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(78, 205, 196, 0.08),
    0 0 28px rgba(78, 205, 196, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  line-height: 0;
}

.page-04-product__shot {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
  image-rendering: auto;
}

/* ---- Page 5: real Team Analysis screenshot ---- */
.page-05 .intel-stage.page-05-stage {
  flex: 1;
  min-height: 0;
  padding: 14px 4px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-05-product {
  position: relative;
  z-index: 1;
  width: 100%;
  flex: 0 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
}

.page-05-product__frame {
  position: relative;
  width: 100%;
  flex: 0 1 auto;
  min-height: 0;
  max-height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #0b1018;
  border: 1px solid rgba(130, 175, 210, 0.22);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(78, 205, 196, 0.08),
    0 0 28px rgba(78, 205, 196, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  line-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-05-product__shot {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  image-rendering: auto;
}

/* ---- Page 6: real Opponent Analysis screenshot ---- */
.page-06 .intel-stage.page-06-stage {
  flex: 1;
  min-height: 0;
  padding: 14px 4px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-06-product {
  position: relative;
  z-index: 1;
  width: 100%;
  flex: 0 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
}

.page-06-product__frame {
  position: relative;
  width: 100%;
  flex: 0 1 auto;
  min-height: 0;
  max-height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #0b1018;
  border: 1px solid rgba(130, 175, 210, 0.22);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(78, 205, 196, 0.08),
    0 0 28px rgba(78, 205, 196, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  line-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-06-product__shot {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  image-rendering: auto;
}

/* ---- Page 7: real Player Analysis screenshot ---- */
.page-07 .intel-copy p + p {
  margin-top: 3px;
}

.page-07 .intel-stage.page-07-stage {
  flex: 1;
  min-height: 0;
  padding: 14px 4px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-07-product {
  position: relative;
  z-index: 1;
  width: 100%;
  flex: 0 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
}

.page-07-product__frame {
  position: relative;
  width: 100%;
  flex: 0 1 auto;
  min-height: 0;
  max-height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #0b1018;
  border: 1px solid rgba(130, 175, 210, 0.22);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(78, 205, 196, 0.08),
    0 0 28px rgba(78, 205, 196, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  line-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-07-product__shot {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center center;
  image-rendering: auto;
  -webkit-user-select: none;
  user-select: none;
}

/* ---- Page 8: real Visual Analysis screenshot ---- */
.page-08 .intel-copy p + p {
  margin-top: 3px;
}

.page-08 .intel-stage.page-08-stage {
  flex: 1;
  min-height: 0;
  padding: 14px 4px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-08-product {
  position: relative;
  z-index: 1;
  width: 100%;
  flex: 0 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
}

.page-08-product__frame {
  position: relative;
  width: 100%;
  flex: 0 1 auto;
  min-height: 0;
  max-height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #0b1018;
  border: 1px solid rgba(130, 175, 210, 0.22);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(78, 205, 196, 0.08),
    0 0 28px rgba(78, 205, 196, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  line-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-08-product__shot {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center center;
  image-rendering: auto;
  -webkit-user-select: none;
  user-select: none;
}

.heatmap-slider {
  height: 4px;
  border-radius: 2px;
  margin: 2px 0 6px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(78, 205, 196, 0.45), rgba(231, 111, 81, 0.7));
  position: relative;
  flex-shrink: 0;
}

.heatmap-slider::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 62%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ecdc4;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 2px rgba(21, 26, 36, 0.9);
}

.video-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%),
    #0d1218;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 6px 14px rgba(0, 0, 0, 0.28),
    0 0 12px rgba(78, 205, 196, 0.03);
}

.video-panel__stage {
  flex: 1;
  min-height: 0;
  position: relative;
  background:
    radial-gradient(ellipse 70% 55% at 50% 40%, rgba(78, 205, 196, 0.04), transparent 65%),
    #152018;
}

.video-panel__stage svg {
  width: 100%;
  height: 100%;
  display: block;
}

.video-chrome {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  background: linear-gradient(180deg, rgba(20, 28, 38, 0.92), rgba(8, 12, 18, 0.95));
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.video-chrome__btn {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #c8ccd0;
}

.video-chrome__btn svg {
  width: 12px;
  height: 12px;
  display: block;
}

.video-chrome__track {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.35);
}

.video-chrome__track::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 38%;
  border-radius: 2px;
  background: linear-gradient(90deg, #3db8b0, #4ecdc4);
  box-shadow: 0 0 6px rgba(78, 205, 196, 0.35);
}

.video-chrome__time {
  font-size: 8px;
  color: var(--text-muted);
  white-space: nowrap;
}

.mini-pitch-pair {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.mini-pitch-pair__item {
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 4px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.mini-pitch-pair__label {
  font-size: 8px;
  color: var(--text-muted);
  margin-bottom: 3px;
  text-align: center;
  flex-shrink: 0;
}

.mini-pitch-pair__item .pitch {
  flex: 1;
}

/* ---- Page 9: AI Intelligence infographic ---- */
.page-09 .intel-copy p + p {
  margin-top: 2px;
}

.page-09 .page-09-intro {
  max-height: none;
  margin-bottom: 4px;
  flex: 0 0 auto;
}

.page-09 .page-09-intro .page-title {
  color: var(--text-primary);
  font-size: 32px;
  margin-bottom: 3px;
}

.page-09 .page-09-intro .page-subtitle {
  font-size: 12.5px;
  margin-bottom: 3px;
}

.page-09 .page-09-intro .accent-rule {
  margin: 5px 0 6px;
}

.page-09 .page-09-intro .intel-copy {
  font-size: 11px;
  line-height: 1.35;
  max-width: 46em;
}

.page-09-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: flex-start;
  overflow: hidden;
}

.ai-flow {
  display: grid;
  grid-template-columns: 1fr 16px 1fr 16px 1fr 16px 1fr;
  gap: 4px;
  align-items: stretch;
  flex: 0 0 auto;
}

.ai-flow__step {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 7px 7px 8px;
  border-radius: 8px;
  border: 1px solid rgba(130, 175, 210, 0.18);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.035), transparent 50%),
    rgba(12, 16, 24, 0.78);
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.3),
    0 0 16px rgba(78, 205, 196, 0.06);
}

.ai-flow__visual {
  height: 82px;
  border-radius: 5px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-flow__visual svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ai-flow__visual--insights {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 3px;
  padding: 6px 7px;
}

.ai-insight-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 8px;
  line-height: 1.15;
  color: var(--text-secondary);
  padding: 3px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.ai-insight-chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ai-insight-chip__dot--purple { background: #c77dff; box-shadow: 0 0 6px rgba(199, 125, 255, 0.5); }
.ai-insight-chip__dot--green { background: #6fcf97; box-shadow: 0 0 6px rgba(111, 207, 151, 0.45); }
.ai-insight-chip__dot--orange { background: #ff8a3d; box-shadow: 0 0 6px rgba(255, 138, 61, 0.45); }
.ai-insight-chip__dot--cyan { background: #4ecdc4; box-shadow: 0 0 6px rgba(78, 205, 196, 0.5); }

.ai-flow__label {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.ai-flow__caption {
  font-size: 9px;
  line-height: 1.3;
  color: var(--text-muted);
  margin: 0;
}

.ai-flow__connector {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  height: 82px;
}

.ai-flow__connector span {
  display: block;
  width: 100%;
  height: 2.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(78, 205, 196, 0.35), #6fe0d8 40%, #4ecdc4 100%);
  box-shadow:
    0 0 10px rgba(78, 205, 196, 0.65),
    0 0 4px rgba(111, 224, 216, 0.45);
  position: relative;
  opacity: 1;
}

.ai-flow__connector span::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid #6fe0d8;
  border-top: 2px solid #6fe0d8;
  transform: translateY(-50%) rotate(45deg);
  box-shadow: 1px -1px 4px rgba(78, 205, 196, 0.45);
}

.ai-examples {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ai-examples__heading {
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.ai-examples__grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
}

.ai-card {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 6px 7px 5px;
  border-radius: 8px;
  border: 1px solid rgba(130, 175, 210, 0.14);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.03), transparent 55%),
    rgba(11, 15, 22, 0.82);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.26);
}

.ai-card__head {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.ai-card__icon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ai-card__icon--cyan { background: #4ecdc4; box-shadow: 0 0 8px rgba(78, 205, 196, 0.55); }
.ai-card__icon--purple { background: #c77dff; box-shadow: 0 0 8px rgba(199, 125, 255, 0.5); }
.ai-card__icon--blue { background: #5b9fd4; box-shadow: 0 0 8px rgba(91, 159, 212, 0.5); }
.ai-card__icon--green { background: #6fcf97; box-shadow: 0 0 8px rgba(111, 207, 151, 0.45); }

.ai-card__title {
  margin: 0;
  font-size: 10.5px;
  font-weight: 650;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.ai-card__visual {
  flex: 1;
  min-height: 0;
  border-radius: 5px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}

.ai-card__visual svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ai-card__note {
  margin: 0;
  font-size: 8.5px;
  line-height: 1.25;
  color: var(--text-muted);
}

.ai-reco {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(78, 205, 196, 0.22);
  background:
    linear-gradient(90deg, rgba(78, 205, 196, 0.08), rgba(12, 16, 24, 0.5) 28%, rgba(12, 16, 24, 0.65)),
    rgba(10, 14, 20, 0.9);
  box-shadow: 0 0 16px rgba(78, 205, 196, 0.06);
}

.ai-reco__label {
  flex: 0 0 auto;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  white-space: nowrap;
}

.ai-reco__items {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.ai-reco__item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 8.5px;
  line-height: 1.2;
  color: var(--text-secondary);
}

.ai-reco__glyph {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  border-radius: 3px;
  border: 1px solid rgba(78, 205, 196, 0.35);
  background: rgba(78, 205, 196, 0.08);
  position: relative;
}

.ai-reco__glyph--up::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 3px;
  width: 0;
  height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-bottom: 5px solid #4ecdc4;
  transform: translateX(-50%);
}

.ai-reco__glyph--shield::before {
  content: "";
  position: absolute;
  inset: 2px 3px 2px;
  border: 1.2px solid #6fcf97;
  border-radius: 2px 2px 4px 4px;
}

.ai-reco__glyph--press::before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 5px;
  height: 1.5px;
  background: #ff8a3d;
  box-shadow: 0 3px 0 #ff8a3d, 0 -3px 0 rgba(255, 138, 61, 0.5);
}

.ai-reco__glyph--watch::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1.3px solid #e9c46a;
  border-radius: 50%;
}

.ai-closing {
  flex: 0 0 auto;
  margin: 0;
  text-align: center;
  font-size: 10px;
  line-height: 1.35;
  color: var(--accent-cyan);
  letter-spacing: 0.01em;
  padding: 2px 8px 0;
}

/* ------------------------------------------------------------
   Pages 10–12 — Platform Hub, Heritage, Closing
   ------------------------------------------------------------ */

:root {
  --closing-text: #d8cfc8;
}

/* ---- Page 10: Platform Hub ---- */

.page-10 .intel-copy p + p {
  margin-top: 5px;
}

.page-10 .platform-hub {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  width: 100%;
  padding: 4px 0 8px;
  position: relative;
}

.page-10 .platform-hub::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 48%;
  width: 72%;
  height: 70%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 50% 48%, rgba(78, 205, 196, 0.2) 0%, rgba(78, 205, 196, 0.08) 28%, rgba(78, 205, 196, 0.03) 48%, transparent 72%),
    radial-gradient(circle at 50% 52%, rgba(126, 232, 224, 0.08) 0%, transparent 55%);
  pointer-events: none;
}

.page-10 .platform-hub svg {
  width: 100%;
  max-height: 100%;
  display: block;
  filter:
    drop-shadow(0 0 18px rgba(78, 205, 196, 0.32))
    drop-shadow(0 0 36px rgba(78, 205, 196, 0.12));
  position: relative;
  z-index: 1;
}

/* ---- Page 11: Heritage Timeline ---- */

/* Landscape-only copy/callout — hidden for portrait + PDF */
.page-11 .page-11-landscape-copy,
.page-11 .page-11-landscape-callout {
  display: none;
}

.page-11 .intel-intro .page-title {
  color: var(--closing-text);
  font-size: 30px;
}

.page-11 .intel-copy {
  color: rgba(216, 207, 200, 0.82);
}

.page-11 .intel-copy p + p {
  margin-top: 3px;
}

.page-11 .timeline-hero {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 2px 0 4px;
  position: relative;
}

.page-11 .timeline-hero::before {
  content: "";
  position: absolute;
  inset: 6% 4%;
  background:
    radial-gradient(ellipse at 12% 78%, rgba(78, 205, 196, 0.12) 0%, transparent 42%),
    radial-gradient(ellipse at 88% 18%, rgba(94, 224, 216, 0.16) 0%, transparent 38%),
    radial-gradient(ellipse at 55% 45%, rgba(78, 205, 196, 0.07) 0%, transparent 62%);
  pointer-events: none;
}

.page-11 .timeline-hero svg {
  width: 100%;
  max-height: 100%;
  display: block;
  filter:
    drop-shadow(0 0 14px rgba(78, 205, 196, 0.28))
    drop-shadow(0 4px 20px rgba(78, 205, 196, 0.1));
  position: relative;
  z-index: 1;
}

.page-11 .heritage-callout {
  flex-shrink: 0;
  text-align: center;
  padding: 6px 12px 10px;
  color: var(--closing-text);
}

.page-11 .heritage-callout__years {
  display: block;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  margin-bottom: 4px;
}

.page-11 .heritage-callout__line {
  display: block;
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(216, 207, 200, 0.88);
}

.page-11 .heritage-callout__emphasis {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-top: 4px;
  color: var(--closing-text);
}

/* ---- Page 12: Closing ---- */

.page-12.page-closing .brochure-page__inner {
  padding-top: 16mm;
  padding-bottom: 11mm;
}

.page-12 .intel-intro {
  max-height: none;
  margin-bottom: var(--space-md);
}

.page-12 .intel-intro .page-title {
  color: var(--closing-text);
  font-size: 32px;
  margin-bottom: 8px;
}

.page-12 .intel-intro .page-subtitle {
  font-size: 14px;
  color: rgba(216, 207, 200, 0.78);
  margin-bottom: 8px;
}

.page-12 .intel-intro .accent-rule {
  margin: 10px 0 14px;
}

.page-12 .intel-copy {
  color: rgba(216, 207, 200, 0.85);
  font-size: 13px;
  line-height: 1.55;
  max-width: 40em;
}

.page-12 .intel-copy p + p {
  margin-top: 8px;
}

.page-12 .data-tree-hero {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 4px 0 0;
  position: relative;
}

.page-12 .data-tree-hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 42%;
  width: 58%;
  height: 70%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(
      ellipse at 50% 78%,
      rgba(78, 205, 196, 0.28) 0%,
      rgba(78, 205, 196, 0.12) 32%,
      transparent 68%
    ),
    radial-gradient(
      ellipse at 72% 38%,
      rgba(94, 224, 216, 0.15) 0%,
      transparent 45%
    );
  pointer-events: none;
  z-index: 0;
}

.page-12 .data-tree-hero svg {
  width: 88%;
  max-height: 58%;
  display: block;
  position: relative;
  z-index: 1;
  filter:
    drop-shadow(0 0 16px rgba(78, 205, 196, 0.36))
    drop-shadow(0 12px 30px rgba(78, 205, 196, 0.18));
}

.page-12 .data-tree-brand {
  flex-shrink: 0;
  text-align: center;
  margin-top: 6px;
  color: var(--closing-text);
  position: relative;
  z-index: 1;
}

.page-12 .data-tree-brand__name {
  display: block;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.page-12 .data-tree-brand__tagline {
  display: block;
  font-size: 12px;
  margin-top: 3px;
  color: rgba(216, 207, 200, 0.8);
}

.page-12 .closing-contact {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: end;
  padding: 18px 8px 8px;
  margin-top: auto;
}

.page-12 .closing-contact__info {
  color: var(--closing-text);
  font-size: 12.5px;
  line-height: 1.55;
}

.page-12 .closing-contact__brand {
  display: block;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}

.page-12 .closing-contact__line {
  display: block;
  color: rgba(216, 207, 200, 0.82);
}

.page-12 .closing-contact__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  gap: 8px;
}

.page-12 .closing-contact__ball {
  width: 72px;
  height: 72px;
}

.page-12 .closing-contact__ball svg {
  width: 100%;
  height: 100%;
  display: block;
}

.page-12 .closing-contact__request {
  font-size: 12px;
  font-weight: 600;
  color: var(--closing-text);
  letter-spacing: 0.01em;
}

/* ------------------------------------------------------------
   Print / PDF Export
   ------------------------------------------------------------ */

@page {
  size: A4 portrait;
  margin: 0;
}

@media print {
  html.pdf-export,
  html {
    --page-width: 210mm !important;
    --page-height: 297mm !important;
    --viewer-scale: 1 !important;
  }

  html,
  body {
    margin: 0 !important;
    padding: 0 !important;
    width: 210mm !important;
    min-width: 210mm !important;
    max-width: 210mm !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    display: block !important;
    background: #121416 !important;
  }

  .site-topbar,
  .viewer-nav,
  .viewer-chrome {
    display: none !important;
  }

  .viewer,
  .viewer-stage,
  .viewer-frame,
  .brochure {
    position: static !important;
    display: block !important;
    width: 210mm !important;
    min-width: 210mm !important;
    max-width: 210mm !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    box-shadow: none !important;
    background: none !important;
    transform: none !important;
    transform-origin: top left !important;
    inset: auto !important;
    flex: none !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
  }

  .viewer-frame {
    overflow: hidden !important;
  }

  .brochure {
    width: 210mm !important;
    height: auto !important;
    gap: 0 !important;
  }

  .brochure-page {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    z-index: auto !important;
    width: 210mm !important;
    height: 297mm !important;
    min-width: 210mm !important;
    min-height: 297mm !important;
    max-width: 210mm !important;
    max-height: 297mm !important;
    margin: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
    page-break-after: always;
    break-after: page;
    page-break-inside: avoid;
    break-inside: avoid;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    transition: none !important;
  }

  .brochure-page.is-active,
  .brochure-page.is-exit-left,
  .brochure-page.is-exit-right {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
  }

  .brochure-page:last-child {
    page-break-after: auto;
    break-after: auto;
  }

  /* Landscape-only Page 11 copy must never appear in PDF */
  .page-11 .page-11-landscape-copy,
  .page-11 .page-11-landscape-callout {
    display: none !important;
  }

  .page-11 .page-11-portrait-copy {
    display: block !important;
  }

  .page-11 .page-11-portrait-callout {
    display: block !important;
  }

  .dashboard-shell,
  .dashboard-panel,
  .video-panel,
  .ai-bubble,
  .metric-bar__fill,
  .metric-bar__fill--orange,
  .metric-bar__fill--opp,
  .video-chrome__track::after,
  .explore-btn--primary,
  .event-timeline__time {
    box-shadow: none !important;
    text-shadow: none !important;
  }

  .dashboard-shell {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 0 0 1px rgba(78, 205, 196, 0.05) !important;
  }

  .dashboard-panel {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 2px 6px rgba(0, 0, 0, 0.18) !important;
  }

  .page-09 .ai-flow__step,
  .page-09 .ai-card,
  .page-09 .ai-reco {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18) !important;
  }
}
