@import url('../css/theme.css');

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

html, body {
  height: 100%;
  overflow: hidden;
  font-family: 'Inter', system-ui, sans-serif;
  background: #0f1412;
  color: var(--text-primary);
}

.deck {
  width: 100vw;
  height: 100vh;
  position: relative;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 3rem 5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateX(40px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
  background: linear-gradient(160deg, #ffffff 0%, var(--brand-wash) 45%, #fff 100%);
  overflow-y: auto;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  z-index: 1;
}

.slide-inner {
  max-width: 960px;
  width: 100%;
}

.slide-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand-orange);
  margin-bottom: 0.5rem;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand-navy);
  margin-bottom: 0.35rem;
  line-height: 1.15;
}

.lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.lead.center { text-align: center; }

/* Title slide */
.slide-title {
  background: linear-gradient(135deg, #1a2e24 0%, #0f1412 50%, #1a2e24 100%);
  color: white;
}

.slide-title .slide-inner { max-width: 800px; }

.title-brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.title-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 8px 32px rgba(255, 90, 54, 0.3);
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brand-sky);
  margin-bottom: 0.5rem;
}

.slide-title h1 {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #FF5A36 0%, #4CD964 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.05;
  margin-bottom: 0.5rem;
}

.title-sub {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

.title-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.meta-chip {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 0.65rem 1rem;
  font-size: 13px;
  color: rgba(255,255,255,0.9);
}

.meta-chip strong { color: var(--brand-green); }

.title-audience {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

/* Highlight grid */
.highlight-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.highlight-grid.three { grid-template-columns: repeat(3, 1fr); }

.highlight-card {
  background: white;
  border: 1px solid var(--border-brand);
  border-radius: 14px;
  padding: 1.25rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(26,46,36,0.06);
}

.highlight-card.accent {
  background: linear-gradient(135deg, rgba(255,90,54,0.08) 0%, rgba(76,217,100,0.12) 100%);
  border-color: var(--brand-green);
}

.hl-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.hl-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand-navy);
  letter-spacing: -0.02em;
}

.hl-note { font-size: 12px; color: var(--text-muted); margin-top: 0.25rem; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.callout {
  background: var(--brand-orange-light);
  border: 1px solid rgba(255,90,54,0.2);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  font-size: 14px;
  line-height: 1.55;
}

.callout.green {
  background: var(--brand-green-light);
  border-color: var(--border-brand);
}

.callout.full { margin-top: 0.5rem; }

.callout strong { display: block; margin-bottom: 0.35rem; color: var(--brand-navy); }

/* Analogy */
.analogy-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.analogy-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  text-align: center;
}

.analogy-card.featured {
  border-color: var(--brand-green);
  background: linear-gradient(180deg, white 0%, var(--brand-wash) 100%);
  box-shadow: 0 4px 20px rgba(34,168,70,0.12);
}

.analogy-card.muted { opacity: 0.85; }

.analogy-icon { font-size: 2rem; margin-bottom: 0.5rem; }

.analogy-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 0.25rem; }

.analogy-names {
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-green-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.analogy-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

.analogy-arrow {
  font-size: 1.5rem;
  color: var(--brand-orange);
  font-weight: 700;
}

.numbered-flow {
  padding-left: 1.25rem;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.numbered-flow li::marker { color: var(--brand-orange); font-weight: 700; }

/* Bullet cards */
.bullet-cards { display: flex; flex-direction: column; gap: 1rem; }

.bullet-card {
  display: flex;
  gap: 1rem;
  background: white;
  border: 1px solid var(--border-brand);
  border-radius: 12px;
  padding: 1.15rem 1.25rem;
  align-items: flex-start;
}

.bc-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-green) 100%);
  color: white;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bullet-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; color: var(--brand-navy); }
.bullet-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

/* Compare */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.compare-col {
  border-radius: 14px;
  padding: 1.25rem;
}

.compare-col.bad {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.compare-col.good {
  background: var(--brand-green-light);
  border: 1px solid var(--border-brand);
}

.compare-col h3 { font-size: 1rem; font-weight: 800; margin-bottom: 0.75rem; }
.compare-col ul { padding-left: 1.15rem; font-size: 14px; line-height: 1.7; color: var(--text-secondary); }

.pe-benefit {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 0.85rem 1rem;
  background: white;
  border-left: 4px solid var(--brand-orange);
  border-radius: 0 8px 8px 0;
}

/* Zones */
.zone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.zone-card {
  background: white;
  border: 1px solid var(--border-brand);
  border-radius: 14px;
  padding: 1.25rem;
}

.zone-card.edge { border-color: var(--brand-orange); background: var(--brand-orange-light); }

.zone-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--brand-green-light);
  color: var(--brand-green-dark);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.65rem;
}

.zone-card.edge .zone-badge { background: rgba(255,90,54,0.15); color: var(--brand-orange); }

.zone-card h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 0.65rem; }
.zone-card ul { padding-left: 1.1rem; font-size: 14px; line-height: 1.65; color: var(--text-secondary); }

.clients-line { font-size: 14px; color: var(--text-secondary); }

/* Metrics */
.metrics-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.metric { text-align: center; }
.metric.hero .metric-value { color: var(--brand-orange); font-size: 3rem; }

.metric-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.metric-plain {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-green-dark);
  margin-bottom: 0.25rem;
}

.layman-box {
  background: white;
  border: 1px solid var(--border-brand);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.layman-box strong { color: var(--brand-navy); }

.metric-value {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--brand-navy);
  letter-spacing: -0.02em;
}

.metric-sub { font-size: 12px; color: var(--text-muted); margin-top: 0.15rem; }
.metric-divider { font-size: 1.5rem; color: var(--brand-green); font-weight: 700; }

/* Hydro */
.hydro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hydro-stat {
  background: white;
  border: 1px solid var(--border-brand);
  border-radius: 14px;
  padding: 1.5rem 1rem;
  text-align: center;
}

.hydro-stat.highlight {
  background: linear-gradient(135deg, rgba(255,90,54,0.1) 0%, rgba(76,217,100,0.15) 100%);
  border-color: var(--brand-green);
}

.hydro-num {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--brand-navy);
  line-height: 1;
}

.hydro-unit {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-orange);
  margin-bottom: 0.5rem;
}

.hydro-stat p { font-size: 13px; color: var(--text-secondary); line-height: 1.4; }

/* Budget table */
.budget-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(26,46,36,0.08);
}

.budget-table th {
  background: var(--brand-navy);
  color: white;
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.budget-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.45;
}

.budget-table tr.total td {
  background: var(--brand-wash);
  font-weight: 700;
  border-bottom: none;
}

.budget-table .amount {
  font-weight: 700;
  color: var(--brand-green-dark);
  white-space: nowrap;
}

.budget-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 0.6rem;
  font-style: italic;
}

/* Risk */
.risk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.risk-card {
  background: white;
  border: 1px solid var(--border-brand);
  border-radius: 14px;
  padding: 1.25rem;
}

.risk-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--brand-navy); }
.risk-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.55; }

/* Closing */
.slide-closing {
  background: linear-gradient(160deg, #1a2e24 0%, #0f1412 100%);
  color: white;
}

.slide-closing h2 { color: white; }

.closing-ask {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.ask-amount {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  background: linear-gradient(135deg, #FF5A36 0%, #4CD964 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.ask-type { font-size: 14px; color: rgba(255,255,255,0.7); margin-top: 0.35rem; }

.ask-timeline {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
}

.returns-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.return-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 1.25rem;
  text-align: center;
}

.return-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.35rem;
}

.return-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--brand-green);
}

.exit-paths {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.closing-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}

.closing-brand img { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; }

/* Nav */
.deck-nav {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(15, 20, 18, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.deck-nav button {
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.15s;
}

.deck-nav button:hover { background: rgba(255,90,54,0.4); }

#slide-counter {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  min-width: 4.5rem;
  text-align: center;
}

@media (max-width: 768px) {
  .slide { padding: 1.5rem 1.25rem 5rem; }
  .highlight-grid.three,
  .two-col,
  .analogy-grid,
  .compare-grid,
  .zone-grid,
  .hydro-grid,
  .risk-grid,
  .returns-grid { grid-template-columns: 1fr; }
  .analogy-arrow { transform: rotate(90deg); text-align: center; }
  .metrics-row { gap: 1rem; }
  .metric-divider { display: none; }
}

@media print {
  .deck-nav { display: none; }
  .slide {
    position: relative;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    page-break-after: always;
    height: auto;
    min-height: 100vh;
  }
}
