/* =====================================================================
 * Future Demand — Client Review
 * Shared design system: slide engine (review.html) + builder (index.html).
 * Tokens, typography, reveal, nav and print are reused 1:1 from the pitch
 * deck so a review looks native next to the pitch. Everything below the
 * "NEW COMPONENTS" banner is specific to client reviews.
 * ===================================================================== */

/* ===== Custom Fonts ===== */
@font-face {
  font-family: "Syne";
  src: url("../fonts/Syne-SemiBold.ttf") format("truetype");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Gantari";
  src: url("../fonts/Gantari-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Gantari";
  src: url("../fonts/Gantari-SemiBold.ttf") format("truetype");
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ===== Design Tokens ===== */
:root {
  --color-navy: #031c41;
  --color-navy-light: #0a2a5c;
  --color-steel: #374c78;
  --color-mustard: #c4bc5a;
  --color-mustard-dark: #a8a14e;
  --color-gold: #d4c84a;
  --color-pearl: #f3f3f3;
  --color-white: #fafafa;
  --color-mint: #87bac2;
  --color-mint-light: #a8d4db;
  --color-aegean: #134d6d;
  --color-chromium: #adb0ba;
  --color-space: #232426;
  --color-positive: #2e7d5b;
  --color-negative: #b3503a;

  --font-heading: "Syne", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Gantari", ui-sans-serif, system-ui, sans-serif;

  --ease-brand: cubic-bezier(0.16, 1, 0.3, 1);
  --slide-duration: 0.5s;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: clamp(14px, calc(0.53125rem + 0.46875vw), 22px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--color-navy);
  background: var(--color-navy);
  line-height: 1.6;
}

/* Deck mode (review.html) locks the viewport; builder scrolls normally. */
body.deck { overflow: hidden; height: 100vh; width: 100vw; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ===== Progress Bar ===== */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px;
  background: var(--color-mustard); z-index: 1000;
  transition: width 0.5s var(--ease-brand);
}

/* ===== Slide Container & System ===== */
.slide-container { position: relative; width: 100vw; height: 100vh; overflow: hidden; }

.slide {
  position: absolute; inset: 0; width: 100vw; height: 100vh;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateX(60px);
  transition: opacity var(--slide-duration) var(--ease-brand),
              transform var(--slide-duration) var(--ease-brand);
  pointer-events: none; overflow: hidden;
}
.slide.active { opacity: 1; transform: translateX(0); pointer-events: auto; z-index: 2; }
.slide.prev { opacity: 0; transform: translateX(-60px); z-index: 1; }
.slide.next { opacity: 0; transform: translateX(60px); z-index: 1; }

.slide-inner {
  width: 100%; max-width: 72rem; padding: 2rem 3rem; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
}
.slide-inner.centered { align-items: center; text-align: center; }

/* ===== Background Themes ===== */
.slide[data-theme="dark"] {
  background: linear-gradient(135deg, #031c41 0%, #0a2a5c 50%, #051e45 100%);
  color: #ffffff;
}
.slide[data-theme="light"] { background: var(--color-white); color: var(--color-navy); }
.slide[data-theme="pearl"] {
  background-color: var(--color-pearl);
  background-image: radial-gradient(circle, rgba(3, 28, 65, 0.04) 1px, transparent 1px);
  background-size: 24px 24px; color: var(--color-navy);
}
.slide[data-theme="aegean"] {
  background: linear-gradient(135deg, #134d6d 0%, #0f3f5c 50%, #0c3350 100%);
  color: #ffffff;
}
.slide[data-theme="gold"] {
  background: radial-gradient(circle, rgba(3, 28, 65, 0.06) 1px, transparent 1px),
              linear-gradient(135deg, #c4bc5a 0%, #d4c84a 50%, #b8b050 100%);
  background-size: 24px 24px, 100% 100%; color: var(--color-navy);
}

/* ===== Typography ===== */
.heading-xl { font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.08; letter-spacing: -0.02em; }
.heading-lg { font-size: clamp(1.8rem, 3.5vw, 3rem); line-height: 1.1; letter-spacing: -0.02em; }
.heading-md { font-size: clamp(1.3rem, 2.5vw, 2rem); line-height: 1.15; }
.heading-sm { font-size: clamp(1rem, 1.5vw, 1.35rem); line-height: 1.2; }
.text-lg { font-size: clamp(1rem, 1.3vw, 1.2rem); line-height: 1.6; }
.text-base { font-size: 1rem; line-height: 1.6; }
.text-sm { font-size: 0.875rem; line-height: 1.5; }
.text-xs { font-size: 0.75rem; line-height: 1.4; }
em { font-style: italic; }

/* ===== Color Utilities ===== */
.text-white { color: #ffffff; }
.text-white-70 { color: rgba(255,255,255,0.7); }
.text-white-60 { color: rgba(255,255,255,0.6); }
.text-white-50 { color: rgba(255,255,255,0.5); }
.text-navy { color: var(--color-navy); }
.text-steel { color: var(--color-steel); }
.text-mustard { color: var(--color-mustard); }
.text-gold { color: var(--color-gold); }
.text-aegean { color: var(--color-aegean); }
.text-mint { color: var(--color-mint); }
.text-chromium { color: var(--color-chromium); }

/* ===== Eyebrow ===== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--color-mustard); margin-bottom: 1rem;
}
.eyebrow::before { content: ''; display: block; width: 20px; height: 2px; background: currentColor; border-radius: 1px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; border-radius: 8px; border: none;
  cursor: pointer; transition: all 0.2s var(--ease-brand); text-decoration: none;
}
.btn-primary { background: var(--color-mustard); color: var(--color-navy); padding: 0.75rem 1.75rem; font-size: 0.9375rem; }
.btn-primary:hover { background: var(--color-gold); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(196, 188, 90, 0.35); }
.btn-secondary { background: transparent; color: var(--color-navy); padding: 0.75rem 1.75rem; font-size: 0.9375rem; border: 1.5px solid var(--color-navy); }
.btn-secondary:hover { background: var(--color-navy); color: var(--color-white); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #ffffff; padding: 0.75rem 1.75rem; font-size: 0.9375rem; border: 1.5px solid rgba(255,255,255,0.3); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.05); transform: translateY(-1px); }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.0625rem; }
.btn-navy { background: var(--color-navy); color: #ffffff; padding: 1rem 2.25rem; font-size: 1.0625rem; }
.btn-navy:hover { background: var(--color-navy-light); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(3, 28, 65, 0.3); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===== Cards / Grids / Spacing ===== */
.card { border-radius: 12px; transition: transform 0.25s var(--ease-brand), box-shadow 0.25s var(--ease-brand); }
.card-elevated { background: #ffffff; box-shadow: 0 1px 3px rgba(3, 28, 65, 0.06), 0 4px 12px rgba(3, 28, 65, 0.04); }
.card-glass { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 1.5rem; }
.card-glass-strong { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; padding: 2rem; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-col { display: flex; flex-direction: column; }
.gap-05 { gap: 0.5rem; } .gap-1 { gap: 1rem; } .gap-15 { gap: 1.5rem; } .gap-2 { gap: 2rem; }
.mb-05 { margin-bottom: 0.5rem; } .mb-1 { margin-bottom: 1rem; } .mb-15 { margin-bottom: 1.5rem; } .mb-2 { margin-bottom: 2rem; } .mb-3 { margin-bottom: 3rem; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }

.stat-value { font-family: var(--font-heading); font-weight: 600; font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1; letter-spacing: -0.02em; color: var(--color-mustard); }

.kpi-pill { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.95rem; border-radius: 100px; font-size: 0.8rem; font-weight: 600; }
.kpi-pill-dark { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.9); }
.kpi-pill-light { background: rgba(3, 28, 65, 0.08); color: var(--color-navy); border: 1px solid rgba(3, 28, 65, 0.08); }
.kpi-pill strong { color: var(--color-mustard); font-weight: 800; font-size: 0.95rem; letter-spacing: -0.01em; }

/* ===== Decorative ===== */
.slide-logo { position: absolute; top: 2rem; left: 3rem; height: 28px; z-index: 10; }
.slide-url-bottom { position: absolute; bottom: 2rem; right: 3rem; font-size: 0.75rem; font-weight: 600; opacity: 0.4; z-index: 10; letter-spacing: 0.02em; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 100px;
  background: rgba(196, 188, 90, 0.12); border: 1px solid rgba(196, 188, 90, 0.2);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; color: var(--color-mustard); margin-bottom: 1.5rem;
}
.hero-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-mustard); box-shadow: 0 0 8px rgba(196, 188, 90, 0.6); animation: hero-pulse 2s ease-in-out infinite; }
@keyframes hero-pulse { 0%, 100% { opacity: 0.6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.4); } }

/* ===== Reveal Animations ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease-brand), transform 0.6s var(--ease-brand); }
.slide.active .reveal { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(16px); transition: opacity 0.5s var(--ease-brand), transform 0.5s var(--ease-brand); }
.slide.active .reveal-stagger > *:nth-child(1) { transition-delay: 100ms; }
.slide.active .reveal-stagger > *:nth-child(2) { transition-delay: 170ms; }
.slide.active .reveal-stagger > *:nth-child(3) { transition-delay: 240ms; }
.slide.active .reveal-stagger > *:nth-child(4) { transition-delay: 310ms; }
.slide.active .reveal-stagger > *:nth-child(5) { transition-delay: 380ms; }
.slide.active .reveal-stagger > *:nth-child(6) { transition-delay: 450ms; }
.slide.active .reveal-stagger > *:nth-child(7) { transition-delay: 520ms; }
.slide.active .reveal-stagger > *:nth-child(8) { transition-delay: 590ms; }
.slide.active .reveal-stagger > * { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 100ms; } .reveal-d2 { transition-delay: 200ms; } .reveal-d3 { transition-delay: 300ms; } .reveal-d4 { transition-delay: 400ms; }

/* ===== Navigation Bar ===== */
.nav-bar {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 100px; z-index: 100;
  transition: background 0.3s var(--ease-brand), box-shadow 0.3s var(--ease-brand);
}
.nav-bar.theme-light { background: rgba(250, 250, 250, 0.92); box-shadow: 0 4px 20px rgba(3, 28, 65, 0.1), 0 1px 3px rgba(3, 28, 65, 0.06); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.nav-bar.theme-dark { background: rgba(3, 28, 65, 0.85); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), 0 1px 3px rgba(0, 0, 0, 0.1); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }

.nav-arrow, .nav-fullscreen, .nav-download {
  width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all 0.2s var(--ease-brand); flex-shrink: 0;
}
.nav-arrow svg, .nav-fullscreen svg, .nav-download svg { width: 16px; height: 16px; }
.theme-light .nav-arrow, .theme-light .nav-fullscreen, .theme-light .nav-download { background: rgba(3, 28, 65, 0.06); color: var(--color-navy); }
.theme-light .nav-arrow:hover, .theme-light .nav-fullscreen:hover, .theme-light .nav-download:hover { background: rgba(3, 28, 65, 0.12); }
.theme-dark .nav-arrow, .theme-dark .nav-fullscreen, .theme-dark .nav-download { background: rgba(255, 255, 255, 0.1); color: #ffffff; }
.theme-dark .nav-arrow:hover, .theme-dark .nav-fullscreen:hover, .theme-dark .nav-download:hover { background: rgba(255, 255, 255, 0.2); }
.nav-arrow:disabled { opacity: 0.3; cursor: default; }
.nav-arrow:disabled:hover { background: rgba(3,28,65,0.06); }
.theme-dark .nav-arrow:disabled:hover { background: rgba(255,255,255,0.1); }

.nav-dots { display: flex; gap: 6px; align-items: center; }
.nav-dot { width: 8px; height: 8px; border-radius: 50%; border: none; cursor: pointer; transition: all 0.2s var(--ease-brand); padding: 0; }
.theme-light .nav-dot { background: rgba(3, 28, 65, 0.15); }
.theme-dark .nav-dot { background: rgba(255, 255, 255, 0.2); }
.nav-dot.active { background: var(--color-mustard) !important; width: 24px; border-radius: 100px; }

.nav-counter { font-size: 0.7rem; font-weight: 600; white-space: nowrap; min-width: 2.5rem; text-align: center; }
.theme-light .nav-counter { color: var(--color-steel); }
.theme-dark .nav-counter { color: rgba(255, 255, 255, 0.5); }

.nav-sep { width: 1px; height: 20px; flex-shrink: 0; }
.theme-light .nav-sep { background: rgba(3, 28, 65, 0.1); }
.theme-dark .nav-sep { background: rgba(255, 255, 255, 0.1); }
.nav-fullscreen .fs-exit { display: none; }
:fullscreen .nav-fullscreen .fs-enter { display: none; }
:fullscreen .nav-fullscreen .fs-exit { display: block; }

body.pdf-exporting *, body.pdf-exporting *::before, body.pdf-exporting *::after { animation-play-state: paused !important; transition: none !important; }

/* =====================================================================
 * NEW COMPONENTS — client review
 * ===================================================================== */

/* ---- Metric grid (hero results slide) ---- */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem; width: 100%; max-width: 66rem;
}
.metric-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; padding: 1.75rem 1.5rem; text-align: left;
}
.slide[data-theme="pearl"] .metric-card,
.slide[data-theme="light"] .metric-card { background: #fff; border: 1px solid rgba(3,28,65,0.08); box-shadow: 0 1px 3px rgba(3,28,65,0.06), 0 4px 12px rgba(3,28,65,0.04); }
.metric-card .metric-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-mustard); margin-bottom: 0.6rem;
}
.metric-card .metric-value {
  font-family: var(--font-heading); font-weight: 600; line-height: 1;
  font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -0.02em; color: #fff;
}
.slide[data-theme="pearl"] .metric-card .metric-value,
.slide[data-theme="light"] .metric-card .metric-value { color: var(--color-navy); }
.metric-card .metric-sub { font-size: 0.8rem; margin-top: 0.4rem; color: rgba(255,255,255,0.55); }
.slide[data-theme="pearl"] .metric-card .metric-sub,
.slide[data-theme="light"] .metric-card .metric-sub { color: var(--color-steel); }
.metric-card.metric-hero { grid-column: span 2; }
.metric-card.metric-hero .metric-value { font-size: clamp(2.6rem, 5vw, 4.2rem); color: var(--color-mustard); }

/* ---- Review table (campaign overview) ---- */
.review-table-wrap { width: 100%; max-width: 64rem; overflow-x: auto; }
.review-table { width: 100%; border-collapse: collapse; font-size: clamp(0.8rem, 1.1vw, 1rem); }
.review-table th {
  text-align: right; font-family: var(--font-body); font-weight: 600;
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--color-steel); padding: 0.65rem 1rem; border-bottom: 2px solid rgba(3,28,65,0.12);
}
.review-table th:first-child, .review-table td:first-child { text-align: left; }
.review-table td { padding: 0.7rem 1rem; border-bottom: 1px solid rgba(3,28,65,0.07); color: var(--color-navy); }
.review-table td.col-title { font-weight: 600; }
.review-table td.num { font-variant-numeric: tabular-nums; }
.review-table tbody tr:hover { background: rgba(3,28,65,0.025); }
.review-table .roi-pos { color: var(--color-positive); font-weight: 700; }
.review-table .roi-neg { color: var(--color-negative); font-weight: 700; }
.review-table tr.sum-row td {
  border-top: 2px solid var(--color-mustard); border-bottom: none;
  font-weight: 700; font-size: 1.05em; padding-top: 0.85rem; color: var(--color-navy);
}
.review-table tr.sum-row td.col-title { color: var(--color-mustard-dark); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.85em; }

/* ---- App badge ---- */
.app-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.25rem 0.65rem 0.25rem 0.3rem; border-radius: 100px;
  background: rgba(3,28,65,0.06); font-size: 0.72rem; font-weight: 600; color: var(--color-steel);
}
.slide[data-theme="dark"] .app-badge, .slide[data-theme="aegean"] .app-badge { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.85); }
.app-badge img { width: 16px; height: 16px; object-fit: contain; }

/* ---- Changelog cards ---- */
.changelog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; width: 100%; max-width: 66rem; align-items: stretch; }
.changelog-card {
  background: #fff; border-radius: 12px; padding: 1.1rem 1.25rem;
  border-left: 3px solid var(--color-mustard);
  box-shadow: 0 1px 3px rgba(3,28,65,0.05); display: flex; flex-direction: column; gap: 0.45rem;
}
.slide[data-theme="dark"] .changelog-card, .slide[data-theme="aegean"] .changelog-card { background: rgba(255,255,255,0.05); border-left-color: var(--color-mustard); box-shadow: none; border: 1px solid rgba(255,255,255,0.08); border-left: 3px solid var(--color-mustard); }
.changelog-card .cl-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.changelog-card h4 { font-size: clamp(0.95rem, 1.3vw, 1.15rem); color: var(--color-navy); }
.slide[data-theme="dark"] .changelog-card h4, .slide[data-theme="aegean"] .changelog-card h4 { color: #fff; }
.changelog-card p { font-size: 0.82rem; line-height: 1.5; color: var(--color-steel); margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.slide[data-theme="dark"] .changelog-card p, .slide[data-theme="aegean"] .changelog-card p { color: rgba(255,255,255,0.65); }
.changelog-card .cl-month { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-mustard-dark); }

/* ---- Top campaigns (highlight cards) ---- */
.top-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; width: 100%; max-width: 60rem; }
.top-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 1.5rem; text-align: left; }
.top-card .top-rank { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; color: var(--color-mustard); }
.top-card .top-title { font-family: var(--font-heading); font-weight: 600; font-size: 1.15rem; color: #fff; margin: 0.35rem 0 0.9rem; }
.top-card .top-roi { font-family: var(--font-heading); font-weight: 600; font-size: clamp(2rem,4vw,2.8rem); line-height: 1; color: var(--color-mustard); }
.top-card .top-meta { font-size: 0.78rem; color: rgba(255,255,255,0.6); margin-top: 0.5rem; }

/* =====================================================================
 * BUILDER UI (index.html)
 * ===================================================================== */
body.builder { background: var(--color-pearl); color: var(--color-navy); min-height: 100vh; }
.builder-wrap { max-width: 60rem; margin: 0 auto; padding: 2.5rem 1.5rem 6rem; }
.builder-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.builder-head .brand { display: flex; align-items: center; gap: 0.75rem; }
.builder-head .brand img { height: 26px; }
.builder-head .brand-text { font-family: var(--font-heading); font-weight: 600; font-size: 1.1rem; }
.builder-head .brand-text small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.72rem; color: var(--color-steel); letter-spacing: 0.02em; }

.panel { background: #fff; border-radius: 16px; padding: 1.75rem; margin-bottom: 1.5rem; box-shadow: 0 1px 3px rgba(3,28,65,0.06), 0 6px 18px rgba(3,28,65,0.04); }
.panel > h2 { font-size: 1.25rem; margin-bottom: 0.35rem; }
.panel > .panel-sub { font-size: 0.85rem; color: var(--color-steel); margin-bottom: 1.25rem; }
.panel-step { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-mustard-dark); margin-bottom: 0.5rem; }

.dropzone {
  border: 2px dashed rgba(3,28,65,0.2); border-radius: 14px; padding: 2.5rem 1.5rem; text-align: center;
  cursor: pointer; transition: all 0.2s var(--ease-brand); background: var(--color-pearl);
}
.dropzone:hover, .dropzone.dragover { border-color: var(--color-mustard); background: rgba(196,188,90,0.08); }
.dropzone svg { width: 34px; height: 34px; color: var(--color-steel); margin: 0 auto 0.75rem; }
.dropzone .dz-title { font-weight: 600; margin-bottom: 0.25rem; }
.dropzone .dz-sub { font-size: 0.8rem; color: var(--color-steel); }
.dz-file { font-size: 0.85rem; color: var(--color-positive); font-weight: 600; margin-top: 0.75rem; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.3rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.78rem; font-weight: 600; color: var(--color-steel); }
.field input, .field textarea {
  font-family: var(--font-body); font-size: 0.95rem; color: var(--color-navy);
  padding: 0.6rem 0.75rem; border: 1.5px solid rgba(3,28,65,0.15); border-radius: 8px; background: #fff; width: 100%;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--color-mustard); }
.field .hint { font-size: 0.72rem; color: var(--color-chromium); }

.cl-list { display: flex; flex-direction: column; gap: 0.6rem; max-height: 22rem; overflow-y: auto; padding-right: 0.25rem; }
.cl-row { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.7rem 0.85rem; border: 1px solid rgba(3,28,65,0.1); border-radius: 10px; transition: border-color 0.15s; }
.cl-row.sel { border-color: var(--color-mustard); background: rgba(196,188,90,0.06); }
.cl-row input[type=checkbox] { margin-top: 0.2rem; width: 16px; height: 16px; accent-color: var(--color-mustard); flex-shrink: 0; }
.cl-row .cl-body { flex: 1; min-width: 0; }
.cl-row .cl-body .cl-title { font-weight: 600; font-size: 0.9rem; }
.cl-row .cl-body .cl-meta { font-size: 0.72rem; color: var(--color-steel); display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.15rem; }
.cl-row .cl-body p { font-size: 0.78rem; color: var(--color-steel); margin-top: 0.3rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.builder-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; position: sticky; bottom: 0; background: linear-gradient(transparent, var(--color-pearl) 40%); padding: 1.25rem 0 0.25rem; }
.status-msg { font-size: 0.85rem; color: var(--color-steel); }
.status-msg.error { color: var(--color-negative); }
.status-msg.ok { color: var(--color-positive); }

.share-box { display: none; margin-top: 1rem; padding: 1rem; border-radius: 10px; background: rgba(196,188,90,0.1); border: 1px solid rgba(196,188,90,0.3); }
.share-box.show { display: block; }
.share-box .share-label { font-size: 0.75rem; font-weight: 600; color: var(--color-mustard-dark); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.4rem; }
.share-box .share-link-row { display: flex; gap: 0.5rem; }
.share-box input { flex: 1; font-family: var(--font-body); font-size: 0.85rem; padding: 0.5rem 0.65rem; border: 1.5px solid rgba(3,28,65,0.15); border-radius: 7px; }

.pill-toggle { display: inline-flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.pill-toggle button { font-family: var(--font-body); font-size: 0.78rem; font-weight: 600; padding: 0.35rem 0.8rem; border-radius: 100px; border: 1.5px solid rgba(3,28,65,0.15); background: #fff; color: var(--color-steel); cursor: pointer; }
.pill-toggle button.on { background: var(--color-navy); color: #fff; border-color: var(--color-navy); }

.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(3,28,65,0.2); border-top-color: var(--color-mustard); border-radius: 50%; animation: spin 0.7s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Loading / error overlay (viewer) ===== */
.deck-msg { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; background: linear-gradient(135deg, #031c41 0%, #0a2a5c 50%, #051e45 100%); color: #fff; z-index: 2000; text-align: center; padding: 2rem; }
.deck-msg img { height: 30px; filter: brightness(0) invert(1); }
.deck-msg .spinner { border-color: rgba(255,255,255,0.25); border-top-color: var(--color-mustard); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .grid-2 { grid-template-columns: 1fr; gap: 1.5rem; }
  .changelog-grid { grid-template-columns: 1fr; }
  .top-grid { grid-template-columns: 1fr; }
  .slide-inner { padding: 2rem 2rem; }
  .metric-card.metric-hero { grid-column: span 1; }
}
@media (max-width: 768px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .nav-dots { display: none; }
  .slide-logo { left: 1.5rem; }
}
@media (max-width: 640px) {
  .slide { overflow-y: auto; overflow-x: hidden; align-items: flex-start; -webkit-overflow-scrolling: touch; }
  .slide-inner { height: auto; min-height: 100%; justify-content: center; padding: 4rem 1.25rem 5.5rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 1rem; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .heading-xl { font-size: clamp(1.9rem, 7vw, 2.8rem); }
  .heading-lg { font-size: clamp(1.5rem, 5.5vw, 2.2rem); }
  .slide-url-bottom { display: none; }
  .slide-logo { top: 1rem; left: 1.25rem; height: 22px; }
  .nav-bar { bottom: 16px; padding: 6px 12px; gap: 8px; }
  .builder-wrap { padding: 1.5rem 1rem 5rem; }
}

/* ===== Print / PDF ===== */
@page { size: 16in 9in; margin: 0; }
@media print {
  html { font-size: 14px !important; }
  body { overflow: visible !important; width: 16in !important; height: auto !important; background: white !important; }
  .progress-bar, .nav-bar { display: none !important; }
  .slide-container { position: static !important; width: 16in !important; height: auto !important; overflow: visible !important; }
  .slide {
    position: relative !important; opacity: 1 !important; transform: none !important; pointer-events: auto !important;
    width: 16in !important; min-height: 9in !important; height: 9in !important; max-height: 9in !important;
    page-break-after: always; page-break-before: always; break-after: page; break-before: page;
    page-break-inside: avoid; break-inside: avoid; display: flex !important; overflow: hidden !important; transition: none !important; box-sizing: border-box !important;
  }
  .slide:first-child { page-break-before: auto; break-before: auto; }
  .slide:last-child { page-break-after: auto; break-after: auto; page-break-before: auto; break-before: auto; }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .slide-inner { max-width: none !important; height: 100% !important; }
  .slide[data-theme="dark"], .slide[data-theme="aegean"], .slide[data-theme="gold"], .slide[data-theme="pearl"],
  .metric-card, .changelog-card, .top-card, .card-elevated, .kpi-pill, .review-table, .app-badge {
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .slide-url-bottom { bottom: 1.5rem !important; }
}
