/**
 * b2b-slide.css — CSS-only Pitch Deck
 *
 * Full-screen slides with keyboard navigation.
 * Zero images. Data-driven visuals.
 *
 * Usage: /slides.astro
 * Controls: ← → arrows, Space, or click nav dots
 */

/* ─────────────────────────────────────────────
   SLIDE CONTAINER
───────────────────────────────────────────── */

.slide-deck {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: var(--bg-ink);
  overflow: hidden;
  font-family: var(--font-body);
}

.slide-deck__slides {
  position: relative;
  width: 100%;
  height: 100vh;
}

/* ─────────────────────────────────────────────
   INDIVIDUAL SLIDE
───────────────────────────────────────────── */

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(2rem, 6vw, 5rem);
  opacity: 0;
  visibility: hidden;
  transform: translateX(40px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0s 0.3s;
}

.slide--active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0s 0s;
}

.slide--exit-left {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-40px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0s 0.3s;
}

/* ─────────────────────────────────────────────
   SLIDE CONTENT
───────────────────────────────────────────── */

.slide__inner {
  max-width: 960px;
  width: 100%;
  text-align: center;
}

.slide__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.slide__eyebrow::before,
.slide__eyebrow::after {
  content: '';
  width: 32px;
  height: 1px;
  background: rgba(67, 56, 202, 0.4);
}

.slide__heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: var(--fw-bold);
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.slide__heading--small {
  font-size: clamp(2rem, 4.5vw, 3rem);
}

.slide__sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto 36px;
}

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

/* ─────────────────────────────────────────────
   SLIDE NUMBER
───────────────────────────────────────────── */

.slide__num {
  position: absolute;
  bottom: 32px;
  left: 40px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.1em;
}

/* ─────────────────────────────────────────────
   SLIDE NAVIGATION DOTS
───────────────────────────────────────────── */

.slide-nav {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 8px 16px;
}

.slide-nav__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition-fast), width 0.2s ease, height 0.2s ease, border-radius 0.2s ease;
}

.slide-nav__dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.slide-nav__dot--active {
  background: var(--accent);
  width: 24px;
  height: 8px;
  border-radius: 4px;
}

/* ─────────────────────────────────────────────
   SLIDE NAVIGATION ARROWS
───────────────────────────────────────────── */

.slide-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
  z-index: 100;
}

.slide-arrow:hover {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  transform: translateY(-50%) scale(1.05);
}

.slide-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.slide-arrow--prev { left: 24px; }
.slide-arrow--next { right: 24px; }

/* ─────────────────────────────────────────────
   SLIDE PROGRESS BAR
───────────────────────────────────────────── */

.slide-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  z-index: 101;
}

.slide-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--success));
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─────────────────────────────────────────────
   SLIDE: HOOK (Slide 1)
───────────────────────────────────────────── */

.slide--hook .slide__heading {
  color: #fff;
}

.slide--hook .slide__heading .hl {
  color: var(--accent);
  position: relative;
}

.slide--hook .slide__heading .hl--green {
  color: var(--success);
}

/* Big stat on hook slide */
.slide-stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.slide-stat__item {
  text-align: center;
}

.slide-stat__number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: var(--fw-bold);
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.slide-stat__number--accent { color: var(--accent); }
.slide-stat__number--green { color: var(--success); }
.slide-stat__number--amber { color: var(--amber-bright); }

.slide-stat__label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

/* ─────────────────────────────────────────────
   SLIDE: PROOF (Slide 2)
───────────────────────────────────────────── */

.slide--proof .provenance-chain {
  justify-content: center;
  margin-bottom: 40px;
}

.slide--proof .provenance-chain__node {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.slide--proof .provenance-chain__node:first-child {
  background: rgba(67, 56, 202, 0.15);
  border-color: rgba(67, 56, 202, 0.4);
  color: #a5b4fc;
}

.slide--proof .provenance-chain__node:last-child {
  background: rgba(6, 95, 70, 0.15);
  border-color: rgba(6, 95, 70, 0.4);
  color: #6ee7b7;
}

.slide--proof .verification-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  max-width: 800px;
  margin: 0 auto;
}

.slide--proof .verification-badge {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.slide--proof .verification-badge__source {
  color: rgba(255, 255, 255, 0.6);
}

.slide--proof .verification-badge__source strong {
  color: rgba(255, 255, 255, 0.9);
}

.slide--proof .verification-badge__icon {
  background: rgba(6, 95, 70, 0.2);
  color: var(--success);
}

.slide--proof .verification-badge__verified {
  color: var(--success);
}

/* ─────────────────────────────────────────────
   SLIDE: RESULT (Slide 3)
───────────────────────────────────────────── */

.slide--result .slide__inner {
  max-width: 860px;
}

.slide-calc-preview {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-xl);
  padding: 28px;
  margin: 32px auto 0;
  max-width: 580px;
  text-align: left;
}

.slide-calc-preview__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.slide-calc-preview__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.slide-calc-preview__label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.slide-calc-preview__input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-md);
  padding: 10px 12px;
  color: white;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.slide-calc-preview__input:focus {
  border-color: var(--accent);
}

.slide-calc-preview__result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  background: rgba(6, 95, 70, 0.1);
  border: 1px solid rgba(6, 95, 70, 0.2);
  border-radius: var(--r-lg);
}

.slide-calc-preview__net {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: var(--fw-bold);
  color: var(--success);
  letter-spacing: -0.03em;
}

.slide-calc-preview__rate {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-mono);
}

/* Breakdown mini bars */
.slide-bar-mini {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.slide-bar-mini__row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slide-bar-mini__label {
  width: 70px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-mono);
  text-align: right;
}

.slide-bar-mini__track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.slide-bar-mini__fill {
  height: 100%;
  border-radius: 3px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-bar-mini__fill--fed   { background: #6366f1; }
.slide-bar-mini__fill--fica  { background: var(--amber-bright); }
.slide-bar-mini__fill--state  { background: var(--purple); }
.slide-bar-mini__fill--net    { background: var(--success); }

.slide-bar-mini__val {
  width: 52px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.5);
  text-align: right;
}

/* ─────────────────────────────────────────────
   SLIDE: VALUE (Slide 4)
───────────────────────────────────────────── */

.slide--value .cost-compare {
  max-width: 760px;
  margin: 32px auto 0;
}

.slide--value .cost-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
}

.slide--value .cost-card--embed {
  background: rgba(6, 95, 70, 0.08);
  border-color: rgba(6, 95, 70, 0.3);
}

.slide--value .cost-card__title {
  color: rgba(255, 255, 255, 0.35);
}

.slide--value .cost-card--embed .cost-card__title {
  color: var(--success);
}

.slide--value .cost-row {
  border-color: rgba(255, 255, 255, 0.08);
}

.slide--value .cost-row__label {
  color: rgba(255, 255, 255, 0.5);
}

.slide--value .cost-row__value {
  color: rgba(255, 255, 255, 0.85);
}

.slide--value .cost-row__value--big {
  color: white;
}

.slide--value .cost-row--savings {
  background: rgba(6, 95, 70, 0.12);
  border-color: rgba(6, 95, 70, 0.25);
}

/* ─────────────────────────────────────────────
   SLIDE: CTA (Slide 5)
───────────────────────────────────────────── */

.slide--cta .b2b-cta {
  max-width: 560px;
  margin: 0 auto;
}

.slide--cta .slide__heading {
  color: #fff;
}

.slide--cta .slide__sub {
  color: rgba(255, 255, 255, 0.55);
}

/* Social proof strip */
.social-proof-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.social-proof-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-mono);
}

.social-proof-item__num {
  font-size: 1.1rem;
  font-weight: var(--fw-bold);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-display);
}

/* ─────────────────────────────────────────────
   SLIDE: TITLE CARD (internal section)
───────────────────────────────────────────── */

.slide-title-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-xl);
  padding: 40px 48px;
  max-width: 720px;
  margin: 32px auto 0;
  text-align: left;
}

.slide-title-card__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.slide-title-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.875rem);
  font-weight: var(--fw-bold);
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.slide-title-card__sub {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

/* ─────────────────────────────────────────────
   PRESENTATION MODE TOGGLE
───────────────────────────────────────────── */

.slide-deck__mode-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 102;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-md);
  padding: 6px 14px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.slide-deck__mode-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

/* Fullscreen mode */
.slide-deck--fullscreen .slide-arrow,
.slide-deck--fullscreen .slide-nav {
  opacity: 0;
  transition: opacity var(--transition-base);
}

.slide-deck--fullscreen:hover .slide-arrow,
.slide-deck--fullscreen:hover .slide-nav {
  opacity: 1;
}

/* ─────────────────────────────────────────────
   KEYBOARD HINTS
───────────────────────────────────────────── */

.slide-hint {
  position: fixed;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.1em;
  z-index: 100;
}

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */

@media (max-width: 640px) {
  .slide-deck__slides {
    height: auto;
    min-height: 100vh;
  }

  .slide {
    position: relative;
    min-height: 100vh;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: none !important;
  }

  .slide-nav { display: none; }
  .slide-arrow { display: none; }
  .slide-progress { display: none; }
  .slide-hint { display: none; }

  .slide-calc-preview__form {
    grid-template-columns: 1fr;
  }

  .slide--value .cost-compare {
    grid-template-columns: 1fr;
  }

  .social-proof-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
