/* ============================================
   LANDING PAGE STYLES - OnCue 2E Editorial
   ============================================ */

/* --------------------------------------------
   Base Reset
   -------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Libre Franklin', sans-serif;
  background: #f8f7f5;
  color: #1a1a1a;
  min-height: 100vh;
}

/* --------------------------------------------
   Page Visibility
   -------------------------------------------- */
.visible {
  display: block;
}

.hidden {
  display: none !important;
}

/* --------------------------------------------
   Frame Page (Editorial Landing)
   -------------------------------------------- */
#frame-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#frame-page header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 24px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: #f8f7f5;
}

.logo {
  font-family: 'Lora', serif;
  font-size: 20px;
  font-weight: 500;
}

.sign-in-link {
  color: #888;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.sign-in-link:hover {
  color: #1a1a1a;
}

/* Hero Section */
.hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  padding-top: 80px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 48px;
  padding-left: 10%;
  border-right: 1px solid #e8e6e1;
}

.hero h1 {
  font-family: 'Lora', serif;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

/* Preview Visual (Teleprompter look) */
.hero-visual {
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.preview-text {
  font-size: 28px;
  line-height: 1.8;
  text-align: left;
}

.preview-text .dim {
  color: #666;
}

.preview-text .highlight {
  color: #fff;
}

/* --------------------------------------------
   Buttons
   -------------------------------------------- */
.btn-primary {
  background: #1a1a1a;
  color: #fff;
  border: none;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-block;
}

.btn-primary:hover {
  background: #333;
}

/* CTA Bar buttons */
.btn-small-primary {
  background: #fff;
  color: #1a1a1a;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-small-primary:hover {
  background: #f0f0f0;
}

.btn-small-secondary {
  background: #333;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-small-secondary:hover {
  background: #444;
}

/* --------------------------------------------
   Teleprompter Page (Demo/Voice states)
   -------------------------------------------- */
#teleprompter-page {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0a0a0a;
  z-index: 50;
}

#teleprompter {
  height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

#script-display {
  flex: 1;
  padding: 20px 20%;
  overflow: hidden;
  font-family: 'Lexend Deca', sans-serif;
  line-height: 1.6;
  text-align: left;
  position: relative;
  font-size: 42px;
  color: #fff;
}

/* Line Structure (frozen line breaks) */
.script-line {
  white-space: nowrap;
}

/* Word Styling */
.word {
  display: inline;
  transition: color 0.2s ease;
  padding: 2px 4px;
}

.word.spoken {
  color: #444;
}

.word.current {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.word.upcoming {
  color: #ccc;
}

/* --------------------------------------------
   Floating CTA Bar
   -------------------------------------------- */
#cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  background: rgba(10, 10, 10, 0.95);
  border-top: 1px solid #222;
  z-index: 60;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#cta-bar.hidden {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}

#cta-bar.visible {
  opacity: 1;
  transform: translateY(0);
}

#demo-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #888;
}

#demo-status .status-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

#demo-status.listening {
  color: #4ade80;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* --------------------------------------------
   Overlays (Try, Convert)
   -------------------------------------------- */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  z-index: 100;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.overlay.visible {
  opacity: 1;
  visibility: visible;
}

.overlay-content {
  text-align: center;
  max-width: 420px;
  padding: 40px;
}

.overlay h2 {
  font-family: 'Lora', serif;
  font-size: 32px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.3;
}

.overlay .subtitle {
  font-size: 18px;
  color: #999;
  margin-bottom: 32px;
  line-height: 1.6;
}

.overlay .price-line {
  font-size: 18px;
  color: #999;
  margin-bottom: 32px;
}

.overlay .guarantee {
  font-size: 14px;
  color: #666;
  margin-top: 20px;
}

/* Overlay button styling */
.overlay .btn-primary {
  background: #fff;
  color: #1a1a1a;
  width: 100%;
  margin-bottom: 0;
}

.overlay .btn-primary:hover {
  background: #f0f0f0;
}

/* --------------------------------------------
   Responsive - Mobile
   -------------------------------------------- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    padding-top: 70px;
  }

  .hero-visual {
    order: -1;
    min-height: 40vh;
    padding: 40px 24px;
  }

  .hero-content {
    padding: 32px 24px;
    justify-content: flex-start;
    text-align: center;
    align-items: center;
    border-right: none;
  }

  .hero h1 {
    font-size: 36px;
    margin-bottom: 24px;
  }

  .btn-primary {
    align-self: center;
  }

  .preview-text {
    font-size: 22px;
  }
}

@media (max-width: 600px) {
  #frame-page header {
    padding: 16px 24px;
  }

  .hero-content {
    padding: 24px 16px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .btn-primary {
    width: 100%;
    text-align: center;
  }

  .hero-visual {
    padding: 32px 24px;
  }

  .preview-text {
    font-size: 18px;
  }

  #script-display {
    font-size: 28px;
    padding: 20px 8%;
  }

  #cta-bar {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }

  .btn-small-primary {
    width: 100%;
    padding: 12px 16px;
  }

  .overlay-content {
    padding: 24px;
    max-width: 100%;
  }

  .overlay h2 {
    font-size: 26px;
  }

  .overlay .subtitle,
  .overlay .price-line {
    font-size: 16px;
  }
}

/* --------------------------------------------
   Responsive - Large screens
   -------------------------------------------- */
@media (min-width: 1400px) {
  .hero-content {
    padding-left: 15%;
  }

  .hero h1 {
    font-size: 56px;
  }

  .preview-text {
    font-size: 32px;
  }

  #script-display {
    font-size: 48px;
    padding: 20px 25%;
  }
}
