/* ── Gold highlight (em tag) - works on all text fields (v40) ── */
[data-edit] em,
[contenteditable] em {
  font-style: normal;
  color: var(--brand-gold, #d38b2b);
}

/* ── Cover Template ── */
.slide[data-template="cover"] .slide-header { display: none; }

.cover-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-bottom: 160px;
  z-index: 1;
}

/* Watermark — large faint logo with orange glow behind */
.cover-watermark {
  position: absolute;
  width: 800px;
  height: auto;
  opacity: 0.04;
  pointer-events: none;
  z-index: 1;
}
.cover-content::before {
  content: '';
  position: absolute;
  width: 1000px;
  height: 700px;
  background:
    radial-gradient(ellipse, rgba(211,139,43,0.03) 0%, rgba(211,139,43,0.07) 30%, rgba(211,139,43,0.05) 50%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

/* Cover kicker / label */
.cover-kicker {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-gold, #d38b2b);
  margin-bottom: 40px;
}

/* Cover logo */
.cover-logo { height: 64px; width: auto; margin-bottom: 32px; }

/* Cover headline */
.cover-headline {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 700;
  color: var(--brand-navy);
  line-height: 1.1;
  max-width: 900px;
}
.cover-headline em { font-style: normal; color: var(--brand-gold, #d38b2b); }

/* Dark tone overrides */
.slide[data-tone="dark"][data-template="cover"] .cover-orbit-visual .orbit {
  border-color: rgba(255,255,255,.1);
}
.slide[data-tone="dark"][data-template="cover"] .cover-orbit-visual .orbit.inner::before {
  background: #fff;
}
.slide[data-tone="dark"][data-template="cover"] .cover-orbit-visual .shield-icon svg {
  stroke: #fff;
}
.slide[data-tone="dark"][data-template="cover"] .cover-headline {
  color: #fff;
}
.slide[data-tone="dark"][data-template="cover"] .cover-kicker {
  color: var(--brand-gold, #d38b2b);
}

/* ── Close Template ── */
.slide[data-template="close"] .slide-header { display: none; }

.close-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-bottom: 80px;
  z-index: 1;
}
.close-content::before {
  content: '';
  position: absolute;
  width: 1000px;
  height: 700px;
  background:
    radial-gradient(ellipse, rgba(211,139,43,0.03) 0%, rgba(211,139,43,0.07) 30%, rgba(211,139,43,0.05) 50%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.close-logo {
  width: 220px;
  height: auto;
  margin-bottom: 40px;
}

.close-tagline {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--brand-navy);
  max-width: 900px;
  margin-bottom: 16px;
}
.close-tagline em {
  font-style: normal;
  color: var(--brand-gold, #d38b2b);
}

.close-cta {
  font-size: 24px;
  font-weight: 400;
  color: var(--brand-navy);
  opacity: 0.4;
  margin-bottom: 48px;
}

.close-contacts {
  display: flex;
  justify-content: center;
  gap: 48px;
}

.close-contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.close-contact-icon {
  width: 48px;
  height: 48px;
  background: #fff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(11,31,42,0.06);
}
.close-contact-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--brand-gold, #d38b2b);
  stroke-width: 1.5;
  fill: none;
}

.close-contact-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.close-contact-text strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
}
.close-contact-text span {
  font-size: 13px;
  opacity: 0.4;
}

/* Dark tone */
.slide[data-tone="dark"] .close-tagline {
  color: #fff;
}
.slide[data-tone="dark"] .close-cta {
  color: #fff;
}
.slide[data-tone="dark"] .close-contact-icon {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
}
.slide[data-tone="dark"] .close-contact-text strong {
  color: #fff;
}

/* Gallery template - uses fixed zone positioning (no padding overrides) */
/* Gallery h1 size removed - using base 62px for consistency */
.slide[data-template="gallery"] .lede {
  max-width: 74ch;
}
.slide[data-template="gallery"] .grid-3 {
  gap: 18px;
  grid-auto-rows: 1fr;
  flex: 1;
  min-height: 0;
  align-content: stretch;
}
.slide[data-template="gallery"] .card {
  padding: 18px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  min-height: 0;
  overflow: hidden;
}
.slide[data-template="gallery"] .card .badge {
  height: 26px;
  font-size: 11px;
}
.slide[data-template="gallery"] .gallery-title {
  font-size: 20px;
  margin-top: var(--s-2);
}
.slide[data-template="gallery"] .card-desc {
  font-size: 15px;
  line-height: 1.4;
  /* No clamping / ellipses: keep copy short instead, and let auto-fit handle edge cases. */
  overflow: visible;
}
.slide[data-template="gallery"] .card.inset {
  padding: var(--s-3);
  border-radius: var(--card-radius);
  margin-top: auto;
}
.slide[data-template="gallery"] .card.inset .badge {
  height: 24px;
}
.slide[data-template="gallery"] .card.inset .card-desc {
  /* Example: allow 3 lines with ellipsis */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.kicker {
  font-family: var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: var(--text-sm);
  color: var(--brand-gold, #d38b2b);
  opacity: 1;
}

h1, h2, h3 { margin: 0; }

.slide h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.08;
  letter-spacing: var(--letter-spacing-tight);
  overflow-wrap: anywhere;
  hyphens: auto;
}
.slide h2 {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: var(--letter-spacing-normal);
}
.slide p {
  margin: 0;
  font-size: 16px;
  line-height: var(--line-height-normal);
  color: currentColor;
  opacity: 0.88;
  max-width: 66ch;
}
.slide .lede { font-size: 16px; opacity: 0.88; }

.slide .grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}
.slide .grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* Slide template card - used by slide-renderer.js for presentation content */
.slide .card,
.surface .card {
  border: 1px solid rgba(241,242,238,0.12);
  background: rgba(16,42,54,0.72);
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.card-stack {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

/* Proof template - claim emphasis */
.proof-claim {
  margin-bottom: var(--s-4);
}

.proof-claim-text {
  font-size: var(--text-xl);
  line-height: var(--line-height-relaxed);
  max-width: 52ch;
}

/* Smaller, more 'system' copy inside cards */
.card-desc {
  margin-top: var(--s-2);
  font-size: var(--text-lg);
  line-height: var(--line-height-normal);
  opacity: 0.86;
  max-width: none;
}

.gallery-title {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: 1.12;
  letter-spacing: var(--letter-spacing-normal);
  font-weight: 800;
}
.slide-surface.tone-light .card,
.slide-surface.tone-cream .card {
  border-color: rgba(11, 31, 42, 0.14);
  background: rgba(251,251,247,0.72);
}

.card.inset {
  margin-top: 14px;
  border-radius: 12px;
  padding: var(--s-3h);
  background: rgba(19,52,67,0.84);
}
.slide-surface.tone-light .card.inset,
.slide-surface.tone-cream .card.inset { background: rgba(255,255,255,0.88); }

/* Slide badges - gold style (more specific to override later rules) */
.slide-surface .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px;
  border-radius: 8px;
  border: none;
  background: var(--brand-gold, #d38b2b);
  color: var(--brand-navy, #0b1f2a);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 0 16px rgba(211, 139, 43, 0.35);
}
.slide-surface.tone-light .badge,
.slide-surface.tone-cream .badge {
  background: var(--brand-gold, #d38b2b);
  color: var(--brand-navy, #0b1f2a);
}

.badge.signal {
  border-color: rgba(211, 139, 43, 0.55);
  box-shadow: 0 0 0 3px rgba(211, 139, 43, 0.14);
}

ul {
  margin: 0;
  padding-left: 22px;
  font-size: 20px;
  line-height: var(--line-height-relaxed);
  max-width: 66ch;
}
li { margin: var(--s-2) 0; }

.table {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  overflow: hidden;
}
.slide-surface.tone-light .table,
.slide-surface.tone-cream .table { border-color: rgba(11,31,42,0.12); }
.table .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.table .cell {
  padding: var(--s-3h) var(--s-4);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.slide-surface.tone-light .table .cell,
.slide-surface.tone-cream .table .cell { border-bottom-color: rgba(11,31,42,0.10); }
.table .row:last-child .cell { border-bottom: none; }
.table .head .cell {
  background: rgba(255,255,255,0.05);
  padding: var(--s-3);
}
.table .head .cell .badge {
  font-weight: 700;
}
.slide-surface.tone-light .table .head .cell,
.slide-surface.tone-cream .table .head .cell { background: rgba(11,31,42,0.03); }

/* Table with row labels (3 columns) */
.table.has-labels .row {
  grid-template-columns: 180px 1fr 1fr;
}
.table .label-cell {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--brand-gold, #d38b2b);
  background: rgba(255,255,255,0.02);
  border-right: 1px solid rgba(255,255,255,0.08);
}
.slide-surface.tone-light .table .label-cell,
.slide-surface.tone-cream .table .label-cell {
  background: rgba(11,31,42,0.02);
  border-right-color: rgba(11,31,42,0.08);
}
.table .head .label-cell {
  background: transparent;
}

/* Good/Bad cell styling for comparison tables */
.table .cell-good,
.table .cell-bad {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
}
.table .cell-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}
.table .good-icon {
  background: rgba(16, 185, 129, 0.15);
  color: rgb(16, 185, 129);
}
.table .bad-icon {
  background: rgba(239, 68, 68, 0.15);
  color: rgb(239, 68, 68);
}
.slide-surface.tone-light .table .good-icon,
.slide-surface.tone-cream .table .good-icon {
  background: rgba(16, 185, 129, 0.12);
}
.slide-surface.tone-light .table .bad-icon,
.slide-surface.tone-cream .table .bad-icon {
  background: rgba(239, 68, 68, 0.12);
}
.table .cell-text {
  flex: 1;
}

.big-numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.big-numbers.cols-2 { grid-template-columns: repeat(2, 1fr); }
.big-numbers .num {
  font-family: var(--font-display);
  font-size: 54px;
  letter-spacing: var(--letter-spacing-tight);
}
.big-numbers .label {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.78;
}

/* Timeline - Phased roadmap with markers and milestone cards */
.timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  justify-content: center;
}

/* Phases row */
.timeline-phases {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  position: relative;
  width: 100%;
}

/* Horizontal connecting line between markers */
.timeline-phases::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: rgba(11,31,42,0.1);
  z-index: 0;
}
.slide-surface.tone-dark .timeline-phases::before {
  background: rgba(255,255,255,0.12);
}

/* Single phase column */
.timeline-phase {
  flex: 1;
  max-width: 320px;
  text-align: center;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Phase marker circle */
.timeline-marker {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.timeline-phase.complete .timeline-marker {
  background: var(--color-success, #228b5e);
  color: white;
}

.timeline-phase.current .timeline-marker {
  background: var(--brand-gold, #d38b2b);
  color: white;
}

.timeline-phase.future .timeline-marker {
  background: white;
  border: 2px solid rgba(11,31,42,0.15);
  color: rgba(11,31,42,0.5);
}
.slide-surface.tone-dark .timeline-phase.future .timeline-marker {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.5);
}

/* When label */
.timeline-when {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(11,31,42,0.5);
  margin-bottom: 6px;
}
.slide-surface.tone-dark .timeline-when {
  color: rgba(255,255,255,0.5);
}
.timeline-phase.current .timeline-when {
  color: var(--brand-gold, #d38b2b);
}

/* Phase title */
.timeline-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
}
.timeline-phase.current .timeline-title {
  color: var(--brand-gold, #d38b2b);
}

/* Milestones card */
.timeline-milestones {
  background: white;
  border-radius: 14px;
  padding: 16px 20px;
  border: 1px solid rgba(11,31,42,0.05);
  text-align: left;
  width: 100%;
  margin: 0 12px;
}
.slide-surface.tone-dark .timeline-milestones {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
}
.timeline-phase.current .timeline-milestones {
  border: 2px solid var(--brand-gold, #d38b2b);
}

/* Single milestone row */
.timeline-milestone {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(11,31,42,0.05);
}
.slide-surface.tone-dark .timeline-milestone {
  border-bottom-color: rgba(255,255,255,0.06);
}
.timeline-milestone:last-child {
  border-bottom: none;
}

/* Milestone icon (checkmark or dot) */
.timeline-milestone-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.timeline-phase.complete .timeline-milestone-icon {
  background: rgba(34, 139, 94, 0.12);
}
.timeline-phase.complete .timeline-milestone-icon svg {
  width: 11px;
  height: 11px;
  stroke: var(--color-success, #228b5e);
  stroke-width: 2.5;
  fill: none;
}

.timeline-phase.current .timeline-milestone-icon,
.timeline-phase.future .timeline-milestone-icon {
  background: rgba(11,31,42,0.06);
}
.slide-surface.tone-dark .timeline-phase.current .timeline-milestone-icon,
.slide-surface.tone-dark .timeline-phase.future .timeline-milestone-icon {
  background: rgba(255,255,255,0.08);
}
.timeline-phase.current .timeline-milestone-icon svg,
.timeline-phase.future .timeline-milestone-icon svg {
  width: 7px;
  height: 7px;
  fill: rgba(11,31,42,0.4);
}
.slide-surface.tone-dark .timeline-phase.current .timeline-milestone-icon svg,
.slide-surface.tone-dark .timeline-phase.future .timeline-milestone-icon svg {
  fill: rgba(255,255,255,0.4);
}

/* Milestone text */
.timeline-milestone-text {
  font-size: 13px;
  color: var(--slide-fg);
  line-height: 1.4;
}
.timeline-milestone-text strong {
  font-family: var(--font-display);
  font-weight: 600;
}

/* Phase badge */
.timeline-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 14px;
  border-radius: var(--card-radius);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.timeline-phase.complete .timeline-badge {
  background: rgba(34, 139, 94, 0.1);
  color: var(--color-success, #228b5e);
}
.timeline-phase.current .timeline-badge {
  background: var(--brand-gold, #d38b2b);
  color: white;
}

/* Process - Flow with arrows */
.process-flow {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.process-step {
  flex: 1 1 0;
  min-width: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--card-radius);
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.slide-surface.tone-light .process-step,
.slide-surface.tone-cream .process-step {
  background: rgba(11,31,42,0.04);
  border-color: rgba(11,31,42,0.12);
}

.process-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-gold, #d38b2b);
  color: var(--brand-navy, #0b1f2a);
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 0 16px rgba(211,139,43,0.4);
}

.process-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}

.process-desc {
  margin-top: 10px;
  font-size: var(--text-lg);
  line-height: 1.5;
  opacity: 0.85;
}

.process-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  flex-shrink: 0;
  color: var(--brand-gold, #d38b2b);
  opacity: 0.7;
}
.process-arrow svg {
  width: 28px;
  height: 28px;
}

/* Team template - uses fixed zone positioning (no padding overrides) */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.person {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.slide-surface.tone-light .person,
.slide-surface.tone-cream .person {
  border-color: rgba(11,31,42,0.12);
  background: rgba(11,31,42,0.03);
}
.person .name { font-weight: 800; font-size: 14px; }
.person .role {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.78;
}
.person .bio { font-size: 12px; line-height: var(--line-height-normal); opacity: 0.86; }

.person-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
  background: rgba(255,255,255,0.06);
}
.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide-surface.tone-light .person-photo,
.slide-surface.tone-cream .person-photo {
  background: rgba(11,31,42,0.04);
}

.footer-note {
  position: absolute;
  bottom: 36px;
  left: 22px;
  right: 22px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.70;
  z-index: calc(var(--z-base) + 2);
}



/* --- Additional slide components (deck-specific) --- */
.slide h3 {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: var(--letter-spacing-normal);
}

.slide-footnote {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.70;
}

/* Ladder - Visual rungs and rails */
.ladder {
  margin-top: 14px;
  display: flex;
  align-items: stretch;
  gap: 0;
  position: relative;
}

.ladder-rail {
  width: 4px;
  background: linear-gradient(to bottom, rgba(211,139,43,0.6), rgba(211,139,43,0.3));
  border-radius: 2px;
  flex-shrink: 0;
}

.ladder-steps {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: 8px 0;
}

.ladder-step {
  display: flex;
  align-items: center;
  position: relative;
}

.ladder-rung {
  position: absolute;
  left: -20px;
  right: -20px;
  top: 50%;
  height: 3px;
  background: rgba(211,139,43,0.4);
  border-radius: 2px;
  z-index: 0;
}

.ladder-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-2h) var(--s-3);
  border-radius: var(--card-radius);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  position: relative;
  z-index: 1;
}
.slide-surface.tone-light .ladder-content,
.slide-surface.tone-cream .ladder-content {
  border-color: rgba(11,31,42,0.12);
  background: rgba(11,31,42,0.03);
}
.ladder-step.active .ladder-content {
  border-color: rgba(211, 139, 43, 0.55);
  box-shadow: 0 0 0 3px rgba(211, 139, 43, 0.14);
}
.ladder-step.active .ladder-rung {
  background: rgba(211,139,43,0.7);
  box-shadow: 0 0 8px rgba(211,139,43,0.4);
}

.ladder-label {
  font-weight: 800;
  font-size: var(--text-xl);
}
.ladder-dot {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-gold);
  opacity: 0.95;
}

/* ── Funds / Use of Funds ── */
.funds-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.fund-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px;
  border: 1px solid rgba(11,31,42,.05);
  text-align: center;
  width: 260px;
}
.fund-card.primary {
  border: 2px solid var(--brand-gold, #d38b2b);
}

.fund-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fund-icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--brand-gold, #d38b2b);
  stroke-width: 1.5;
  fill: none;
}

.fund-percent {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  color: var(--brand-navy);
  line-height: 1;
  margin-bottom: 8px;
}
.fund-card.primary .fund-percent {
  color: var(--brand-gold, #d38b2b);
}

.fund-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.fund-desc {
  font-size: 13px;
  opacity: 0.5;
  line-height: 1.4;
}

/* Summary bar */
.fund-summary-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  padding: 24px 48px;
  background: rgba(11,31,42,0.03);
  border-radius: var(--card-radius);
  margin-top: 32px;
}
.fund-summary-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.fund-summary-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand-gold, #d38b2b);
  flex-shrink: 0;
}
.fund-summary-dot.secondary {
  background: var(--brand-navy);
  opacity: 0.3;
}
.fund-summary-text {
  font-size: 14px;
}
.fund-summary-text strong {
  font-family: var(--font-display);
  font-weight: 600;
}

/* Dark tone */
.slide[data-tone="dark"] .fund-card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
}
.slide[data-tone="dark"] .fund-card.primary {
  border-color: var(--brand-gold, #d38b2b);
}
.slide[data-tone="dark"] .fund-summary-bar {
  background: rgba(255,255,255,0.04);
}
.slide[data-tone="dark"] .fund-summary-dot.secondary {
  background: #fff;
}


/* Mini bars (market slide) */
.mini-bars {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: var(--s-2h);
}
.mini-row {
  display: grid;
  grid-template-columns: 150px 1fr 56px;
  gap: var(--s-2h);
  align-items: center;
}
.mini-label {
  font-weight: 700;
  font-size: var(--text-md);
  opacity: 0.90;
}
.mini-value {
  text-align: right;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.72;
}
.mini-bar {
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.slide-surface.tone-light .mini-bar,
.slide-surface.tone-cream .mini-bar {
  border-color: rgba(11,31,42,0.10);
  background: rgba(11,31,42,0.06);
}
.mini-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(211,139,43,0.95) 0%, rgba(211,139,43,0.60) 100%);
}

/* Moat stack - Visual layered depth */
.moat-stack {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.moat-layer {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: var(--s-3);
  position: relative;
  margin-top: -8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.moat-layer:first-child {
  margin-top: 0;
}
/* Progressive depth - each layer slightly narrower */
.moat-layer:nth-child(1) { margin-left: 0; margin-right: 0; z-index: 1; }
.moat-layer:nth-child(2) { margin-left: 12px; margin-right: 12px; z-index: 2; }
.moat-layer:nth-child(3) { margin-left: 24px; margin-right: 24px; z-index: 3; }
.moat-layer:nth-child(4) { margin-left: 36px; margin-right: 36px; z-index: 4; }
.moat-layer:nth-child(5) { margin-left: 48px; margin-right: 48px; z-index: 5; }

/* Progressive opacity for depth illusion */
.moat-layer:nth-child(1) { background: rgba(255,255,255,0.04); }
.moat-layer:nth-child(2) { background: rgba(255,255,255,0.06); }
.moat-layer:nth-child(3) { background: rgba(255,255,255,0.08); }
.moat-layer:nth-child(4) { background: rgba(255,255,255,0.10); }
.moat-layer:nth-child(5) { background: rgba(255,255,255,0.12); }

.slide-surface.tone-light .moat-layer,
.slide-surface.tone-cream .moat-layer {
  border-color: rgba(11,31,42,0.12);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.slide-surface.tone-light .moat-layer:nth-child(1),
.slide-surface.tone-cream .moat-layer:nth-child(1) { background: rgba(11,31,42,0.02); }
.slide-surface.tone-light .moat-layer:nth-child(2),
.slide-surface.tone-cream .moat-layer:nth-child(2) { background: rgba(11,31,42,0.03); }
.slide-surface.tone-light .moat-layer:nth-child(3),
.slide-surface.tone-cream .moat-layer:nth-child(3) { background: rgba(11,31,42,0.04); }
.slide-surface.tone-light .moat-layer:nth-child(4),
.slide-surface.tone-cream .moat-layer:nth-child(4) { background: rgba(11,31,42,0.05); }
.slide-surface.tone-light .moat-layer:nth-child(5),
.slide-surface.tone-cream .moat-layer:nth-child(5) { background: rgba(11,31,42,0.06); }

.moat-top {
  display: flex;
  align-items: center;
  gap: var(--s-2h);
}
.moat-num {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand-gold, #d38b2b);
  color: var(--brand-navy, #0b1f2a);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  box-shadow: 0 0 12px rgba(211,139,43,0.4);
}
.moat-name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  letter-spacing: var(--letter-spacing-normal);
  font-weight: 800;
}
.moat-desc {
  margin-top: 8px;
  font-size: var(--text-lg);
  line-height: var(--line-height-normal);
  opacity: 0.86;
}

/* Pillars - Clean card columns */
.pillars-header {
  background: rgba(211,139,43,0.15);
  border: 1px solid rgba(211,139,43,0.3);
  border-radius: 12px;
  padding: 14px 24px;
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: 20px;
}

.pillars-row {
  display: flex;
  gap: 20px;
}

.pillar-card {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--card-radius);
  padding: 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-height: 120px;
}
.slide-surface.tone-light .pillar-card,
.slide-surface.tone-cream .pillar-card {
  background: rgba(11,31,42,0.04);
  border-color: rgba(11,31,42,0.1);
}

.pillar-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.pillar-desc {
  margin-top: 10px;
  font-size: var(--text-md);
  line-height: 1.5;
  opacity: 0.8;
}

/* Tiers - Pricing with visual hierarchy */
.tiers-row {
  display: flex;
  gap: 20px;
  align-items: stretch;
}

.tier-card {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.slide-surface.tone-light .tier-card,
.slide-surface.tone-cream .tier-card {
  background: rgba(11,31,42,0.04);
  border-color: rgba(11,31,42,0.12);
}

.tier-card.tier-featured {
  flex: 1.2;
  border-color: rgba(211,139,43,0.5);
  box-shadow: 0 0 24px rgba(211,139,43,0.2), inset 0 1px 0 rgba(211,139,43,0.3);
  background: rgba(211,139,43,0.08);
}
.slide-surface.tone-light .tier-card.tier-featured,
.slide-surface.tone-cream .tier-card.tier-featured {
  background: rgba(211,139,43,0.06);
}

.tier-ribbon {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-gold, #d38b2b);
  color: var(--brand-navy, #0b1f2a);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 0 0 6px 6px;
}

.tier-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 4px;
}
.tier-featured .tier-label {
  margin-top: 14px;
}

.tier-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.tier-price {
  margin-bottom: 8px;
}

.tier-amount {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--brand-gold, #d38b2b);
}
.tier-featured .tier-amount {
  font-size: 32px;
}

.tier-desc {
  font-size: var(--text-md);
  line-height: 1.4;
  opacity: 0.9;
  flex: 1;
}

.tier-notes {
  margin-top: 10px;
  font-size: var(--text-sm);
  opacity: 0.7;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.slide-surface.tone-light .tier-notes,
.slide-surface.tone-cream .tier-notes {
  border-top-color: rgba(11,31,42,0.1);
}

/* ========== Flow Template (Guardrailed Request Pipeline) ========== */
.flow-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.flow-endpoint {
  padding: var(--s-2) var(--s-4);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  font-weight: 600;
  font-size: var(--text-lg);
}
.slide-surface.tone-light .flow-endpoint,
.slide-surface.tone-cream .flow-endpoint {
  background: rgba(11,31,42,0.04);
  border-color: rgba(11,31,42,0.12);
}
.flow-arrow {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0.2) 0%, var(--brand-gold, #d38b2b) 50%, rgba(255,255,255,0.2) 100%);
  position: relative;
}
.slide-surface.tone-light .flow-arrow,
.slide-surface.tone-cream .flow-arrow {
  background: linear-gradient(90deg, rgba(11,31,42,0.2) 0%, var(--brand-gold, #d38b2b) 50%, rgba(11,31,42,0.2) 100%);
}
.flow-arrow::after {
  content: "→";
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand-gold, #d38b2b);
  font-size: 18px;
}

/* --- New Flow Template (Guardrailed Request Pipeline) --- */
.flow-main-content {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.flow-row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: var(--s-3);
}
.slide-surface.tone-light .flow-row,
.slide-surface.tone-cream .flow-row {
  background: #fff;
  border-color: rgba(11,31,42,0.12);
}
.flow-step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-3);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
}
.slide-surface.tone-light .flow-step,
.slide-surface.tone-cream .flow-step {
  background: rgba(11,31,42,0.04);
  border-color: rgba(11,31,42,0.12);
}
/* Inverted (dark) flow step */
.flow-step.inverted {
  background: var(--brand-navy, #0b1f2a);
  border-color: var(--brand-navy, #0b1f2a);
}
.flow-step.inverted .flow-title,
.flow-step.inverted .flow-subtitle {
  color: #fff;
}
.flow-step.inverted .flow-icon {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
/* Light theme: keep inverted step dark with white text */
.slide-surface.tone-light .flow-step.inverted,
.slide-surface.tone-cream .flow-step.inverted {
  background: var(--brand-navy, #0b1f2a);
  border-color: var(--brand-navy, #0b1f2a);
}
.slide-surface.tone-light .flow-step.inverted .flow-title,
.slide-surface.tone-light .flow-step.inverted .flow-subtitle,
.slide-surface.tone-cream .flow-step.inverted .flow-title,
.slide-surface.tone-cream .flow-step.inverted .flow-subtitle {
  color: #fff;
}
.slide-surface.tone-light .flow-step.inverted .flow-icon,
.slide-surface.tone-cream .flow-step.inverted .flow-icon {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.flow-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  font-size: 16px;
}
.slide-surface.tone-light .flow-icon,
.slide-surface.tone-cream .flow-icon {
  background: rgba(11,31,42,0.08);
}
.flow-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}
.flow-text {
  display: flex;
  flex-direction: column;
}
.flow-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-md);
}
.flow-subtitle {
  font-size: var(--text-sm);
  opacity: 0.7;
}
.flow-row > .flow-arrow {
  flex: 0 0 auto;
  font-size: 20px;
  opacity: 0.5;
  height: auto;
  background: none;
}
.flow-row > .flow-arrow::after {
  content: none;
}
.gates-section {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.gates-header {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.gates-subtitle {
  font-size: var(--text-sm);
  opacity: 0.7;
}
.gates-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s-3);
}
.gate-header {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-2);
}
.gate-action {
  margin-top: var(--s-2);
  font-size: var(--text-xs);
  color: var(--brand-gold, #d38b2b);
  font-weight: 600;
  background: rgba(211,139,43,0.1);
  padding: 5px 8px;
  border-radius: 4px;
  text-align: center;
}

.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s-2);
}
.gate-card {
  padding: var(--s-2h);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  text-align: center;
}
.slide-surface.tone-light .gate-card,
.slide-surface.tone-cream .gate-card {
  background: rgba(11,31,42,0.04);
  border-color: rgba(11,31,42,0.12);
}
.gate-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-gold, #d38b2b);
  color: var(--brand-navy, #0b1f2a);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: var(--s-2);
  box-shadow: 0 0 12px rgba(211,139,43,0.4);
}
.gate-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-md);
  margin-bottom: var(--s-1);
}
.gate-desc {
  font-size: var(--text-sm);
  opacity: 0.8;
  line-height: 1.4;
}
.outcome-bar {
  margin-top: var(--s-1);
  padding: var(--s-2) var(--s-3);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 10px;
  text-align: center;
  font-size: var(--text-md);
}
.outcome-bar strong {
  color: rgb(16, 185, 129);
}

/* ========== Evidence Template (RAG + FAISS Architecture) ========== */
/* Note: Main .pipeline-card and .pipeline-steps styles are defined below in "New Evidence Template Classes" */
.pipeline-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  margin-bottom: var(--s-3);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.slide-surface.tone-light .pipeline-title,
.slide-surface.tone-cream .pipeline-title {
  border-bottom-color: rgba(11,31,42,0.12);
}
.pipeline-num {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-gold, #d38b2b);
  color: var(--brand-navy, #0b1f2a);
  border-radius: 50%;
  font-size: var(--text-sm);
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(211,139,43,0.35);
}
.audit-card {
  margin-top: var(--s-2);
  padding: var(--s-2h) var(--s-3);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
}
.slide-surface.tone-light .audit-card,
.slide-surface.tone-cream .audit-card {
  background: rgba(11,31,42,0.04);
  border-color: rgba(11,31,42,0.12);
}
.audit-list {
  list-style: none;
  padding: 0;
  margin: var(--s-1) 0 0;
}
.audit-list li {
  padding: 2px 0;
  padding-left: var(--s-4);
  position: relative;
  font-size: var(--text-sm);
}
.audit-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: rgb(16, 185, 129);
  font-weight: 700;
}

/* --- New Evidence Template Classes --- */
.evidence-main-content {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}
.pipeline-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  background: var(--brand-gold, #d38b2b);
  color: var(--brand-navy, #0b1f2a);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 4px;
  border-radius: 6px;
  min-width: 24px;
  text-align: center;
  flex-shrink: 0;
}
.pipeline-card {
  display: flex;
  gap: var(--s-2);
  align-items: stretch;
  padding: var(--s-2);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
}
.pipeline-steps {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  flex: 1;
}
.pipeline-connector {
  display: flex;
  align-items: center;
  justify-content: center;
}
.connector-arrow {
  font-size: 16px;
  opacity: 0.5;
}
.pipeline-step {
  flex: 1;
  padding: var(--s-1h);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
}
.slide-surface.tone-light .pipeline-step,
.slide-surface.tone-cream .pipeline-step {
  background: rgba(11,31,42,0.04);
  border-color: rgba(11,31,42,0.12);
}
.pipeline-step.highlight {
  background: linear-gradient(135deg, #FDF8F3 0%, #FFFFFF 100%);
  border: 1.5px solid var(--brand-gold, #d38b2b);
}
.slide-surface.tone-light .pipeline-step.highlight,
.slide-surface.tone-cream .pipeline-step.highlight {
  background: linear-gradient(135deg, #FDF8F3 0%, #FFFFFF 100%);
  border-color: var(--brand-gold, #d38b2b);
}
.step-header {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-1);
}
.step-num {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-gold, #d38b2b);
  color: var(--brand-navy, #0b1f2a);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.step-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-md);
}
.step-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: var(--text-sm);
  opacity: 0.8;
}
.step-bullets li {
  padding: 2px 0;
  padding-left: var(--s-3);
  position: relative;
}
.step-bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--brand-gold, #d38b2b);
}
.bottom-section {
  margin-top: var(--s-1);
}
.audit-header {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-1);
}
.audit-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-md);
}
.audit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-1) var(--s-3);
}
.audit-item {
  display: flex;
  align-items: flex-start;
  gap: var(--s-1);
  font-size: 12px;
  line-height: 1.3;
}
.audit-item::before {
  content: "✓";
  color: rgb(16, 185, 129);
  font-weight: 700;
  flex-shrink: 0;
}

/* ========== Hosting Template (Enterprise Infrastructure) ========== */
.stack-card {
  padding: var(--s-4);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
}
.slide-surface.tone-light .stack-card,
.slide-surface.tone-cream .stack-card {
  background: rgba(11,31,42,0.04);
  border-color: rgba(11,31,42,0.12);
}
.stack-layers {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  margin-top: var(--s-3);
}
.stack-layer {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-2h) var(--s-3);
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
}
.slide-surface.tone-light .stack-layer,
.slide-surface.tone-cream .stack-layer {
  background: rgba(11,31,42,0.03);
}
.stack-layer-name {
  font-weight: 700;
  min-width: 100px;
  font-size: var(--text-md);
}
.stack-layer-detail {
  opacity: 0.8;
  font-size: var(--text-md);
}
.diagram-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  background: rgba(255,255,255,0.04);
  border: 2px dashed rgba(255,255,255,0.2);
  border-radius: 20px;
  color: rgba(255,255,255,0.5);
  font-size: var(--text-lg);
}
.slide-surface.tone-light .diagram-placeholder,
.slide-surface.tone-cream .diagram-placeholder {
  background: rgba(11,31,42,0.02);
  border-color: rgba(11,31,42,0.2);
  color: rgba(11,31,42,0.5);
}
.diagram-img {
  width: 100%;
  height: auto;
  border-radius: var(--card-radius);
}
.controls-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-4);
}
.control-card {
  padding: var(--s-3);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--card-radius);
  text-align: center;
}
.slide-surface.tone-light .control-card,
.slide-surface.tone-cream .control-card {
  background: rgba(11,31,42,0.04);
  border-color: rgba(11,31,42,0.12);
}
.control-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-md);
  margin-bottom: var(--s-1);
}
.control-desc {
  font-size: var(--text-sm);
  opacity: 0.8;
  line-height: 1.4;
}

/* --- New Hosting Template Classes --- */
.hosting-layout {
  display: flex;
  gap: var(--s-4);
  width: 100%;
}
.hosting-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.hosting-right {
  width: 440px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.hosting-arch-header {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}
.hosting-arch-subtitle {
  font-size: var(--text-sm);
  opacity: 0.7;
}
.hosting-arch-stack {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.hosting-layer {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  padding: var(--s-2h) var(--s-3);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
}
.slide-surface.tone-light .hosting-layer,
.slide-surface.tone-cream .hosting-layer {
  background: rgba(11,31,42,0.04);
  border-color: rgba(11,31,42,0.12);
}
.hosting-layer-row {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.hosting-layer-icon {
  width: 29px;
  height: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-gold, #d38b2b);
  color: var(--brand-navy, #0b1f2a);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.hosting-layer-badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--brand-gold, #d38b2b);
  background: rgba(211,139,43,0.1);
  padding: 3px 8px;
  border-radius: 4px;
}
.hosting-layer-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
}
.hosting-layer-tags {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.hosting-tag {
  font-size: 9px;
  color: var(--text-secondary, rgba(255,255,255,0.7));
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 3px 8px;
  border-radius: 4px;
}
.slide-surface.tone-light .hosting-tag,
.slide-surface.tone-cream .hosting-tag {
  background: rgba(11,31,42,0.04);
  border-color: rgba(11,31,42,0.12);
  color: var(--text-secondary, rgba(11,31,42,0.7));
}
.hosting-layer-desc {
  font-size: 11px;
  opacity: 0.8;
  line-height: 1.5;
  margin-left: 39px;
}
.hosting-arrow {
  display: flex;
  justify-content: center;
  padding: var(--s-1) 0;
  font-size: 16px;
  opacity: 0.4;
}
.hosting-screenshot {
  display: flex;
  flex-direction: column;
  padding: var(--s-2h);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  overflow: hidden;
}
.slide-surface.tone-light .hosting-screenshot,
.slide-surface.tone-cream .hosting-screenshot {
  background: rgba(11,31,42,0.04);
  border-color: rgba(11,31,42,0.12);
}
.hosting-screenshot-header {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  margin-bottom: var(--s-2);
}
.hosting-screenshot-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
}
.hosting-screenshot-content {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.hosting-screenshot-placeholder {
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 2px dashed rgba(255,255,255,0.2);
  border-radius: 12px;
  color: rgba(255,255,255,0.5);
  font-size: var(--text-sm);
  text-align: center;
  white-space: pre-line;
}
.slide-surface.tone-light .hosting-screenshot-placeholder,
.slide-surface.tone-cream .hosting-screenshot-placeholder {
  background: rgba(11,31,42,0.02);
  border-color: rgba(11,31,42,0.15);
  color: rgba(11,31,42,0.5);
}
.hosting-screenshot-img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: 6px;
}
.hosting-controls-header {
  margin-bottom: var(--s-1);
}
.hosting-controls {
  padding: var(--s-2h);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  flex-shrink: 0;
}
.slide-surface.tone-light .hosting-controls,
.slide-surface.tone-cream .hosting-controls {
  background: rgba(11,31,42,0.04);
  border-color: rgba(11,31,42,0.12);
}
.hosting-controls-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-1) var(--s-3);
  margin-top: var(--s-1h);
}
.hosting-control-item {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  font-size: 10px;
}
.hosting-control-item::before {
  content: "✓";
  color: rgb(16, 185, 129);
  font-weight: 700;
  flex-shrink: 0;
}

/* ========== Architecture Template (System Pipeline) - Visual Redesign ========== */
.architecture-main-content {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.architecture-pipeline {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
}

/* Animated connector between steps */
.architecture-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  flex-shrink: 0;
  position: relative;
}

.architecture-connector::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, rgba(211, 139, 43, 0.8) 0%, rgba(211, 139, 43, 0.3) 100%);
  border-radius: 2px;
}

.architecture-connector::after {
  content: "▶";
  position: absolute;
  right: 4px;
  color: var(--brand-gold, #d38b2b);
  font-size: 14px;
}

/* Step cards */
.architecture-step {
  flex: 1;
  padding: var(--s-3);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: border-color 300ms ease, box-shadow 300ms ease, background-color 300ms ease;
}

.architecture-step.highlight {
  border: 2px solid var(--brand-gold, #d38b2b);
  box-shadow: 0 0 32px rgba(211, 139, 43, 0.25);
  background: rgba(211, 139, 43, 0.08);
}

.slide-surface.tone-light .architecture-step,
.slide-surface.tone-cream .architecture-step {
  background: rgba(11,31,42,0.04);
  border-color: rgba(11,31,42,0.12);
}

.slide-surface.tone-light .architecture-step.highlight,
.slide-surface.tone-cream .architecture-step.highlight {
  background: rgba(211, 139, 43, 0.06);
}

/* Large icon above step */
.architecture-icon {
  font-size: 42px;
  margin-bottom: var(--s-2);
  line-height: 1;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.architecture-icon svg {
  width: 42px;
  height: 42px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

/* Number circle */
.architecture-num {
  width: 40px;
  height: 40px;
  margin-bottom: var(--s-2);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-gold, #d38b2b);
  color: var(--brand-navy, #0b1f2a);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.architecture-step-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  margin-bottom: var(--s-2);
}

.architecture-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.architecture-item {
  font-size: var(--text-sm);
  opacity: 0.7;
}

/* Property groups (two-column cards) */
.architecture-groups {
  display: flex;
  gap: var(--s-3);
  margin-top: var(--s-2);
}

.architecture-group {
  flex: 1;
  padding: var(--s-3);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--card-radius);
}

.slide-surface.tone-light .architecture-group,
.slide-surface.tone-cream .architecture-group {
  background: rgba(11,31,42,0.03);
  border-color: rgba(11,31,42,0.08);
}

.architecture-group-header {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-2);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.slide-surface.tone-light .architecture-group-header,
.slide-surface.tone-cream .architecture-group-header {
  border-color: rgba(11,31,42,0.08);
}

.architecture-group-icon {
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.architecture-group-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.architecture-group-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--brand-gold, #d38b2b);
}

.architecture-group-items {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}

.architecture-group-item {
  display: flex;
  align-items: flex-start;
  gap: var(--s-1);
  font-size: 13px;
  line-height: 1.4;
}

.architecture-group-item::before {
  content: "✓";
  color: var(--brand-gold, #d38b2b);
  font-weight: 700;
  flex-shrink: 0;
}

/* Legacy properties (backwards compatibility) */
.architecture-properties {
  margin-top: var(--s-2);
  padding: var(--s-2h) var(--s-3);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
}
.slide-surface.tone-light .architecture-properties,
.slide-surface.tone-cream .architecture-properties {
  background: rgba(11,31,42,0.02);
  border-color: rgba(11,31,42,0.08);
}

.architecture-props-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-1) var(--s-3);
  margin-top: var(--s-2);
}

.architecture-prop-item {
  display: flex;
  align-items: flex-start;
  gap: var(--s-1);
  font-size: 12px;
  line-height: 1.4;
}
.architecture-prop-item::before {
  content: "✓";
  color: var(--brand-gold, #d38b2b);
  font-weight: 700;
  flex-shrink: 0;
}

/* ========== Explainer Template (Tech Flow with Rings) ========== */
.explainer-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  flex: 1;
  padding-bottom: 80px; /* Space for absolute positioned bar */
}

.explainer-title {
  text-align: center;
  margin-bottom: var(--s-4);
}

.explainer-title h1 {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--slide-fg);
  letter-spacing: -0.02em;
}

.explainer-title h1 em {
  color: var(--brand-gold, #d38b2b);
  font-style: normal;
}

/* Schema row - the main horizontal flow */
.explainer-schema {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-5);
  padding: 0 var(--s-6);
  margin-top: -40px; /* Raise up independent of bottom bar */
}

/* Step container */
.explainer-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 147px;
}

/* Ring - the hero circular element */
.explainer-ring {
  width: 147px;
  height: 147px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.08), transparent 70%);
  border: 2px solid rgba(255,255,255,0.2);
  box-shadow: 0 0 24px rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: var(--s-3);
  transition: transform 300ms ease, box-shadow 300ms ease;
}

/* Inner ring pseudo-element for depth */
.explainer-ring::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
}

/* Ring color variants */
.explainer-ring.gold {
  border-color: rgba(211,139,43,0.5);
  background: radial-gradient(circle at 30% 30%, rgba(211,139,43,0.15), transparent 70%);
  box-shadow: 0 0 48px rgba(211,139,43,0.15);
}

.explainer-ring.green {
  border-color: rgba(34,197,94,0.5);
  background: radial-gradient(circle at 30% 30%, rgba(34,197,94,0.12), transparent 70%);
  box-shadow: 0 0 48px rgba(34,197,94,0.12);
}

/* Icon inside ring */
.explainer-icon {
  width: 59px;
  height: 59px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.explainer-icon svg {
  width: 100%;
  height: 100%;
  stroke: rgba(255,255,255,0.7);
  stroke-width: 1.2;
  fill: none;
}

.explainer-ring.gold .explainer-icon svg {
  stroke: var(--brand-gold, #d38b2b);
}

.explainer-ring.green .explainer-icon svg {
  stroke: rgb(34, 197, 94);
}

/* Labels below ring */
.explainer-label {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--slide-fg);
  margin-bottom: var(--s-1);
}

.explainer-desc {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--slide-fg);
  opacity: 0.4;
  text-align: center;
  max-width: 158px;
  line-height: 1.4;
}

/* Connectors between steps - align with ring center */
.explainer-connector {
  position: relative;
  display: flex;
  align-items: center;
  /* Ring=147px, center at ~74px. Step center ~110px. Offset: -37px */
  transform: translateY(-37px);
}

.explainer-connector-line {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0.1), rgba(255,255,255,0.2));
  position: relative;
}

.explainer-connector-line::after {
  content: '';
  position: absolute;
  right: -6px;
  top: -4px;
  border: 5px solid transparent;
  border-left-color: rgba(255,255,255,0.2);
}

/* Connector color variants */
.explainer-connector.gold .explainer-connector-line {
  background: linear-gradient(90deg, rgba(211,139,43,0.3), rgba(211,139,43,0.5));
}
.explainer-connector.gold .explainer-connector-line::after {
  border-left-color: rgba(211,139,43,0.5);
}

.explainer-connector.green .explainer-connector-line {
  background: linear-gradient(90deg, rgba(34,197,94,0.3), rgba(34,197,94,0.5));
}
.explainer-connector.green .explainer-connector-line::after {
  border-left-color: rgba(34,197,94,0.5);
}

.explainer-connector-label {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: rgba(255,255,255,0.3);
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Bottom stats bar */
.explainer-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.03);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: var(--s-4) var(--s-5);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--s-5);
}

.explainer-stats {
  display: flex;
  gap: var(--s-5);
}

.explainer-stat {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.explainer-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.explainer-stat-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--slide-fg);
  stroke-width: 1.5;
  fill: none;
}

.explainer-stat-text {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--slide-fg);
}

.explainer-stat-text span {
  display: block;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 400;
  opacity: 0.4;
  margin-top: 2px;
}

.explainer-motto {
  font-family: var(--font-display);
  font-size: 14px;
  font-style: italic;
  color: var(--slide-fg);
  opacity: 0.4;
}

/* Background grid for explainer */
.explainer-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, black 20%, transparent 70%);
  pointer-events: none;
}

/* Ambient orbs */
.explainer-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, currentColor 0%, transparent 70%);
  pointer-events: none;
}
.explainer-orb-gold {
  width: 400px;
  height: 400px;
  color: var(--brand-gold, #d38b2b);
  top: 15%;
  left: 20%;
  opacity: 0.08;
}
.explainer-orb-green {
  width: 300px;
  height: 300px;
  color: #16a34a;
  top: 20%;
  right: 15%;
  opacity: 0.06;
}

/* Light/cream tone overrides */
.slide-surface.tone-light .explainer-bg-grid,
.slide-surface.tone-cream .explainer-bg-grid {
  background-image:
    linear-gradient(rgba(11,31,42,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,31,42,0.025) 1px, transparent 1px);
}

.slide-surface.tone-light .explainer-orb-gold,
.slide-surface.tone-cream .explainer-orb-gold {
  opacity: 0.045;
}
.slide-surface.tone-light .explainer-orb-green,
.slide-surface.tone-cream .explainer-orb-green {
  opacity: 0.035;
}

/* Glass-effect rings on light backgrounds */
.slide-surface.tone-light .explainer-ring,
.slide-surface.tone-cream .explainer-ring {
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.95), rgba(255,255,255,0.5) 70%);
  border-color: rgba(11,31,42,0.07);
  box-shadow:
    0 4px 24px rgba(11,31,42,0.05),
    0 8px 32px rgba(11,31,42,0.03),
    inset 0 2px 12px rgba(255,255,255,0.9);
}

.slide-surface.tone-light .explainer-ring::before,
.slide-surface.tone-cream .explainer-ring::before {
  border-color: rgba(11,31,42,0.03);
}

.slide-surface.tone-light .explainer-ring.gold,
.slide-surface.tone-cream .explainer-ring.gold {
  border-color: rgba(211,139,43,0.35);
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.98), rgba(211,139,43,0.06) 70%);
  box-shadow:
    0 4px 32px rgba(211,139,43,0.12),
    0 12px 48px rgba(211,139,43,0.06),
    inset 0 2px 12px rgba(255,255,255,0.95);
}

.slide-surface.tone-light .explainer-ring.green,
.slide-surface.tone-cream .explainer-ring.green {
  border-color: rgba(22,163,74,0.35);
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.98), rgba(22,163,74,0.06) 70%);
  box-shadow:
    0 4px 32px rgba(22,163,74,0.1),
    0 12px 48px rgba(22,163,74,0.05),
    inset 0 2px 12px rgba(255,255,255,0.95);
}

.slide-surface.tone-light .explainer-icon svg,
.slide-surface.tone-cream .explainer-icon svg {
  stroke: var(--brand-navy, #0b1f2a);
  opacity: 0.4;
}

.slide-surface.tone-light .explainer-ring.gold .explainer-icon svg,
.slide-surface.tone-cream .explainer-ring.gold .explainer-icon svg {
  stroke: var(--brand-gold, #d38b2b);
  opacity: 1;
}

.slide-surface.tone-light .explainer-ring.green .explainer-icon svg,
.slide-surface.tone-cream .explainer-ring.green .explainer-icon svg {
  stroke: #16a34a;
  opacity: 1;
}

.slide-surface.tone-light .explainer-connector-line,
.slide-surface.tone-cream .explainer-connector-line {
  background: linear-gradient(90deg, rgba(11,31,42,0.06), rgba(11,31,42,0.12));
}
.slide-surface.tone-light .explainer-connector-line::after,
.slide-surface.tone-cream .explainer-connector-line::after {
  border-left-color: rgba(11,31,42,0.12);
}

.slide-surface.tone-light .explainer-connector.gold .explainer-connector-line,
.slide-surface.tone-cream .explainer-connector.gold .explainer-connector-line {
  background: linear-gradient(90deg, rgba(211,139,43,0.2), rgba(211,139,43,0.4));
}
.slide-surface.tone-light .explainer-connector.gold .explainer-connector-line::after,
.slide-surface.tone-cream .explainer-connector.gold .explainer-connector-line::after {
  border-left-color: rgba(211,139,43,0.4);
}

.slide-surface.tone-light .explainer-connector.green .explainer-connector-line,
.slide-surface.tone-cream .explainer-connector.green .explainer-connector-line {
  background: linear-gradient(90deg, rgba(22,163,74,0.3), rgba(22,163,74,0.4));
}
.slide-surface.tone-light .explainer-connector.green .explainer-connector-line::after,
.slide-surface.tone-cream .explainer-connector.green .explainer-connector-line::after {
  border-left-color: rgba(22,163,74,0.4);
}

.slide-surface.tone-light .explainer-connector-label,
.slide-surface.tone-cream .explainer-connector-label {
  color: rgba(11,31,42,0.35);
}

.slide-surface.tone-light .explainer-bar,
.slide-surface.tone-cream .explainer-bar {
  background: rgba(11,31,42,0.03);
  border-color: rgba(11,31,42,0.06);
}

.slide-surface.tone-light .explainer-stat-icon,
.slide-surface.tone-cream .explainer-stat-icon {
  background: rgba(255,255,255,0.8);
  border-color: rgba(11,31,42,0.08);
  box-shadow: 0 2px 8px rgba(11,31,42,0.04);
}

.slide-surface.tone-light .explainer-stat-icon svg,
.slide-surface.tone-cream .explainer-stat-icon svg {
  stroke: rgba(11,31,42,0.5);
}

/* ═══════════════════════════════════════════════════════════
   PROBLEM TEMPLATE - Pain points / challenges presentation
   ═══════════════════════════════════════════════════════════ */

/* Override headline em color to danger red for problem slides */
.slide:has(.problem-content) h1 em,
.slide:has(.problem-content) .slide-header h1 em,
.slide:has(.problem-content) h1[data-edit] em,
.slide:has(.problem-content) h1[data-edit="headline"] em {
  color: #c44536 !important;
}

.problem-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  flex: 1;
  padding-bottom: 70px; /* Space for absolute positioned bar */
}

/* Problem Cards Row - takes remaining space and centers cards within */
.problem-cards {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  flex: 1;
  width: 100%;
}

.problem-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 300px;
}

.problem-icon-box {
  width: 115px;
  height: 115px;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid rgba(196, 69, 54, 0.15);
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(196, 69, 54, 0.08);
}

.problem-icon-box svg {
  width: 53px;
  height: 53px;
  stroke: #c44536;
  stroke-width: 1.5;
  fill: none;
}

.problem-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--brand-navy);
  text-align: center;
}

.problem-desc {
  font-size: 15px;
  color: rgba(11, 31, 42, 0.5);
  text-align: center;
  line-height: 1.5;
  max-width: 276px;
}

/* Outcome Bar - full width from footer edge to footer edge */
.problem-outcome-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11,31,42,0.03);
  border-top: 1px solid rgba(11,31,42,0.08);
  padding: var(--s-4) var(--s-5);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
}

.problem-outcome-text {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.problem-outcome-text em {
  font-style: normal;
  color: #c44536;
}

.problem-outcome-dot {
  width: 5px;
  height: 5px;
  background: #c44536;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Dark theme adjustments */
.slide-surface.tone-dark .problem-icon-box {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(196, 69, 54, 0.3);
}

.slide-surface.tone-dark .problem-title {
  color: rgba(255, 255, 255, 0.95);
}

.slide-surface.tone-dark .problem-desc {
  color: rgba(255, 255, 255, 0.6);
}

/* Light/cream theme overrides for outcome bar */
.slide-surface.tone-light .problem-outcome-bar,
.slide-surface.tone-cream .problem-outcome-bar {
  background: rgba(11, 31, 42, 0.03);
  border-color: rgba(11, 31, 42, 0.06);
}

.slide-surface.tone-light .problem-outcome-text,
.slide-surface.tone-cream .problem-outcome-text {
  color: rgba(11, 31, 42, 0.7);
}

/* Dark tone overrides for outcome section */
.slide-surface.tone-dark .problem-outcome-bar {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}
.slide-surface.tone-dark .problem-outcome-text {
  color: rgba(255, 255, 255, 0.8);
}
.slide-surface.tone-dark .problem-outcome-dot {
  background: rgba(42, 157, 92, 0.6);
}
.slide-surface.tone-dark .problem-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(196, 69, 54, 0.2);
}

/* ═══════════════════════════════════════════════════════════
   PRODUCT TEMPLATE - Security flow with guardrail
   ═══════════════════════════════════════════════════════════ */

.product-content {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex: 1;
}

.product-flow-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Threat icons layer - ghostly faded icons outside guardrail (all at bottom/sides) */
.product-threats { position: absolute; inset: -60px; pointer-events: none; }

.product-threat {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* 4 threats at bottom evenly spread, 2 on sides aligned with shield badges */
/* Opacity fades outward from center: sides=0.5, inner bottom=0.3, outer bottom=0.12 */
/* !important needed to override fragment animation opacity:1 */
.product-threat-left { top: 50%; left: -55px; transform: translateY(-50%); opacity: 0.5 !important; }
.product-threat-right { top: 50%; right: -55px; transform: translateY(-50%); opacity: 0.5 !important; }
.product-threat-top-right { bottom: -30px; left: 30%; opacity: 0.3 !important; }
.product-threat-bottom-left { bottom: -30px; right: 30%; opacity: 0.3 !important; }
.product-threat-top-left { bottom: -30px; left: 8%; opacity: 0.12 !important; }
.product-threat-bottom-right { bottom: -30px; right: 8%; opacity: 0.12 !important; }

.product-threat-icon {
  width: 48px;
  height: 48px;
  background: transparent;
  border: 1px dashed rgba(196, 69, 54, 0.35);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-threat-icon svg {
  width: 24px;
  height: 24px;
  stroke: #c44536;
  stroke-width: 1.5;
  fill: none;
}

.product-threat-label {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
  color: #c44536;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Guardrail border */
.product-guardrail {
  position: relative;
  padding: 56px 80px;
  border: 3px dashed rgba(42, 157, 92, 0.45);
  border-radius: 32px;
  background: rgba(42, 157, 92, 0.025);
}

/* Shield badges */
.product-shield {
  position: absolute;
  width: 36px;
  height: 36px;
  background: white;
  border: 2px solid #2a9d5c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(42, 157, 92, 0.18);
}

.product-shield svg {
  width: 18px;
  height: 18px;
  stroke: #2a9d5c;
  stroke-width: 2;
  fill: none;
}

.product-shield-top { top: -18px; left: 50%; transform: translateX(-50%); }
.product-shield-right { top: 50%; right: -18px; transform: translateY(-50%); }
.product-shield-bottom { bottom: -18px; left: 50%; transform: translateX(-50%); }
.product-shield-left { top: 50%; left: -18px; transform: translateY(-50%); }

/* Flow row */
.product-flow-row {
  display: flex;
  align-items: center;
  gap: 40px;
}

.product-arrow {
  color: rgba(11, 31, 42, 0.18);
}

.product-arrow svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

/* Flow nodes */
.product-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.product-node-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-node-icon svg {
  stroke-width: 1.25;
  fill: none;
}

/* Circle white style (docs) */
.product-node-circle-white .product-node-icon {
  width: 120px;
  height: 120px;
  background: white;
  border: 2px solid rgba(11, 31, 42, 0.1);
  border-radius: 50%;
  box-shadow: 0 6px 24px rgba(11, 31, 42, 0.06);
}

.product-node-circle-white .product-node-icon svg {
  width: 52px;
  height: 52px;
  stroke: var(--brand-navy);
  opacity: 0.8;
}

/* Box navy style (AIVS - central, prominent) */
.product-node-box-navy .product-node-icon {
  width: 150px;
  height: 150px;
  background: linear-gradient(145deg, #15303d, var(--brand-navy));
  border: 4px solid var(--brand-gold);
  border-radius: 32px;
  box-shadow: 0 8px 32px rgba(11, 31, 42, 0.22), 0 0 28px rgba(211, 139, 43, 0.15);
}

.product-node-box-navy .product-node-icon svg {
  width: 90px;
  height: 90px;
  stroke: var(--brand-gold);
  overflow: visible;
}

/* Let the inline A-mark paths keep their own fill colours */
.product-node-box-navy .product-node-icon svg path {
  stroke: none;
}

/* Circle green style (verified user) */
.product-node-circle-green .product-node-icon {
  width: 120px;
  height: 120px;
  background: white;
  border: 3px solid #2a9d5c;
  border-radius: 50%;
  box-shadow: 0 6px 24px rgba(42, 157, 92, 0.12);
  position: relative;
}

.product-node-circle-green .product-node-icon svg {
  width: 52px;
  height: 52px;
  stroke: #2a9d5c;
}

.product-node-circle-green .product-node-icon::after {
  content: "✓";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 32px;
  background: #2a9d5c;
  color: white;
  font-size: 16px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(42, 157, 92, 0.35);
}

.product-node-label {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--brand-navy);
  text-align: center;
}

.product-node-circle-green .product-node-label {
  color: #2a9d5c;
}

.product-node-sublabel {
  font-size: 13px;
  color: rgba(11, 31, 42, 0.5);
  text-align: center;
}

/* Dark theme */
.slide-surface.tone-dark .product-guardrail {
  border-color: rgba(42, 157, 92, 0.4);
  background: rgba(42, 157, 92, 0.05);
}

.slide-surface.tone-dark .product-shield {
  background: rgba(42, 157, 92, 0.15);
  border-color: rgba(42, 157, 92, 0.6);
}

.slide-surface.tone-dark .product-node-circle-white .product-node-icon,
.slide-surface.tone-dark .product-node-circle-green .product-node-icon {
  background: rgba(255, 255, 255, 0.95);
}

.slide-surface.tone-dark .product-node-label {
  color: rgba(255, 255, 255, 0.95);
}

.slide-surface.tone-dark .product-node-sublabel {
  color: rgba(255, 255, 255, 0.5);
}

.slide-surface.tone-dark .product-arrow {
  color: rgba(255, 255, 255, 0.2);
}

/* ========== Verticals Template (GTM Timeline) ========== */
.verticals-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.verticals-timeline {
  display: flex;
  align-items: stretch;
  justify-content: center;
  position: relative;
  width: 100%;
  max-width: 1400px;
  padding: 32px 0;
}

/* Timeline track (gradient bar) - starts/ends at phase dot centers */
.verticals-track {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 16.67%;
  right: 16.67%;
  height: 4px;
  background: linear-gradient(90deg,
    #2a9d5c 0%,
    var(--brand-gold) 50%,
    rgba(11,31,42,0.15) 100%
  );
  border-radius: 2px;
}

/* Phase groups — 3-row grid so the dot always sits dead-centre */
.verticals-phase {
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  justify-items: center;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.phase-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  grid-row: 3;
  align-self: start;
}

.phase-now .phase-label {
  background: #2a9d5c;
  color: white;
}

.phase-next .phase-label {
  background: var(--brand-gold);
  color: white;
}

.phase-future .phase-label {
  background: rgba(11,31,42,0.1);
  color: rgba(11,31,42,0.5);
}

/* Timeline dot */
.phase-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  grid-row: 2;
}

.phase-now .phase-dot { background: #2a9d5c; }
.phase-next .phase-dot { background: var(--brand-gold); }
.phase-future .phase-dot { background: rgba(11,31,42,0.2); }

/* Default: cards in row 1 (above line), label in row 3 (below line) */
.phase-verticals {
  display: flex;
  gap: 16px;
  justify-content: center;
  grid-row: 1;
  align-self: end;
}

/* Zigzag: "now" and "future" flip cards below the line, label above */
.phase-now .phase-verticals,
.phase-future .phase-verticals {
  grid-row: 3;
  align-self: start;
}
.phase-now .phase-label,
.phase-future .phase-label {
  grid-row: 1;
  align-self: end;
}

.vertical-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 20px;
  background: white;
  border-radius: var(--card-radius);
  min-width: 120px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.phase-now .vertical-card {
  border: 2px solid #2a9d5c;
  box-shadow: 0 4px 16px rgba(42,157,92,0.12);
}

.phase-next .vertical-card {
  border: 2px solid var(--brand-gold);
  box-shadow: 0 4px 16px rgba(211,139,43,0.1);
}

.phase-future .vertical-card {
  border: 1px solid rgba(11,31,42,0.1);
  opacity: 0.6;
}

.vertical-card:hover {
  transform: translateY(-4px);
}

.vertical-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vertical-icon svg {
  width: 36px;
  height: 36px;
  stroke-width: 1.25;
  fill: none;
}

.phase-now .vertical-icon svg { stroke: #2a9d5c; }
.phase-next .vertical-icon svg { stroke: var(--brand-gold); }
.phase-future .vertical-icon svg { stroke: rgba(11,31,42,0.5); }

.vertical-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-navy);
}

.phase-future .vertical-name {
  color: rgba(11,31,42,0.5);
}

/* Dark theme */
.slide-surface.tone-dark .verticals-track {
  background: linear-gradient(90deg,
    #2a9d5c 0%,
    var(--brand-gold) 50%,
    rgba(255,255,255,0.15) 100%
  );
}

.slide-surface.tone-dark .phase-future .phase-label {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
}

.slide-surface.tone-dark .phase-dot {
  border-color: var(--brand-navy);
}

.slide-surface.tone-dark .phase-future .phase-dot {
  background: rgba(255,255,255,0.2);
}

.slide-surface.tone-dark .vertical-card {
  background: rgba(255,255,255,0.95);
}

.slide-surface.tone-dark .phase-future .vertical-icon svg {
  stroke: rgba(11,31,42,0.4);
}

.slide-surface.tone-dark .phase-future .vertical-name {
  color: rgba(11,31,42,0.4);
}

/* ═══════════════════════════════════════════════════════════
   CORPORATE TEMPLATE — Funding timeline
   ═══════════════════════════════════════════════════════════ */
.corporate-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.corporate-timeline {
  display: flex;
  align-items: flex-start;
  width: 100%;
  max-width: 1400px;
}

/* Phase column */
.corp-phase {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Connector line through dots */
.corp-phase::before {
  content: '';
  position: absolute;
  top: 19px;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(11,31,42,0.08);
}
.corp-phase:first-child::before { left: 50%; }
.corp-phase:last-child::before { right: 50%; }
.corp-done::before { background: #2a9d5c; opacity: 0.25; }
.corp-now::before { background: #2a9d5c; }

/* Phase dot */
.corp-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  position: relative;
  z-index: 1;
  margin-bottom: 28px;
}
.corp-done .corp-dot {
  background: white;
  border: 2px solid #2a9d5c;
  color: #2a9d5c;
}
.corp-now .corp-dot {
  background: #2a9d5c;
  color: white;
}
.corp-next .corp-dot {
  background: white;
  border: 2px solid var(--brand-gold);
  color: var(--brand-gold);
}
.corp-future .corp-dot {
  background: white;
  border: 2px solid var(--brand-navy);
  color: var(--brand-navy);
}

/* Body content below dot */
.corp-body {
  text-align: center;
  padding: 0 24px;
}

.corp-year {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 6px;
}

.corp-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.corp-amount {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 12px;
}
.corp-done .corp-amount { color: #2a9d5c; opacity: 0.6; }
.corp-now .corp-amount { color: #2a9d5c; }
.corp-next .corp-amount { color: var(--brand-gold); }
.corp-future .corp-amount { color: var(--brand-navy); }

.corp-desc {
  font-size: var(--text-base);
  line-height: 1.5;
  opacity: 0.5;
  max-width: 280px;
  margin: 0 auto;
}

.corp-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 4px;
  margin-top: 14px;
}
.corp-done .corp-tag {
  background: rgba(42,157,92,0.1);
  color: #2a9d5c;
}
.corp-now .corp-tag {
  background: #2a9d5c;
  color: white;
}

/* Dark tone overrides */
.slide-surface.tone-dark .corp-phase::before {
  background: rgba(255,255,255,0.1);
}
.slide-surface.tone-dark .corp-done::before {
  background: #2a9d5c; opacity: 0.25;
}
.slide-surface.tone-dark .corp-now::before {
  background: #2a9d5c;
}
.slide-surface.tone-dark .corp-done .corp-dot,
.slide-surface.tone-dark .corp-next .corp-dot,
.slide-surface.tone-dark .corp-future .corp-dot {
  background: var(--brand-navy);
}
.slide-surface.tone-dark .corp-future .corp-dot {
  border-color: rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.6);
}
.slide-surface.tone-dark .corp-future .corp-amount {
  color: rgba(255,255,255,0.7);
}

/* ═══════════════════════════════════════════════════════════
   INVESTMENT TEMPLATE — Fundraise stats card + unlocks
   ═══════════════════════════════════════════════════════════ */
.invest-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex: 1;
}

/* Stats card */
.invest-card {
  background: white;
  border-radius: 18px;
  padding: 32px 40px;
  border: 1px solid rgba(11,31,42,0.05);
  width: 100%;
}
.invest-card-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 32px;
  align-items: center;
}
.invest-divider {
  width: 1px;
  height: 64px;
  background: rgba(11,31,42,0.08);
}
.invest-stat {
  text-align: center;
}
.invest-value {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.invest-value.hero {
  color: var(--brand-gold);
}
.invest-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 6px;
}
.invest-desc {
  font-size: 13px;
  opacity: 0.5;
}

/* Unlocks row */
.invest-unlocks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.invest-unlocks-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-gold);
  white-space: nowrap;
}
.invest-unlocks-line {
  width: 32px;
  height: 1px;
  background: rgba(11,31,42,0.15);
}
.invest-unlocks-items {
  display: flex;
  gap: 32px;
}
.invest-unlock {
  display: flex;
  align-items: center;
  gap: 10px;
}
.invest-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(42,157,92,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.invest-check svg {
  width: 11px;
  height: 11px;
}
.invest-unlock-text {
  font-size: 14px;
  font-weight: 500;
}

/* Dark tone */
.slide-surface.tone-dark .invest-card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
}
.slide-surface.tone-dark .invest-divider {
  background: rgba(255,255,255,0.12);
}
.slide-surface.tone-dark .invest-unlocks-line {
  background: rgba(255,255,255,0.15);
}
.slide-surface.tone-dark .invest-check {
  background: rgba(42,157,92,0.15);
}

/* ── Cost / Value Analysis ── */
.cost-visual {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 32px;
}

.cost-comp-card,
.cost-time-card {
  background: #fff;
  border-radius: 24px;
  padding: 48px;
  border: 1px solid rgba(11,31,42,.05);
  flex: 1;
  max-width: 560px;
}

.cost-card-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 32px;
}

/* Bar rows */
.cost-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
}
.cost-row:last-of-type { margin-bottom: 0; }

.cost-row-name {
  width: 140px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
}
.cost-row-name.aivs { color: var(--color-success); }
.cost-row-name.llm { opacity: 0.5; }

.cost-bar-track {
  flex: 1;
  height: 32px;
  background: rgba(11,31,42,0.04);
  border-radius: 8px;
  overflow: hidden;
}
.cost-bar {
  height: 100%;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding-left: 16px;
}
.cost-bar.aivs { background: var(--color-success); }
.cost-bar.llm { background: rgba(11,31,42,0.12); }

.cost-bar-value {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}
.cost-bar.llm .cost-bar-value { color: rgba(11,31,42,0.7); }

/* Savings badge */
.cost-savings-badge {
  margin-top: 32px;
  padding: 20px 24px;
  background: rgba(34,139,94,0.08);
  border-radius: 12px;
  text-align: center;
}
.cost-savings-value {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--color-success);
  margin-bottom: 4px;
}
.cost-savings-label {
  font-size: 14px;
  opacity: 0.5;
}

/* Time / productivity card */
.cost-time-stats {
  display: flex;
  gap: 32px;
  flex: 1;
}
.cost-time-stat { flex: 1; }
.cost-time-value {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  color: var(--brand-gold, #d38b2b);
  line-height: 1;
  margin-bottom: 8px;
}
.cost-time-label {
  font-size: 15px;
  opacity: 0.5;
}

.cost-time-note {
  margin-top: 32px;
  padding: 20px 24px;
  background: rgba(211,139,43,0.08);
  border-radius: 12px;
}
.cost-time-note-text {
  font-size: 14px;
  opacity: 0.5;
  line-height: 1.5;
}

/* Features row */
.cost-features-row {
  display: flex;
  justify-content: center;
  gap: 56px;
  margin-top: 32px;
}
.cost-feature {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cost-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(34,139,94,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cost-feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-success);
  stroke-width: 2;
  fill: none;
}
.cost-feature-text strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 2px;
}
.cost-feature-text span {
  opacity: 0.5;
  font-size: 13px;
}

/* Dark tone overrides */
.slide-surface.tone-dark .cost-comp-card,
.slide-surface.tone-dark .cost-time-card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
}
.slide-surface.tone-dark .cost-bar-track {
  background: rgba(255,255,255,0.08);
}
.slide-surface.tone-dark .cost-bar.llm {
  background: rgba(255,255,255,0.15);
}
.slide-surface.tone-dark .cost-bar.llm .cost-bar-value {
  color: rgba(255,255,255,0.5);
}

/* ═══════════════════════════════════════════════════════════
   EXEC SUMMARY TEMPLATE — Key pillars + stats
   ═══════════════════════════════════════════════════════════ */
.exec-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  flex: 1;
}
.exec-content .exec-card {
  margin-top: auto;
  margin-bottom: auto;
}
.exec-card {
  background: white;
  border-radius: 18px;
  padding: 32px 48px;
  border: 1px solid rgba(11,31,42,0.05);
  width: 100%;
}
.exec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}
.exec-feature {
  text-align: center;
}
.exec-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.exec-icon svg {
  width: 36px;
  height: 36px;
  stroke-width: 1.5;
  fill: none;
}
.exec-icon.green svg { stroke: var(--color-success); }
.exec-icon.gold svg { stroke: var(--brand-gold, #d38b2b); }
.exec-feature-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--slide-fg);
  margin-bottom: 8px;
}
.exec-feature-desc {
  font-size: 13px;
  color: var(--slide-fg);
  opacity: 0.5;
  line-height: 1.5;
}

/* Stats row */
.exec-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
}
.exec-stat {
  display: flex;
  align-items: center;
  gap: 14px;
}
.exec-stat-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--slide-fg);
  line-height: 1;
}
.exec-stat-value.hero { color: var(--brand-gold, #d38b2b); }
.exec-stat-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slide-fg);
  opacity: 0.5;
}
.exec-stat-desc {
  font-size: 13px;
  color: var(--slide-fg);
}
.exec-divider {
  width: 1px;
  height: 40px;
  background: rgba(11,31,42,0.1);
}

/* Dark tone */
.slide-surface.tone-dark .exec-card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.08);
}
.slide-surface.tone-dark .exec-divider {
  background: rgba(255,255,255,0.1);
}
.slide-surface.tone-dark .exec-feature {
  border-color: rgba(255,255,255,0.08);
}
.slide-surface.tone-dark .exec-stat-value {
  color: var(--brand-gold, #d38b2b);
}

/* ═══════════════════════════════════════════════════════════
   SCALING PLAN TEMPLATE — Channel routes to market
   ═══════════════════════════════════════════════════════════ */
.scaling-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  margin-top: -24px;
}
.scaling-card {
  background: white;
  border-radius: 18px;
  padding: 32px 40px;
  border: 1px solid rgba(11,31,42,0.05);
  width: 100%;
  display: flex;
  gap: 28px;
}
.scaling-channel {
  flex: 1;
  text-align: center;
  padding: 0 12px;
  position: relative;
}
.scaling-channel:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60px;
  background: rgba(11,31,42,0.08);
}
.scaling-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scaling-icon svg {
  width: 42px;
  height: 42px;
  stroke: var(--brand-gold, #d38b2b);
  stroke-width: 1.4;
  fill: none;
}
.scaling-channel-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--slide-fg);
  margin-bottom: 8px;
}
.scaling-channel-desc {
  font-size: 13px;
  color: var(--slide-fg);
  opacity: 0.5;
  line-height: 1.5;
  margin-bottom: 10px;
}
.scaling-channel-examples {
  font-size: 11px;
  color: var(--slide-fg);
  opacity: 0.7;
}

/* Dark tone */
.slide-surface.tone-dark .scaling-card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.08);
}
.slide-surface.tone-dark .scaling-channel:not(:last-child)::after {
  background: rgba(255,255,255,0.08);
}
.slide-surface.tone-dark .scaling-channel-title {
  color: rgba(255,255,255,0.95);
}
.slide-surface.tone-dark .scaling-channel-desc {
  color: rgba(255,255,255,0.6);
}

/* ═══════════════════════════════════════════════════════════
   GROWTH TEMPLATE - Financial projections table (reuses .table)
   ═══════════════════════════════════════════════════════════ */
/* Growth / Forecast table */
.growth-table {
  background: #fff;
  border-radius: 24px;
  padding: 48px 64px;
  border: 1px solid rgba(11,31,42,0.05);
}
.table.growth-table.has-labels .row {
  grid-template-columns: 200px 1fr 1fr 1fr;
}
/* Label column header */
.growth-table .head .label-cell {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.5;
  color: var(--brand-navy);
  background: transparent;
  border-right: none;
}
.growth-table .head .cell {
  background: transparent;
}
.growth-table .head .cell .badge {
  background: transparent;
  border: none;
  box-shadow: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(11,31,42,0.5);
  padding: 0;
  height: auto;
}
/* Last column header + values in gold */
.growth-table .row.head .cell:last-child .badge {
  color: var(--brand-gold, #d38b2b);
}
/* Data cells */
.growth-table .row:not(.head) .cell {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--brand-navy);
  border-bottom-color: rgba(11,31,42,0.06);
}
.growth-table .row:not(.head) .label-cell {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  color: var(--brand-navy);
  background: transparent;
  border-right: none;
}
.growth-table .row:not(.head) .cell:last-child {
  color: var(--brand-gold, #d38b2b);
  font-weight: 600;
}
/* Total / summary row */
.growth-table .total-row {
  border-top: 2px solid var(--brand-navy);
}
.growth-table .total-row .cell {
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 28px;
  padding-top: var(--s-4);
  border-bottom: none;
}
.growth-table .total-row .label-cell {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}
/* Dark tone */
.slide-surface.tone-dark .growth-table {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
}
.slide-surface.tone-dark .growth-table .row:not(.head) .cell {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.08);
}
.slide-surface.tone-dark .growth-table .row:not(.head) .label-cell {
  color: rgba(255,255,255,0.8);
}
.slide-surface.tone-dark .growth-table .total-row {
  border-top-color: rgba(255,255,255,0.5);
}

/* ═══════════════════════════════════════════════════════════
   SHARES TEMPLATE - Cap table / equity visualization
   ═══════════════════════════════════════════════════════════ */

.shares-container {
  display: flex;
  gap: var(--s-4);
  align-items: stretch;
  justify-content: center;
}

.shares-card {
  flex: 1;
  background: rgba(16, 42, 54, 0.4);
  border: 1px solid rgba(241, 242, 238, 0.1);
  border-radius: 20px;
  padding: var(--s-3);
}

.shares-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: var(--s-1);
}

.shares-amount {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  color: var(--brand-gold, #d38b2b);
  line-height: 1;
  margin-bottom: 4px;
}

.shares-sublabel {
  font-size: 14px;
  opacity: 0.6;
  margin-bottom: var(--s-2);
}

/* Donut chart */
.shares-donut-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: var(--s-2);
}

.shares-donut {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  position: relative;
}

.shares-donut-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 62px;
  height: 62px;
  background: rgba(16, 42, 54, 0.95);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.shares-donut-total {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: white;
}

.shares-donut-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.6;
}

/* Breakdown list */
.shares-breakdown {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}

.shares-row {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.shares-color-bar {
  width: 5px;
  height: 36px;
  border-radius: 3px;
  flex-shrink: 0;
}

.shares-info {
  flex: 1;
}

.shares-name {
  font-size: 14px;
  font-weight: 500;
  color: white;
  margin-bottom: 2px;
}

.shares-shares {
  font-size: 12px;
  opacity: 0.6;
}

.shares-pct {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: white;
  min-width: 70px;
  text-align: right;
}

/* Arrow between cards */
.shares-arrow-wrap {
  display: flex;
  align-items: center;
  padding: 0 var(--s-2);
}

.shares-arrow {
  width: 56px;
  height: 56px;
  background: var(--brand-gold, #d38b2b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(211, 139, 43, 0.4);
}

.shares-arrow svg {
  width: 26px;
  height: 26px;
}

/* Footer */
.shares-footer {
  margin-top: var(--s-2);
  padding-top: var(--s-1);
  border-top: 1px solid rgba(241, 242, 238, 0.1);
  font-size: 13px;
  opacity: 0.6;
}

/* Post card accent */
.shares-card:last-of-type .shares-label {
  color: var(--brand-gold, #d38b2b);
}

/* Light/cream theme */
.slide-surface.tone-light .shares-card,
.slide-surface.tone-cream .shares-card {
  background: rgba(241, 242, 238, 0.6);
  border-color: rgba(16, 42, 54, 0.1);
}

.slide-surface.tone-light .shares-amount,
.slide-surface.tone-cream .shares-amount,
.slide-surface.tone-light .shares-name,
.slide-surface.tone-cream .shares-name,
.slide-surface.tone-light .shares-pct,
.slide-surface.tone-cream .shares-pct,
.slide-surface.tone-light .shares-donut-total,
.slide-surface.tone-cream .shares-donut-total {
  color: var(--brand-navy, #0b1f2a);
}

.slide-surface.tone-light .shares-donut-center,
.slide-surface.tone-cream .shares-donut-center {
  background: rgba(241, 242, 238, 0.95);
}

/* ========== Compare Template (Query Response Comparison) ========== */
.compare-section {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.compare-query {
  padding: var(--s-2h) var(--s-3);
  background: rgba(211, 139, 43, 0.08);
  border: 1px solid rgba(211, 139, 43, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.slide-surface.tone-light .compare-query,
.slide-surface.tone-cream .compare-query {
  background: rgba(211, 139, 43, 0.06);
}

.compare-query-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-gold, #d38b2b);
  flex-shrink: 0;
}

.compare-query-text {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.3;
  font-style: italic;
}

.compare-cards {
  display: flex;
  gap: var(--s-3);
  flex: 1;
  min-height: 0;
}

.compare-card {
  flex: 1;
  padding: var(--s-3);
  border-radius: var(--card-radius);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  overflow: hidden;
}

.compare-aivs {
  background: rgba(16, 185, 129, 0.05);
  border: 2px solid rgba(16, 185, 129, 0.25);
}
.compare-llm {
  background: rgba(239, 68, 68, 0.03);
  border: 1px solid rgba(239, 68, 68, 0.15);
  opacity: 0.9;
}

.compare-header {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  flex-wrap: wrap;
}

.compare-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 6px;
}
.compare-badge-good {
  background: rgba(16, 185, 129, 0.15);
  color: rgb(16, 185, 129);
}
.compare-badge-bad {
  background: rgba(239, 68, 68, 0.1);
  color: rgb(239, 68, 68);
}

.compare-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.compare-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
}
.compare-tag-good {
  background: rgba(16, 185, 129, 0.1);
  color: rgb(16, 185, 129);
}
.compare-tag-bad {
  background: rgba(239, 68, 68, 0.08);
  color: rgb(239, 68, 68);
}

/* Response text - direct in card, no wrapper */
.compare-response-card {
  flex: 1;
  overflow: hidden;
}

.compare-response {
  font-size: var(--text-sm);
  line-height: 1.6;
  white-space: pre-wrap;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
}

/* Sources - compact inline style */
.compare-sources {
  margin-top: auto;
  padding-top: var(--s-2);
  border-top: 1px solid rgba(16, 185, 129, 0.15);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-1);
}

.compare-sources-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(16, 185, 129);
}

.compare-sources-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}
.compare-sources-list li {
  font-size: 10px;
  opacity: 0.7;
}
.compare-sources-list li::before {
  content: "· ";
  color: rgb(16, 185, 129);
}

.compare-no-sources {
  margin-top: auto;
  padding-top: var(--s-2);
  border-top: 1px solid rgba(239, 68, 68, 0.1);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(239, 68, 68);
  opacity: 0.6;
  text-align: center;
}

/* Dark tone */
.slide-surface.tone-dark .compare-card.compare-aivs {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
}
.slide-surface.tone-dark .compare-card.compare-llm {
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.15);
}
.slide-surface.tone-dark .compare-sources {
  border-color: rgba(255,255,255,0.08);
}

