/* ========================================
   SPEED READER — Page Styles
   ======================================== */

.sr-page { }

/* Hero */
.sr-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.sr-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.sr-word-stream {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sw {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 10rem);
  font-weight: 300;
  color: var(--ember);
  opacity: 0;
  animation: word-fade 14s infinite;
  letter-spacing: -0.02em;
}
.sw1 { animation-delay: 0s; }
.sw2 { animation-delay: 2s; }
.sw3 { animation-delay: 4s; }
.sw4 { animation-delay: 6s; }
.sw5 { animation-delay: 8s; }
.sw6 { animation-delay: 10s; }
.sw7 { animation-delay: 12s; }

@keyframes word-fade {
  0%, 100% { opacity: 0; transform: scale(0.95); }
  5%, 12% { opacity: 0.06; transform: scale(1); }
  14% { opacity: 0; }
}

.sr-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
  padding-top: 3rem;
  padding-bottom: 5rem;
}

.sr-app-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 1.5rem;
}
.sr-app-icon svg { width: 100%; height: 100%; border-radius: 16px; overflow: hidden; }

.sr-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 500px;
  margin: 1.25rem 0 2rem;
}

/* Play Store Button */
.play-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--ember);
  color: #000;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
}
.play-store-btn:hover {
  background: var(--ember-bright);
  transform: translateY(-2px);
}
.sr-store-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.sr-platform-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

/* Phone Mockup */
.sr-demo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sr-phone {
  width: 240px;
  height: 480px;
  background: #111;
  border-radius: 36px;
  border: 1.5px solid #333;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 40px 80px rgba(0,0,0,0.6),
    0 0 40px rgba(240,106,0,0.08);
}
.sr-phone-notch {
  width: 80px;
  height: 22px;
  background: #111;
  border-radius: 0 0 14px 14px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  border: 1.5px solid #333;
  border-top: none;
}
.sr-phone-screen {
  position: absolute;
  inset: 8px;
  border-radius: 28px;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sr-screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 1rem 0.75rem;
  border-bottom: 1px solid var(--border);
}
.sr-book-title {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100px;
}
.sr-wpm-badge {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--ember);
  background: var(--ember-glow-sm);
  border: 1px solid var(--ember-dim);
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
}

.sr-rsvp-display {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0.5rem;
  flex-shrink: 0;
}
.sr-rsvp-focus-bar {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 1.5px;
  height: 2.5rem;
  background: var(--ember);
  opacity: 0.4;
}
.sr-rsvp-word {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.01em;
  transition: opacity 0.08s;
}
.sr-rsvp-word .focus {
  color: var(--ember);
}

/* Context paragraph — mirrors the real app's surrounding-text view */
.sr-context-text {
  flex: 1;
  padding: 0.5rem 0.85rem;
  border-top: 1px solid var(--border);
  overflow: hidden;
  font-size: 0.38rem;
  line-height: 1.6;
  color: var(--text-dim);
  font-family: var(--font-ui);
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
}

.sr-screen-progress {
  padding: 0 1rem 0.5rem;
}
.sr-progress-bar {
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 0.3rem;
}
.sr-progress-fill {
  height: 100%;
  background: var(--ember);
  border-radius: 2px;
  transition: width 0.3s;
}
.sr-progress-label {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: var(--text-dim);
}

.sr-screen-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.5rem 1rem 1rem;
  border-top: 1px solid var(--border);
}
.sr-ctrl {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background var(--transition);
}
.sr-ctrl:hover { background: var(--border); }
.sr-ctrl-play {
  background: var(--ember);
  border-color: var(--ember);
  color: #000;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
}
.sr-ctrl-play:hover { background: var(--ember-bright); }
.sr-phone-shadow {
  width: 180px;
  height: 20px;
  background: radial-gradient(ellipse, rgba(240,106,0,0.15), transparent 70%);
  margin-top: 0.5rem;
}

/* Features */
.sr-features { background: var(--bg-2); border-top: 1px solid var(--border); }
.sr-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.sr-feature {
  background: var(--bg-3);
  padding: 2rem;
  transition: background var(--transition);
}
.sr-feature:hover { background: var(--surface); }
.sr-feature-icon {
  width: 40px;
  height: 40px;
  color: var(--ember);
  margin-bottom: 1rem;
}
.sr-feature-icon svg { width: 100%; height: 100%; }
.sr-feature h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.sr-feature p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.7; }

/* How It Works */
.sr-how { background: var(--bg); }
.sr-how-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: start;
}
.sr-how-text p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}
.sr-speed-scale { margin-top: 2rem; }
.sr-scale-bar {
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}
.sr-scale-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--ember-dim), var(--ember), var(--ember-bright));
  border-radius: 4px;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.sr-scale-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
}
.sr-scale-avg { color: var(--ember); }

.sr-how-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.sr-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.sr-step-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ember);
  background: var(--ember-glow);
  border: 1px solid var(--ember-dim);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sr-step h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.sr-step p { color: var(--text-muted); font-size: 0.85rem; }

/* CTA */
.sr-cta {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 6rem 0;
}
.sr-cta-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.sr-cta-inner h2 { font-size: clamp(2rem, 4vw, 3rem); }
.sr-cta-inner p { color: var(--text-muted); margin-bottom: 1rem; }

/* Responsive */
@media (max-width: 900px) {
  .sr-hero-inner { grid-template-columns: 1fr; }
  .sr-demo { display: none; }
  .sr-how-grid { grid-template-columns: 1fr; gap: 3rem; }
  .sr-features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .sr-features-grid { grid-template-columns: 1fr; }
}
