/*
 * Styles for the web revenue + tutorial components:
 *   - UpgradeModal  (.rev-modal-*)
 *   - InfoPanel     (.rev-info-*)
 *   - Onboarding    (.rev-onb-*)
 *
 * All classes are namespaced with `rev-` so this file is safe to load
 * alongside the existing style.css without collisions.
 */

/* ============== shared tokens ============== */
.rev-modal-overlay,
.rev-info-overlay,
.rev-onb-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  background: rgba(0, 0, 0, 0.55);
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.rev-modal-overlay.open,
.rev-info-overlay.open,
.rev-onb-overlay.open { opacity: 1; }

/* ============== UpgradeModal ============== */
.rev-modal-overlay { align-items: flex-end; }
@media (min-width: 720px) { .rev-modal-overlay { align-items: center; } }
.rev-modal {
  background: #15171c;
  color: #fff;
  width: 100%;
  max-width: 460px;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  padding: 18px 20px 24px;
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.45);
  transform: translateY(20px);
  transition: transform 0.22s ease;
}
@media (min-width: 720px) {
  .rev-modal { border-radius: 18px; }
}
.rev-modal-overlay.open .rev-modal { transform: translateY(0); }

.rev-modal-row-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.rev-pro-pill { background: #4a90e2; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 1px; padding: 3px 10px; border-radius: 4px; }
.rev-close { background: none; border: 0; color: #888; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
.rev-close:hover { color: #ccc; }

.rev-modal-title { font-size: 22px; font-weight: 700; margin: 8px 0 6px; }
.rev-modal-body { color: #bbb; font-size: 14px; line-height: 1.4; margin: 0 0 18px; }

.rev-plan-row { display: flex; gap: 10px; margin-bottom: 16px; }
.rev-plan {
  flex: 1;
  border: 1.5px solid #2a2d35;
  border-radius: 10px;
  background: #1c1f25;
  color: inherit;
  padding: 14px 12px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.rev-plan:hover { border-color: #3a3d45; }
.rev-plan.active { border-color: #4a90e2; background: rgba(74, 144, 226, 0.10); }
.rev-plan-label { color: #aaa; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.rev-plan.active .rev-plan-label { color: #4a90e2; }
.rev-plan-price { color: #fff; font-size: 22px; font-weight: 700; }
.rev-plan-price span { font-size: 13px; font-weight: 500; color: #999; }
.rev-plan-sub { color: #888; font-size: 11px; margin-top: 3px; }

.rev-cta {
  display: block;
  width: 100%;
  background: #4a90e2;
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.rev-cta:hover { background: #5aa0f2; }

.rev-fineprint { color: #777; font-size: 11px; text-align: center; margin: 8px 0 12px; }
.rev-compare { display: block; color: #4a90e2; text-align: center; font-size: 13px; font-weight: 500; text-decoration: none; padding: 6px 0; }
.rev-compare:hover { text-decoration: underline; }
.rev-dismiss { display: block; width: 100%; background: none; border: 0; color: #777; padding: 12px 0 4px; font-size: 13px; cursor: pointer; }
.rev-dismiss:hover { color: #aaa; }

/* ============== InfoPanel ============== */
.rev-info-overlay { align-items: stretch; justify-content: stretch; background: rgba(0, 0, 0, 0.7); }
.rev-info-panel {
  /* moody radial: a faint glow up top fades into deep blue-black.
     Section view overrides --rev-info-accent so the glow tints. */
  --rev-info-accent: #4a90e2;
  background:
    radial-gradient(ellipse 120% 60% at 50% -10%,
                    color-mix(in srgb, var(--rev-info-accent) 18%, transparent) 0%,
                    transparent 60%),
    radial-gradient(ellipse 100% 70% at 50% 110%,
                    rgba(20, 30, 50, 0.55) 0%,
                    transparent 60%),
    linear-gradient(180deg, #0a0d12 0%, #0f1115 60%, #0a0d12 100%);
  color: #fff;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  transition: background 0.35s ease;
}
.rev-info-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px 14px;
  background: rgba(15, 17, 21, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.rev-info-topbar-right { display: flex; align-items: center; gap: 10px; }
.rev-info-view-toggle {
  display: inline-flex; border: 1px solid #23262d; border-radius: 8px; overflow: hidden;
}
.rev-info-view {
  background: #15171c; color: #888; border: 0;
  padding: 6px 12px; font-size: 16px; line-height: 1;
  cursor: pointer; transition: background 0.15s, color 0.15s;
}
.rev-info-view:hover { color: #ccc; }
.rev-info-view.active { background: #4a90e2; color: #fff; }
.rev-info-view + .rev-info-view { border-left: 1px solid #23262d; }
.rev-info-title { margin: 0; font-size: 18px; font-weight: 700; }
.rev-info-close { background: none; border: 0; color: #aaa; font-size: 28px; line-height: 1; cursor: pointer; }
.rev-info-close:hover { color: #fff; }

.rev-info-search { padding: 14px 18px 6px; }
.rev-info-search-input {
  width: 100%;
  box-sizing: border-box;
  background: #1c1f25;
  border: 1px solid #23262d;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  padding: 9px 12px;
  outline: none;
}
.rev-info-search-input:focus { border-color: #4a90e2; }

.rev-info-body { flex: 1; overflow-y: auto; padding: 6px 14px 24px; }

/* Tile grid for the section list (default view) */
.rev-info-tile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 10px 4px 18px;
}
.rev-info-tile {
  --tile-accent: #4a90e2;
  position: relative;
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--tile-accent) 10%, transparent) 0%,
      rgba(21, 23, 28, 0.85) 55%,
      rgba(15, 17, 21, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  color: inherit;
  text-align: left;
  min-height: 84px;
  overflow: hidden;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.rev-info-tile::before {
  /* thin accent stripe down the left edge */
  content: '';
  position: absolute;
  left: 0; top: 14%; bottom: 14%;
  width: 3px; border-radius: 3px;
  background: var(--tile-accent);
  opacity: 0.85;
}
.rev-info-tile:hover {
  border-color: color-mix(in srgb, var(--tile-accent) 60%, transparent);
  transform: translateY(-2px);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.45),
    0 0 0 1px color-mix(in srgb, var(--tile-accent) 30%, transparent);
}
.rev-info-tile-icon {
  font-size: 30px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--tile-accent) 55%, transparent));
}
.rev-info-tile-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rev-info-tile-label {
  color: color-mix(in srgb, var(--tile-accent) 35%, #fff);
  font-size: 14px; font-weight: 700; letter-spacing: 0.1px;
}
.rev-info-tile-sub   { color: #a8acb5; font-size: 12px; line-height: 1.4; }

/* List view (compact) */
.rev-info-section-row {
  display: flex; align-items: center; gap: 12px;
  width: 100%; background: none; border: 0; border-bottom: 1px solid #1c1f25;
  padding: 14px 8px; color: #fff; font-size: 15px; font-weight: 500;
  text-align: left; cursor: pointer;
}
.rev-info-section-row:hover { background: #15171c; }
.rev-info-section-row-icon { font-size: 20px; flex-shrink: 0; width: 28px; text-align: center; }
.rev-info-section-row-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.rev-info-section-row-label { color: #fff; font-size: 15px; font-weight: 600; }
.rev-info-section-row-sub   { color: #8b8f99; font-size: 12px; line-height: 1.35; }
.rev-info-section-chev { color: #666; font-size: 18px; }

/* Filter chips inside a section (Products: All / Channels / RGBs) */
.rev-info-filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 0 4px 14px;
}
.rev-info-filter {
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08);
  color: #b8bcc5; padding: 6px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.rev-info-filter:hover { color: #fff; border-color: rgba(255, 255, 255, 0.18); }
.rev-info-filter.active {
  background: var(--rev-info-accent, #4a90e2);
  color: #0a0d12;
  border-color: var(--rev-info-accent, #4a90e2);
  font-weight: 700;
}

/* Show-notes button on annotated images */
.rev-info-annotate-btn {
  background: #2a2d35; color: #ddd; border: 0;
  padding: 6px 12px; border-radius: 6px;
  font-size: 12px; font-weight: 500; cursor: pointer;
  margin-bottom: 10px;
}
.rev-info-annotate-btn:hover { background: #3a3d45; color: #fff; }

/* Action button (used by guided tour launcher etc.) */
.rev-info-action {
  display: inline-block;
  margin-top: 12px;
  background: var(--rev-info-accent, #4a90e2);
  color: #0a0d12; border: 0;
  padding: 10px 18px; border-radius: 8px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  transition: filter 0.15s, transform 0.15s;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--rev-info-accent, #4a90e2) 35%, transparent);
}
.rev-info-action:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* ============== Guided Tour (live page overlay) ============== */
.rev-tour-live-overlay {
  position: fixed; inset: 0; z-index: 10000;
  display: none; opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: auto;
}
.rev-tour-live-overlay.open { opacity: 1; }

/* Light shade dims the page so dots pop without hiding what they point at. */
.rev-tour-live-shade {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.28);
}

/* Floating pill positioned just BELOW the page topbar (which is ~50px
   tall), centered horizontally over the map area. This keeps it clear of
   every clickable button on the page — the topbar logo on the left and
   the icon cluster on the right both sit above us. */
.rev-tour-live-topbar {
  position: absolute;
  top: 58px; left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex; align-items: center; gap: 12px;
  padding: 8px 14px;
  max-width: calc(100vw - 40px);
  background: rgba(15, 17, 21, 0.95);
  border: 1px solid #23262d;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.rev-tour-live-title { display: flex; flex-direction: column; gap: 2px; color: #fff; }
.rev-tour-live-title strong { font-size: 15px; font-weight: 700; }
.rev-tour-live-sub { font-size: 12px; color: #8b8f99; }
.rev-tour-live-actions { display: flex; align-items: center; gap: 10px; }
.rev-tour-live-progress {
  background: #1c1f25; color: #aaa;
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
}
.rev-tour-live-reset {
  background: none; border: 1px solid #23262d;
  color: #aaa; font-size: 12px; padding: 5px 10px;
  border-radius: 6px; cursor: pointer;
}
.rev-tour-live-reset:hover { color: #fff; border-color: #3a3d45; }
.rev-tour-live-close {
  background: #4a90e2; color: #fff; border: 0;
  padding: 7px 14px; border-radius: 6px;
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.rev-tour-live-close:hover { background: #5aa0f2; }

/* Container the dots are absolutely positioned within */
.rev-tour-live-dots { position: absolute; inset: 0; pointer-events: none; }

.rev-tour-live-dot {
  position: absolute;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(74, 144, 226, 0.95);
  border: 2px solid #fff;
  color: #fff;
  font-size: 12px; font-weight: 700;
  cursor: pointer;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  box-shadow: 0 0 0 0 rgba(74, 144, 226, 0.55), 0 2px 8px rgba(0, 0, 0, 0.75);
  animation: rev-tour-live-pulse 2.4s infinite;
  padding: 0;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.12s, background 0.15s;
  z-index: 3;
}
.rev-tour-live-dot:hover {
  background: #5aa0f2;
  transform: translate(-50%, -50%) scale(1.2);
  z-index: 4;
}
.rev-tour-live-dot.active {
  background: #f5a623;
  animation: none;
  transform: translate(-50%, -50%) scale(1.2);
  z-index: 5;
}
.rev-tour-live-dot.visited {
  background: rgba(120, 200, 120, 0.85);
  animation: none;
}
.rev-tour-live-dot.visited.active { background: #f5a623; }
.rev-tour-live-num { line-height: 1; }

@keyframes rev-tour-live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74, 144, 226, 0.55), 0 2px 8px rgba(0, 0, 0, 0.75); }
  70%  { box-shadow: 0 0 0 12px rgba(74, 144, 226, 0),    0 2px 8px rgba(0, 0, 0, 0.75); }
  100% { box-shadow: 0 0 0 0 rgba(74, 144, 226, 0),       0 2px 8px rgba(0, 0, 0, 0.75); }
}

.rev-tour-live-callout {
  position: fixed;
  max-width: 280px;
  min-width: 200px;
  background: #1c1f25;
  border: 1px solid #4a90e2;
  border-radius: 10px;
  padding: 12px 14px;
  color: #fff;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.8);
  z-index: 6;
  pointer-events: auto;
  cursor: pointer;
}
.rev-tour-live-callout:hover { border-color: #5aa0f2; }
.rev-tour-live-callout-title { font-size: 13px; font-weight: 700; margin-bottom: 6px; color: #fff; }
.rev-tour-live-callout-body  { font-size: 12.5px; line-height: 1.45; color: #ccc; }
.rev-tour-live-callout-arrow {
  position: absolute;
  width: 12px; height: 12px;
  background: #1c1f25;
  border-left: 1px solid #4a90e2;
  border-top: 1px solid #4a90e2;
  margin-top: -6px;
  margin-left: -6px;
}
.rev-tour-live-callout[data-side="right"] .rev-tour-live-callout-arrow {
  left: -7px; margin-left: 0; transform: rotate(-45deg);
}
.rev-tour-live-callout[data-side="left"] .rev-tour-live-callout-arrow {
  right: -7px; margin-left: 0; transform: rotate(135deg);
}
.rev-tour-live-callout[data-side="bottom"] .rev-tour-live-callout-arrow {
  top: -7px; margin-top: 0; transform: rotate(45deg);
}
.rev-tour-live-callout[data-side="top"] .rev-tour-live-callout-arrow {
  bottom: -7px; margin-top: 0; transform: rotate(-135deg);
}

@media (max-width: 900px) {
  .rev-tour-live-dot { width: 22px; height: 22px; font-size: 11px; }
  .rev-tour-live-callout { max-width: 240px; font-size: 12px; }
  .rev-tour-live-title strong { font-size: 13px; }
  .rev-tour-live-sub { display: none; }
}

/* Legacy header (search results may still surface it) */
.rev-info-detail-header {
  display: flex; align-items: center; padding: 6px 4px 12px; gap: 12px;
}
.rev-info-detail-header h3 { margin: 0; font-size: 18px; font-weight: 700; }
.rev-info-back {
  background: rgba(10, 13, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 999px;
  align-self: flex-start;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.rev-info-back:hover {
  background: rgba(10, 13, 18, 0.9);
  border-color: var(--rev-info-accent, #4a90e2);
  color: var(--rev-info-accent, #4a90e2);
  transform: translateX(-2px);
}

/* ====== Chapter-style section detail ====== */

/* Full-width hero with optional satellite-image backdrop. Bleeds out of
   the .rev-info-body padding via negative margin. */
.rev-info-chapter-hero {
  position: relative;
  margin: -6px -14px 0;
  padding: 18px 28px 32px;
  min-height: 220px;
  display: flex; flex-direction: column; justify-content: flex-end;
  /* Fallback (no image): radial gradient tinted by the section accent. */
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%,
      color-mix(in srgb, var(--rev-info-accent, #4a90e2) 22%, transparent) 0%,
      transparent 65%),
    linear-gradient(180deg, #0d1018 0%, #0a0d12 100%);
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.rev-info-chapter-hero.has-image {
  /* When a section.hero image is set, info-panel.js injects a
     background-image with a darkening gradient on top of the photo. */
  background-size: cover;
  background-position: center;
}
.rev-info-chapter-hero .rev-info-back {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
}
.rev-info-chapter-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}
.rev-info-chapter-eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--rev-info-accent, #4a90e2) 80%, #fff);
  margin: 0 0 12px;
}
.rev-info-chapter-title {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.02;
  letter-spacing: -1px;
  margin: 0;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7);
}
.rev-info-chapter-sub {
  margin: 10px 0 0;
  font-size: 14px;
  color: #d0d4dc;
  line-height: 1.45;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.rev-info-chapter-body {
  max-width: 640px;
  margin: 0 auto;
  padding: 36px 6px 16px;
}
.rev-info-chapter-tagline {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 19px;
  line-height: 1.5;
  color: color-mix(in srgb, var(--rev-info-accent, #4a90e2) 45%, #d8dce5);
  margin: 0 0 32px;
  text-align: center;
  padding: 0 16px;
}
.rev-info-chapter-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--rev-info-accent, #4a90e2);
  color: #0a0d12;
  padding: 14px 28px;
  border: 0; border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 700; font-size: 15px;
  cursor: pointer;
  margin: 32px 0 8px;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--rev-info-accent, #4a90e2) 35%, transparent);
  transition: transform 0.15s, filter 0.15s, box-shadow 0.15s;
}
.rev-info-chapter-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 14px 32px color-mix(in srgb, var(--rev-info-accent, #4a90e2) 50%, transparent);
}
.rev-info-chapter-cta-arrow { font-size: 17px; line-height: 1; }

/* In chapter mode the filter chips sit centered between tagline and cards. */
.rev-info-chapter-body .rev-info-filters {
  justify-content: center;
  padding: 0 0 22px;
}

/* Paragraph-flow cards — no box, no border, no background. Each entry is
   an h3 + media + p in a single column. A faded divider appears between
   entries as a visual breather. */
.rev-info-card {
  position: relative;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
.rev-info-card + .rev-info-card {
  margin-top: 6px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.rev-info-card h3 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.2px;
  margin: 0 0 10px;
  color: #fff;
}
.rev-info-card img {
  width: 100%; height: auto; object-fit: contain;
  border-radius: 8px; margin: 6px 0 14px;
  background: #0c0e12;
  display: block;
}
.rev-info-video {
  width: 100%; height: auto; object-fit: contain;
  border-radius: 8px; margin: 6px 0 14px;
  background: #0c0e12;
  display: block;
}
/* The how-to videos are screen recordings of a dense UI. On a wide enough
   window let them break out past the 640px reading column so the controls
   are actually legible. Gated to >=1040px so the panel is at full width and
   the breakout can't overflow the 980px panel. */
@media (min-width: 1040px) {
  .rev-info-video {
    width: calc(100% + 200px);
    margin-left: -100px;
    margin-right: -100px;
  }
}
.rev-info-card p {
  color: #cdd2dc;
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
}
.rev-info-card-body {
  color: #cdd2dc;
  font-size: 16px;
  line-height: 1.65;
}
.rev-info-card-body p { margin: 0 0 10px; }
.rev-info-card-body p:last-child { margin-bottom: 0; }

.rev-info-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}
.rev-info-bullets li {
  position: relative;
  padding: 0 0 0 22px;
  margin: 0 0 14px;
  color: #cdd2dc;
}
.rev-info-bullets li:last-child { margin-bottom: 0; }
.rev-info-bullets li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rev-info-accent, #4a90e2);
}

.rev-info-disclosure {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
}
.rev-info-disclosure summary {
  cursor: pointer;
  color: #fff;
  font-weight: 500;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.rev-info-disclosure summary::-webkit-details-marker { display: none; }
.rev-info-disclosure summary::before {
  content: '▸';
  display: inline-block;
  transition: transform 160ms ease;
  color: var(--rev-info-accent, #4a90e2);
  font-size: 12px;
}
.rev-info-disclosure[open] summary::before { transform: rotate(90deg); }
.rev-info-disclosure p {
  margin: 12px 0 0;
  color: #cdd2dc;
}

.rev-info-kbd-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 18px;
  row-gap: 10px;
  margin: 0;
  align-items: center;
}
.rev-info-kbd-list dt {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-self: start;
}
.rev-info-kbd-list dd {
  margin: 0;
  color: #cdd2dc;
  font-size: 15px;
  line-height: 1.5;
}
.rev-info-kbd-list kbd {
  display: inline-block;
  min-width: 22px;
  text-align: center;
  padding: 2px 8px;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: color-mix(in srgb, var(--rev-info-accent, #4a90e2) 18%, #1a1d22 82%);
  border: 1px solid color-mix(in srgb, var(--rev-info-accent, #4a90e2) 35%, #2a2e36 65%);
  border-bottom-width: 2px;
  border-radius: 5px;
  line-height: 1.4;
}

/* Cards stack with breathing room; the divider lives on each card after
   the first via the + selector above, so no per-card margin needed here. */
.rev-info-cards {
  display: block;
}

.rev-info-empty { color: #888; text-align: center; margin: 40px 12px; font-size: 14px; }

.rev-info-result {
  display: block; width: 100%; background: #15171c; border: 1px solid #23262d;
  border-radius: 8px; padding: 12px; margin-bottom: 8px; text-align: left;
  cursor: pointer; color: inherit;
}
.rev-info-result:hover { border-color: #3a3d45; }
.rev-info-result-section { color: #4a90e2; font-size: 11px; font-weight: 700; text-transform: uppercase; margin-bottom: 4px; letter-spacing: 0.5px; }
.rev-info-result-title { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.rev-info-result-body { color: #aaa; font-size: 12px; line-height: 1.4; }

/* ============== Onboarding ============== */
.rev-onb-overlay { align-items: stretch; justify-content: stretch; background: #0f1115; }
.rev-onb-panel {
  background: #0f1115;
  color: #fff;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.rev-onb-topbar { display: flex; justify-content: flex-end; padding: 18px 22px 0; min-height: 24px; }
.rev-onb-skip { background: none; border: 0; color: #888; font-size: 14px; cursor: pointer; padding: 8px; }
.rev-onb-skip:hover { color: #ccc; }

.rev-onb-content { flex: 1; overflow-y: auto; padding: 12px 28px 12px; }

.rev-onb-slide h2 { color: #fff; font-size: 22px; font-weight: 700; text-align: center; margin: 0 0 10px; }
.rev-onb-slide p { color: #aaa; font-size: 14px; line-height: 1.5; text-align: center; margin: 0 0 18px; }
.rev-onb-sub { color: #aaa; font-size: 14px; text-align: center; margin-bottom: 14px; }
.rev-onb-warn { color: #FFB74D !important; font-size: 13px !important; margin: -8px 0 14px !important; }

.rev-onb-learn-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 18px;
}
.rev-onb-learn {
  background: #15171c;
  border: 1px solid #23262d;
  border-radius: 12px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  color: inherit;
  min-height: 96px;
  transition: border-color 0.15s, background 0.15s;
}
.rev-onb-learn:hover { border-color: #3a3d45; background: #1a1d23; }
.rev-onb-learn-icon { font-size: 26px; }
.rev-onb-learn-text { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.rev-onb-learn-label { color: #fff; font-size: 13px; font-weight: 600; text-align: center; }
.rev-onb-learn-sub   { color: #8b8f99; font-size: 11px; line-height: 1.3; text-align: center; }

.rev-onb-hero {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background: #1c1f25;
  margin-bottom: 20px;
  position: relative;
}
.rev-onb-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Cycling hero — stacked images crossfade, captioned strip at the bottom. */
.rev-onb-hero-cycler { box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(74, 144, 226, 0.12); }
.rev-onb-hero-cycler::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 60px;
  background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0));
  pointer-events: none;
}
.rev-onb-hero-frame {
  position: absolute !important;
  inset: 0;
  width: 100% !important; height: 100% !important;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1100ms ease-in-out;
  will-change: opacity;
}
.rev-onb-hero-frame.active { opacity: 1; }
.rev-onb-hero-caption {
  position: absolute;
  left: 14px; right: 14px; bottom: 12px;
  color: #fff; font-size: 12px; font-weight: 500;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  z-index: 1;
}

.rev-onb-features { display: flex; flex-direction: column; gap: 6px; }
.rev-onb-feature {
  display: flex; align-items: center; gap: 12px;
  background: #15171c; padding: 10px 14px; border-radius: 8px;
  color: #ddd; font-size: 14px;
}
.rev-onb-feature-icon { font-size: 18px; width: 22px; text-align: center; }

.rev-onb-signin { text-align: center; }
.rev-onb-icon-circle {
  width: 84px; height: 84px; border-radius: 42px;
  background: rgba(74, 144, 226, 0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 38px; margin: 12px auto 16px;
}
.rev-onb-buttons { display: flex; flex-direction: column; gap: 10px; margin: 8px auto 16px; max-width: 320px; }
.rev-onb-btn { padding: 12px; border-radius: 8px; border: 0; font-size: 15px; font-weight: 600; cursor: pointer; }
.rev-onb-apple { background: #000; color: #fff; }
.rev-onb-google { background: #fff; color: #444; }
.rev-onb-email { background: #2a2d35; color: #fff; }
.rev-onb-skip-link { background: none; border: 0; color: #888; font-size: 13px; cursor: pointer; padding: 8px; text-align: center; display: block; margin: 0 auto; }
.rev-onb-skip-link:hover { color: #ccc; }

.rev-onb-tour { display: flex; flex-direction: column; gap: 4px; }
.rev-onb-tour-row { display: flex; gap: 12px; padding: 10px 6px; }
.rev-onb-tour-dot {
  width: 28px; height: 28px; border-radius: 14px;
  background: #4a90e2; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.rev-onb-tour-label { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.rev-onb-tour-body { color: #aaa; font-size: 13px; line-height: 1.4; }
.rev-onb-tip { color: #888; font-size: 12px; margin-top: 18px; text-align: center; }

.rev-onb-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  padding-bottom: max(32px, env(safe-area-inset-bottom, 32px));
  border-top: 1px solid #1c1f25;
  background: #0f1115;
}
.rev-onb-dots { display: flex; gap: 6px; }
.rev-onb-dot { width: 7px; height: 7px; border-radius: 4px; background: #2a2d35; transition: all 0.18s; }
.rev-onb-dot.active { background: #4a90e2; width: 20px; }
.rev-onb-next {
  background: #4a90e2; color: #fff; border: 0; border-radius: 8px;
  padding: 10px 18px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.rev-onb-next.done { padding: 10px 28px; font-weight: 700; }
.rev-onb-next:hover { background: #5aa0f2; }
.rev-onb-back {
  background: none; border: 0;
  color: #aaa; font-size: 14px; font-weight: 500;
  cursor: pointer; padding: 10px 12px;
  border-radius: 6px;
}
.rev-onb-back:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }

/* ============== Desktop / wide-screen onboarding polish ==============
   Slide 1 becomes a two-column hero+text layout; the whole panel grows
   so the imagery has real estate to breathe. */
@media (min-width: 900px) {
  .rev-onb-overlay {
    background: radial-gradient(ellipse at 50% 0%, rgba(74,144,226,0.10), #0b0d11 60%);
    padding: 32px 24px;
    align-items: center; justify-content: center;
  }
  .rev-onb-panel {
    max-width: 1040px;
    height: auto;
    max-height: calc(100vh - 64px);
    border-radius: 18px;
    border: 1px solid #20232b;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
    background: #11141a;
  }
  .rev-onb-content { padding: 18px 48px 24px; }
  .rev-onb-slide-1 h2 { font-size: 30px; text-align: left; margin: 0 0 18px; }
  .rev-onb-signin h2 { text-align: center; }
  .rev-onb-signin p { text-align: center; }
  .rev-onb-slide-1 {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    min-height: 460px;
  }
  .rev-onb-slide-1 .rev-onb-hero { margin-bottom: 0; aspect-ratio: 4 / 3; }
  .rev-onb-slide-1-text h2 { font-size: 32px; line-height: 1.15; }
  .rev-onb-feature { font-size: 15px; padding: 12px 16px; }
  .rev-onb-feature-icon { font-size: 22px; width: 26px; }

  /* Sign-in slide centered, with side margins */
  .rev-onb-signin { max-width: 460px; margin: 0 auto; padding: 24px 0; }

  /* Tour list reads as two columns on desktop */
  .rev-onb-tour-row { padding: 14px 4px; }
  .rev-onb-tour-label { font-size: 16px; }
  .rev-onb-tour-body  { font-size: 14px; }

  .rev-onb-learn-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 980px; margin: 18px auto 0; }
  .rev-onb-learn { min-height: 120px; padding: 18px 14px; }
  .rev-onb-learn-icon { font-size: 30px; }
  .rev-onb-learn-label { font-size: 13px; }
  .rev-onb-learn-sub   { font-size: 11px; }

  .rev-onb-footer { padding: 16px 36px; }

  /* InfoPanel desktop polish — 4-wide tile grid, larger media */
  .rev-info-tile-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 14px 6px 22px; }
  .rev-info-tile { min-height: 92px; padding: 18px 16px; }
  .rev-info-tile-icon { font-size: 32px; }
  .rev-info-tile-label { font-size: 15px; }
  .rev-info-tile-sub   { font-size: 12.5px; }
  .rev-info-body { padding: 6px 24px 28px; }
}
