/* ============================================================================
   RING — presentation deck styles. Full-screen slides for a meeting/projector.
   Built on theme.css tokens.
   ============================================================================ */
html, body { height: 100%; margin: 0; overflow: hidden; background: var(--surface); font-family: var(--font); color: var(--text); }
* { box-sizing: border-box; }

#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: translateX(40px);
  transition: opacity 360ms var(--ease), transform 360ms var(--ease), visibility 360ms;
  background: var(--surface);
}
.slide.is-active { opacity: 1; visibility: visible; transform: none; z-index: 2; }
.slide.is-prev { transform: translateX(-40px); }
@media (prefers-reduced-motion: reduce) { .slide { transition: opacity 120ms; transform: none; } }

.slide__inner { width: 100%; max-width: 1120px; }

/* shared type */
.slide .kick {
  text-transform: uppercase; letter-spacing: 0.12em; font-weight: 800;
  font-size: clamp(0.75rem, 1.3vw, 0.95rem); color: var(--accent); margin-bottom: 0.6em;
}
.slide h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 0.4em; }
.slide h2 { font-size: clamp(1.8rem, 4.6vw, 3.1rem); line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 0.5em; }
.slide .lead { font-size: clamp(1.1rem, 2.3vw, 1.65rem); line-height: 1.5; color: var(--text-muted); margin: 0; max-width: 30ch; }
.s-statement .lead, .s-feature .lead { max-width: 46ch; }

/* title + close — brand gradient, centered, white */
.s-title, .s-close { background: var(--hero-gradient); color: #fff; text-align: center; }
.s-title .slide__inner, .s-close .slide__inner { text-align: center; margin: 0 auto; }
.s-title .kick, .s-close .kick { color: var(--text-on-accent-muted); }
.s-title h1, .s-close h1 { color: #fff; max-width: 18ch; margin-left: auto; margin-right: auto; }
.s-title .lead, .s-close .lead { color: var(--text-on-accent-muted); max-width: 40ch; margin: 0 auto; }
.brandline { margin-top: 2em; font-weight: 800; letter-spacing: 0.04em; font-size: 1.1rem; color: #fff; }
.brandline span { color: var(--text-on-accent-muted); font-weight: 600; }
.s-close .cta {
  display: inline-block; margin-top: 1.4em; background: #fff; color: var(--accent-deep);
  font-weight: 700; padding: 14px 28px; border-radius: var(--radius-control); text-decoration: none; font-size: 1.05rem;
}
.s-close .url { margin-top: 1.2em; color: var(--text-on-accent-muted); font-family: var(--font-mono); letter-spacing: 0.04em; }

/* statement slide — big, left */
.s-statement h2 { max-width: 22ch; }

/* owner outcomes list */
.bigly { list-style: none; margin: 0.4em 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.6em 2em; }
.bigly li { display: flex; align-items: center; gap: 0.6em; font-size: clamp(1.05rem, 2vw, 1.5rem); font-weight: 600; padding: 0.25em 0; }
.bigly .ic { font-size: 1.5em; line-height: 1; }
@media (max-width: 820px) { .bigly { grid-template-columns: 1fr; } }

/* KPIs */
.kgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 28px); margin-top: 0.4em; }
.k { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card); padding: clamp(14px, 1.6vw, 22px); box-shadow: var(--shadow-card); }
.kv { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 800; color: var(--accent-deep); letter-spacing: -0.01em; line-height: 1; }
.kl { margin-top: 0.5em; color: var(--text-muted); font-size: clamp(0.8rem, 1.2vw, 1rem); line-height: 1.35; }
@media (max-width: 820px) { .kgrid { grid-template-columns: 1fr; } }

/* feature contrast */
.vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: clamp(10px, 1.6vw, 22px); margin-top: 1.2em; }
.vs-old, .vs-new { border-radius: var(--radius-card); padding: clamp(14px, 1.6vw, 22px); font-size: clamp(0.95rem, 1.5vw, 1.2rem); line-height: 1.4; }
.vs-old { background: var(--card-inset); color: var(--text-faint); }
.vs-new { background: var(--accent-soft); color: var(--text); border: 1px solid var(--accent); }
.vs-old span, .vs-new span { display: block; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.7em; font-weight: 800; margin-bottom: 0.5em; }
.vs-old span { color: var(--text-faint); }
.vs-new span { color: var(--accent-deep); }
.vs-arrow { display: flex; align-items: center; font-size: clamp(1.4rem, 3vw, 2.4rem); color: var(--accent); font-weight: 700; }
@media (max-width: 820px) { .vs { grid-template-columns: 1fr; } .vs-arrow { justify-content: center; transform: rotate(90deg); } }

/* comparison table */
.ctab { width: 100%; border-collapse: collapse; margin-top: 0.5em; }
.ctab th { text-align: left; width: 20%; padding: 0.4em 0.9em 0.4em 0; font-size: clamp(0.78rem, 1.15vw, 0.98rem); color: var(--text-muted); vertical-align: top; }
.ctab td { padding: 0.4em 0.7em; font-size: clamp(0.78rem, 1.15vw, 0.98rem); line-height: 1.35; vertical-align: top; border-bottom: 1px solid var(--border); }
.ctab td.old { color: var(--text-faint); width: 33%; }
.ctab td.new { color: var(--text); background: var(--accent-soft); width: 45%; border-radius: 6px; }

/* chrome: progress + nav + hints */
.deck__chrome { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; align-items: center; gap: 14px; padding: 10px 18px; }
.deck__bar { position: fixed; top: 0; left: 0; right: 0; height: 4px; background: rgba(37,99,235,0.12); }
.deck__bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 360ms var(--ease); }
.deck__count { font-size: 0.85rem; color: var(--text-muted); font-variant-numeric: tabular-nums; min-width: 64px; text-align: center; }
.deck__nav { background: #fff; border: 1px solid var(--border-strong); color: var(--text-muted); width: 40px; height: 40px; border-radius: 50%; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.deck__nav:hover { border-color: var(--accent); color: var(--accent); }
.deck__hint { margin-left: auto; font-size: 0.78rem; color: var(--text-faint); }
.deck__exit { font-size: 0.82rem; color: var(--text-muted); text-decoration: none; font-weight: 600; }
.deck__exit:hover { color: var(--danger); }
/* on the gradient slides, lighten the floating count/hint for legibility */
.slide.s-title.is-active ~ .deck__chrome .deck__hint,
.slide.s-close.is-active ~ .deck__chrome .deck__hint { color: var(--text-faint); }

/* ---- status badges in the deck ----------------------------------------- */
.b { display: inline-block; font-size: 0.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 7px; border-radius: 999px; vertical-align: middle; }
.b-shipped { background: var(--success-soft); color: var(--success); }
.b-progress { background: var(--warn-soft); color: var(--warn); }
.b-roadmap { background: var(--info-soft); color: var(--info); }

/* ---- deep "what we did" slide (scannable) ------------------------------ */
.s-deep .slide__inner { max-width: 1020px; }
.s-deep h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.1; margin-bottom: 0.3em; }
.deep-lead { font-size: clamp(1.05rem, 1.7vw, 1.5rem); line-height: 1.45; color: var(--text); max-width: 46ch; margin: 0 0 1em; }
.ba { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: clamp(10px, 1.4vw, 20px); margin-bottom: 0.9em; }
.ba-x { border-radius: var(--radius-card); padding: clamp(12px, 1.4vw, 18px); font-size: clamp(0.92rem, 1.25vw, 1.12rem); line-height: 1.4; }
.ba-x span { display: block; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.64rem; font-weight: 800; margin-bottom: 0.5em; }
.ba-before { background: var(--card-inset); color: var(--text-faint); }
.ba-before span { color: var(--text-faint); }
.ba-after { background: var(--accent-soft); border: 1px solid var(--accent); color: var(--text); }
.ba-after span { color: var(--accent-deep); }
.ba-arrow { display: flex; align-items: center; color: var(--accent); font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 700; }
.deep-why { background: var(--success-soft); border-radius: var(--radius-card); padding: clamp(12px, 1.4vw, 18px); font-size: clamp(0.95rem, 1.3vw, 1.18rem); line-height: 1.4; color: var(--text); margin-bottom: 0.7em; }
.deep-why span { display: inline-block; text-transform: uppercase; letter-spacing: 0.07em; font-size: 0.64rem; font-weight: 800; color: var(--success); margin-right: 0.6em; }
.deep-how { font-size: clamp(0.82rem, 1.05vw, 0.98rem); color: var(--text-muted); line-height: 1.4; }
.deep-how span { text-transform: uppercase; letter-spacing: 0.07em; font-size: 0.6rem; font-weight: 800; color: var(--text-faint); margin-right: 0.6em; }
.ev { margin-top: 0.8em; font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-faint); }
.ev span { color: var(--accent); font-weight: 700; font-family: var(--font); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.6rem; margin-right: 4px; }
@media (max-width: 820px) { .ba { grid-template-columns: 1fr; } .ba-arrow { transform: rotate(90deg); justify-content: center; } }

/* ---- area divider ------------------------------------------------------ */
.s-divider { background: var(--hero-gradient); color: #fff; text-align: center; }
.s-divider .slide__inner { text-align: center; margin: 0 auto; }
.s-divider .kick { color: var(--text-on-accent-muted); }
.s-divider h1 { color: #fff; max-width: 20ch; margin: 0 auto; }
.s-divider .lead { color: var(--text-on-accent-muted); max-width: 52ch; margin: 0.6em auto 0; }
.s-divider .dcount { margin-top: 1.3em; display: inline-block; background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.32); border-radius: 999px; padding: 6px 16px; font-weight: 700; font-size: 0.95rem; }

/* ---- appendix list ----------------------------------------------------- */
.s-appendix h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
.alist { list-style: none; margin: 0.6em 0 0; padding: 0; columns: 2; column-gap: clamp(20px, 3vw, 48px); }
.alist li { break-inside: avoid; margin-bottom: 0.75em; font-size: clamp(0.85rem, 1.1vw, 1rem); }
.alist li span { display: block; color: var(--text-muted); font-size: 0.92em; margin-top: 2px; }
@media (max-width: 860px) { .alist { columns: 1; } }

/* ---- footnote slide ---------------------------------------------------- */
.s-footnote .slide__inner { max-width: 860px; }
.s-footnote .alist { columns: 1; margin-top: 0.5em; }

/* ---- agenda list ------------------------------------------------------- */
.agenda li { justify-content: flex-start; }
.agenda .anum { display: inline-flex; align-items: center; justify-content: center; min-width: 2.2em; height: 1.8em; background: var(--accent-soft); color: var(--accent-deep); border-radius: 8px; font-weight: 800; font-size: 0.8em; margin-right: 0.3em; }
.hintline { margin-top: 1.4em; color: var(--text-faint); font-size: 0.9rem; }
.hintline b { color: var(--accent); }

/* ---- jump menu overlay ------------------------------------------------- */
.jump { position: fixed; inset: 0; background: rgba(17,24,39,0.55); display: none; align-items: center; justify-content: center; z-index: 50; }
.jump.is-open { display: flex; }
.jump__box { background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-card-hover); padding: var(--space-xl); min-width: 360px; max-height: 80vh; overflow: auto; }
.jump__h { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); font-weight: 800; margin-bottom: var(--space-m); }
.jump ul { list-style: none; margin: 0; padding: 0; }
.jump li { padding: 10px 12px; border-radius: 8px; cursor: pointer; font-weight: 600; }
.jump li:hover { background: var(--accent-soft); color: var(--accent-deep); }

/* count is now a button */
.deck__count { background: none; border: none; cursor: pointer; font: inherit; }
.deck__count:hover { color: var(--accent); }
