:root {
  --font-primary: Aptos, "Segoe UI", Inter, sans-serif;
  --bg: #f2f4f6;
  --surface: #ffffff;
  --text: #233244;
  --muted: #617286;
  --title: #12254a;
  --accent: #009ca8;
  --accent-soft: #def5f6;
  --shadow: 0 18px 40px rgba(18, 37, 74, 0.12);
}

body {
  margin: 0;
  font-family: var(--font-primary);
  background: var(--bg);
  color: var(--text);
}

.landing-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.deck-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.92), transparent 24%),
    radial-gradient(circle at bottom right, rgba(15, 118, 110, 0.08), transparent 28%),
    linear-gradient(180deg, #fafbfd, var(--bg));
}

.deck-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 24px 14px;
  border-top: 6px solid var(--accent);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 8px 24px rgba(31, 41, 55, 0.05);
}

.deck-brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.deck-toolbar-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

#deck-count {
  font-size: 14px;
  color: var(--title);
  font-weight: 600;
}

.current-slide-title {
  color: var(--title);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deck-toolbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

body.deck-app .deck-toolbar-actions {
  display: none;
}

.deck-btn {
  border: 1px solid rgba(18, 37, 74, 0.12);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font: inherit;
}

.deck-btn:hover {
  border-color: var(--accent);
}

.deck-btn-ghost {
  background: transparent;
}

.deck-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  padding: 28px 24px 36px;
}

.notes-open .deck-main {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.reveal-shell {
  position: relative;
}

.deck-surface-glow {
  position: absolute;
  inset: -12px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.12), transparent 32%),
    radial-gradient(circle at bottom left, rgba(29, 78, 216, 0.08), transparent 28%);
  pointer-events: none;
}

.reveal {
  background:
    radial-gradient(circle at top right, rgba(0, 156, 168, 0.14), transparent 24%),
    linear-gradient(180deg, #f5f7fa, #eef2f7);
  border-radius: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(18, 37, 74, 0.06);
  overflow: hidden;
}

.reveal .slides {
  text-align: left;
}

.reveal .controls {
  color: var(--accent);
}

.reveal .progress {
  color: var(--accent);
  height: 5px;
}

.reveal .slides section.deck-slide {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  padding: 0 !important;
  inset: 0 !important;
  background: transparent;
  box-shadow: none;
  text-align: left;
  display: block !important;
}

.reveal .slides section.deck-slide.present,
.reveal .slides section.deck-slide.past,
.reveal .slides section.deck-slide.future {
  width: 100% !important;
  max-width: 100% !important;
}

.slide-card {
  background: var(--surface);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 36px 44px 32px !important;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 100%;
  text-align: left;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.98)),
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.06), transparent 34%);
}

.slide-card-title,
.slide-card-closing {
  justify-content: center;
}

.slide-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 10px;
  background: var(--accent);
}

.slide-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 8px;
  background: var(--accent-soft);
}

.slide-chrome {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.slide-chrome:empty {
  display: none;
}

.slide-kicker,
.slide-kind,
.slide-count,
.slide-hint,
.eyebrow,
.subtle {
  color: var(--muted);
  font-size: 14px;
}

.slide-title {
  margin: 0 !important;
  color: var(--title);
  font-size: clamp(30px, 4vw, 40px) !important;
  line-height: 1.08 !important;
  text-transform: none !important;
  max-width: 18ch;
}

.slide-card-title .slide-title {
  max-width: 12ch;
  font-size: clamp(42px, 5vw, 64px) !important;
}

.reveal .slide-body,
.reveal .slide-bullets,
.reveal .visual-flow,
.reveal .slide-footer,
.reveal .slide-chrome {
  width: 100%;
}

.slide-body p {
  margin: 0 0 10px !important;
  font-size: clamp(18px, 2vw, 22px) !important;
  line-height: 1.5 !important;
}

.slide-hero {
  display: grid;
  gap: 22px;
  min-height: calc(100% - 84px);
  align-content: center;
}

.slide-hero-meta,
.closing-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.slide-hero-badge,
.closing-point {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
  background: rgba(15, 118, 110, 0.12);
  color: var(--title);
}

.slide-hero-badge-soft,
.closing-point {
  background: var(--accent-soft);
}

.slide-body-hero p:first-child {
  font-size: clamp(20px, 2.2vw, 28px) !important;
  color: var(--title);
  font-weight: 600;
}

.slide-body-hero p:last-child {
  max-width: 38ch;
}

.slide-bullets {
  margin: 0 !important;
  padding-left: 24px !important;
  display: grid;
  gap: 12px;
}

.slide-bullets li {
  font-size: clamp(18px, 2vw, 21px) !important;
  line-height: 1.45 !important;
  margin: 0 !important;
}

.slide-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
}

.slide-kind-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--title);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
}

.slide-footer-spacer {
  min-width: 1px;
  min-height: 1px;
}

.proof-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.8fr);
  gap: 24px;
  min-height: calc(100% - 84px);
}

.proof-main {
  display: grid;
  gap: 18px;
  align-content: start;
}

.proof-body {
  max-width: 34ch;
}

.proof-evidence {
  border: 1px solid rgba(18, 37, 74, 0.08);
  border-radius: 22px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 255, 0.98)),
    radial-gradient(circle at top right, rgba(29, 78, 216, 0.08), transparent 34%);
  box-shadow: 0 12px 28px rgba(18, 37, 74, 0.06);
}

.proof-evidence-label {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.proof-evidence .slide-bullets {
  padding-left: 20px !important;
}

.notes-panel {
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 20px 20px 16px;
  align-self: start;
  position: sticky;
  top: 96px;
  border: 1px solid rgba(18, 37, 74, 0.08);
}

.notes-title {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.notes-slide-meta {
  color: var(--title);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
}

.notes-section {
  border-top: 1px solid rgba(18, 37, 74, 0.08);
  padding-top: 14px;
  margin-top: 14px;
}

.notes-section:first-child {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.notes-section-label {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.notes-body p {
  margin: 0 0 12px;
  line-height: 1.5;
}

.notes-copy {
  color: var(--text);
}

.speaker-prompt {
  color: var(--title);
  font-weight: 600;
}

.visual-flow {
  display: grid;
  gap: 22px;
}

.visual-layout {
  display: grid;
  gap: 24px;
  min-height: calc(100% - 84px);
}

.visual-flow-headline {
  font-size: 18px;
  font-weight: 700;
  color: var(--title);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.visual-flow-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 16px;
  align-items: center;
}

.visual-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(249, 252, 252, 0.98)),
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.12), transparent 36%);
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 22px;
  padding: 22px 20px;
  min-height: 180px;
  box-shadow: 0 16px 36px rgba(18, 37, 74, 0.08);
}

.visual-card-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--title);
  margin-bottom: 12px;
}

.visual-card-line {
  font-size: 18px;
  line-height: 1.45;
}

.visual-arrow {
  font-size: 34px;
  color: var(--accent);
  font-weight: 700;
}

.landing-page {
  background:
    radial-gradient(circle at top right, rgba(0, 156, 168, 0.16), transparent 30%),
    linear-gradient(180deg, #f5f7fa, #eef2f7);
}

.landing-shell {
  align-items: center;
  justify-content: flex-start;
  padding: 28px 24px 48px;
}

.landing-card {
  width: min(1180px, 100%);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  border-radius: 28px;
  padding: 40px;
}

.landing-card h1 {
  margin: 8px 0 14px;
  color: var(--title);
}

.landing-hero {
  display: grid;
  gap: 14px;
  margin-bottom: 26px;
}

.landing-intro {
  margin: 0;
  max-width: 66ch;
  color: var(--text);
  font-size: 18px;
  line-height: 1.6;
}

.landing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.landing-deck-card {
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 255, 0.98)),
    radial-gradient(circle at top right, rgba(29, 78, 216, 0.07), transparent 36%);
  border: 1px solid rgba(18, 37, 74, 0.08);
  box-shadow: 0 12px 32px rgba(18, 37, 74, 0.06);
}

.landing-card-featured {
  border-color: rgba(15, 118, 110, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 251, 0.98)),
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.14), transparent 34%);
}

.landing-deck-topline {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.landing-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--title);
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
}

.landing-chip-soft {
  background: rgba(18, 37, 74, 0.06);
}

.landing-deck-card h2 {
  margin: 0;
  color: var(--title);
  font-size: 28px;
  line-height: 1.14;
}

.landing-deck-meta,
.landing-deck-summary {
  margin: 0;
  color: var(--text);
}

.landing-deck-meta {
  font-size: 14px;
  color: var(--muted);
}

.landing-deck-summary {
  font-size: 17px;
  line-height: 1.55;
}

.landing-deck-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.landing-deck-link:hover {
  text-decoration: underline;
}

.closing-layout {
  display: grid;
  gap: 22px;
  align-content: center;
  min-height: calc(100% - 84px);
}

.closing-body {
  max-width: 34ch;
}

body[data-slide-kind="title"] .slide-title,
body[data-slide-kind="closing"] .slide-title {
  max-width: 14ch;
}

body[data-slide-kind="proof_story"] .slide-card {
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.98)),
    radial-gradient(circle at top right, rgba(29, 78, 216, 0.06), transparent 34%);
}

body[data-slide-kind="visual_flow"] .slide-card {
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.98)),
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.09), transparent 38%);
}

@media (max-width: 960px) {
  .notes-open .deck-main {
    grid-template-columns: 1fr;
  }

  .notes-panel {
    position: static;
  }

  .visual-flow-row {
    grid-template-columns: 1fr;
  }

  .proof-layout,
  .landing-grid {
    grid-template-columns: 1fr;
  }

  .visual-arrow {
    text-align: center;
    transform: rotate(90deg);
  }

  .slide-card {
    min-height: 0;
    padding: 28px 24px 26px !important;
  }
}

@media (max-width: 720px) {
  .deck-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .deck-toolbar-meta,
  .deck-toolbar-actions {
    justify-content: space-between;
  }

  .deck-main,
  .deck-toolbar {
    padding-left: 16px;
    padding-right: 16px;
  }

  .slide-title {
    font-size: 28px !important;
  }

  .landing-card {
    padding: 26px 22px;
  }

  .current-slide-title {
    white-space: normal;
  }
}

@media print {
  .deck-toolbar,
  .notes-panel,
  .reveal .controls,
  .reveal .progress {
    display: none !important;
  }

  .deck-main {
    display: block;
    padding: 0;
  }

  .reveal {
    box-shadow: none;
    background: transparent;
  }

  .reveal .slides {
    transform: none !important;
    width: auto !important;
    height: auto !important;
  }

  .slide-card {
    min-height: auto;
    page-break-after: always;
    break-after: page;
    box-shadow: none;
    border: 1px solid rgba(18, 37, 74, 0.1);
    margin: 0 0 12px;
    transform: none !important;
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}
