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

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --border: rgba(0,0,0,0.08);
  --text: #111827;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-glow: rgba(99,102,241,0.35);
  --gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --header-h: 56px;
  --sidebar-w: 300px;
  --footer-h: 52px;
  --content-max: 1140px;
}

html, body {
  height: 100%;
  overflow: hidden;
}

html { scroll-behavior: smooth; min-width: 1440px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* ── Site layout (left sidebar) ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 200;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  padding: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-logo {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  border-right: 1px solid var(--border);
  min-width: 0;
}

.header-logo span { font-weight: 400; color: var(--text-muted); }

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  min-width: 0;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.header-nav-btn {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.4rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 6px;
  background: none;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  letter-spacing: -0.01em;
}

.header-nav-btn:hover {
  color: var(--text);
  background: rgba(99,102,241,0.08);
}

.header-nav-btn.active {
  color: var(--text);
  font-weight: 600;
  background: rgba(99,102,241,0.12);
  border-color: rgba(99,102,241,0.25);
}

.header-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(255,255,255,0.03);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-icon-btn {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.header-icon-btn:hover {
  background: rgba(99,102,241,0.15);
  border-color: rgba(99,102,241,0.4);
  color: var(--text);
}

.header-icon-btn svg { display: block; }

.header-icon-btn .icon-exit { display: none; }
.header-icon-btn.is-fullscreen .icon-enter { display: none; }
.header-icon-btn.is-fullscreen .icon-exit { display: block; }

html:fullscreen {
  --content-max: min(1200px, calc(100vw - 4rem));
}

html:fullscreen .doc-sidebar,
html:-webkit-full-screen .doc-sidebar {
  display: none !important;
}

html:fullscreen .site-header,
html:-webkit-full-screen .site-header {
  grid-template-columns: 1fr;
}

html:fullscreen .header-logo,
html:-webkit-full-screen .header-logo {
  display: none;
}

.doc-sidebar.is-hidden { display: none; }

.view-panel { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.view-panel.is-hidden { display: none; }

/* ── Screen Structure view ── */
.screen-pages {
  flex: 1;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.screen-page {
  min-height: 100%;
  padding: 2.5rem 3rem 4rem;
  border-bottom: 1px solid var(--border);
}

.screen-page:last-child { border-bottom: none; }

.screen-page-inner { max-width: var(--content-max); margin: 0 auto; }

.screen-page .label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.screen-page h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.screen-page .screen-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.75rem;
  max-width: 640px;
}

.screen-layout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.screen-block {
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(99,102,241,0.04);
}

.screen-block strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.screen-block span {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.screen-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: -0.5rem 0 1.5rem;
}

.screen-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(99,102,241,0.06);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.screen-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.screen-flow-step {
  position: relative;
  min-height: 82px;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(99,102,241,0.22);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(99,102,241,0.08), rgba(255,255,255,0.02));
}

.screen-flow-step b {
  display: block;
  color: var(--accent);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.screen-flow-step span {
  display: block;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
}

.screen-detail-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.screen-detail {
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.screen-detail h3 {
  font-size: 0.88rem;
  margin-bottom: 0.55rem;
}

.screen-detail ul {
  list-style: none;
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.65;
}

.screen-detail li::before {
  content: '→ ';
  color: var(--accent-light);
  font-weight: 700;
}

.screen-tree {
  list-style: none;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.screen-tree > li { margin-bottom: 0.35rem; }
.screen-tree strong { color: var(--text); font-weight: 600; }
.screen-tree ul { list-style: none; padding-left: 1.25rem; margin-top: 0.2rem; }
.screen-tree ul li::before { content: '· '; color: var(--text-light); }

.code-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.code-block {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #0f172a;
  color: #e5e7eb;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.76rem;
  line-height: 1.6;
  overflow: auto;
  white-space: pre;
}

.code-grid .code-block {
  margin-top: 0;
}

.code-grid + .screen-layout-grid {
  margin-top: 1.75rem;
}

.engine-flow-chart {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 28px minmax(150px, 1.1fr) 28px minmax(150px, 1.1fr) 28px minmax(150px, 1.1fr) 28px minmax(130px, 1fr);
  align-items: stretch;
  gap: 0.45rem;
  max-width: 1120px;
  margin: 2rem auto 0;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(99,102,241,0.12), transparent 34%),
    linear-gradient(180deg, rgba(99,102,241,0.05), rgba(255,255,255,0.02));
}

.engine-node,
.engine-runtime-card {
  position: relative;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(99,102,241,0.18);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 14px 36px rgba(17,24,39,0.06);
}

.engine-node {
  max-width: none;
  margin: 0;
}

.engine-node span,
.engine-runtime-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 1.35rem;
  margin-bottom: 0.55rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: rgba(99,102,241,0.12);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
}

.engine-node strong,
.engine-runtime-card strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--text);
  font-size: 0.86rem;
  letter-spacing: -0.02em;
}

.engine-node p,
.engine-runtime-card p {
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.55;
}

.engine-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 800;
}

.engine-arrow-down {
  grid-column: 1 / -1;
  height: 0.75rem;
  margin-top: 0.2rem;
}

.engine-split {
  position: relative;
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1.15rem auto 0;
  width: min(620px, 100%);
}

.engine-split-line {
  position: absolute;
  top: -1.15rem;
  left: 25%;
  right: 25%;
  height: 1.15rem;
  border-top: 1px solid rgba(99,102,241,0.35);
  border-left: 1px solid rgba(99,102,241,0.35);
  border-right: 1px solid rgba(99,102,241,0.35);
  border-radius: 14px 14px 0 0;
  pointer-events: none;
}

.engine-exchanges {
  grid-column: 1 / -1;
  width: min(620px, 100%);
  margin-top: 1rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(99,102,241,0.1);
  color: var(--accent);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.toc-item.toc-sub {
  padding-left: 2.25rem;
  font-size: 0.75rem;
}

.toc-group-label {
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75rem 1.25rem 0.35rem;
}

.site-body {
  display: flex;
  height: 100vh;
  padding-top: var(--header-h);
}

.doc-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  background: var(--bg);
  overflow-y: auto;
  padding: 1.25rem 0;
}

.sidebar-title {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0 1.25rem;
  margin-bottom: 0.65rem;
}

.toc-list { list-style: none; }

.toc-item {
  display: block;
  width: 100%;
  text-align: left;
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding: 0.45rem 1.25rem;
  border: none;
  background: none;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  line-height: 1.4;
}

.toc-item:hover {
  color: var(--text);
  background: rgba(255,255,255,0.04);
}

.toc-item.active {
  color: var(--text);
  font-weight: 600;
  background: rgba(99,102,241,0.1);
  border-left-color: var(--accent);
}

.toc-num {
  display: inline-block;
  width: 1.4rem;
  font-size: 0.6875rem;
  color: var(--text-light);
  font-weight: 600;
}

.toc-item.active .toc-num { color: var(--accent-light); }

.doc-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg);
}

.deck {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.slides {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
}

/* ── Slide layout ── */
.slide {
  min-height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.25rem, 2.5vh, 2rem) clamp(1.5rem, 4vw, 3rem);
  background: var(--bg);
  position: relative;
  border-bottom: 1px solid var(--border);
}

.slide::before { content:none; }

.slide-inner {
  position: relative;
  z-index: 1;
  max-width: var(--content-max);
  width: 100%;
  margin: 0 auto;
}

.slide-num { display: none; }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.slide.in-view .reveal { opacity: 1; transform: translateY(0); }
.slide.in-view .reveal-d1 { transition-delay: 0.08s; }
.slide.in-view .reveal-d2 { transition-delay: 0.16s; }
.slide.in-view .reveal-d3 { transition-delay: 0.24s; }
.slide.in-view .reveal-d4 { transition-delay: 0.32s; }

.slide.in-view .cover-logo {
  animation: scaleIn 0.7s var(--ease) 0.1s forwards;
}

.slide.in-view .chart-bar {
  animation: growBar 0.8s var(--ease) 0.35s forwards;
}

.slide.in-view .eco-center {
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0) rotate(-20deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes growBar {
  from { height: 0; }
  to { height: var(--bar-h, 100px); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 40px rgba(99,102,241,0.3); }
  50% { box-shadow: 0 0 80px rgba(99,102,241,0.5); }
}

/* ── Typography & components (shared) ── */
.label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-light); margin-bottom: 20px;
}
.label::before { content: ''; width: 24px; height: 1px; background: var(--accent); }
.label.center { justify-content: center; width: 100%; }

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 24px; }
h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 8px; }

.subtitle { font-size: clamp(1.1rem, 2vw, 1.5rem); color: var(--text-muted); font-weight: 400; margin-top: 16px; line-height: 1.5; }
.gradient-text { color: var(--accent); }

.tagline { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; justify-content: center; }
.tag { padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--text-muted); background: rgba(255,255,255,0.03); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.card-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 16px; background: rgba(99,102,241,0.15); }
.card p, .card li { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.card ul { list-style: none; margin-top: 8px; }
.card li::before { content: '→ '; color: var(--accent-light); }

.stat-row { display: flex; gap: 48px; margin-top: 40px; flex-wrap: wrap; }
.stat-value { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; color: var(--accent); }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

.flow { display: flex; align-items: center; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.flow-step { flex: 1; min-width: 140px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; text-align: center; font-size: 14px; }
.flow-arrow { color: var(--accent-light); font-size: 20px; flex-shrink: 0; }

.revenue-bar { margin-top: 32px; }
.revenue-item { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.revenue-label { width: 180px; font-size: 14px; font-weight: 500; flex-shrink: 0; }
.revenue-track { flex: 1; height: 32px; background: var(--surface); border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.revenue-fill { height: 100%; border-radius: 8px; display: flex; align-items: center; padding-left: 12px; font-size: 12px; font-weight: 600; }

.chart-bars { display: flex; align-items: flex-end; gap: 16px; height: 200px; margin-top: 40px; padding: 0 20px; }
.chart-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.chart-bar { width: 100%; border-radius: 8px 8px 0 0; background: var(--gradient); opacity: 0.85; height: 0; }
.chart-label { font-size: 12px; color: var(--text-muted); }

.ecosystem { position: relative; width: 100%; max-width: 600px; height: 360px; margin: 32px auto 0; }
.eco-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 140px; height: 140px; border-radius: 50%; background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; text-align: center; z-index: 2;
}
.eco-node {
  position: absolute; width: 110px; padding: 12px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px; font-size: 12px; font-weight: 600; text-align: center;
}
.eco-node:nth-child(2) { top: 0; left: 50%; transform: translateX(-50%); }
.eco-node:nth-child(3) { top: 50%; right: 0; transform: translateY(-50%); }
.eco-node:nth-child(4) { bottom: 0; left: 50%; transform: translateX(-50%); }
.eco-node:nth-child(5) { top: 50%; left: 0; transform: translateY(-50%); }

.closing-quote { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; }
.contact { margin-top: 40px; display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; }
.contact-item { font-size: 14px; color: var(--text-muted); }
.contact-item strong { display: block; color: var(--text); margin-bottom: 4px; }

.cover-slide { text-align: center; }
.cover-slide .slide-inner { max-width: 800px; }
.cover-logo {
  width: 64px; height: 64px; border-radius: 16px; background: var(--gradient);
  margin: 0 auto 32px; display: flex; align-items: center; justify-content: center;
  font-size: 28px; box-shadow: 0 8px 32px var(--accent-glow); opacity: 0;
}

.bullet-list { list-style: none; margin-top: 24px; }
.bullet-list li {
  padding: 12px 0; border-bottom: 1px solid var(--border);
  font-size: 16px; color: var(--text-muted);
  display: flex; align-items: flex-start; gap: 12px;
}
.bullet-list li:last-child { border-bottom: none; }
.bullet-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 8px; flex-shrink: 0; }

.bullet-list li strong { color: var(--text); font-weight: 600; }

.referral-gap {
  margin-top: 24px;
  padding: 18px 22px;
  border: 1px solid rgba(99,102,241,0.26);
  border-radius: 14px;
  background: rgba(15,23,42,0.04);
}
.referral-gap p {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}
.referral-gap p + p { margin-top: 8px; }
.referral-gap strong { color: var(--text); font-weight: 700; }
.referral-gap-point {
  color: var(--accent-light) !important;
  font-weight: 700;
}

.problem-highlight { margin-top: 24px; }
.problem-highlight .card {
  border-color: rgba(99,102,241,0.4);
  background: rgba(99,102,241,0.08);
  padding: 20px 24px;
}
.problem-highlight .card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: 12px;
}
.problem-highlight .card ul { list-style: none; }
.problem-highlight .card li {
  font-size: 14px;
  color: var(--text-muted);
  padding: 6px 0 6px 16px;
  position: relative;
  line-height: 1.55;
}
.problem-highlight .card li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-light);
  font-weight: 700;
}
.problem-highlight .card li strong { color: var(--text); }

.solution-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}
.solution-entry {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  text-align: center;
}
.solution-entry.mcp {
  border-color: rgba(168,85,247,0.45);
  background: rgba(99,102,241,0.1);
}
.solution-entry-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 8px;
}
.solution-entry strong {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.solution-entry p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}
.solution-merge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 18px 0 6px;
  font-size: 13px;
  color: var(--text-muted);
}
.solution-merge span {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  font-weight: 600;
  color: var(--accent-light);
}

.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.mt-24 { margin-top: 24px; }
.muted-sm { font-size: 12px; opacity: 0.6; }
.mb-8 { margin-bottom: 8px; }

.slide-compact { padding: 48px 64px 80px; }
.slide-compact h2 { margin-bottom: 12px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.slide-inner.wide { max-width: 1180px; }

.slide-fit {
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  padding: clamp(1rem, 2vh, 1.35rem) clamp(1.25rem, 3vw, 2rem);
  justify-content: flex-start;
}

.slide-fit.slide-fee {
  align-items: stretch;
}

.slide-fit.slide-fee > .slide-inner {
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: clamp(0.55rem, 1.1vh, 0.85rem);
}

.slide-fee .fee-head-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.slide-fee .fee-head-text { flex: 1; min-width: 200px; }
.slide-fee .label { margin-bottom: 8px; }
.slide-fee h2 { margin-bottom: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; }
.slide-fee .fee-head { flex-shrink: 0; }
.slide-fee .fee-calc-toolbar { margin-top: 0; padding: 10px 14px; gap: 12px; flex-shrink: 0; }
.slide-fee .fee-calc-field { font-size: 13px; gap: 8px; }
.slide-fee .fee-input { width: 92px; padding: 6px 10px; font-size: 14px; }
.slide-fee .fee-calc-btn { padding: 8px 14px; font-size: 13px; margin-left: 0; }
.slide-fee .fee-main {
  display: grid;
  grid-template-columns: 1fr 1fr 1.05fr;
  gap: 14px;
  flex: 1 1 0;
  min-height: 0;
  align-items: stretch;
}
.slide-fee .fee-main > .fee-table-wrap {
  height: 100%;
  min-height: 0;
}
.slide-fee .fee-main > .fee-referral-col {
  height: 100%;
  min-height: 0;
}
.slide-fee .fee-main .fee-table {
  flex: 1;
  width: 100%;
  font-size: 13px;
}
.slide-fee .fee-main .fee-table th,
.slide-fee .fee-main .fee-table td {
  padding: 11px 14px;
}
.slide-fee .fee-main .fee-table th { font-size: 11px; }
.slide-fee .fee-referral-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}
.slide-fee .fee-referral-col > .fee-table-wrap {
  flex: 1 1 0;
  min-height: 0;
}
.slide-fee .fee-referral-col > .fee-table-wrap .fee-table {
  flex: 1;
}
.slide-fee .fee-split-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
}
.slide-fee .fee-split-box-title {
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-light);
  border-bottom: 1px solid var(--border);
  background: rgba(99,102,241,0.08);
  flex-shrink: 0;
}
.slide-fee .fee-split-row {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.slide-fee .fee-split-row:last-child { border-bottom: none; }
.slide-fee .fee-split-row-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: 8px;
}
.slide-fee .fee-split-row-values {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}
.slide-fee .fee-split-row-values span {
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.35;
}
.slide-fee .fee-split-row-values strong {
  color: var(--text);
  font-weight: 700;
}
.slide-fee .fee-table-wrap {
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.slide-fee .fee-table-title {
  padding: 10px 14px;
  font-size: 11px;
  letter-spacing: 0.08em;
  flex-shrink: 0;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent-light);
  border-bottom: 1px solid var(--border);
  background: rgba(99,102,241,0.08);
}
.slide-fee .fee-table {
  font-size: 13px;
}
.slide-fee .fee-table th,
.slide-fee .fee-table td {
  padding: 11px 14px;
}
.slide-fee .fee-table th { font-size: 11px; }
.slide-fee .fee-split-card {
  padding: clamp(12px, 1.8vh, 20px) 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}
.slide-fee .fee-split-label { font-size: 10px; margin-bottom: clamp(6px, 1vh, 10px); }
.slide-fee .fee-split-value-monthly {
  font-size: clamp(1.4rem, 2.6vw, 1.95rem);
  margin-bottom: clamp(6px, 1vh, 10px);
}
.slide-fee .fee-split-value-monthly .fee-period { font-size: clamp(1rem, 1.8vw, 1.25rem); }
.slide-fee .fee-split-value-daily {
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  margin-bottom: clamp(4px, 0.8vh, 8px);
}
.slide-fee .fee-split-value-daily .fee-period { font-size: 0.875rem; }
.slide-fee .fee-split-sub { font-size: 11px; line-height: 1.45; margin-top: 0; }
.slide-fee .fee-bottom {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
}
.slide-fee .fee-bottom .fee-table-wrap {
  flex: none;
  height: auto;
}
.slide-fee .fee-bottom .fee-table {
  flex: none;
  height: auto;
  font-size: 13px;
}
.slide-fee .fee-bottom .fee-table th,
.slide-fee .fee-bottom .fee-table td {
  padding: 12px 14px;
}
.slide-fee .fee-table tr.referral-revenue td {
  padding: 14px 14px;
  box-shadow: none;
}
.slide-fee .fee-table tr.referral-revenue td:first-child { font-size: 13px; }
.slide-fee .fee-table tr.referral-revenue .revenue-num {
  font-size: clamp(16px, 2.2vw, 20px);
}
.slide-fee .fee-note {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.4;
  flex-shrink: 0;
}

.fee-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.fee-table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.fee-table-title { padding: 8px 12px; font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-light); border-bottom: 1px solid var(--border); background: rgba(99,102,241,0.08); }
.fee-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.fee-table th, .fee-table td { padding: 7px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.fee-table th { color: var(--text-muted); font-weight: 500; font-size: 10px; }
.fee-table tr:last-child td { border-bottom: none; }
.fee-table th.num { text-align: right; }
.fee-table td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.fee-table.mau-table th.num,
.fee-table.mau-table td.num { text-align: center; }
.fee-table tr.highlight td { background: rgba(99,102,241,0.1); }
.fee-table tr.highlight td:first-child { color: var(--accent-light); font-weight: 600; }
.fee-table tr.referral-revenue td {
  background: linear-gradient(90deg, rgba(99,102,241,0.22) 0%, rgba(168,85,247,0.14) 50%, rgba(236,72,153,0.1) 100%);
  border-top: 2px solid rgba(99,102,241,0.5);
  border-bottom: 2px solid rgba(168,85,247,0.35);
  padding: 12px;
  box-shadow: inset 0 0 0 1px rgba(99,102,241,0.2);
}
.fee-table tr.referral-revenue td:first-child {
  box-shadow: inset 4px 0 0 var(--accent), inset 0 0 0 1px rgba(99,102,241,0.2);
  color: var(--accent-light);
  font-weight: 700;
  font-size: 13px;
  background: linear-gradient(90deg, rgba(99,102,241,0.28) 0%, rgba(99,102,241,0.1) 100%);
}
.fee-table tr.referral-revenue td.num {
  background: linear-gradient(135deg, rgba(99,102,241,0.18) 0%, rgba(168,85,247,0.12) 50%, rgba(236,72,153,0.08) 100%);
}
.fee-table tr.referral-revenue .revenue-num {
  display: inline-block;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.fee-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.fee-split-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.fee-split-card.agent { border-color: rgba(99,102,241,0.35); }
.fee-split-card.user { border-color: rgba(168,85,247,0.35); }
.fee-split-label { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.fee-split-value { font-weight: 700; line-height: 1.2; }
.fee-split-value-monthly { font-size: clamp(1.5rem, 2.8vw, 2rem); margin-bottom: 8px; }
.fee-split-value-monthly .fee-period { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 800; color: var(--accent-light); margin-left: 2px; }
.fee-split-value-daily { font-size: 1rem; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.fee-split-value-daily .fee-period { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.fee-split-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; line-height: 1.45; }
.fee-note { font-size: 10px; color: var(--text-muted); margin-top: 10px; }

.fee-calc-toolbar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 12px; padding: 12px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
}
.fee-calc-field { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.fee-calc-field label { font-weight: 500; white-space: nowrap; }
.fee-input {
  width: 100px; padding: 6px 10px; border-radius: 8px;
  border: 1px solid rgba(99,102,241,0.4); background: rgba(99,102,241,0.08);
  color: var(--text); font-size: 14px; font-weight: 600; font-family: inherit;
  text-align: right; font-variant-numeric: tabular-nums;
}
.fee-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-glow); }
.fee-unit { font-size: 12px; color: var(--text-muted); }
.fee-calc-btn {
  margin-left: auto; padding: 8px 18px; border: none; border-radius: 8px;
  background: var(--gradient); color: #fff; font-size: 13px; font-weight: 600;
  font-family: inherit; cursor: pointer; white-space: nowrap;
  transition: opacity 0.2s, transform 0.15s;
}
.fee-calc-btn:hover { opacity: 0.92; transform: translateY(-1px); }
.fee-calc-btn:active { transform: translateY(0); }

.slide-finance h2 { margin-bottom: 6px; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.slide-finance .fin-subtitle {
  font-size: clamp(0.875rem, 1.4vw, 1rem);
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}
.slide-fit.slide-finance > .slide-inner {
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: clamp(0.65rem, 1.3vh, 0.9rem);
}
.slide-finance .fin-head { flex-shrink: 0; }
.slide-finance .fin-hero {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 1.2vh, 14px);
  flex-shrink: 0;
}
.slide-finance .fin-hero-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: clamp(12px, 1.8vh, 18px) 16px;
  text-align: center;
}
.slide-finance .fin-hero-item b {
  display: block;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}
.slide-finance .fin-hero-item span {
  display: block;
  font-size: clamp(0.75rem, 1.1vw, 0.875rem);
  color: var(--text-muted);
  line-height: 1.4;
}
.slide-finance .fin-hero-item.accent {
  border-color: rgba(99,102,241,0.45);
  background: rgba(99,102,241,0.12);
}
.slide-finance .fin-body {
  display: grid;
  grid-template-columns: 1fr 1.15fr 0.95fr;
  gap: clamp(10px, 1.3vh, 14px);
  flex: 1;
  min-height: 0;
  align-items: stretch;
}
.slide-finance .fin-dev-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.3vh, 14px);
  min-height: 0;
  height: 100%;
}
.slide-finance .fin-dev-stack .fin-panel {
  flex: 1;
}
.slide-finance .fin-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}
.slide-finance .fin-panel-title {
  padding: clamp(8px, 1.1vh, 11px) 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-light);
  border-bottom: 1px solid var(--border);
  background: rgba(99,102,241,0.08);
  flex-shrink: 0;
}
.slide-finance .fin-table-wrap { flex: 1; overflow: hidden; }
.slide-finance .fin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(0.8125rem, 1.2vw, 0.9375rem);
  height: 100%;
}
.slide-finance .fin-table th,
.slide-finance .fin-table td {
  padding: clamp(7px, 1.3vh, 12px) 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.slide-finance .fin-table th {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 11px;
}
.slide-finance .fin-table th.num,
.slide-finance .fin-table td.num {
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.slide-finance .fin-table th.num { font-weight: 500; }
.slide-finance .fin-item-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--accent-light);
  font-weight: 500;
  margin-top: 2px;
}
.slide-finance .fin-table tr:last-child td { border-bottom: none; }
.slide-finance .fin-table tr.total td {
  font-weight: 700;
  background: rgba(99,102,241,0.1);
  color: var(--accent-light);
}
.slide-finance .fin-seed-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0;
  gap: 0;
  min-height: 0;
}
.slide-finance .fin-seed-total {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: clamp(72px, 14vh, 120px);
  padding: clamp(12px, 2vh, 20px) 16px;
}
.slide-finance .fin-seed-total b {
  display: block;
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.slide-finance .fin-seed-total span {
  display: block;
  font-size: clamp(0.8125rem, 1.1vw, 0.9375rem);
  color: var(--text-muted);
  margin-top: 4px;
}
.slide-finance .fin-seed-body > .fin-table-wrap {
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}
.slide-finance .fin-note {
  font-size: 10px;
  color: var(--text-muted);
  flex-shrink: 0;
  line-height: 1.4;
}

.fin-summary { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 14px; }
.fin-summary .fin-stat-val { font-size: 1.15rem; }
.fin-stat { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px; text-align: center; }
.fin-stat-highlight { border-color: rgba(99,102,241,0.45); background: rgba(99,102,241,0.12); }
.fin-stat-val { display: block; font-size: 1.35rem; font-weight: 800; color: var(--accent); }
.fin-stat-label { display: block; font-size: 10px; color: var(--text-muted); margin-top: 4px; line-height: 1.4; }
.fin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fin-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.fin-panel-title { padding: 8px 12px; font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-light); border-bottom: 1px solid var(--border); background: rgba(99,102,241,0.08); }
.fin-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.fin-table th, .fin-table td { padding: 6px 10px; border-bottom: 1px solid var(--border); text-align: left; }
.fin-table th { color: var(--text-muted); font-weight: 500; font-size: 10px; }
.fin-table tr:last-child td { border-bottom: none; }
.fin-table td.num { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.fin-table tr.total td { font-weight: 700; background: rgba(99,102,241,0.08); color: var(--accent-light); }
.fin-table tr.subtotal td { font-weight: 600; background: rgba(99,102,241,0.04); }
.fin-table tr.subtotal td.num { color: var(--accent-light); }
.fin-table-dev { font-size: 10px; }
.fin-table-dev th, .fin-table-dev td { padding: 5px 8px; text-align: center; }
.fin-table-dev th:first-child, .fin-table-dev td:first-child { text-align: left; }
.fin-table-dev td.num, .fin-table-dev th.num { text-align: center; }
.seed-formula { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 16px; padding: 16px 12px 8px; }
.seed-item { text-align: center; min-width: 120px; }
.seed-item .seed-val { display: block; font-size: 1.25rem; font-weight: 800; color: var(--accent); }
.seed-item.seed-total .seed-val { font-size: 1.5rem; }
.seed-item span:last-child { display: block; font-size: 10px; color: var(--text-muted); margin-top: 4px; line-height: 1.35; }
.seed-op { font-size: 1.25rem; font-weight: 700; color: var(--accent-light); }
.seed-panel .seed-detail { display: flex; flex-direction: column; align-items: center; padding: 4px 16px 12px; }
.seed-panel .fin-table { width: max-content; max-width: 100%; margin: 0 0 8px; }
.seed-panel .fin-table td { padding: 8px 14px; }
.seed-panel .fin-table td:first-child { padding-right: 28px; white-space: nowrap; }
.seed-panel .fin-table td.num { white-space: nowrap; }
.seed-panel .fin-note { max-width: 520px; margin-top: 0; text-align: center; line-height: 1.45; }
.fin-note { font-size: 10px; color: var(--text-muted); margin-top: 10px; }

.slide-schedule h2 { margin-bottom: 8px; }
.slide-schedule .subtitle { font-size: 15px; margin-top: 0; margin-bottom: 20px; line-height: 1.5; }
.schedule-timeline {
  margin-bottom: 24px;
  padding: 20px 24px 16px;
  background: rgba(99,102,241,0.06);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.schedule-bar {
  display: flex; height: 36px; border-radius: 999px; overflow: hidden;
  margin-bottom: 12px; border: 1px solid rgba(99,102,241,0.35);
  box-shadow: 0 4px 24px rgba(99,102,241,0.15);
}
.schedule-bar-seg {
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; letter-spacing: 0.04em;
  color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}
.schedule-bar-seg.phase1 { flex: 6; background: linear-gradient(90deg, #6366f1, #818cf8); }
.schedule-bar-seg.phase2 { flex: 4; background: linear-gradient(90deg, #a855f7, #c084fc); }
.schedule-bar-seg.phase3 { flex: 6; background: linear-gradient(90deg, rgba(236,72,153,0.55), rgba(99,102,241,0.4)); }
.schedule-bar-labels {
  display: flex; margin-bottom: 0; font-size: 13px; font-weight: 500;
  color: var(--text); line-height: 1.4;
}
.schedule-bar-labels span:nth-child(1) { flex: 6; }
.schedule-bar-labels span:nth-child(2) { flex: 4; text-align: center; }
.schedule-bar-labels span:nth-child(3) { flex: 6; text-align: right; color: var(--text-muted); }
.schedule-phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.schedule-phase { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; position: relative; overflow: hidden; }
.schedule-phase::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.schedule-phase.p1::before { background: var(--gradient); }
.schedule-phase.p2::before { background: linear-gradient(90deg, #a855f7, #ec4899); }
.schedule-phase.p3::before { background: linear-gradient(90deg, #ec4899, #6366f1); opacity: 0.7; }
.schedule-phase-badge { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-light); margin-bottom: 6px; }
.schedule-phase h3 { font-size: 1rem; margin-bottom: 4px; }
.schedule-phase .phase-period { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.schedule-phase ul { list-style: none; }
.schedule-phase li { font-size: 11px; color: var(--text-muted); padding: 5px 0; border-bottom: 1px solid var(--border); line-height: 1.45; }
.schedule-phase li:last-child { border-bottom: none; }
.schedule-phase li strong { color: var(--text); font-weight: 600; }
.schedule-milestones { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.schedule-ms-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.schedule-ms-title { padding: 8px 12px; font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-light); border-bottom: 1px solid var(--border); background: rgba(99,102,241,0.08); }
.schedule-ms-list { padding: 10px 12px; }
.schedule-ms-item { display: flex; gap: 10px; font-size: 11px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.schedule-ms-item:last-child { border-bottom: none; }
.schedule-ms-month { flex-shrink: 0; width: 32px; font-weight: 700; color: var(--accent-light); font-variant-numeric: tabular-nums; }
.schedule-ms-text { color: var(--text-muted); line-height: 1.4; }
.schedule-ms-text em { font-style: normal; color: var(--text); font-weight: 600; }
.schedule-note { font-size: 10px; color: var(--text-muted); margin-top: 12px; }

/* Cost offset slide (10K path) */
.slide-offset h2 { margin-bottom: 6px; }
.slide-offset .subtitle { font-size: 13px; margin-bottom: 18px; }
.offset-phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.offset-phase {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 16px; position: relative; overflow: hidden;
}
.offset-phase::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.offset-phase.dev::before { background: linear-gradient(90deg, #6366f1, #818cf8); }
.offset-phase.ops::before { background: linear-gradient(90deg, #a855f7, #ec4899); }
.offset-phase.goal::before { background: linear-gradient(90deg, #22c55e, #6366f1); }
.offset-phase-tag { font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-light); margin-bottom: 4px; }
.offset-phase h3 { font-size: 14px; margin-bottom: 4px; }
.offset-phase .offset-period { font-size: 11px; color: var(--text-muted); margin-bottom: 8px; }
.offset-phase ul { list-style: none; font-size: 10px; color: var(--text-muted); line-height: 1.5; }
.offset-phase li { padding: 2px 0; }
.offset-phase li strong { color: var(--text); }
.offset-main { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; margin-bottom: 14px; }
.offset-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.offset-panel-title { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-light); margin-bottom: 12px; }
.offset-user-chart-wrap { margin-top: 4px; }
.offset-user-chart { display: flex; align-items: flex-end; gap: 10px; height: 140px; padding: 0 8px; border-bottom: 1px solid var(--border); }
.offset-user-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.offset-user-bar { width: 100%; border-radius: 6px 6px 0 0; background: var(--gradient); opacity: 0.9; min-height: 8px; }
.offset-user-val { font-size: 12px; font-weight: 700; }
.offset-user-labels { display: flex; gap: 10px; padding: 8px 8px 0; }
.offset-user-labels .offset-user-lbl {
  flex: 1;
  font-size: 9px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
  min-height: 2.4em;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.offset-balance { display: flex; flex-direction: column; gap: 10px; }
.offset-row { display: flex; align-items: center; gap: 10px; font-size: 11px; }
.offset-row label { width: 72px; flex-shrink: 0; color: var(--text-muted); font-size: 10px; }
.offset-track { flex: 1; height: 22px; background: rgba(255,255,255,0.06); border-radius: 6px; overflow: hidden; border: 1px solid var(--border); }
.offset-fill { height: 100%; border-radius: 5px; display: flex; align-items: center; justify-content: flex-end; padding-right: 8px; font-size: 9px; font-weight: 700; color: #fff; min-width: 28px; }
.offset-fill.cost { background: linear-gradient(90deg, #f97316, #ef4444); }
.offset-fill.rev { background: linear-gradient(90deg, #22c55e, #6366f1); }
.offset-cross {
  margin-top: 4px; padding: 10px 12px; border-radius: 10px;
  background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.35);
  font-size: 11px; color: #86efac; line-height: 1.45;
}
.offset-cross strong { color: #bbf7d0; }
.offset-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.offset-kpi { text-align: center; padding: 10px 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.offset-kpi b { display: block; font-size: 1.1rem; margin-bottom: 2px; color: var(--accent); }
.offset-kpi span { font-size: 9px; color: var(--text-muted); line-height: 1.35; }
.offset-note { font-size: 10px; color: var(--text-muted); margin-top: 10px; line-height: 1.45; }

/* ── Footer nav ── */
.nav {
  flex-shrink: 0;
  height: var(--footer-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.nav-progress {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.progress-bar {
  width: 100px;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.slide-counter {
  font-size: 0.75rem;
  color: var(--text-light);
  font-variant-numeric: tabular-nums;
}

.nav-buttons { display: flex; gap: 0.35rem; }

.nav-btn {
  height: 2rem;
  padding: 0 0.75rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s;
}

.nav-btn:hover:not(:disabled) { background: rgba(99,102,241,0.15); }

.nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.nav-hint {
  font-size: 0.75rem;
  color: var(--text-light);
}

@media print {
  @page {
    size: landscape;
    margin: 0;
  }

  html, body { overflow: visible; height: auto; }

  .site-header,
  .header-nav,
  .doc-sidebar,
  .nav,
  #viewScreenStructure,
  #viewMenuStructure { display: none !important; }

  .site-body { padding-top: 0; height: auto; display: block; }

  .slides { overflow: visible; height: auto; }
  body {
    background: var(--bg) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .slide {
    page-break-after: always;
    break-after: page;
    min-height: 100vh;
    height: 100vh;
    border-bottom: none;
    background: var(--bg) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

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

  .side-nav-wrap,
  .scroll-hint,
  .page-counter,
  .top-bar { display: none !important; }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .cover-logo {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .chart-bar { height: var(--bar-h, 100px) !important; animation: none !important; }
  .eco-center { animation: none !important; }

  .card,
  .fee-table tr.referral-revenue td,
  .revenue-fill,
  .offset-fill,
  .fin-stat,
  .seed-item {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
