/* Genesys presentation mode. Tokens match the landing page (../index.html). */
:root {
  --bg: #121418;
  --bg-2: #0c0e11;
  --surface: #1a1d23;
  --surface-2: #22262e;
  --line: #2a2f38;
  --text: #f4f5f7;
  --muted: #a7adb8;
  --faint: #767d8a;
  --accent: #0a9ea4;
  --accent-2: #3fc0c5;
  --accent-hover: #0bb2b8;
  --display: 'Space Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --body: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--body); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; }

/* ── Start screen ───────────────────────────────────────────────────────── */
.pm-start { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 48px 16px; position: relative; overflow: hidden; }
.pm-start::before {
  content: ''; position: absolute; right: -300px; top: -360px; width: 1000px; height: 1000px; pointer-events: none;
  background: radial-gradient(circle, rgba(122, 46, 88, 0.6) 0%, rgba(58, 36, 34, 0.2) 50%, rgba(18, 20, 24, 0) 72%);
}
.pm-start-inner { position: relative; width: 100%; max-width: 46rem; }
.pm-start h1 { font-family: var(--display); font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -0.02em; margin: 32px 0 0; }
.pm-intro { margin: 16px 0 0; max-width: 38rem; font-size: 1.1rem; line-height: 1.6; color: var(--muted); }
.pm-field { margin: 32px 0 0; border: 0; padding: 0; }
.pm-label { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 12px; }
.pm-choices { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pm-choices--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pm-choices--compact .pm-choice { padding: 10px 12px; font-size: 0.9rem; }
.pm-choice {
  text-align: left; border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  padding: 15px 17px; font-weight: 600; font-size: 1rem; transition: border-color .15s, background .15s;
}
.pm-choice small { display: block; margin-top: 4px; font-weight: 400; font-size: 0.82rem; color: var(--muted); }
.pm-choice:hover { border-color: var(--faint); }
.pm-choice[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: #fff; }
.pm-choice[aria-pressed="true"] small { color: rgba(255, 255, 255, 0.82); }
.pm-go {
  margin-top: 32px; display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 999px;
  background: var(--accent); color: #fff; padding: 14px 26px; font-weight: 600; font-size: 1rem; transition: background .15s;
}
.pm-go:hover { background: var(--accent-hover); }
.pm-keys { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 32px; font-size: 0.82rem; color: var(--muted); }
.pm-keys kbd { display: inline-block; border: 1px solid var(--line); border-radius: 5px; padding: 0 6px; margin-right: 4px; font-family: inherit; font-size: 0.75rem; background: var(--surface-2); color: var(--text); }
.pm-loop-link { display: block; margin-top: 28px; font-weight: 600; color: var(--accent-2); text-decoration: none; }
.pm-loop-link:hover { text-decoration: underline; }
.pm-back { display: inline-block; margin-top: 24px; font-size: 0.9rem; color: var(--muted); text-decoration: none; }
.pm-back:hover { color: var(--text); }

/* ── Stage ──────────────────────────────────────────────────────────────── */
.pm-live { position: fixed; inset: 0; overflow: hidden; background: var(--bg); }
.pm-stage { position: absolute; inset: 0 0 52px 0; outline: none; }
.slide {
  position: absolute; inset: 0; display: none; overflow: hidden; background: var(--bg);
  padding: clamp(24px, 5vh, 64px) clamp(20px, 6vw, 96px);
}
.slide.is-on { display: block; animation: slide-in .35s ease-out; }
@keyframes slide-in { from { opacity: 0; transform: translate3d(0, 10px, 0); } to { opacity: 1; transform: none; } }
.slide--dark { background: var(--bg-2); }
.slide--glow::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 1100px; height: 760px; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(ellipse, rgba(122, 46, 88, 0.55) 0%, rgba(58, 36, 34, 0.18) 50%, rgba(12, 14, 17, 0) 72%);
}
.slide-in { position: relative; height: 100%; max-width: 76rem; margin: 0 auto; display: flex; flex-direction: column; justify-content: center; }
.s-text { min-width: 0; }
.s-eyebrow { margin: 0; font-size: clamp(0.72rem, 1.1vw, 0.92rem); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-2); }
.s-title { margin: 12px 0 0; font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 3.6vw, 3.3rem); line-height: 1.08; letter-spacing: -0.02em; }
.s-tag { display: inline-block; margin-left: 12px; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: #fff; font: 600 0.32em/1.6 var(--body); letter-spacing: 0.08em; vertical-align: middle; }
.s-lede { margin: 16px 0 0; font-size: clamp(0.95rem, 1.5vw, 1.35rem); line-height: 1.5; color: var(--muted); max-width: 60ch; }
.s-full { margin-top: 14px; font-size: clamp(0.85rem, 1.2vw, 1.05rem); line-height: 1.6; color: var(--muted); max-width: 60ch; }
.s-full p { margin: 0; }
.s-full p + p { margin-top: 8px; }
[data-density="lead"] .s-full { display: none; }
.s-footer { position: absolute; right: clamp(20px, 6vw, 96px); bottom: 16px; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }

/* title */
.slide-in--title .s-title { font-size: clamp(3rem, 8vw, 6.5rem); }
.slide-in--title .s-lede { font-size: clamp(1.05rem, 1.9vw, 1.6rem); max-width: 46ch; }
.s-mark { width: clamp(56px, 6vw, 84px); height: auto; margin-bottom: 28px; }

/* list */
.s-items { margin: clamp(16px, 4vh, 36px) 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 3vh, 28px) clamp(24px, 4vw, 48px); list-style: none; padding: 0; }
.s-item { display: flex; gap: 16px; font-size: clamp(0.95rem, 1.45vw, 1.25rem); line-height: 1.45; }
.s-item b { display: block; font-weight: 600; }
.s-item-body { display: block; color: var(--muted); font-size: 0.9em; margin-top: 4px; }
.s-num { font-family: var(--display); font-weight: 600; font-size: 1.2em; line-height: 1.15; color: var(--accent-2); flex: none; width: 2.2ch; }

/* screen: the product is the point, so the image takes most of the stage */
.slide-in--split { display: grid; grid-template-columns: minmax(16rem, 3fr) minmax(0, 8fr); gap: clamp(24px, 3vw, 64px); align-items: center; max-width: none; }
.slide-in--split .s-title { font-size: clamp(1.5rem, 2.7vw, 2.7rem); }
.slide-in--split .s-lede { font-size: clamp(0.92rem, 1.25vw, 1.15rem); }
.slide-in--split .s-full { font-size: clamp(0.82rem, 1.05vw, 0.95rem); }
.slide:has(> .slide-in--split) { padding-left: clamp(20px, 3.5vw, 56px); padding-right: clamp(20px, 3.5vw, 56px); }
.s-shot { margin: 0; min-width: 0; }
.s-shot-frame { border-radius: 14px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.7); background: #f6f7fa; }
.s-shot-bar { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 12px; background: #1f2532; }
.s-shot-bar i { width: 9px; height: 9px; border-radius: 50%; }
.s-shot-bar i:nth-child(1) { background: #e76a5c; } .s-shot-bar i:nth-child(2) { background: #e9b54a; } .s-shot-bar i:nth-child(3) { background: #5fbf6a; }
.s-shot img { display: block; width: 100%; height: auto; max-height: 78vh; object-fit: contain; object-position: top; }
.s-shot figcaption { margin-top: 10px; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }

.s-shot--portrait { justify-self: center; display: flex; flex-direction: column; align-items: center; }
.s-shot--portrait .s-shot-frame { width: fit-content; max-width: 100%; }
.s-shot--portrait img { width: auto; max-width: 100%; max-height: 74vh; }
.s-shot--portrait figcaption { align-self: flex-start; }

/* flow: numbered steps */
.s-steps { margin: clamp(20px, 5vh, 44px) 0 0; padding: 0; list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: clamp(10px, 1.4vw, 18px); counter-reset: step; }
.s-step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: clamp(14px, 2vh, 22px) clamp(14px, 1.4vw, 20px); counter-increment: step; }
.s-step::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--display); font-weight: 600; font-size: clamp(0.85rem, 1.1vw, 1rem); color: var(--accent-2); }
.s-step:not(:last-child)::after { content: ''; position: absolute; top: 50%; right: calc(-1 * clamp(10px, 1.4vw, 18px)); width: clamp(10px, 1.4vw, 18px); height: 2px; background: var(--accent); opacity: .6; }
.s-step b { display: block; margin-top: 10px; font-family: var(--display); font-size: clamp(1rem, 1.6vw, 1.4rem); }
.s-step span { display: block; margin-top: 8px; font-size: clamp(0.82rem, 1.1vw, 1rem); line-height: 1.5; color: var(--muted); }

/* modules */
.s-modules { margin: clamp(16px, 4vh, 32px) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; list-style: none; padding: 0; }
.s-modules li { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; font-size: clamp(0.78rem, 1.1vw, 0.98rem); font-weight: 500; background: var(--surface); }
.s-modules li::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); }

/* closing */
.slide-in--closing { align-items: center; text-align: center; }
.slide-in--closing .s-title { font-size: clamp(2.4rem, 6vw, 5rem); }
.slide-in--closing .s-lede { margin-left: auto; margin-right: auto; }
.s-cta { margin-top: 32px; }
.s-cta span { display: inline-block; border-radius: 999px; background: var(--accent); color: #fff; padding: 12px 26px; font-weight: 600; font-size: clamp(1rem, 1.6vw, 1.4rem); }

/* click zones */
.pm-zone { position: absolute; top: 0; bottom: 0; width: 18%; background: transparent; border: 0; opacity: 0; }
.pm-zone--prev { left: 0; } .pm-zone--next { right: 0; }

/* ── Control bar ────────────────────────────────────────────────────────── */
.pm-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 52px; background: var(--bg-2); border-top: 1px solid var(--line); transition: opacity .4s; }
.pm-progress { height: 2px; background: var(--line); }
.pm-progress-fill { height: 100%; background: var(--accent); transition: width .3s; }
.pm-bar-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px; height: 50px; }
.pm-bar-group { display: flex; align-items: center; gap: 4px; }
.pm-btn { display: inline-flex; align-items: center; gap: 6px; border-radius: 8px; padding: 7px 10px; font-size: 0.82rem; font-weight: 500; background: transparent; border: 0; text-decoration: none; white-space: nowrap; }
.pm-btn:hover { background: var(--surface-2); }
.pm-btn:disabled { opacity: .35; cursor: default; }
.pm-btn:disabled:hover { background: transparent; }
.pm-btn svg { width: 16px; height: 16px; }
.pm-short { display: none; }
.pm-count { min-width: 72px; text-align: center; font-variant-numeric: tabular-nums; font-size: 0.85rem; color: var(--muted); }
.pm-live.is-idle .pm-bar { opacity: 0; pointer-events: none; }
.pm-live.is-idle .pm-stage { inset: 0; }
.pm-live.is-idle { cursor: none; }

/* ── Overview dialog ────────────────────────────────────────────────────── */
.pm-overview { width: min(34rem, calc(100vw - 32px)); max-height: calc(100vh - 48px); border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--text); padding: 24px; }
.pm-overview::backdrop { background: rgba(0, 0, 0, 0.6); }
.pm-overview h2 { margin: 0; font-family: var(--display); font-size: 1.3rem; }
.pm-overview-close { position: absolute; top: 14px; right: 14px; border: 0; background: transparent; color: var(--muted); padding: 6px; border-radius: 8px; }
.pm-overview-close:hover { background: var(--surface-2); color: var(--text); }
.pm-overview-list { list-style: none; padding: 0; margin: 12px 0 0; max-height: 48vh; overflow: auto; }
.pm-overview-list button { width: 100%; text-align: left; padding: 7px 9px; border-radius: 8px; font-size: 0.92rem; background: transparent; border: 0; }
.pm-overview-list button:hover, .pm-overview-list button:focus-visible { background: var(--surface-2); outline: none; }
.pm-overview-list button[aria-current="true"] { background: var(--accent); color: #fff; }
.pm-overview-num { display: inline-block; width: 2.2rem; color: var(--accent-2); font-variant-numeric: tabular-nums; }
.pm-overview-list button[aria-current="true"] .pm-overview-num { color: rgba(255, 255, 255, 0.85); }
.pm-overview .pm-label { margin-top: 20px; }

/* ── Small screens ──────────────────────────────────────────────────────── */
@media screen and (max-width: 900px) {
  .slide-in--split { display: flex; flex-direction: column; justify-content: flex-start; gap: 16px; overflow: auto; }
  .s-shot img { max-height: 40vh; }
  .s-items { grid-template-columns: 1fr; }
  .s-steps { grid-auto-flow: row; }
  .s-step:not(:last-child)::after { display: none; }
  .s-modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slide-in { justify-content: flex-start; overflow: auto; }
  .pm-choices { grid-template-columns: 1fr; }
  .pm-bar-row { padding: 0 4px; }
  .pm-btn { padding: 7px 6px; }
  .pm-long, .pm-btn--fs { display: none; }
  .pm-short { display: inline; }
  .pm-count { min-width: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .slide.is-on { animation: none; }
  .pm-progress-fill, .pm-bar { transition: none; }
}

/* ── Print / PDF: one slide per 1280×720 page, self-contained density ───── */
.pm-print { background: var(--bg); }
.pm-print .slide--glow::before { display: none; } /* large soft gradients band in PDF renderers */
.pm-print .slide { position: relative; display: block; width: 1280px; height: 720px; page-break-after: always; break-after: page; padding: 56px 80px; animation: none; }
.pm-print .slide:has(> .slide-in--split) { padding: 48px 48px; }
.pm-print .slide-in--title .s-title { font-size: 5.6rem; }
.pm-print .s-title { font-size: 2.8rem; }
.pm-print .s-lede { font-size: 1.2rem; }
.pm-print .s-full { font-size: 1rem; }
.pm-print .slide-in--split { grid-template-columns: minmax(18rem, 4fr) minmax(0, 9fr); }
.pm-print .slide-in--split .s-title { font-size: 2.1rem; }
.pm-print .slide-in--split .s-lede { font-size: 1.02rem; }
.pm-print .slide-in--split .s-full { font-size: 0.88rem; }
.pm-print .s-shot img { max-height: 560px; }
.pm-print .s-shot--portrait img { max-height: 560px; }
.pm-print .s-steps { gap: 14px; }
.pm-print .s-step b { font-size: 1.25rem; }
.pm-print .s-step span { font-size: 0.92rem; }
.pm-print .s-item { font-size: 1.15rem; }
.pm-print .s-modules li { font-size: 0.92rem; }
.pm-print .slide-in--closing .s-title { font-size: 4.4rem; }
@page { size: 1280px 720px; margin: 0; }
@media print {
  html, body { background: var(--bg); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
