/* ============================================================
   Lovable Presentation Theme
   Brand-decoded from lovable.dev (May 2026)
   Uses official Lovable brand assets bundled in `brand/`:
   - brand/fonts/CameraPlain-Variable.ttf  (official headline font)
   - brand/lovable-heart.png               (official heart mark)
   - brand/lovable-wordmark-{black,white}.png
   - brand/backgrounds/fill-{1..9}.png     (official gradient fills)
   ============================================================ */

@font-face {
  font-family: 'Camera Plain';
  src: url('brand/fonts/CameraPlain-Variable.ttf') format('truetype-variations'),
       url('brand/fonts/CameraPlain-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
}

:root {
  /* Brand palette — only these colors are allowed */
  --lov-blue:   #5B6BFF;
  --lov-pink:   #FF4FB5;
  --lov-coral:  #FF6A3D;
  --lov-cream:  #F5F0E8;
  --lov-paper:  #FAF8F3;
  --lov-ink:    #0B0B0E;

  /* Derived neutrals (opacity of ink, never a separate gray) */
  --ink-80: rgba(11, 11, 14, 0.80);
  --ink-60: rgba(11, 11, 14, 0.60);
  --ink-40: rgba(11, 11, 14, 0.40);
  --ink-12: rgba(11, 11, 14, 0.12);
  --ink-06: rgba(11, 11, 14, 0.06);

  --paper-80: rgba(250, 248, 243, 0.80);
  --paper-60: rgba(250, 248, 243, 0.60);
  --paper-40: rgba(250, 248, 243, 0.40);
  --paper-12: rgba(250, 248, 243, 0.12);

  /* Radii */
  --radius-pill: 999px;
  --radius-card: 24px;
  --radius-lg:   32px;
  --radius-sm:   12px;

  /* Shadows — only on cream cards, never on dark / gradient */
  --shadow-card: 0 1px 2px rgba(11,11,14,0.04),
                 0 8px 24px rgba(11,11,14,0.06);

  /* Type scale (slides are 1920×1080, so sizes are large) */
  --t-eyebrow:  20px;
  --t-body:     32px;
  --t-lead:     40px;
  --t-h3:       56px;
  --t-h2:       88px;
  --t-h1:       136px;
  --t-mega:     200px;

  --tracking-tight:   -0.03em;
  --tracking-tighter: -0.04em;
  --tracking-eyebrow: 0.12em;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; }
img { display: block; max-width: 100%; }

body {
  font-family: 'Camera Plain', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 420;
  letter-spacing: -0.01em;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background: #1a1a1a;
  color: var(--lov-ink);
}

/* Headlines */
h1, h2, h3, .display, .slide__title {
  font-family: 'Camera Plain', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

/* Eyebrows */
.eyebrow, .slide__eyebrow {
  font-family: 'Camera Plain', system-ui, sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 1.4;
}

/* ---------- Deck container & scaling ---------- */
.deck {
  width: 100vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #1a1a1a;
}

.slide {
  position: relative;
  width: 1920px;
  height: 1080px;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  /* default: stack content from top-left */
}

/* On screen: scale slides to viewport for navigation preview.
   On print: each slide takes one PDF page at 1920×1080. */
@media screen {
  .deck { gap: 24px; padding: 24px 0; }
  .slide {
    /* JS sets `zoom` on each slide to fit the viewport.
       `zoom` (unlike `transform: scale`) shrinks the layout box too,
       so slides stack correctly with no horizontal overflow. */
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    border-radius: 8px;
  }
  .deck--present {
    gap: 0; padding: 0;
    height: 100vh; overflow: hidden;
    justify-content: center; align-items: center;
  }
  .deck--present .slide { display: none; box-shadow: none; border-radius: 0; }
  .deck--present .slide.is-active { display: flex; }
}

@media print {
  @page { size: 1920px 1080px; margin: 0; }
  body, .deck { background: #fff; gap: 0; padding: 0; }
  .slide {
    box-shadow: none; border-radius: 0;
    page-break-after: always;
    break-after: page;
  }
  .slide:last-child { page-break-after: auto; break-after: auto; }
  .deck-nav { display: none !important; }
}

/* ---------- Slide modes ---------- */
.slide--cream {
  background: var(--lov-cream);
  color: var(--lov-ink);
}
.slide--paper {
  background: var(--lov-paper);
  color: var(--lov-ink);
}
.slide--dark {
  background: #0B0B0E;
  color: var(--lov-paper);
}

/* ---------- Mesh gradient blooms (the signature) ----------
   Built from radial gradients, heavily blurred. Order matters:
   blue (top), pink (mid), coral (bottom).
*/
.mesh-bloom {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Full-bleed bloom — used on cover & closing slides */
.mesh-bloom--full {
  background:
    radial-gradient(80% 60% at 50% -10%,  rgba(245,240,232,0.95) 0%, rgba(245,240,232,0) 60%),
    radial-gradient(60% 50% at 20% 30%,   rgba(91,107,255,0.85)  0%, rgba(91,107,255,0)  65%),
    radial-gradient(70% 55% at 80% 55%,   rgba(255,79,181,0.85)  0%, rgba(255,79,181,0)  65%),
    radial-gradient(90% 70% at 50% 110%,  rgba(255,106,61,0.95)  0%, rgba(255,106,61,0)  60%),
    #0B0B0E;
  filter: blur(0.5px);
}

/* Bottom-edge sweep — dark slides, gradient only across bottom 30% */
.mesh-bloom--sweep {
  background:
    radial-gradient(60% 40% at 25% 110%, rgba(91,107,255,0.95)  0%, rgba(91,107,255,0)  60%),
    radial-gradient(60% 40% at 55% 115%, rgba(255,79,181,0.95)  0%, rgba(255,79,181,0)  60%),
    radial-gradient(60% 40% at 85% 110%, rgba(255,106,61,0.95)  0%, rgba(255,106,61,0)  60%),
    transparent;
}

/* Corner accent on cream slides — a single soft bloom in one corner */
.mesh-bloom--corner {
  background:
    radial-gradient(50% 50% at 100% 0%, rgba(91,107,255,0.35)  0%, rgba(91,107,255,0)  60%),
    radial-gradient(40% 40% at 100% 0%, rgba(255,79,181,0.30)  0%, rgba(255,79,181,0)  60%),
    transparent;
}
.mesh-bloom--corner.bl {
  background:
    radial-gradient(50% 50% at 0% 100%, rgba(255,106,61,0.35) 0%, rgba(255,106,61,0) 60%),
    radial-gradient(40% 40% at 0% 100%, rgba(255,79,181,0.30) 0%, rgba(255,79,181,0) 60%),
    transparent;
}

/* ---------- Slide inner / layout ---------- */
.slide__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 96px 128px 144px;   /* extra bottom for logo + pager */
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.slide__inner--center {
  justify-content: center;
  align-items: flex-start;
}

.slide__inner--hero {
  justify-content: flex-end;
  padding-bottom: 200px;
}

/* Two-column layout */
.cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  flex: 1;
}
.cols-2--6040 { grid-template-columns: 6fr 4fr; }
.cols-2--4060 { grid-template-columns: 4fr 6fr; }

/* 3-up cards */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  flex: 1;
  align-content: center;
}

/* ---------- Typography ---------- */
.eyebrow {
  font-size: var(--t-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--ink-60);
}
.slide--dark .eyebrow { color: var(--paper-60); }

.h1 {
  font-size: var(--t-h1);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: var(--tracking-tighter);
  text-wrap: balance;
}
.h2 {
  font-size: var(--t-h2);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}
.h3 {
  font-size: var(--t-h3);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}
.lead {
  font-size: var(--t-lead);
  font-weight: 400;
  line-height: 1.3;
  color: var(--ink-80);
  max-width: 22ch;
}
.slide--dark .lead { color: var(--paper-80); }

.body {
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink-80);
  max-width: 28ch;
}
.slide--dark .body { color: var(--paper-80); }

.mega {
  font-size: var(--t-mega);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.05em;
}

/* Gradient text — use sparingly, e.g. one accent word */
.gradient-text {
  background: linear-gradient(100deg, var(--lov-blue) 0%, var(--lov-pink) 50%, var(--lov-coral) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Chips / pills ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  background: var(--ink-06);
  font-size: var(--t-eyebrow);
  font-weight: 600;
  color: var(--lov-ink);
  width: fit-content;
}
.chip__dot {
  width: 10px; height: 10px; border-radius: 999px;
  background: var(--lov-blue);
}
.slide--dark .chip {
  background: var(--paper-12);
  color: var(--lov-paper);
}

.chip--accent {
  background: linear-gradient(100deg, var(--lov-blue), var(--lov-pink) 60%, var(--lov-coral));
  color: var(--lov-paper);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 20px 36px;
  border-radius: var(--radius-pill);
  background: var(--lov-ink);
  color: var(--lov-paper);
  font-size: var(--t-body);
  font-weight: 600;
  border: none;
}
.slide--dark .btn { background: var(--lov-paper); color: var(--lov-ink); }
.btn--ghost {
  background: transparent;
  color: var(--lov-ink);
  border: 2px solid var(--ink-12);
}

/* ---------- Cards ---------- */
.card {
  background: var(--lov-paper);
  border: 1px solid var(--ink-06);
  border-radius: var(--radius-card);
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-card);
}
.slide--dark .card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--paper-12);
  box-shadow: none;
}
.card__num {
  width: 56px; height: 56px;
  border-radius: 999px;
  background: var(--lov-ink);
  color: var(--lov-paper);
  display: grid; place-items: center;
  font-size: 24px; font-weight: 700;
}
.slide--dark .card__num { background: var(--lov-paper); color: var(--lov-ink); }

.card--gradient {
  background: linear-gradient(135deg, var(--lov-blue), var(--lov-pink) 55%, var(--lov-coral));
  color: var(--lov-paper);
  border: none;
}
.card--gradient .card__num { background: rgba(255,255,255,0.2); color: var(--lov-paper); }

/* Visual placeholder card — soft bloom inside a card */
.card--visual {
  position: relative;
  overflow: hidden;
  background: var(--lov-cream);
  min-height: 600px;
}
.card--visual::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(50% 50% at 25% 25%, rgba(91,107,255,0.7) 0%, rgba(91,107,255,0) 60%),
    radial-gradient(50% 50% at 75% 50%, rgba(255,79,181,0.7) 0%, rgba(255,79,181,0) 60%),
    radial-gradient(60% 60% at 50% 100%, rgba(255,106,61,0.8) 0%, rgba(255,106,61,0) 60%);
}

/* ---------- Stat block ---------- */
.stat {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stat__value {
  font-size: 240px;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.05em;
}
.stat__value--gradient {
  background: linear-gradient(100deg, var(--lov-blue), var(--lov-pink) 50%, var(--lov-coral));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label {
  font-size: var(--t-h3);
  font-weight: 500;
  color: var(--ink-80);
  max-width: 18ch;
}
.slide--dark .stat__label { color: var(--paper-80); }

/* ---------- Quote ---------- */
.quote {
  font-size: 88px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
  max-width: 24ch;
}
.quote::before { content: "\201C"; }
.quote::after  { content: "\201D"; }
.quote__attr {
  margin-top: 48px;
  font-size: var(--t-body);
  color: var(--ink-60);
  font-weight: 500;
}
.slide--dark .quote__attr { color: var(--paper-60); }

/* ---------- Bullet list (numbered, generous) ---------- */
.list-numbered {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.list-numbered li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  align-items: baseline;
  font-size: var(--t-h3);
  font-weight: 500;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ink-12);
}
.slide--dark .list-numbered li { border-color: var(--paper-12); }
.list-numbered li::before {
  content: counter(item, decimal-leading-zero);
  counter-increment: item;
  font-size: var(--t-body);
  font-weight: 600;
  color: var(--ink-40);
  letter-spacing: var(--tracking-eyebrow);
}
.list-numbered { counter-reset: item; }

/* ---------- Timeline ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.timeline::before {
  content: ""; position: absolute;
  left: 28px; right: 28px; top: 28px; height: 2px;
  background: var(--ink-12);
}
.slide--dark .timeline::before { background: var(--paper-12); }
.timeline__step {
  display: flex; flex-direction: column; gap: 16px;
}
.timeline__dot {
  width: 56px; height: 56px; border-radius: 999px;
  background: var(--lov-cream);
  border: 2px solid var(--ink-12);
  display: grid; place-items: center;
  font-weight: 700; font-size: 20px;
  position: relative; z-index: 1;
}
.timeline__step--active .timeline__dot {
  background: linear-gradient(135deg, var(--lov-blue), var(--lov-pink), var(--lov-coral));
  color: var(--lov-paper);
  border-color: transparent;
}

/* ---------- Brand chrome (inline SVG + wordmark lockup) ---------- */
.brand-mark {
  position: absolute;
  left: 96px;
  bottom: 72px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  z-index: 2;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.025em;
  color: var(--lov-ink);
  text-decoration: none;
}
.slide--dark .brand-mark { color: var(--lov-paper); }
.brand-mark__heart {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background-image: url("brand/lovable-heart.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Use official wordmark PNG instead of CSS text — opt in with `.brand-mark--lockup` */
.brand-mark--lockup .brand-mark__word {
  display: inline-block;
  width: 140px; height: 36px;
  background: url("brand/lovable-wordmark-black.png") no-repeat center / contain;
  text-indent: -9999px; overflow: hidden;
}
.slide--dark .brand-mark--lockup .brand-mark__word {
  background-image: url("brand/lovable-wordmark-white.png");
}

/* ---------- Official Lovable gradient fills (backgrounds) ----------
   Apply on a slide via `.bg-fill-N`. Use sparingly — full-bleed.
*/
.bg-fill-1 { background: url("brand/backgrounds/fill-1.png") center/cover no-repeat; }
.bg-fill-2 { background: url("brand/backgrounds/fill-2.png") center/cover no-repeat; }
.bg-fill-3 { background: url("brand/backgrounds/fill-3.png") center/cover no-repeat; }
.bg-fill-4 { background: url("brand/backgrounds/fill-4.png") center/cover no-repeat; }
.bg-fill-5 { background: url("brand/backgrounds/fill-5.png") center/cover no-repeat; }
.bg-fill-6 { background: url("brand/backgrounds/fill-6.png") center/cover no-repeat; }
.bg-fill-7 { background: url("brand/backgrounds/fill-7.png") center/cover no-repeat; }
.bg-fill-8 { background: url("brand/backgrounds/fill-8.png") center/cover no-repeat; }
.bg-fill-9 { background: url("brand/backgrounds/fill-9.png") center/cover no-repeat; }

.slide__pager {
  position: absolute;
  right: 96px;
  bottom: 72px;
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--ink-40);
  z-index: 2;
}
.slide--dark .slide__pager { color: var(--paper-40); }

/* ---------- Deck navigation (screen only) ---------- */
.deck-nav {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px; align-items: center;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  z-index: 100;
  backdrop-filter: blur(10px);
}
.deck-nav button {
  background: rgba(255,255,255,0.15);
  border: none; color: white;
  width: 32px; height: 32px;
  border-radius: 999px;
  font-size: 16px;
  cursor: pointer;
}
.deck-nav button:hover { background: rgba(255,255,255,0.25); }
