/*
 * Fanmaker deck theme — reproduces the 2025 Keynote look: violet gradient
 * ground, cyan headings, a left bullet column and a right "stage".
 *
 * Deliberately Fanmaker-branded, NOT prospect-branded. The prospect's colors
 * live inside the phone pane only. That contrast is the sales point: their app,
 * our platform. A fully recolored deck reads as a template with the paint
 * swapped.
 */

:root {
  --fm-violet-deep:  #1B0B2E;
  --fm-violet:       #3C1268;
  --fm-violet-lift:  #7A22C9;
  --fm-cyan:         #35B6F0;
  --fm-ink:          #FFFFFF;
  --fm-ink-2:        rgba(255, 255, 255, 0.72);
  --fm-ink-3:        rgba(255, 255, 255, 0.45);
  --fm-rule:         rgba(255, 255, 255, 0.14);

  --fm-sans: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --fm-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.reveal {
  font-family: var(--fm-sans);
  color: var(--fm-ink);
  font-size: 34px;
}

/* The ground. Two off-axis violet blooms over a near-black plum, which is what
   the Keynote gradient reads as once flattened. */
.reveal-viewport {
  background:
    radial-gradient(120% 90% at 88% 6%,  rgba(122, 34, 201, 0.55), transparent 58%),
    radial-gradient(90% 80% at 4% 96%,   rgba(122, 34, 201, 0.38), transparent 60%),
    var(--fm-violet-deep);
}

.reveal .slides { text-align: left; }
.reveal .slides section { height: 100%; }

.reveal h1, .reveal h2 {
  font-weight: 700;
  color: var(--fm-cyan);
  letter-spacing: -0.015em;
  line-height: 1.04;
  text-transform: none;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
.reveal h2 { font-size: 1.62em; }

/* ---- the standard slide: bullets left, stage right --------------------- */
.slide-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 64px;
  align-items: center;
  height: 100%;
  padding: 0 4vw;
}
.slide-body.no-stage { grid-template-columns: minmax(0, 1fr); }

.bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.62em; }
.bullets li {
  font-size: 0.72em;
  line-height: 1.32;
  color: var(--fm-ink);
  padding-left: 1.1em;
  position: relative;
}
.bullets li::before {
  content: "";
  position: absolute; left: 0; top: 0.52em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--fm-cyan);
}

/* ---- the stage --------------------------------------------------------- */
.stage { display: flex; flex-direction: column; align-items: center; gap: 14px; justify-self: center; }

.phone {
  width: 340px; height: 736px;
  max-height: 74vh; aspect-ratio: 340 / 736;
  flex: none; border-radius: 42px; padding: 11px;
  background: #05060a;
  box-shadow: 0 0 0 2px #33384a, 0 26px 60px rgba(0, 0, 0, 0.55);
}
.phone iframe { width: 100%; height: 100%; border: 0; border-radius: 32px; background: #000; display: block; }

.stage-label {
  font: 500 0.34em/1.3 var(--fm-mono);
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--fm-ink-3); text-align: center;
}
.stage-hint {
  font: 500 0.32em/1.3 var(--fm-mono);
  letter-spacing: 0.06em; color: var(--fm-cyan);
  display: inline-flex; align-items: center; gap: 8px;
}
.stage-hint kbd {
  font: inherit; padding: 2px 9px; border-radius: 5px;
  border: 1px solid var(--fm-rule); border-bottom-width: 2px;
  background: rgba(255, 255, 255, 0.06);
}

.stage img { max-width: 100%; max-height: 70vh; border-radius: 14px; display: block; }

/* ---- title slide ------------------------------------------------------- */
.title-slide {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: center; height: 100%; padding: 0 5vw;
}
.title-mark { display: flex; flex-direction: column; gap: 18px; }
.title-mark img { width: min(420px, 80%); }
.title-mark .sub {
  font-size: 0.46em; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--fm-cyan); line-height: 1.4;
}
.title-mark .prospect {
  margin-top: 8px; display: flex; align-items: center; gap: 14px;
  padding-top: 18px; border-top: 1px solid var(--fm-rule);
}
.title-mark .prospect img { width: 54px; height: 54px; border-radius: 12px; }
.title-mark .prospect span { font-size: 0.4em; color: var(--fm-ink-2); }

/* ---- logo wall --------------------------------------------------------- */
.logowall {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  align-content: center; height: 100%; padding: 4vh 4vw;
}
.logowall div {
  aspect-ratio: 1; border-radius: 50%; background: #fff;
  display: grid; place-items: center; padding: 12px;
}
.logowall img { max-width: 100%; max-height: 100%; }

/* ---- integrations ------------------------------------------------------ */
.integrations {
  display: flex; flex-wrap: wrap; gap: 14px 30px;
  font-size: 0.6em; line-height: 1.5; color: var(--fm-ink);
  padding: 0 4vw;
}
.integrations span { white-space: nowrap; }
.integrations-footnote {
  width: 100%; margin-top: 22px; color: var(--fm-ink-3); font-size: 0.8em;
}
.contact {
  margin-top: 26px; display: inline-block; font: 600 0.5em var(--fm-mono);
  background: var(--fm-cyan); color: #06121b; padding: 10px 20px; border-radius: 8px;
}

/* ---- chrome ------------------------------------------------------------ */
.fm-wordmark {
  position: fixed; left: 34px; bottom: 26px; z-index: 40;
  height: 22px; opacity: 0.85; pointer-events: none;
}
.fm-slidenum {
  position: fixed; right: 34px; bottom: 26px; z-index: 40;
  font: 500 13px var(--fm-mono); color: var(--fm-ink-3);
  font-variant-numeric: tabular-nums; pointer-events: none;
}

/* Review flag — visible only in review mode (?review=1), never in a demo. */
.review-flag {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 22px; z-index: 45;
  max-width: 60ch; font: 500 12.5px/1.45 var(--fm-sans);
  background: #FFD65C; color: #241A00; padding: 9px 15px; border-radius: 8px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.4);
}
.review-flag b { font-family: var(--fm-mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; display: block; }

@media (prefers-reduced-motion: reduce) {
  .reveal .slides section { transition: none !important; }
}
