/*
  Inwall investor deck — slide-by-slide presentation.
  Tokens copied from the Inwall design system (laurasibille/inwall,
  public/css/styles.css) so this deck stays visually consistent with the
  rest of the Inwall web properties. Content recreated from the Canva PDF
  "INWALL DECK.pdf" (Investor deck), 18 slides.
*/

:root {
  --brand-100: #F3EBFE;
  --brand-300: #D8AFFA;
  --brand-400: #B179F4;
  --brand-500: #803CF2;
  --brand-700: #551BCD;
  --brand-900: #220863;

  --gradient-hero: linear-gradient(224deg, #9F68F8 2.57%, #530BC9 97.39%);
  --gradient-cta: linear-gradient(224deg, var(--brand-500) 0%, var(--brand-700) 100%);
  --gradient-light: radial-gradient(circle at 12% 15%, #E9DBFB 0%, rgba(233,219,251,0) 45%),
                     radial-gradient(circle at 88% 20%, #DCEBFF 0%, rgba(220,235,255,0) 50%),
                     radial-gradient(circle at 15% 90%, #E4D6FB 0%, rgba(228,214,251,0) 45%),
                     var(--neutral-0);
  --gradient-dark: radial-gradient(circle at 85% 15%, rgba(159,104,248,0.35) 0%, rgba(159,104,248,0) 45%),
                    radial-gradient(circle at 10% 85%, rgba(83,11,201,0.30) 0%, rgba(83,11,201,0) 50%),
                    #0B0A10;

  --neutral-0: #FFFFFF;
  --neutral-100: #EDEEF3;

  --text-primary: #1E2028;
  --text-secondary: #323442;
  --text-tertiary: #5B5F7A;

  --surface-secondary: #F2F7FF;

  --font-family-display: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-ui: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-9: 48px;
  --space-10: 64px;

  --radius-sm: 10px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;
}

* , *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; overflow: hidden; }

body {
  font-family: var(--font-family-ui);
  background: var(--brand-900);
  color: var(--text-secondary);
}

.deck {
  position: fixed;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 6vw, 96px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(28px) scale(0.98);
  transition: opacity 0.5s cubic-bezier(.22,.8,.24,1), transform 0.5s cubic-bezier(.22,.8,.24,1), visibility 0.5s;
  overflow: hidden;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.slide[data-bg="light"] { background: var(--gradient-light); color: var(--text-secondary); }
.slide[data-bg="dark"] { background: var(--gradient-dark); color: #F2F0FA; }

/* Ambient blurred blob, alternating corner by slide position — echoes the
   organic brand shapes on inwall.app without literally copying its wave
   dividers (this is a fixed-frame deck, not a scrolling page). */
.slide::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: var(--gradient-hero);
  opacity: 0.10;
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
}
.slide[data-bg="dark"]::before { opacity: 0.22; }
.slide:nth-of-type(odd)::before { top: -200px; right: -180px; }
.slide:nth-of-type(even)::before { bottom: -200px; left: -180px; }

@media (prefers-reduced-motion: no-preference) {
  .slide.active::before { animation: blob-drift 16s ease-in-out infinite alternate; }
}
@keyframes blob-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-36px, 30px) scale(1.1); }
}

/* Subtle background illustrations — decoration only, never on top of text.
   Line-art already uses the exact brand-500 stroke, so no recoloring needed. */
.bg-illo {
  position: absolute;
  width: 320px;
  height: 320px;
  opacity: 0.07;
  z-index: 0;
  pointer-events: none;
}
.bg-illo img { width: 100%; height: 100%; display: block; }
.slide[data-bg="dark"] .bg-illo { opacity: 0.14; filter: brightness(2.4) saturate(0.6); }
.bg-illo.pos-tl { top: -30px; left: -30px; transform: rotate(-8deg); }
.bg-illo.pos-tr { top: -20px; right: -30px; transform: rotate(9deg); }
.bg-illo.pos-bl { bottom: -30px; left: -20px; transform: rotate(7deg); }
.bg-illo.pos-br { bottom: -40px; right: -40px; transform: rotate(-10deg); }

.slide-inner, .slide-cover > * { position: relative; z-index: 1; }

.slide-inner {
  width: 100%;
  max-width: 1180px;
}

/* Staggered content reveal: the whole slide already fades/rises as a unit,
   this adds a second, faster wave inside it so text and visuals don't just
   snap into place together. Re-triggers every time .active is re-applied. */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.slide-inner > *, .slide-cover > * { opacity: 0; }
.slide.active .slide-inner > *,
.slide.active.slide-cover > * {
  animation: fadeUp 0.6s cubic-bezier(.2,.8,.2,1) both;
}
.slide.active .slide-inner > *:nth-child(1), .slide.active.slide-cover > *:nth-child(1) { animation-delay: .05s; }
.slide.active .slide-inner > *:nth-child(2), .slide.active.slide-cover > *:nth-child(2) { animation-delay: .16s; }
.slide.active .slide-inner > *:nth-child(3), .slide.active.slide-cover > *:nth-child(3) { animation-delay: .27s; }
.slide.active .slide-inner > *:nth-child(n+4) { animation-delay: .38s; }

.slide.active .bullets > li,
.slide.active .features-grid > div,
.slide.active .team-grid > div,
.slide.active .roadmap-grid > div,
.slide.active .evolution-grid > div,
.slide.active .market-size > .ms-block {
  animation: fadeUp 0.5s cubic-bezier(.2,.8,.2,1) both;
}
.slide.active .bullets > li:nth-child(1), .slide.active .features-grid > div:nth-child(1), .slide.active .team-grid > div:nth-child(1), .slide.active .roadmap-grid > div:nth-child(1), .slide.active .evolution-grid > div:nth-child(1), .slide.active .market-size > .ms-block:nth-child(1) { animation-delay: .18s; }
.slide.active .bullets > li:nth-child(2), .slide.active .features-grid > div:nth-child(2), .slide.active .team-grid > div:nth-child(2), .slide.active .roadmap-grid > div:nth-child(2), .slide.active .evolution-grid > div:nth-child(2), .slide.active .market-size > .ms-block:nth-child(2) { animation-delay: .25s; }
.slide.active .bullets > li:nth-child(3), .slide.active .features-grid > div:nth-child(3), .slide.active .team-grid > div:nth-child(3), .slide.active .roadmap-grid > div:nth-child(3), .slide.active .evolution-grid > div:nth-child(3), .slide.active .market-size > .ms-block:nth-child(3) { animation-delay: .32s; }
.slide.active .bullets > li:nth-child(4), .slide.active .features-grid > div:nth-child(4), .slide.active .team-grid > div:nth-child(4), .slide.active .roadmap-grid > div:nth-child(4), .slide.active .evolution-grid > div:nth-child(4) { animation-delay: .39s; }
.slide.active .team-grid > div:nth-child(5), .slide.active .roadmap-grid > div:nth-child(5), .slide.active .evolution-grid > div:nth-child(5) { animation-delay: .46s; }
.slide.active .evolution-grid > div:nth-child(6) { animation-delay: .53s; }

@media (prefers-reduced-motion: reduce) {
  .slide, .slide.active, .slide-inner > *, .slide-cover > *, .bullets > li, .features-grid > div, .team-grid > div, .roadmap-grid > div, .evolution-grid > div, .market-size > .ms-block {
    animation: none !important;
    transition: opacity 0.3s ease !important;
    transform: none !important;
    opacity: 1;
  }
}

.slide-inner-split {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-9);
  align-items: center;
}

.network-graphic { max-width: 320px; margin: 0 auto; }

h1 {
  font-family: var(--font-family-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 3.8vw, 3.3rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 var(--space-7);
  text-wrap: balance;
}

.slide[data-bg="light"] h1 { color: var(--text-primary); }
.slide[data-bg="dark"] h1 { color: #FFFFFF; }

.kicker {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--brand-500);
  margin: 0 0 var(--space-5);
}

.slide[data-bg="dark"] .kicker { color: var(--brand-300); }

.bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.bullets li {
  position: relative;
  padding-left: var(--space-7);
  font-size: 1.25rem;
  line-height: 1.5;
}

.bullets.small li { font-size: 1.02rem; margin-bottom: var(--space-2); }

.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--brand-500);
}

.slide[data-bg="dark"] .bullets li::before { border-color: var(--brand-300); }

.accent { color: var(--brand-500); font-weight: 700; }
.slide[data-bg="dark"] .accent { color: var(--brand-300); }

p { font-size: 1.1rem; line-height: 1.6; }

.callout {
  margin-top: var(--space-8);
  font-size: 1.3rem;
  font-weight: 700;
  color: #FFFFFF;
}
.callout strong { color: var(--brand-300); }
.callout.center { text-align: center; }

/* How we make money: two info cards + a live paywall mockup in the phone frame */
.money-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
}
.money-card p { margin: var(--space-2) 0 0; font-size: 0.95rem; color: #E4E1F2; }
.money-card-accent { background: var(--gradient-cta); border-color: transparent; }
.money-card-accent p { color: rgba(255,255,255,0.95); }

.phone-real-screen {
  position: absolute;
  left: 5.36%; top: 2.18%; width: 89.46%; height: 95.56%;
  border-radius: 9% / 4%;
  overflow: hidden;
  background: var(--surface-secondary);
  z-index: 1;
  padding: 12% 7% 3%;
  font-family: var(--font-family-ui);
  color: var(--text-primary);
}
.sub-toggle {
  display: flex;
  background: rgba(30,32,40,0.06);
  border-radius: var(--radius-pill);
  padding: 3px;
  margin-bottom: 10px;
}
.sub-toggle span { flex: 1; text-align: center; font-size: 0.6rem; font-weight: 700; padding: 5px 0; border-radius: var(--radius-pill); color: var(--text-tertiary); }
.sub-toggle span.active { background: #fff; color: var(--text-primary); box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.sub-card { background: #fff; border-radius: 10px; padding: 8px 10px; margin-bottom: 6px; }
.sub-card h4 { margin: 0 0 4px; font-size: 0.68rem; }
.sub-card p { margin: 2px 0; font-size: 0.56rem; }
.sub-bonus { border: 1.5px solid var(--brand-500); border-radius: 10px; padding: 7px 8px; margin-bottom: 6px; }
.sub-bonus-head { display: flex; justify-content: space-between; align-items: center; font-size: 0.6rem; font-weight: 700; }
.sub-bonus p { margin: 3px 0 0; font-size: 0.52rem; color: var(--text-tertiary); }
.sub-switch { width: 22px; height: 12px; border-radius: 999px; background: var(--gradient-cta); position: relative; flex-shrink: 0; }
.sub-switch::after { content: ""; position: absolute; right: 1.5px; top: 1.5px; width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.sub-plan { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 9px; margin-bottom: 4px; }
.sub-plan.selected { background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.06); }
.sub-plan .radio { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid #C7C9D9; flex-shrink: 0; }
.sub-plan .radio.checked { border-color: var(--brand-500); background: radial-gradient(circle, var(--brand-500) 40%, #fff 44%); }
.sub-plan strong { display: block; font-size: 0.6rem; }
.sub-plan small { font-size: 0.5rem; color: var(--text-tertiary); }
.sub-plan .tag-limited { margin-left: auto; background: var(--brand-100); color: var(--brand-700); font-size: 0.44rem; font-weight: 700; padding: 3px 6px; border-radius: var(--radius-pill); align-self: flex-start; }
.sub-cta {
  margin-top: 6px;
  background: var(--gradient-cta);
  color: #fff;
  text-align: center;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 9px;
  border-radius: var(--radius-pill);
}

/* Revenue forecast: stat cards + a low-high range instead of a plain bullet list */
.rev-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); margin-top: var(--space-6); }
.rev-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-4);
}
.rev-value { font-family: var(--font-family-display); font-weight: 800; font-size: 1.7rem; letter-spacing: -0.02em; color: #fff; margin: 0 0 6px; }
.rev-label { margin: 0; font-size: 0.8rem; color: #C9C5DA; line-height: 1.35; }
.rev-callout {
  margin-top: var(--space-7);
  background: var(--gradient-cta);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.rev-callout-label { margin: 0 0 var(--space-4); color: rgba(255,255,255,0.85); font-weight: 700; font-size: 0.95rem; }
.rev-range { display: flex; align-items: center; gap: var(--space-4); }
.rev-range-low, .rev-range-high { font-family: var(--font-family-display); font-weight: 800; font-size: 1.5rem; color: #fff; white-space: nowrap; }
.rev-range-track { flex: 1; height: 10px; border-radius: var(--radius-pill); background: rgba(255,255,255,0.25); overflow: hidden; }
.rev-range-fill { height: 100%; width: 0; background: #fff; border-radius: var(--radius-pill); transition: width 1.2s cubic-bezier(.22,.8,.24,1) .2s; }
.slide.active .rev-range-fill { width: 100%; }

/* Cover slides */
.slide-cover { flex-direction: column; text-align: center; }
.cover-mark { margin-bottom: var(--space-6); }
.cover-mark svg, .cover-mark img { filter: drop-shadow(0 16px 34px rgba(128, 60, 242, 0.45)); }
.cover-tagline { font-size: 1.2rem; color: var(--text-tertiary); font-weight: 600; }
.slide[data-bg="dark"] .cover-tagline { color: #D8D4E8; }
.thanks {
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: var(--brand-300);
  margin-bottom: var(--space-5);
}
.contact { color: #C9C5DA; font-size: 1rem; }
.btn-download {
  position: relative; z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-8);
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: var(--gradient-cta);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  box-shadow: 0 14px 30px -12px rgba(128,60,242,0.7);
  transition: transform 0.15s ease;
}
.btn-download:hover { transform: translateY(-2px); }

/* Cover hero: hand-built ambient scene (orb + rings) instead of the flat
   wordmark-on-gradient the first pass shipped with. */
/* no position/overflow override here: .slide already establishes both,
   redeclaring position:relative on this same element used to win the
   cascade over .slide's position:absolute and silently shrink the whole
   cover slide to its content height instead of filling the viewport. */
.cover-hero.slide::before { content: none; } /* the ambient blob layer would compete with the orb below */
.cover-orb {
  position: absolute;
  width: 620px; height: 620px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 35% 30%, rgba(159,104,248,0.55), rgba(83,11,201,0.05) 60%);
  filter: blur(10px);
  border-radius: 50%;
  z-index: 0;
}
.cover-ring {
  position: absolute;
  border: 1px solid rgba(159,104,248,0.35);
  border-radius: 50%;
  z-index: 0;
}
.cover-ring-1 { width: 480px; height: 480px; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.cover-ring-2 { width: 720px; height: 720px; top: 50%; left: 50%; transform: translate(-50%,-50%); border-color: rgba(159,104,248,0.18); }
@media (prefers-reduced-motion: no-preference) {
  .cover-hero.active .cover-ring-1 { animation: ring-spin 40s linear infinite; }
  .cover-hero.active .cover-ring-2 { animation: ring-spin 60s linear infinite reverse; }
  .cover-hero.active .cover-orb { animation: orb-pulse 7s ease-in-out infinite; }
}
@keyframes ring-spin { from { transform: translate(-50%,-50%) rotate(0deg); } to { transform: translate(-50%,-50%) rotate(360deg); } }
@keyframes orb-pulse { 0%, 100% { opacity: 0.85; } 50% { opacity: 1; transform: translate(-50%,-50%) scale(1.05); } }

.cover-kicker {
  position: relative; z-index: 1;
  font-family: var(--font-family-mono, monospace);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-300);
  font-weight: 700;
  margin: 0 0 var(--space-6);
}
.cover-mark { position: relative; z-index: 1; }
.cover-tagline { position: relative; z-index: 1; max-width: 46ch; }
.cover-stats {
  position: relative; z-index: 1;
  display: flex;
  gap: var(--space-9);
  margin-top: var(--space-9);
}
.cover-stats > div { display: flex; flex-direction: column; align-items: center; }
.cover-stats strong { font-family: var(--font-family-display); font-size: 1.7rem; font-weight: 800; color: #fff; }
.cover-stats span { font-size: 0.8rem; color: #B8A8E0; margin-top: 2px; }

/* ---------- iPhone frame (real asset: assets/brand/iphone-frame.png) ---------- */

.phone-stage { display: flex; align-items: center; justify-content: center; position: relative; }
.phone-stage::before {
  content: "";
  position: absolute;
  width: 340px; height: 340px;
  background: var(--gradient-hero);
  filter: blur(70px);
  opacity: 0.5;
  border-radius: 50%;
  z-index: 0;
}

.phone-real {
  position: relative;
  z-index: 1;
  width: min(240px, 58vw);
  aspect-ratio: 541 / 1103; /* native size of the frame PNG */
  filter: drop-shadow(0 30px 50px rgba(9, 3, 30, 0.5));
}
.phone-real-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.phone-real-video {
  /* Positioned to the transparent screen cutout measured in the source PNG
     (541x1103px canvas): screen spans x[29,513] y[24,1078]. */
  position: absolute;
  left: 5.36%;
  top: 2.18%;
  width: 89.46%;
  height: 95.56%;
  object-fit: cover;
  border-radius: 9% / 4%;
  z-index: 1;
  background: #000;
}
.live-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-cta);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 20px -8px rgba(128,60,242,0.6);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.live-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .live-badge .dot { animation: pulse-dot 1.6s ease-in-out infinite; }
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.store-badges { display: flex; gap: var(--space-3); margin-top: var(--space-6); }
.store-badges .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.store-badges .badge:hover { background: rgba(255,255,255,0.14); transform: translateY(-1px); }
.slide[data-bg="light"] .store-badges .badge { background: var(--neutral-100); border-color: var(--neutral-100); color: var(--text-primary); }
.slide[data-bg="light"] .store-badges .badge:hover { background: var(--brand-100); }

/* Two column (founders) */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-9);
}
.two-col h3 { font-family: var(--font-family-display); font-size: 1.4rem; margin: 0 0 var(--space-2); color: var(--text-primary); }
.two-col p { font-size: 0.98rem; color: var(--text-secondary); margin: 0 0 var(--space-4); }
.role { color: var(--brand-700); font-weight: 700; margin: 0 0 var(--space-4) !important; }

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-7);
}
.team-grid h4 { font-family: var(--font-family-display); font-size: 1.15rem; margin: 0 0 2px; color: var(--text-primary); }
.team-grid p { font-size: 0.92rem; margin: 0 0 var(--space-2); }

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}
.features-grid h4 { font-family: var(--font-family-display); font-size: 1rem; margin: 0 0 var(--space-3); color: var(--text-primary); }
.features-grid ul { list-style: none; padding: 0; margin: var(--space-3) 0 0; display: flex; flex-direction: column; gap: 10px; }
.features-grid li { font-size: 0.9rem; color: var(--text-secondary); }
.pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--brand-500);
  color: var(--brand-700);
  font-weight: 700;
  font-size: 0.78rem;
}

/* Market opportunity: Today/Tomorrow stat cards, replacing an abstract
   node-diagram that read as decoration rather than information. */
.opp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-4);
}
.opp-card {
  background: var(--neutral-100);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  position: relative;
  overflow: hidden;
}
.opp-card-accent {
  background: var(--gradient-cta);
  color: #fff;
}
.opp-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 11px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-2);
}
.opp-tag.now { background: rgba(30,32,40,0.08); color: var(--text-secondary); }
.opp-card-accent .opp-tag.next { background: rgba(255,255,255,0.2); color: #fff; }
.opp-stat {
  font-family: var(--font-family-display);
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: var(--text-primary);
}
.opp-card-accent .opp-stat { color: #fff; }
.opp-text { margin: 0; font-size: 0.85rem; line-height: 1.4; color: var(--text-secondary); }
.opp-card-accent .opp-text { color: rgba(255,255,255,0.92); }

/* Market size: TAM/SAM/SOM as three matched cards with an animated ring —
   size still communicates scale (biggest ring = TAM), but each tier now
   reads as its own clear unit instead of three overlapping circles. */
.tam-grid {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: var(--space-8);
  margin-top: var(--space-8);
  flex-wrap: wrap;
}
.tam-card { text-align: center; max-width: 220px; }
.tam-ring-wrap {
  position: relative;
  width: var(--size, 140px);
  height: var(--size, 140px);
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tam-ring { width: 100%; height: 100%; transform: rotate(-90deg); filter: drop-shadow(0 0 14px rgba(159,104,248,0.45)); }
.tam-ring .track { fill: none; stroke: rgba(255,255,255,0.12); stroke-width: 9; }
.tam-ring .fill {
  fill: none;
  stroke: var(--brand-400);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
@media (prefers-reduced-motion: no-preference) {
  .slide.active .tam-ring .fill { animation: ring-fill 1.4s cubic-bezier(.22,.8,.24,1) forwards; }
  .slide.active .tam-card:nth-child(1) .tam-ring .fill { animation-delay: .1s; }
  .slide.active .tam-card:nth-child(2) .tam-ring .fill { animation-delay: .3s; }
  .slide.active .tam-card:nth-child(3) .tam-ring .fill { animation-delay: .5s; }
}
@media (prefers-reduced-motion: reduce) {
  .tam-ring .fill { stroke-dashoffset: 0; }
}
@keyframes ring-fill { to { stroke-dashoffset: 0; } }
.tam-value {
  position: absolute;
  font-family: var(--font-family-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
}
.tam-card h3 { color: var(--brand-300); font-size: 1rem; margin: 0 0 var(--space-2); }
.tam-card p { font-size: 0.85rem; color: #D8D4E8; margin: 0; }

/* Compare table */
table.compare { width: 100%; border-collapse: collapse; border-radius: var(--radius-md); overflow: hidden; }
table.compare th, table.compare td {
  padding: var(--space-4) var(--space-5);
  text-align: center;
  font-size: 0.98rem;
}
table.compare th:first-child, table.compare td:first-child { text-align: left; }
table.compare thead th { background: var(--brand-900); color: #fff; font-weight: 700; }
table.compare tbody tr:nth-child(odd) { background: var(--neutral-100); }
table.compare tbody tr:nth-child(even) { background: var(--neutral-0); }
table.compare td.yes { color: var(--brand-700); font-weight: 800; }

/* Evolution grid */
.evolution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-7);
}
.evolution-grid > div {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.evolution-grid h4 { color: var(--brand-300); font-size: 1rem; margin: 0 0 var(--space-2); }
.evolution-grid p { font-size: 0.85rem; margin: 0 0 var(--space-2); color: #E4E1F2; }
.evolution-grid .note { color: #B8A8E0; font-size: 0.78rem; }

/* Roadmap */
.tag-row { display: flex; gap: var(--space-4); margin-bottom: var(--space-7); }
.tag {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-300);
}
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}
.roadmap-grid > div {
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gradient-cta);
  color: #fff;
  font-weight: 800;
  margin-bottom: var(--space-3);
}
.roadmap-grid h4 { color: #fff; font-size: 1rem; margin: 0 0 2px; }
.roadmap-grid p { font-size: 0.82rem; margin: 0 0 var(--space-2); color: #E4E1F2; }
.roadmap-grid .note { color: #B8A8E0; font-size: 0.75rem; }

/* Use of funds */
.funds-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: var(--space-7);
}
.funds-grid h4 { color: var(--brand-300); font-size: 1rem; margin: 0 0 var(--space-4); }
.funds-grid .bullets.small { gap: var(--space-3); }
.funds-grid .bullets.small li { font-size: 0.88rem; line-height: 1.4; margin-bottom: 0; }
.bar {
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-pill);
  height: 26px;
  overflow: hidden;
  margin-bottom: 4px;
}
.bar span {
  height: 100%;
  background: var(--gradient-cta);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  padding-left: 10px;
  width: 0;
  white-space: nowrap;
  transition: width 1.1s cubic-bezier(.22,.8,.24,1);
}
.slide.active .bar span { width: var(--w, 0%); }
.funds-grid > div:first-child .bar:nth-of-type(1) span { transition-delay: .1s; }
.bar:nth-of-type(1) span { transition-delay: .1s; }
.bar:nth-of-type(2) span { transition-delay: .22s; }
.bar:nth-of-type(3) span { transition-delay: .34s; }
.bar:nth-of-type(4) span { transition-delay: .46s; }
.bar:nth-of-type(5) span { transition-delay: .58s; }
.bar-label { font-size: 0.8rem; color: #C9C5DA; margin: 0 0 var(--space-3); }

/* Chrome / navigation */
.deck-chrome {
  position: fixed;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: rgba(20, 16, 30, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  z-index: 10;
}

.nav-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--gradient-cta);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}
.nav-btn:hover { transform: scale(1.08); }
.nav-btn:disabled { opacity: 0.35; cursor: default; transform: none; }

.progress {
  display: flex;
  gap: 6px;
}
.progress .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
}
.progress .dot.active { background: var(--brand-300); width: 20px; border-radius: var(--radius-pill); }

.slide-count { color: #E4E1F2; font-size: 0.8rem; font-weight: 600; min-width: 48px; text-align: center; }

/* Print / PDF export: Chromium's print-to-PDF applies this automatically,
   which is what public/Inwall-Investor-Deck.pdf is generated from — every
   slide stacked and visible instead of the single active one. */
@page { size: landscape; margin: 0; }
@media print {
  html, body { height: auto; overflow: visible; }
  .deck { position: static; }
  .slide {
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    animation: none !important;
    align-items: flex-start !important;
    width: 100%;
    height: 100vh;
    page-break-after: always;
    break-after: page;
    padding: 40px 64px !important;
  }
  .slide::before, .cover-ring, .cover-orb { animation: none !important; }
  .slide-inner > *, .slide-cover > *, .bullets > li, .features-grid > div, .team-grid > div, .roadmap-grid > div, .evolution-grid > div, .market-size > .ms-block {
    opacity: 1 !important;
    animation: none !important;
  }
  .tam-ring .fill { stroke-dashoffset: 0 !important; animation: none !important; }
  .bar span { width: var(--w) !important; transition: none !important; }
  .rev-range-fill { width: 100% !important; transition: none !important; }
  .phone-real-video { animation-play-state: paused; }
  .deck-chrome, .btn-download { display: none !important; }

  /* The print viewport Chromium uses ends up under the 900px breakpoint
     regardless of the page's actual physical size, which would otherwise
     silently collapse every multi-column slide to the single-column mobile
     layout and let content run past one page. Forced back explicitly. */
  .slide-inner-split, .two-col { grid-template-columns: 1.3fr 1fr !important; }
  .team-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .features-grid { grid-template-columns: repeat(4, 1fr) !important; }
  .evolution-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .roadmap-grid { grid-template-columns: repeat(4, 1fr) !important; }
  .funds-grid { grid-template-columns: 1.3fr 1fr 1fr !important; }
  .network-graphic { display: block !important; }
}

@media (max-width: 900px) {
  .slide-inner-split,
  .two-col,
  .team-grid,
  .features-grid,
  .market-size,
  .evolution-grid,
  .roadmap-grid,
  .funds-grid {
    grid-template-columns: 1fr;
  }
  .network-graphic { display: none; }
  .progress { display: none; }
}
