/* firstrun.css — PF-23 v1 first-run experience
   PM-554 · scrim + spotlight cutout + slide/tour UI
   All z-index above 9998 (nav is 9000, modals typical 1000) */

/* ── Slide overlay (Part 1) ─────────────────────────────────── */
#fr-slides {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #0a2424;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding-top: max(env(safe-area-inset-top, 0px), 60px);
  padding-bottom: max(env(safe-area-inset-bottom, 0px), 32px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  -webkit-user-select: none;
  user-select: none;
}

#fr-slides.fr-hidden { display: none; }

.fr-slide-area {
  flex: 1;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  text-align: center;
}

.fr-slide { display: none; }
.fr-slide.fr-active { display: block; }

.fr-slide-icon {
  font-size: 56px;
  margin-bottom: 24px;
  line-height: 1;
}

.fr-slide-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  margin: 0 auto 24px;
  display: block;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.fr-slide-title {
  font-family:'DM Sans',system-ui,sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.3;
}

.fr-slide-body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 17px;
  color: rgba(255,255,255,0.82);
  line-height: 1.65;
  margin: 0;
}

/* Dot strip */
.fr-dots {
  display: flex;
  gap: 7px;
  margin: 16px 0 16px;
}

.fr-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transition: background 0.2s, transform 0.2s;
}

.fr-dot.fr-dot-active {
  background: #4DAAAA;
  transform: scale(1.2);
}

/* Bottom controls */
.fr-slide-controls {
  width: 100%;
  max-width: 420px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fr-btn-primary {
  width: 100%;
  padding: 16px;
  background: #1B7878;
  color: #ffffff;
  border: none;
  border-radius: 14px;
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, transform 0.1s;
}

.fr-btn-primary:active { background: #156060; transform: scale(0.98); }

.fr-btn-skip {
  width: 100%;
  padding: 10px;
  background: transparent;
  color: rgba(255,255,255,0.45);
  border: none;
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* ── Spotlight overlay (Part 2) ─────────────────────────────── */
#fr-spotlight {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none; /* scrim only blocks via the card */
  -webkit-user-select: none;
  user-select: none;
}

#fr-spotlight.fr-hidden { display: none; }

/* Scrim = full viewport dark; cutout punched via box-shadow on #fr-cutout */
#fr-scrim {
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: auto; /* tapping scrim = advance */
}

#fr-cutout {
  position: absolute;
  border-radius: 10px;
  /* box-shadow set by JS: 0 0 0 9999px rgba(13,43,43,0.88) */
  pointer-events: none;
  transition: top 0.3s ease, left 0.3s ease, width 0.3s ease, height 0.3s ease;
  z-index: 10001;
}

/* Tooltip card */
#fr-tooltip {
  position: absolute;
  left: 16px;
  right: 16px;
  background: #0D2B2B;
  border: 1px solid rgba(77,170,170,0.35);
  border-radius: 18px;
  padding: 20px 20px 16px;
  pointer-events: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  z-index: 10002;
  transition: bottom 0.3s ease, top 0.3s ease;
}

.fr-tooltip-step {
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #4DAAAA;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.fr-tooltip-body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 15px;
  color: rgba(255,255,255,0.88);
  line-height: 1.55;
  margin-bottom: 16px;
}

.fr-tooltip-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fr-tooltip-dots {
  display: flex;
  gap: 5px;
}

.fr-tooltip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
}

.fr-tooltip-dot.fr-dot-active { background: #4DAAAA; }

.fr-tooltip-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.fr-tskip {
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  background: none;
  border: none;
  padding: 6px 4px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.fr-tnext {
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: #1B7878;
  border: none;
  border-radius: 10px;
  padding: 9px 18px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, transform 0.1s;
}

.fr-tnext:active { background: #156060; transform: scale(0.97); }

/* Suppress web tells per §23.59 */
#fr-slides *, #fr-spotlight * {
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
