/* Copyright © 2026 BiblePeep. All rights reserved. */
/* landing.css
   Landing page (and About page, which shares these tokens/classes) only.
   Kept separate from app.css / shared.css so marketing styling can never
   leak into the presenter tool itself.

   Design: "Live Feed" — the hero demonstrates the product's own mechanic
   (a verse picked in a control list appears on a display) rather than an
   abstract decoration. Palette and gradient are drawn directly from the
   Bible Peep logo's own blue-to-violet gradient.
*/

@import "tokens.css";

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}

/* ---------- Ad slot ---------- */

.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.2rem;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.ad-slot__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.ad-slot__label:hover,
.ad-slot__label:focus-visible {
  color: var(--text);
  border-bottom-color: var(--cyan);
  outline: none;
}

/* ---------- Page: fit to one screen down to a minimum, scroll below that ---------- */

.landing-page {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2.4vh, 1.75rem);
  padding: clamp(1rem, 3vh, 2rem) 1.5rem;
  text-align: center;
}

.brand-mark {
  height: clamp(48px, 8vh, 68px);
  width: auto;
  border-radius: 10px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 .accent {
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 32rem;
  margin: 0;
}

/* ---------- The demo: control card -> pulse -> display card ---------- */

.demo {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.25rem);
}

.demo-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
}

.control-card {
  width: 190px;
  text-align: left;
}

.control-card .row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--muted);
}

.control-card .row--active {
  background: rgba(139, 92, 246, 0.15);
  color: var(--text);
}

.control-card .row--active::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--violet);
  flex-shrink: 0;
}

.arrow {
  position: relative;
  width: clamp(30px, 4vw, 50px);
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  flex-shrink: 0;
}

.pulse {
  position: absolute;
  top: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: travel 2.2s ease-in-out infinite;
}

@keyframes travel {
  0% { left: 0; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .pulse {
    animation: none;
    left: 50%;
    opacity: 1;
  }
}

/* Matches the real verse-view.js output exactly: Georgia serif, centered,
   small reference bottom-right — no invented chrome. */
.display-card {
  width: clamp(240px, 30vw, 320px);
  aspect-ratio: 16 / 9;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 1.1rem;
}

.display-card .verse {
  font-family: Georgia, serif;
  color: #fff;
  font-size: clamp(0.8rem, 1.4vw, 1rem);
  text-align: center;
  line-height: 1.4;
}

.display-card .ref {
  position: absolute;
  bottom: 0.6rem;
  right: 0.8rem;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.7);
  font-family: Georgia, serif;
}

/* ---------- Action row: Display / About / Support / Contact / YouTube ---------- */

.action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.action-btn {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  border-radius: 6px;
  transition: transform 0.15s ease;
}

.action-btn--primary {
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  color: #0a0a0f;
  border: none;
}

.action-btn--youtube {
  color: var(--cyan);
}

.action-btn:hover {
  transform: translateY(-2px);
}

.action-btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.footer-note {
  font-size: 0.75rem;
  color: var(--muted);
  max-width: 28rem;
  margin: 0;
  line-height: 1.5;
}

/* ---------- Responsive ---------- */

@media (max-width: 560px) {
  .hero {
    gap: clamp(0.6rem, 1.6vh, 1.1rem);
    padding: clamp(0.5rem, 1.5vh, 1rem) 1.25rem;
  }
  .brand-mark {
    height: clamp(40px, 6vh, 56px);
  }
  .demo {
    flex-direction: column;
  }
  .demo-card {
    padding: 0.75rem;
  }
  .control-card {
    width: 170px;
  }
  .control-card .row {
    padding: 0.3rem 0.5rem;
  }
  .display-card {
    width: 220px;
  }
  .arrow {
    width: 2px;
    height: 20px;
    background: linear-gradient(180deg, var(--violet), var(--cyan));
  }
  .pulse {
    left: -3px;
    top: 0;
    animation-name: travel-vertical;
  }
  @keyframes travel-vertical {
    0% { top: 0; opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
  }
}

/* Below this height, stop trying to cram everything into one screen and
   allow natural scrolling instead — clamping further would make text
   illegibly small. */
@media (max-height: 560px) {
  .landing-page {
    height: auto;
  }
  html, body {
    height: auto;
    overflow-y: auto;
  }
}
