/* ═══════════════════════════════════════════════════════
   TayzoPrompter - Follow Mode Cinematic Simulation
   Styles for the interactive keynote demo window
   ═══════════════════════════════════════════════════════ */

/* ── Hero Container ──────────────────────────────────── */
.sim-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 60px) 24px 60px;
  background: radial-gradient(circle at 50% 30%, rgba(var(--accent-blue-rgb), 0.08) 0%, transparent 60%);
  overflow: hidden;
}

.sim-hero-ambient {
  position: absolute;
  top: 30%;
  left: 50%;
  width: 1000px;
  height: 1000px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center,
    rgba(var(--accent-cyan-rgb), 0.05) 0%,
    rgba(var(--accent-blue-rgb), 0.03) 45%,
    transparent 70%
  );
  pointer-events: none;
  animation: ambient-drift 12s ease-in-out infinite alternate;
}

@keyframes ambient-drift {
  0% { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
  100% { transform: translate(-48%, -52%) rotate(15deg) scale(1.08); }
}

.sim-hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 800px;
  margin-bottom: 48px;
}

.sim-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 980px;
  border: 1px solid rgba(var(--accent-cyan-rgb), 0.25);
  background: rgba(var(--accent-cyan-rgb), 0.04);
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(var(--accent-cyan-rgb), 0.08);
}

.sim-hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: badge-pulse 1.5s ease-in-out infinite alternate;
}

@keyframes badge-pulse {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}

.sim-hero h1 {
  font-size: clamp(2.5rem, 6.5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.sim-hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.6;
  max-width: 580px;
  margin: 0 auto 36px;
}

/* ── Mobile Gate ─────────────────────────────────────── */
.mobile-gate {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--black);
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  flex-direction: column;
  gap: 20px;
}

.mobile-gate-icon {
  font-size: 3rem;
  margin-bottom: 8px;
}

.mobile-gate h2 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
}

.mobile-gate p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 380px;
}

@media (max-width: 900px) {
  .mobile-gate {
    display: flex;
  }
  .sim-hero, .section, .footer, .data-transparency {
    display: none !important;
  }
}

/* ── Teleprompter Window ─────────────────────────────── */
.prompter-window {
  width: 100%;
  max-width: 980px;
  background: #090b10;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 30px 70px rgba(0, 0, 0, 0.7),
    0 0 100px rgba(var(--accent-blue-rgb), 0.05);
  position: relative;
  z-index: 5;
}

.prompter-chrome {
  background: rgba(14, 16, 24, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chrome-dots {
  display: flex;
  gap: 8px;
  width: 60px;
}

.chrome-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.chrome-dot.red { background: #ff5f56; }
.chrome-dot.yellow { background: #ffbd2e; }
.chrome-dot.green { background: #27c93f; }

.chrome-title {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  font-family: var(--font-body);
}

.chrome-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.chrome-status-pill {
  font-family: var(--font-title);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(var(--accent-cyan-rgb), 0.08);
  border: 1px solid rgba(var(--accent-cyan-rgb), 0.2);
  padding: 3px 10px;
  border-radius: 980px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chrome-status-pill .pulse-indicator {
  width: 5px;
  height: 5px;
  background: var(--accent-cyan);
  border-radius: 50%;
  animation: cursor-pulse 0.8s ease-in-out infinite alternate;
}

/* ── Viewport Area ───────────────────────────────────── */
.prompter-viewport {
  height: 380px;
  position: relative;
  background: #040507;
  overflow: hidden;
}

/* Reading anchor overlay lines */
/* Reading anchor overlay exactly matching rp002 */
.focus-arrow {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%) scale(1.0);
  transform-origin: left center;
  z-index: 10;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  opacity: 0.85;
}

.focus-arrow .arrow-svg {
  display: block;
}

.guide-line {
  position: absolute;
  left: 48px;
  right: 48px;
  top: 50%;
  border-top: 1.5px dashed rgba(var(--accent-cyan-rgb), 0.35);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 9;
}

.prompter-canvas {
  padding: 140px 48px; /* Top/bottom padding accommodates scroll center */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transform: translate3d(0, 0, 0);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.prompter-text {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 2.5rem;
  line-height: 1.5;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

/* Word States */
.prompter-text .pw {
  display: inline-block;
  color: rgba(255, 255, 255, 0.85); /* Default upcoming */
  transition: transform 0.4s var(--ease-out);
  padding: 0 4px;
}

.prompter-text .ch {
  display: inline-block;
  transition: none;
  line-height: normal;
}

/* Dimmed already read */
.prompter-text .pw.read {
  color: rgba(255, 255, 255, 0.18);
}

/* Active Spoken Word */
.prompter-text .pw.active {
  color: var(--accent-cyan);
  text-shadow: 0 0 16px rgba(var(--accent-cyan-rgb), 0.46), 0 0 32px rgba(var(--accent-cyan-rgb), 0.14);
  transform: scale(1.05);
}

/* Jump / skipped word purple alignment pulse */
.prompter-text .pw.jump-pulse {
  animation: purple-pulse-glow 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes purple-pulse-glow {
  0% {
    color: #7f9ff0;
    text-shadow: 0 0 20px rgba(97, 139, 237, 0.5), 0 0 40px rgba(97, 139, 237, 0.2);
    transform: scale(1.1);
  }
  30% {
    color: #92c9f4;
    text-shadow: 0 0 15px rgba(var(--accent-cyan-rgb), 0.32);
  }
  100% {
    color: var(--accent-cyan);
    text-shadow: 0 0 16px rgba(var(--accent-cyan-rgb), 0.4);
    transform: scale(1.05);
  }
}

/* ── Voice Waveform Overlay ──────────────────────────── */
.prompter-overlay-footer {
  background: rgba(14, 16, 24, 0.95);
  border-top: 1px solid var(--border-subtle);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.voice-status {
  display: flex;
  align-items: center;
  gap: 12px;
}

.voice-indicator-ring {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px rgba(var(--accent-cyan-rgb), 0.4);
  position: relative;
}

.voice-indicator-ring::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent-cyan);
  animation: ring-ripple 1.5s ease-out infinite;
}

@keyframes ring-ripple {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}

.voice-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

.waveform-container {
  width: 160px;
  height: 24px;
  display: flex;
  align-items: center;
}

.waveform-svg {
  width: 100%;
  height: 100%;
}

.waveform-path {
  fill: none;
  stroke: var(--accent-cyan);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s ease;
}

.waveform-path.flat {
  stroke: var(--text-tertiary);
}

.waveform-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-tertiary);
}

/* -- Refined keynote presentation ---------------------- */
.sim-hero {
  min-height: 100vh;
  justify-content: flex-start;
  padding: calc(var(--nav-height) + 68px) 24px 76px;
  background:
    radial-gradient(ellipse 54% 34% at 50% 18%, rgba(52, 99, 164, 0.18), transparent 76%),
    radial-gradient(ellipse 66% 40% at 50% 72%, rgba(18, 39, 70, 0.26), transparent 75%);
}

.sim-hero-ambient {
  width: min(1050px, 94vw);
  height: min(870px, 90vw);
  top: 33%;
  opacity: 0.75;
  background: radial-gradient(ellipse at center,
    rgba(var(--accent-cyan-rgb), 0.075) 0%,
    rgba(var(--accent-blue-rgb), 0.055) 40%,
    transparent 70%
  );
  animation-duration: 18s;
}

.sim-hero-content {
  max-width: 840px;
  margin-bottom: 56px;
}

.sim-hero-badge {
  gap: 10px;
  padding: 7px 16px;
  margin-bottom: 29px;
  border-color: rgba(var(--accent-cyan-rgb), 0.21);
  background: rgba(var(--accent-cyan-rgb), 0.045);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  color: #93ccf7;
  box-shadow:
    inset 0 1px 0 rgba(221, 239, 255, 0.05),
    0 12px 29px rgba(29, 67, 112, 0.14);
}

.sim-hero-badge-dot {
  background: #8ccaf8;
  box-shadow: 0 0 12px rgba(var(--accent-cyan-rgb), 0.46);
}

.sim-hero h1 {
  font-size: clamp(2.8rem, 6.45vw, 4.85rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.066em;
  margin-bottom: 25px;
}

.sim-hero-sub {
  max-width: 630px;
  margin-bottom: 38px;
  font-size: clamp(1rem, 2vw, 1.14rem);
  line-height: 1.72;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.mobile-gate {
  background:
    radial-gradient(ellipse 70% 35% at 50% 28%, rgba(48, 98, 158, 0.16), transparent),
    var(--black);
  gap: 18px;
}

.mobile-gate-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
  border-radius: 18px;
  border: 1px solid rgba(var(--accent-cyan-rgb), 0.2);
  color: #93ccf7;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(var(--accent-cyan-rgb), 0.05);
}

.mobile-gate-icon .line-icon {
  width: 29px;
  height: 29px;
}

.mobile-gate h2 {
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.045em;
}

.mobile-gate p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.prompter-window {
  max-width: 1010px;
  border-radius: 22px;
  border-color: rgba(145, 177, 213, 0.16);
  background: #070a10;
  box-shadow:
    0 0 0 1px rgba(236, 245, 255, 0.025),
    0 42px 90px rgba(0, 0, 0, 0.54),
    0 25px 90px rgba(24, 56, 98, 0.2);
}

.prompter-chrome,
.prompter-overlay-footer {
  background: rgba(11, 15, 23, 0.94);
  border-color: rgba(145, 177, 213, 0.11);
}

.prompter-chrome {
  padding: 15px 20px;
}

.chrome-dot {
  width: 10px;
  height: 10px;
  opacity: 0.74;
}

.chrome-title {
  color: #7a879a;
  letter-spacing: 0.015em;
}

.chrome-status-pill {
  font-family: var(--font-body);
  font-weight: 600;
  color: #8ec9f7;
  background: rgba(var(--accent-cyan-rgb), 0.05);
  border-color: rgba(var(--accent-cyan-rgb), 0.18);
  letter-spacing: 0.13em;
  padding: 4px 10px;
}

.prompter-viewport {
  height: 392px;
  background:
    radial-gradient(ellipse 60% 45% at 50% 50%, rgba(32, 61, 98, 0.12), transparent),
    #04060a;
}

.focus-arrow {
  color: #87c8f8;
}

.guide-line {
  border-top-color: rgba(135, 200, 248, 0.35);
}

.prompter-text {
  font-weight: 500;
  letter-spacing: -0.035em;
  font-size: clamp(2rem, 3.2vw, 2.42rem);
}

.prompter-canvas {
  transition:
    transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.6s var(--ease-out);
}

.prompter-text .pw {
  color: rgba(237, 243, 250, 0.81);
}

.prompter-text .pw.read {
  color: rgba(188, 200, 215, 0.18);
}

.prompter-text .pw.active {
  color: #9ed6fd;
  text-shadow:
    0 0 20px rgba(var(--accent-cyan-rgb), 0.38),
    0 0 42px rgba(var(--accent-cyan-rgb), 0.11);
}

@keyframes purple-pulse-glow {
  0% {
    color: #7f9ff0;
    text-shadow: 0 0 24px rgba(97, 139, 237, 0.5);
    transform: scale(1.07);
  }
  30% {
    color: #92c9f4;
    text-shadow: 0 0 17px rgba(var(--accent-cyan-rgb), 0.35);
  }
  100% {
    color: #9ed6fd;
    text-shadow: 0 0 20px rgba(var(--accent-cyan-rgb), 0.36);
    transform: scale(1.04);
  }
}

.prompter-overlay-footer {
  padding: 14px 24px;
}

.voice-indicator-ring {
  width: 12px;
  height: 12px;
  background: #87c8f8;
  box-shadow: 0 0 12px rgba(var(--accent-cyan-rgb), 0.36);
}

.voice-indicator-ring::after {
  border-color: rgba(var(--accent-cyan-rgb), 0.65);
}

.voice-label {
  color: #8b98aa;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.waveform-path {
  stroke: #87c8f8;
}

@media (max-width: 960px) {
  .hero-actions {
    flex-wrap: wrap;
  }
}

/* Custom Exclamation Point & Hero Header nowrap spacing */
@media (min-width: 900px) {
  .sim-hero-content {
    max-width: 1050px !important;
  }
  .sim-hero h1 {
    white-space: nowrap;
  }
}

.cool-excl-svg {
  filter: drop-shadow(0 0 6px rgba(91, 127, 255, 0.4));
  transform-origin: 50% 85%;
  transform: rotate(8deg) scale(1);
  animation: excl-bounce 1.2s cubic-bezier(0.25, 1, 0.5, 1) 2s 1 forwards;
}

@keyframes excl-bounce {
  0% {
    transform: rotate(8deg) scale(1);
    filter: drop-shadow(0 0 6px rgba(91, 127, 255, 0.4)) drop-shadow(0 0 10px rgba(140, 202, 248, 0.2));
  }
  50% {
    transform: rotate(15deg) scale(1.18);
    filter: drop-shadow(0 0 14px rgba(91, 127, 255, 0.7)) drop-shadow(0 0 25px rgba(140, 202, 248, 0.6));
  }
  100% {
    transform: rotate(8deg) scale(1);
    filter: drop-shadow(0 0 6px rgba(91, 127, 255, 0.4)) drop-shadow(0 0 10px rgba(140, 202, 248, 0.2));
  }
}

/* Image Chrome Styles for Real Toolbar Screenshot */
.prompter-chrome.image-chrome {
  padding: 0 !important;
  background: transparent !important;
  border-bottom: none !important;
  display: block !important;
  width: 100% !important;
  position: relative !important;
}

.chrome-screenshot-img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  pointer-events: none;
}

/* Adjust top border-radius of window wrapper to align with macOS native rounded corners */
#mac-prompter-mock {
  border-top-left-radius: 10px !important;
  border-top-right-radius: 10px !important;
}

/* Web VU Meter Overlay */
.web-vu-meter {
  position: absolute;
  left: 47.604%;   /* Matches start x=1371 on 2880 width */
  top: 44.93%;     /* Matches start y=102 on 227 height */
  width: 2.0833%;  /* Matches width 60px on 2880 width */
  height: 7.048%;  /* Matches height 16px on 227 height */
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  z-index: 10;
  pointer-events: none;
}

.web-vu-meter .vu-bar {
  flex: 0 0 6.666%; /* 4px out of 60px is 6.666% */
  height: 100%;
  border-radius: 1px;
  background-color: rgba(120, 120, 120, 0.25) !important; /* default inactive color (dim gray) */
  transition: background-color 0.05s ease;
}

/* Green bars: 0-4 (first 5 bars) */
.web-vu-meter .vu-bar.active:nth-child(1),
.web-vu-meter .vu-bar.active:nth-child(2),
.web-vu-meter .vu-bar.active:nth-child(3),
.web-vu-meter .vu-bar.active:nth-child(4),
.web-vu-meter .vu-bar.active:nth-child(5) {
  background-color: #33d94c !important; /* Green */
  box-shadow: 0 0 4px rgba(51, 217, 76, 0.4);
}

/* Yellow bars: 5-6 (next 2 bars) */
.web-vu-meter .vu-bar.active:nth-child(6),
.web-vu-meter .vu-bar.active:nth-child(7) {
  background-color: #ffd91a !important; /* Yellow */
  box-shadow: 0 0 4px rgba(255, 217, 26, 0.4);
}

/* Red bar: 7 (last bar) */
.web-vu-meter .vu-bar.active:nth-child(8) {
  background-color: #ff3326 !important; /* Red */
  box-shadow: 0 0 4px rgba(255, 51, 38, 0.4);
}
