/* Savoka IT Sales — Presentation Slides */
:root {
  --red: #E53E3E;
  --red-dark: #C53030;
  --ink: #0F172A;
  --muted: #64748B;
  --line: #E2E8F0;
  --bg: #0B1220;
  --panel: #151F32;
  --slide-bg: #F8FAFC;
  --teal: #0D9488;
  --amber: #D97706;
  --green: #059669;
  --blue: #2563EB;
  --nav-w: 280px;
  --font: "Outfit", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  overflow: hidden;
}

.deck-app { display: flex; height: 100vh; }

.deck-nav {
  width: var(--nav-w);
  background: linear-gradient(180deg, #0B1220, #151F32);
  color: #E2E8F0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255,255,255,0.06);
  z-index: 20;
  transition: transform 0.25s ease;
}

.deck-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.deck-brand .mark {
  width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  display: grid; place-items: center; font-weight: 800; color: #fff;
}
.deck-brand strong { display: block; letter-spacing: 0.06em; font-size: 0.9rem; }
.deck-brand span { font-size: 0.72rem; color: #94A3B8; }

.deck-search { padding: 12px; }
.deck-search input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: #fff;
  font: inherit;
}
.deck-search input::placeholder { color: #64748B; }

#moduleList {
  flex: 1;
  overflow-y: auto;
  padding: 4px 8px 16px;
}
.mod-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: #CBD5E1;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  margin-bottom: 2px;
  display: flex;
  gap: 8px;
}
.mod-btn:hover, .mod-btn.active {
  background: rgba(229, 62, 62, 0.18);
  color: #fff;
}
.mod-btn .n {
  width: 22px; height: 22px; border-radius: 6px;
  background: rgba(255,255,255,0.08);
  display: grid; place-items: center;
  font-size: 0.68rem; font-weight: 700; flex-shrink: 0;
}
.back-link {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px;
  color: #94A3B8;
  text-decoration: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.85rem;
}
.back-link:hover { color: #fff; }

.stage-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #020617;
}

.stage-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: #E2E8F0;
}
.stage-meta { flex: 1; display: flex; gap: 14px; align-items: baseline; }
#sectionLabel { font-weight: 700; }
#slideCounter { color: #94A3B8; font-size: 0.85rem; }
.stage-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.btn, .icon-btn, .nav-btn {
  font: inherit;
  cursor: pointer;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #E2E8F0;
  padding: 8px 12px;
}
.btn.primary {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border: none;
  font-weight: 600;
}
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; }

.progress { height: 3px; background: rgba(255,255,255,0.08); }
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--red), #FB923C);
  transition: width 0.25s ease;
}

.stage {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 20px;
  outline: none;
  overflow: hidden;
}

.slide {
  width: min(1100px, 96%);
  height: min(620px, calc(100vh - 140px));
  background: var(--slide-bg);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  padding: 40px 48px;
  overflow: auto;
  position: relative;
  animation: in 0.28s ease;
}
@keyframes in {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.slide.section-title {
  background:
    radial-gradient(700px 280px at 0% 0%, rgba(229,62,62,0.35), transparent 55%),
    radial-gradient(600px 260px at 100% 0%, rgba(13,148,136,0.25), transparent 50%),
    linear-gradient(145deg, #0B1220, #1A2740);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.slide.section-title .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: #FCA5A5;
  margin-bottom: 12px;
  font-weight: 700;
}
.slide.section-title h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  max-width: 16ch;
  margin-bottom: 14px;
}
.slide.section-title p { color: #CBD5E1; max-width: 42ch; font-size: 1.1rem; }

.slide .eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.slide h1 {
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 14px;
}
.slide h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.slide p, .slide li {
  font-size: 1.05rem;
  line-height: 1.55;
  color: #1E293B;
}
.slide ul, .slide ol { margin: 8px 0 0 1.2rem; }
.slide li { margin-bottom: 8px; }
.slide .lead {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: #334155;
  margin-bottom: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}
.card h3 { font-size: 0.95rem; margin-bottom: 6px; }
.card p, .card li { font-size: 0.92rem; }
.card.red { border-left: 4px solid var(--red); }
.card.teal { border-left: 4px solid var(--teal); }
.card.amber { border-left: 4px solid var(--amber); }
.card.blue { border-left: 4px solid var(--blue); }
.card.green { border-left: 4px solid var(--green); }

.example {
  margin-top: 14px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 14px;
  padding: 14px 16px;
}
.example .label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
}
.example p, .example li { font-size: 0.95rem; }

.script {
  margin-top: 12px;
  background: #0B1220;
  color: #E2E8F0;
  border-radius: 14px;
  padding: 14px 16px;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.6;
  white-space: pre-wrap;
}
.script .label {
  display: block;
  font-family: var(--font);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94A3B8;
  margin-bottom: 8px;
  font-weight: 700;
}

.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  background: #FEE2E2;
  color: var(--red-dark);
}
.badge.teal { background: #CCFBF1; color: #0F766E; }
.badge.gray { background: #F1F5F9; color: #475569; }

.compare {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 0.92rem;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.compare th, .compare td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.compare th { background: #F1F5F9; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.compare tr:last-child td { border-bottom: none; }

.stage-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px 14px;
  color: #94A3B8;
  font-size: 0.82rem;
}
.nav-btn { font-weight: 600; }
.nav-btn:disabled { opacity: 0.35; cursor: default; }

.overview {
  position: fixed; inset: 0;
  background: rgba(2, 6, 23, 0.92);
  z-index: 50;
  overflow: auto;
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  align-content: start;
}
.overview[hidden] { display: none; }
.ov-card {
  background: #F8FAFC;
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: left;
  font: inherit;
  min-height: 110px;
}
.ov-card:hover { border-color: var(--red); }
.ov-card .ix { font-size: 0.72rem; color: var(--muted); font-weight: 700; }
.ov-card h4 { font-size: 0.9rem; margin: 6px 0; line-height: 1.3; }
.ov-card p { font-size: 0.75rem; color: var(--muted); }

@media (max-width: 900px) {
  .deck-nav { position: fixed; inset: 0 auto 0 0; transform: translateX(-105%); }
  .deck-nav.open { transform: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .slide { padding: 24px 20px; height: min(70vh, 640px); }
  .hint { display: none; }
}

@media print {
  body { overflow: visible; background: #fff; }
  .deck-nav, .stage-bar, .stage-footer, .progress, .overview { display: none !important; }
  .stage-wrap { display: block; }
  .stage { display: block; padding: 0; }
  .slide {
    box-shadow: none;
    width: 100%;
    height: auto;
    min-height: 90vh;
    page-break-after: always;
    border-radius: 0;
    animation: none;
  }
}
