/* ============================================================
   PROPOSAL DECK — PowerPoint-style slides
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; background: #1A1A1A; }
body { font-family: 'Inter', system-ui, sans-serif; color: #1A1A1A; }

/* ---- Deck container ---- */
.deck { width: 100vw; height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; }

/* ---- Slide ---- */
.slide {
  width: 100vw;
  height: 100vh;
  background: var(--color-sand, #F5EFE6);
  position: relative;
  overflow: hidden;
  display: flex;
  padding: 56px 64px 56px;
}
.slide--white { background: #fff; }
.slide--purple { background: #4B0082; color: #fff; }
.slide--dark { background: #1A1A1A; color: #fff; }

/* ---- Slide footer ---- */
.slide__footer {
  position: absolute; bottom: 0; left: 0; right: 0; height: 40px;
  padding: 0 64px; display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(90,102,112,0.6);
}
.slide--purple .slide__footer,
.slide--dark .slide__footer { color: rgba(255,255,255,0.3); }
.slide__footer-logo { height: 14px; opacity: 0.4; }

/* ---- Typography ---- */
.deck-overline { font-size: 18px; letter-spacing: 0.15em; color: #4B0082; font-weight: 700; text-transform: uppercase; margin-bottom: 16px; }
.deck-h1 { font-size: clamp(40px, 6vw, 80px); font-weight: 800; color: var(--color-ink); line-height: 1.1; letter-spacing: -0.02em; }
.deck-h2 { font-size: clamp(32px, 5vw, 64px); font-weight: 800; color: var(--color-ink); line-height: 1.1; letter-spacing: -0.02em; }
.deck-h3 {
  font-family: 'Urbanist', sans-serif; font-size: clamp(18px, 2vw, 24px); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.2; color: #1A1A1A;
}
.slide--purple .deck-h1,
.slide--purple .deck-h2,
.slide--dark .deck-h1,
.slide--dark .deck-h2 { color: #fff; }

.deck-body { font-size: clamp(16px, 1.8vw, 22px); color: var(--color-gray); line-height: 1.5; max-width: 750px; }
.slide--purple .deck-body,
.slide--dark .deck-body { color: rgba(255,255,255,0.7); }
.slide--dark .deck-overline { color: #A855F7; }

/* ---- Callout cards (left-bordered) ---- */
.callout {
  background: #fff; border-radius: 10px; padding: 16px 20px;
  border-left: 3px solid #00664D; margin-top: 12px;
}
.callout + .callout { margin-top: 10px; }
.callout--purple { border-left-color: #4B0082; }
.callout--amber { border-left-color: #C9851A; }
.callout--red { border-left-color: #C0392B; }
.callout__title {
  font-family: 'Urbanist', sans-serif; font-size: 15px; font-weight: 700; color: #00664D;
  margin-bottom: 4px;
}
.callout--purple .callout__title { color: #4B0082; }
.callout--amber .callout__title { color: #C9851A; }
.callout--red .callout__title { color: #C0392B; }
.callout__body { font-size: 12px; line-height: 1.5; color: #5A6670; }

/* ---- Split layouts ---- */
.slide__left { flex: 0 0 38%; display: flex; flex-direction: column; justify-content: center; padding-right: 40px; z-index: 2; }
.slide__right { flex: 1; display: flex; align-items: center; justify-content: center; gap: 20px; z-index: 2; }
.slide__left--wide { flex: 0 0 50%; }
.slide__center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; z-index: 2; }

/* ---- Phone mockup ---- */
.phone-mock {
  width: 220px; flex-shrink: 0; background: #fff; border-radius: 28px;
  border: 6px solid #1A1A1A; box-shadow: 0 16px 48px rgba(0,0,0,0.12);
  overflow: hidden; position: relative;
}
.phone-mock--lg { width: 260px; }
.phone-mock__status {
  height: 28px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px; font-size: 11px; font-weight: 600; color: #1A1A1A; position: relative;
}
.phone-mock__notch {
  position: absolute; left: 50%; transform: translateX(-50%); top: 4px;
  width: 72px; height: 18px; background: #1A1A1A; border-radius: 10px;
}
.phone-mock__screen { overflow: hidden; }
.phone-mock__inner {
  width: 375px; transform-origin: top left; pointer-events: none;
}

/* ---- Desktop mockup ---- */
.desktop-mock {
  background: #fff; border-radius: 10px; border: 1px solid #DAD5CC;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08); overflow: hidden; width: 100%;
}
.desktop-mock__inner {
  width: 1280px; height: 800px; transform-origin: top left; pointer-events: none;
}

/* ---- Stat row ---- */
.stat-row { display: flex; gap: 16px; margin-top: 24px; }
.stat-box {
  background: #fff; border-radius: 10px; padding: 16px 20px;
  border: 1px solid #E1E5E8; flex: 1;
}
.slide--purple .stat-box,
.slide--dark .stat-box { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.1); }
.stat-box__value {
  font-family: 'Urbanist', sans-serif; font-size: 28px; font-weight: 800;
  color: #4B0082; letter-spacing: -0.02em;
}
.slide--purple .stat-box__value { color: #FEE581; }
.slide--dark .stat-box__value { color: #FEE581; }
.stat-box__label { font-size: 11px; color: #5A6670; margin-top: 2px; }
.slide--purple .stat-box__label,
.slide--dark .stat-box__label { color: rgba(255,255,255,0.5); }

/* ---- Navigation ---- */
.deck-nav {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; z-index: 100;
  background: rgba(26,26,26,0.9); backdrop-filter: blur(12px);
  padding: 8px 16px; border-radius: 999px;
}
.deck-nav__btn {
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.08); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; font-size: 16px;
}
.deck-nav__btn:hover { background: rgba(255,255,255,0.16); }
.deck-nav__btn:disabled { opacity: 0.3; cursor: default; }
.deck-nav__counter {
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.6);
  min-width: 60px; text-align: center; font-variant-numeric: tabular-nums;
}
.deck-nav__dots { display: flex; gap: 6px; }
.deck-nav__dot {
  width: 6px; height: 6px; border-radius: 50%; border: none; padding: 0;
  background: rgba(255,255,255,0.2); cursor: pointer; transition: all 0.2s;
}
.deck-nav__dot--active { background: #FEE581; transform: scale(1.4); }

/* ---- PDF button ---- */
.deck-pdf {
  position: fixed; top: 20px; right: 24px; z-index: 100;
  background: rgba(26,26,26,0.85); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1); color: #fff;
  padding: 8px 18px; border-radius: 8px; font-size: 12px;
  font-weight: 600; cursor: pointer; font-family: inherit;
  display: flex; align-items: center; gap: 6px; transition: background 0.2s;
}
.deck-pdf:hover { background: rgba(26,26,26,1); }

/* ---- Entrance animations ---- */
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideRight { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes scaleUp { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.enter { opacity: 0; }
.enter.on { animation-fill-mode: forwards; }
.enter.on.e-up { animation: slideUp 0.6s cubic-bezier(0.16,1,0.3,1) forwards; }
.enter.on.e-right { animation: slideRight 0.6s cubic-bezier(0.16,1,0.3,1) forwards; }
.enter.on.e-scale { animation: scaleUp 0.7s cubic-bezier(0.16,1,0.3,1) forwards; }
.enter.on.e-fade { animation: fadeIn 0.5s ease forwards; }
.d1 { animation-delay: 0.08s !important; }
.d2 { animation-delay: 0.16s !important; }
.d3 { animation-delay: 0.24s !important; }
.d4 { animation-delay: 0.32s !important; }
.d5 { animation-delay: 0.4s !important; }

/* ---- Feature grid ---- */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.feature-card {
  background: #fff; border: 1px solid #E1E5E8; border-radius: 10px; padding: 16px;
}
.feature-card__icon {
  width: 32px; height: 32px; border-radius: 8px; background: #F5F0FA;
  display: flex; align-items: center; justify-content: center; margin-bottom: 10px;
}
.feature-card__title { font-size: 13px; font-weight: 700; color: #1A1A1A; margin-bottom: 3px; }
.feature-card__desc { font-size: 11px; color: #5A6670; line-height: 1.4; }
.slide--dark .feature-card { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.08); }
.slide--dark .feature-card__icon { background: rgba(75,0,130,0.2); }
.slide--dark .feature-card__title { color: #fff; }
.slide--dark .feature-card__desc { color: rgba(255,255,255,0.5); }

@keyframes animateFadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}
.animate-fade-in {
  animation: animateFadeIn 0.4s ease-out forwards;
}

@page {
  size: A4 landscape;
  margin: 0;
}

@media print {
  body { background: #fff; overflow: visible; }
  .deck { width: auto; height: auto; display: block; position: static !important; }
  
  /* Override inline styles that hide non-active slides */
  .slide-wrap {
    position: relative !important;
    opacity: 1 !important;
    display: flex !important;
    page-break-after: always;
    height: 100vh !important;
    z-index: 1 !important;
  }
  
  .slide { 
    width: 100%; 
    height: 100vh !important;
    max-height: none; 
    aspect-ratio: auto; 
    page-break-inside: avoid;
    border-radius: 0; 
    box-shadow: none; 
    margin: 0; 
    transform: none !important;
  }
  
  .deck-nav, .deck-pdf { display: none !important; }
  .enter { opacity: 1 !important; transform: none !important; animation: none !important; }
}
.mobile-only-tabs { display: none; }

/* ---- Tablet Optimizations ---- */
@media (max-width: 1024px) and (min-width: 769px) {
  .slide { 
    padding: 32px 40px 60px !important; 
    flex-direction: column !important; 
    justify-content: center !important;
  }
  .deck-h1 { font-size: 40px !important; margin-bottom: 8px !important; }
  .deck-h2 { font-size: 32px !important; margin-bottom: 8px !important; }
  
  .slide__left { 
    padding-right: 0 !important; 
    flex: none !important; 
    margin-bottom: 24px !important; 
    width: 100% !important; 
  }
  .deck-body {
    font-size: 16px !important;
    margin-bottom: 16px !important;
  }
  
  .slide__right { 
    flex: none !important; 
    height: 45vh !important;
    min-height: 380px !important;
    width: 100% !important; 
    align-items: center !important; 
    justify-content: center !important; 
    flex-direction: row !important;
  }

  /* Slide 1 Grid */
  .slide-1-cards {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
  .slide-1-cards .callout { margin-top: 0 !important; }
  
  /* Feature Grid Slide 9 */
  .feature-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    margin-top: 16px !important;
  }
  
  /* Stat rows */
  .stat-row { margin-top: 16px !important; }
  
  /* Base absolute positioning for mock wrappers on tablet */
  .slide__right > div[style*="position: absolute"],
  .crm-mock-wrapper {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    opacity: 1 !important; /* Force full opacity on all */
  }

  /* CRMMockWrapper (Slides 3,4,5) */
  .slide__right > div.crm-mock-wrapper[style] {
    left: 50% !important;
    right: auto !important;
    transform: translate(-50%, -50%) !important;
    width: 100% !important;
    max-width: 1000px !important;
  }
  
  /* Desktop + Phone default (Slides 0, 2) */
  .slide__right > div[style]:nth-child(1):not(.crm-mock-wrapper) {
    left: 0 !important;
    right: auto !important;
    width: 75% !important;
    max-width: 800px !important;
    z-index: 5 !important;
  }
  
  .slide__right > div[style]:nth-child(2):not(.crm-mock-wrapper) {
    right: 0 !important;
    left: auto !important;
    width: auto !important;
    z-index: 10 !important;
  }
  
  /* Slide 1 overrides (Two desktops) */
  .slide--1 .slide__right > div[style]:nth-child(1) {
    width: 75% !important;
    z-index: 10 !important; /* Left overlaps right */
  }
  
  .slide--1 .slide__right > div[style]:nth-child(2) {
    width: 75% !important;
    z-index: 5 !important;
    top: 55% !important; /* Shift right image down a bit */
  }
  
  /* Slide 9 overrides (Two desktops + Phone) */
  .slide--9 .slide__right > div[style]:nth-child(1) {
    width: 65% !important;
    z-index: 10 !important;
  }
  
  .slide--9 .slide__right > div[style]:nth-child(2) {
    width: 65% !important;
    right: 15% !important;
    z-index: 5 !important;
    top: 55% !important;
  }
  
  .slide--9 .slide__right > div[style]:nth-child(3) {
    right: 0 !important;
    z-index: 20 !important;
    top: 65% !important;
  }

  .slide__right > .phone-mock {
    transform: scale(0.8) !important;
    margin: 0 -20px !important;
  }
  
  /* Reset Slide 7 Reverse */
  .slide--7 .slide__right { order: 0 !important; }
  .slide--7 .slide__left { order: 0 !important; padding-left: 0 !important; }
}

/* ---- Small Desktop / Landscape Tablet Optimizations ---- */
@media (max-width: 1366px) and (min-width: 1025px) {
  /* Enlarge tabbed images, let them clip off the right side */
  .crm-mock-wrapper {
    width: 135% !important;
    max-width: none !important;
    right: -35% !important; 
  }
}

@media (max-height: 900px) and (min-width: 1025px) {
  /* Slide 1 - Grid cards to prevent bottom overflow */
  .slide-1-cards {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
  .slide-1-cards .callout { margin-top: 0 !important; }
  
  /* Slide 9 - Decrease font sizes and spacing to fit */
  .slide--9 .slide__left > img { height: 60px !important; margin-bottom: 24px !important; }
  .deck-overline { margin-bottom: 8px !important; }
  .deck-h2 { margin-bottom: 12px !important; font-size: clamp(28px, 3.5vw, 44px) !important; }
  .deck-body { margin-bottom: 24px !important; font-size: 15px !important; line-height: 1.4 !important; }
  
  .feature-grid { gap: 12px !important; margin-top: 12px !important; }
  .feature-card { padding: 12px 16px !important; }
  .feature-card__icon { width: 32px !important; height: 32px !important; margin-bottom: 8px !important; }
  .feature-card__title { font-size: 14px !important; margin-bottom: 2px !important; }
  .feature-card__desc { font-size: 11px !important; line-height: 1.3 !important; }
}

/* ---- Mobile Layout & Animations ---- */
@media (max-width: 768px) {
  .slide { padding: 24px !important; }
  
  .slide-wrap.active .slide__left {
    position: absolute !important; top: 0 !important; left: 0 !important;
    width: 100% !important; height: 100% !important; max-width: 100% !important;
    flex: none !important; 
    padding: clamp(16px, 4vh, 40px) 24px clamp(60px, 10vh, 100px) 24px !important; 
    display: flex !important; flex-direction: column !important; justify-content: flex-start !important; z-index: 10 !important;
    opacity: 0; pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(20px);
    overflow-y: hidden !important; /* Strict no scrolling */
  }
  
  /* Fluid typography and spacing for smaller mobiles (iPhone SE / Galaxy S8) */
  .slide__left img { max-width: 100% !important; height: auto !important; max-height: clamp(40px, 8vh, 80px) !important; }
  .slide__left > div:first-child { margin-bottom: clamp(12px, 3vh, 32px) !important; }
  .deck-h1 { font-size: clamp(24px, 6vh, 40px) !important; line-height: 1.1 !important; margin-bottom: clamp(6px, 2vh, 16px) !important; }
  .deck-h2 { font-size: clamp(20px, 5vh, 32px) !important; line-height: 1.1 !important; margin-bottom: clamp(6px, 2vh, 16px) !important; }
  .deck-body { font-size: clamp(13px, 2.5vh, 16px) !important; margin-bottom: clamp(12px, 3vh, 32px) !important; line-height: 1.3 !important; }
  
  .slide--1 .deck-body { margin-bottom: 12px !important; }
  
  /* Slide 1 Mobile Layout (Grid instead of Column to save height) */
  .slide-1-cards {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .slide-1-cards .callout { padding: 12px !important; }
  .slide-1-cards .callout__title { font-size: 13px !important; margin-bottom: 4px !important; line-height: 1.1 !important; }
  .slide-1-cards .callout__body { font-size: 11px !important; line-height: 1.2 !important; }
  
  .stat-box { padding: clamp(8px, 2vh, 16px) !important; }
  .stat-box .stat-val { font-size: clamp(20px, 4vh, 32px) !important; margin-bottom: clamp(4px, 1vh, 8px) !important; }
  
  .slide-wrap.active .slide__right {
    position: absolute !important; top: 0 !important; left: 0 !important;
    width: 100% !important; height: 100% !important; max-width: 100% !important;
    flex: none !important; padding: 24px 24px 80px 24px !important;
    display: flex !important; justify-content: center !important; align-items: center !important; z-index: 5 !important;
    opacity: 0; pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: scale(0.95);
  }
  
  /* Sub-slide active states */
  .slide-wrap.active.step-text .slide__left {
    opacity: 1 !important; transform: translateY(0) !important; pointer-events: auto !important;
    transition: opacity 0.4s ease, transform 0.4s ease !important;
    z-index: 2 !important;
  }
  .slide-wrap.active.step-text .slide__right {
    opacity: 0 !important; transform: scale(0.95) !important; pointer-events: none !important;
    transition: opacity 0.4s ease, transform 0.4s ease !important;
    position: absolute !important; left: 0 !important; top: 0 !important;
    z-index: 1 !important;
  }
  
  .slide-wrap.active.step-image .slide__left {
    opacity: 0 !important; transform: translateY(-20px) !important; pointer-events: none !important;
  }
  .slide-wrap.active.step-image .slide__right {
    opacity: 1 !important; transform: scale(1) !important; pointer-events: auto !important;
  }

  .deck-nav { bottom: 16px; padding: 6px 12px; gap: 8px; }
  .deck-nav__counter { display: none; } /* Shrink nav */
  .deck-pdf { display: none; } /* Hide PDF on mobile */
  
  /* Scale adjustments for elements that break bounds on mobile */
  .feature-grid { grid-template-columns: 1fr; }
  .slide__footer { padding: 0 24px; justify-content: center; bottom: 80px; }
  
  /* Reset positioned wrappers inside slide__right so they stack neatly */
  .slide__right > div[style] {
    position: relative !important; margin: 0 !important;
    top: auto !important; bottom: auto !important; left: auto !important; right: auto !important;
    transform: none !important;
    opacity: 1 !important; /* Ensure all images are fully bright, overriding inline styles */
  }
  .slide__right > div[style]:nth-child(1) {
    width: 150vw !important; max-width: 800px !important;
    align-self: flex-start; margin-left: 24px !important;
  }
  .slide__right > div[style]:nth-child(2) {
    width: 150vw !important; max-width: 800px !important;
    align-self: flex-end; margin-right: 24px !important;
    display: flex; justify-content: flex-end;
    margin-top: -120px !important; /* Overlap phone mock on top of desktop mock */
    z-index: 10 !important;
  }
  
  /* Slide 1 (dark) has two desktop mockups, scale them down so both fit vertically */
  .slide--1 .slide__right > div[style]:nth-child(1),
  .slide--1 .slide__right > div[style]:nth-child(2) {
    width: 120vw !important; /* Reduced from 150vw to fit height */
  }
  .slide--1 .slide__right > div[style]:nth-child(2) {
    margin-top: -40px !important; /* Slight overlap instead of 0 */
  }
  
  .slide-wrap.active .slide__right {
    flex-direction: column !important;
    height: 100% !important; /* Full height */
    width: 100% !important;
    overflow: hidden !important; 
    padding: 60px 0 !important; /* Increased top/bottom padding */
    display: flex !important;
    justify-content: center !important;
    gap: 30px !important;
  }
  
  /* CRMSlide mock wrappers (make enormous and alternate left/right) */
  .crm-mock-wrapper {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 250vw !important; /* Huge! */
    max-width: 1000px !important;
    transition: left 0.4s ease, right 0.4s ease !important;
  }
  .crm-mock-wrapper[data-screen-idx="0"],
  .crm-mock-wrapper[data-screen-idx="2"],
  .crm-mock-wrapper[data-screen-idx="4"] {
    left: 24px !important; right: auto !important;
  }
  .crm-mock-wrapper[data-screen-idx="1"],
  .crm-mock-wrapper[data-screen-idx="3"],
  .crm-mock-wrapper[data-screen-idx="5"] {
    left: auto !important; right: 24px !important;
  }
  
  /* Hide slide footer and custom bottom text during image step so mockups have more room */
  .slide-wrap.step-image .slide__footer,
  .slide-wrap.step-image .slide > div[style*="bottom: 56"] {
    opacity: 0 !important; pointer-events: none !important;
  }
  
  /* Actually, to prevent overlap with nav dots, hide the custom bottom text entirely on mobile */
  .slide > div[style*="bottom: 56"] { display: none !important; }
  
  .desktop-only-tabs { display: none !important; }
  .slide-wrap.step-image .mobile-only-tabs { display: flex !important; }
  
  .mobile-only-tabs .crm-tab-nav {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    padding: 0 16px;
    gap: 8px !important;
  }
  .mobile-only-tabs .crm-tab-btn {
    width: 100%;
    padding: 8px 0 !important;
    text-align: center;
  }
  
  .phone-mock { transform: scale(0.7) !important; margin: 0 !important; transform-origin: center center !important; }
  .phone-mock--lg { transform: scale(0.65) !important; margin: 0 !important; transform-origin: center center !important; }
  
  /* Direct PhoneMock children (Slides 6 & 7) */
  .slide__right > .phone-mock {
    position: relative !important;
    transform-origin: center center !important;
  }
  .slide__right > .phone-mock:nth-child(1) {
    transform: scale(0.9) !important;
    align-self: flex-start !important;
    margin-left: 10vw !important;
  }
  .slide__right > .phone-mock:nth-child(2) {
    transform: scale(0.9) !important;
    align-self: flex-end !important;
    margin-right: 10vw !important;
    margin-top: -120px !important; /* Overlap bottom right corner */
    z-index: 10 !important;
  }
  
  /* Slide 7 reverse stacking */
  .slide--7 .slide__right > .phone-mock:nth-child(1) {
    align-self: flex-end !important;
    margin-left: 0 !important; margin-right: 10vw !important;
  }
  .slide--7 .slide__right > .phone-mock:nth-child(2) {
    align-self: flex-start !important;
    margin-right: 0 !important; margin-left: 10vw !important;
    margin-top: -120px !important; /* Overlap bottom left corner */
  }
  
  /* Feature Grid Layout (Slide 9) */
  .slide--9 .slide__left { padding-right: 0 !important; }
  .feature-grid { 
    grid-template-columns: 1fr 1fr !important; 
    gap: 8px !important; 
  }
  .feature-card { 
    padding: 12px !important; 
  }
  .feature-card > div:first-child { 
    flex-direction: column !important; 
    align-items: flex-start !important; 
    gap: 8px !important;
  }
  .feature-card__icon { 
    width: 32px !important; 
    height: 32px !important; 
  }
  .feature-card__title { 
    font-size: 14px !important; 
  }
  .feature-card__desc { 
    font-size: 12px !important; 
  }

  /* Height-based overrides for extremely short screens */
  @media (max-height: 750px) {
    .slide-wrap.active .slide__left { padding-top: 16px !important; padding-bottom: 60px !important; }
    .slide-wrap.active .slide__right { padding-top: 16px !important; padding-bottom: 60px !important; }
    .deck-h1, .deck-h2 { margin-bottom: 8px !important; line-height: 1.05 !important; }
    .callout { padding: 12px !important; }
    .phone-mock { transform: scale(0.65) !important; }
    .phone-mock--lg { transform: scale(0.6) !important; }
    .slide--7 .slide__right > .phone-mock:nth-child(2),
    .slide__right > .phone-mock:nth-child(2) {
      margin-top: -160px !important; /* Increase overlap because they are smaller */
    }
  }
}

/* ---- Video Intro ---- */
.video-intro {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease;
}
.video-intro.fade-out {
  opacity: 0;
  pointer-events: none;
}
.video-intro__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1024px) {
  .video-intro__media {
    object-fit: contain;
  }
}
