/* ============================================
   Mass Slides - Presentation Viewer
   ============================================ */

/* --- Aeonik Font --- */
@font-face {
  font-family: 'Aeonik';
  src: url('../assets/font/aeonik/Aeonik-Regular.woff2') format('woff2'),
       url('../assets/font/aeonik/Aeonik-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Aeonik';
  src: url('../assets/font/aeonik/Aeonik-Medium.woff2') format('woff2'),
       url('../assets/font/aeonik/Aeonik-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Aeonik';
  src: url('../assets/font/aeonik/Aeonik-Bold.woff2') format('woff2'),
       url('../assets/font/aeonik/Aeonik-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Aeonik';
  src: url('../assets/font/aeonik/Aeonik-Black.woff2') format('woff2'),
       url('../assets/font/aeonik/Aeonik-Black.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Dark theme */
  --bg-dark: #11093D;
  --bg-dark-gradient: #1a1055;
  --bg-dark-arc: #2a1a55;

  /* Light theme */
  --bg-light: #ffffff;
  --bg-light-alt: #f7f7f9;

  /* Text */
  --text-white: #ffffff;
  --text-dark: #1a1145;
  --text-muted: #8b87a0;
  --text-muted-dark: #6b6680;

  /* Accents */
  --accent-cyan: #00e5c8;
  --accent-red: #e8593a;
  --accent-red-light: #ff6b4d;

  /* Costs table */
  --costs-header-bg: #d6eef0;
  --costs-summary-bg: #e8f6f7;
  --costs-border: #e8e8ec;

  /* Nav */
  --nav-bg: rgba(17, 13, 31, 0.85);
  --nav-text: rgba(255, 255, 255, 0.7);
  --nav-text-hover: #ffffff;

  /* Sizing */
  --slide-aspect: 16 / 9;
  --slide-padding: 60px;
  --slide-padding-mobile: 32px;

  /* Fonts */
  --font-family: 'Aeonik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: var(--font-family);
  background: #0b0730;
  color: var(--text-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Presentation Container --- */
.presentation {
  width: 100vw;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b0730;
}

.slides-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* --- Slide Base --- */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: translateX(30px);
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.slide.exiting-left {
  opacity: 0;
  transform: translateX(-30px);
}

/* ============================================
   Dark Theme Slides (Title, Feature, Divider, Closing)
   ============================================ */
.slide--dark {
  background: var(--bg-dark);
  overflow: hidden;
}

/* Background circle */
.slide--dark::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 80%;
  height: 160%;
  background: url('../assets/img/background-circle-1.svg') no-repeat center center;
  background-size: contain;
  pointer-events: none;
}

/* Accent bar at top of feature slides */
.slide--dark.slide--feature::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-cyan), #6366f1, var(--accent-red-light));
}

/* ============================================
   Title Slide
   ============================================ */
.slide--title {
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  padding: var(--slide-padding);
}

.slide--title .slide__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.slide--title .slide__title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-white);
  max-width: 800px;
}

.slide--title .slide__subtitle {
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Footer with logos and version */
.slide__footer {
  position: absolute;
  bottom: 40px;
  left: var(--slide-padding);
  right: var(--slide-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
}

.slide__footer-logos {
  display: flex;
  align-items: center;
  gap: 24px;
}

.slide__footer-logos img {
  height: 32px;
  object-fit: contain;
}

.slide__footer-logos svg {
  width: 120px;
  height: 32px;
}

.slide__footer-logos span {
  display: inline-flex;
  color: var(--text-white);
}

.slide__footer-version {
  font-size: 14px;
  color: var(--accent-red);
  font-weight: 600;
}

/* ============================================
   Feature Slide
   ============================================ */
.slide--feature {
  padding: var(--slide-padding);
  padding-top: calc(var(--slide-padding) + 40px);
}

.slide--feature .slide__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  gap: 0 60px;
  width: 100%;
  height: 100%;
}

.slide__text {
  align-self: center;
}

.slide__label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 16px;
}

.slide--feature .slide__title {
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-white);
}

.slide__image {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  position: relative;
}

.slide__image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.slide__image--stacked {
  position: relative;
}

.slide__image--stacked img:first-child {
  width: 80%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.slide__image--stacked img:nth-child(2) {
  position: absolute;
  top: 10%;
  right: 0;
  width: 55%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.slide__image-placeholder {
  width: 100%;
  height: 80%;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.06) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.slide__image-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 32px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.slide__image-placeholder::after {
  content: 'Screenshot from Airtable';
  font-size: 13px;
  color: rgba(255,255,255,0.15);
  letter-spacing: 0.05em;
}

.slide__bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 40px;
}

.slide__bullets li {
  font-size: clamp(15px, 1.6vw, 20px);
  color: var(--text-white);
  padding-left: 24px;
  position: relative;
  line-height: 1.55;
}

.slide__bullets li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

.slide__description {
  margin-top: 32px;
  font-size: clamp(15px, 1.6vw, 20px);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.55;
}

.slide__description p {
  margin-bottom: 12px;
}

.slide__description p:last-child {
  margin-bottom: 0;
}

.slide__description a {
  color: var(--accent-cyan);
  text-decoration: none;
}

.slide--light .slide__description {
  color: var(--text-muted-dark);
}

/* ============================================
   Divider Slide
   ============================================ */
.slide--divider {
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  padding: var(--slide-padding);
}

.slide--divider .slide__content {
  position: relative;
  z-index: 1;
}

.slide--divider .slide__title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-white);
}

/* ============================================
   Light Theme Slides (Costs, Onboarding)
   ============================================ */
.slide--light {
  background: var(--bg-light);
  color: var(--text-dark);
}

/* ============================================
   Costs Slide
   ============================================ */
.slide--costs {
  padding: var(--slide-padding);
  padding-bottom: 80px;
  flex-direction: column;
  overflow-y: auto;
}

.slide--costs .slide__content {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 40px 60px;
  width: 100%;
  min-height: 100%;
  align-content: center;
}

.costs__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.costs__heading {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.costs__rate {
  font-size: 16px;
  color: var(--text-muted-dark);
}

.costs__notes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.costs__notes li {
  font-size: 14px;
  color: var(--text-muted-dark);
  padding-left: 16px;
  position: relative;
  line-height: 1.6;
}

.costs__notes li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--text-muted-dark);
}

.costs__timeline {
  margin-top: 8px;
}

.costs__timeline-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.costs__timeline-value {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 300;
  color: var(--text-dark);
}

/* Costs tables container (for multi-table layouts) */
.costs__tables {
  display: flex;
  flex-direction: column;
  gap: 32px;
  justify-content: center;
}

.costs__table-group-label {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

/* Costs table */
.costs__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--text-dark);
  border-radius: 12px;
  overflow: hidden;
}

.costs__table thead th {
  background: var(--costs-header-bg);
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 700;
  text-align: right;
  color: var(--text-dark);
  border-bottom: 1px solid var(--text-dark);
  border-left: 1px solid var(--text-dark);
}

.costs__table thead th:first-child {
  text-align: left;
  width: 55%;
  border-left: none;
}

.costs__table tbody td {
  padding: 18px 24px;
  font-size: 14px;
  border-top: 1px solid var(--text-dark);
  border-left: 1px solid var(--text-dark);
  color: var(--text-dark);
  vertical-align: top;
}

.costs__table tbody td:first-child {
  font-weight: 700;
  width: 55%;
  border-left: none;
}

.costs__table tbody td:not(:first-child) {
  text-align: right;
  vertical-align: middle;
}

.costs__item-subtitle {
  display: block;
  font-size: 12px;
  color: var(--text-muted-dark);
  font-weight: 400;
  margin-top: 3px;
}

.costs__value-sub {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted-dark);
  margin-top: 2px;
}

.costs__table tbody tr.costs__row--summary td {
  color: var(--text-muted-dark);
  font-weight: 400;
  font-style: italic;
}

.costs__table tbody tr.costs__row--total td {
  font-weight: 700;
  font-size: 15px;
  background: var(--costs-summary-bg);
  border-top: 1px solid var(--text-dark);
}

/* Footer logos on light slides */
.slide--light .slide__footer {
  position: absolute;
  bottom: 40px;
  left: var(--slide-padding);
  right: var(--slide-padding);
}

.slide--light .slide__footer-logos img {
  height: 32px;
}

/* ============================================
   Onboarding / Info Slide
   ============================================ */
.slide--onboarding {
  padding: var(--slide-padding);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.slide--onboarding .slide__content {
  width: 100%;
  max-width: 1100px;
}

.slide--onboarding .slide__title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 48px;
}

.onboarding__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.onboarding__card {
  background: var(--bg-light-alt);
  border-radius: 12px;
  padding: 32px;
  border: 1px solid var(--costs-border);
}

.onboarding__card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-red);
  margin-bottom: 16px;
}

.onboarding__card-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.onboarding__card-items li {
  font-size: 14px;
  color: var(--text-muted-dark);
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
}

.onboarding__card-items li::before {
  content: '\2022';
  position: absolute;
  left: 0;
}

/* Arrow between cards */
.onboarding__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted-dark);
  font-size: 24px;
}

/* ============================================
   Closing Slide
   ============================================ */
.slide--closing {
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 40px;
}

.slide--closing .slide__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.slide--closing .closing__logo {
  height: clamp(48px, 8vw, 80px);
}

.slide--closing .closing__logo-container {
  color: var(--text-white);
}

.slide--closing .closing__logo-container svg {
  width: clamp(200px, 30vw, 400px);
  height: auto;
}

.slide--closing .closing__logo-container span {
  display: inline-flex;
}

.closing__badges {
  position: absolute;
  bottom: 40px;
  left: var(--slide-padding);
  right: var(--slide-padding);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 1;
}

.closing__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.closing__badge img {
  height: 48px;
}

.closing__stars {
  color: var(--accent-red);
  font-size: 18px;
  letter-spacing: 2px;
}

/* ============================================
   Navigation
   ============================================ */
.slide-nav {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px 16px;
  border-radius: 40px;
  z-index: 100;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: opacity 0.3s ease;
}

.slide-nav:hover {
  opacity: 1 !important;
}

.nav-btn {
  background: none;
  border: none;
  color: var(--nav-text);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
}

.nav-btn:hover {
  color: var(--nav-text-hover);
  background: rgba(255, 255, 255, 0.1);
}

.nav-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.nav-btn:disabled:hover {
  background: none;
}

.slide-counter {
  font-size: 13px;
  color: var(--nav-text);
  font-weight: 500;
  min-width: 48px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* Progress bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 100;
}

.progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-red-light));
  transition: width 0.4s ease;
  width: 0%;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
  :root {
    --slide-padding: 32px;
  }

  .slide--feature .slide__content {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    gap: 20px;
  }

  .slide__image {
    grid-column: 1;
    grid-row: 3;
    max-height: 40vh;
  }

  .slide__bullets {
    grid-column: 1;
    grid-row: 4;
  }

  .slide__label {
    grid-row: 1;
  }

  .slide--feature .slide__title {
    grid-row: 2;
  }

  .slide--costs .slide__content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  :root {
    --slide-padding: 24px;
  }

  .slide-nav {
    bottom: 16px;
    padding: 6px 12px;
  }

  .onboarding__cards {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Loading state
   ============================================ */
.loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-muted);
  font-size: 16px;
}

.loading__spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   Two-column costs (WLC style: side-by-side tables)
   ============================================ */
.costs__tables--dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

@media (max-width: 900px) {
  .costs__tables--dual {
    grid-template-columns: 1fr;
  }
}

.costs__table-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.costs__table-section-subtitle {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
}
