/* ============================================================
   BeatThread — landing page styles
   Dark stage theme, amber accent (inherits the install's
   --primary color at runtime via /api/settings).
   ============================================================ */

:root {
  --bg: #0b0f17;
  --panel: #121826;
  --panel-2: #1a2233;
  --border: #232c40;
  --text: #e6ecf7;
  --muted: #8b97ad;
  --primary: #f59e0b;
  --primary-dark: #d97706;
  --radius: 14px;
  --maxw: 1080px;
  --shadow: 0 10px 34px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
section { scroll-margin-top: 84px; }

.hidden { display: none !important; }

/* ---------------- Top nav ---------------- */
.lp-nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 22px;
  padding: 14px clamp(18px, 4vw, 40px);
  background: rgba(11, 15, 23, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.lp-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--text); }
.lp-brand:hover { text-decoration: none; }
.lp-brand img { height: 30px; width: auto; }
.lp-brand-icon { font-size: 22px; }
.lp-nav-links { display: flex; gap: 4px; margin-left: 8px; }
.lp-nav-link {
  color: var(--muted); font-size: 14px; font-weight: 600;
  padding: 8px 13px; border-radius: 9px;
}
.lp-nav-link:hover { color: var(--text); background: var(--panel-2); text-decoration: none; }
.lp-nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; border-radius: 10px; padding: 11px 20px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  font-family: inherit; text-decoration: none !important;
  transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #171204; box-shadow: 0 6px 22px rgba(245, 158, 11, 0.28); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--panel-2); }
.btn-sm { padding: 8px 14px; font-size: 14px; }

/* ---------------- Hero ---------------- */
.lp-hero {
  position: relative;
  padding: clamp(56px, 9vw, 110px) clamp(18px, 4vw, 40px) clamp(48px, 7vw, 84px);
  background:
    radial-gradient(900px 560px at 78% -12%, rgba(245, 158, 11, 0.13) 0%, transparent 60%),
    radial-gradient(700px 460px at 8% 108%, rgba(56, 130, 246, 0.1) 0%, transparent 60%),
    var(--bg);
  overflow: hidden;
}
.lp-hero-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.lp-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); background: var(--panel);
  color: var(--muted); font-size: 13px; font-weight: 600;
  padding: 6px 13px; border-radius: 999px; margin-bottom: 20px;
}
.lp-hero h1 {
  font-size: clamp(34px, 5.2vw, 58px); font-weight: 900; letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.lp-hero h1 .grad {
  background: linear-gradient(100deg, var(--primary) 10%, #fbbf24 55%, #f59e0b 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lp-hero-sub { font-size: clamp(16px, 1.8vw, 19px); color: var(--muted); max-width: 30em; margin-bottom: 28px; }
.lp-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.lp-hero-chips { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 13px; font-weight: 600; }
.lp-hero-chips span { display: inline-flex; align-items: center; gap: 6px; }
.lp-hero-chips span::before { content: "✓"; color: var(--primary); font-weight: 900; }

/* Hero player mockup */
.hero-player {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 18px; box-shadow: var(--shadow);
  padding: 14px; max-width: 460px; width: 100%; margin: 0 auto;
}
.hp-canvas {
  background: rgba(0, 0, 0, 0.42); border-radius: 12px;
  height: 132px; display: flex; align-items: center; justify-content: center;
  padding: 18px; border: 1px solid rgba(255, 255, 255, 0.05);
}
.eq { display: flex; align-items: flex-end; gap: 6px; height: 96px; }
.eq i {
  width: 9px; border-radius: 4px; background: linear-gradient(to top, var(--primary), #fff 85%);
  animation: eqb 1.05s ease-in-out infinite;
}
.eq i:nth-child(1) { animation-delay: 0s; }
.eq i:nth-child(2) { animation-delay: .12s; }
.eq i:nth-child(3) { animation-delay: .26s; }
.eq i:nth-child(4) { animation-delay: .05s; }
.eq i:nth-child(5) { animation-delay: .33s; }
.eq i:nth-child(6) { animation-delay: .19s; }
.eq i:nth-child(7) { animation-delay: .41s; }
.eq i:nth-child(8) { animation-delay: .09s; }
.eq i:nth-child(9) { animation-delay: .28s; }
.eq i:nth-child(10) { animation-delay: .15s; }
.eq i:nth-child(11) { animation-delay: .37s; }
.eq i:nth-child(12) { animation-delay: .07s; }
.eq i:nth-child(13) { animation-delay: .23s; }
.eq i:nth-child(14) { animation-delay: .31s; }
.eq i:nth-child(15) { animation-delay: .13s; }
.eq i:nth-child(16) { animation-delay: .44s; }
.eq i:nth-child(17) { animation-delay: .21s; }
.eq i:nth-child(18) { animation-delay: .36s; }
.eq i:nth-child(19) { animation-delay: .03s; }
.eq i:nth-child(20) { animation-delay: .29s; }
.eq.paused i { animation-play-state: paused; }
@keyframes eqb { 0%, 100% { height: 14%; } 50% { height: 96%; } }
.hp-controls { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 0 4px; }
.hp-play {
  background: var(--primary); color: #171204; border: 0; border-radius: 10px;
  width: 44px; height: 40px; font-size: 15px; cursor: pointer; flex-shrink: 0;
}
.hp-play:hover { background: var(--primary-dark); color: #fff; }
.hp-time { font-size: 12px; color: var(--muted); min-width: 104px; font-variant-numeric: tabular-nums; }
.hp-seek { flex: 1; height: 6px; background: var(--panel-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
.hp-seek-fill { width: 38%; height: 100%; background: var(--primary); border-radius: 999px; }
.hp-mode {
  font-size: 12px; font-weight: 700; color: var(--primary);
  border: 1px solid rgba(245, 158, 11, 0.35); background: rgba(245, 158, 11, 0.1);
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.hp-track { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 10px 6px 2px; border-top: 1px solid var(--border); }
.hp-cover { width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--border); background: linear-gradient(135deg, #312e81, #0ea5e9); flex-shrink: 0; }
.hp-track b { display: block; font-size: 14px; }
.hp-track span { font-size: 12px; color: var(--muted); }

/* ---------------- Sections ---------------- */
.lp-section { padding: clamp(48px, 7vw, 84px) clamp(18px, 4vw, 40px); }
.lp-alt { background: var(--panel); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lp-inner { max-width: var(--maxw); margin: 0 auto; }
.lp-kicker { color: var(--primary); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.lp-section h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 900; letter-spacing: -0.015em; margin-bottom: 12px; }
.lp-section .lp-lede { color: var(--muted); font-size: 17px; max-width: 46em; margin-bottom: 38px; }

/* Feature / use-case cards */
.lp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.lp-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; transition: border-color .15s ease, transform .15s ease;
}
.lp-alt .lp-card { background: var(--bg); }
.lp-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.lp-card .ic { font-size: 26px; margin-bottom: 12px; display: inline-block; }
.lp-card h3 { font-size: 17px; margin-bottom: 8px; }
.lp-card p { margin: 0; font-size: 14px; color: var(--muted); }

/* How it works — steps */
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.lp-step { position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px 22px; }
.lp-alt .lp-step { background: var(--bg); }
.lp-step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -16px; left: 22px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--primary); color: #171204;
  font-weight: 900; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 4px var(--panel), 0 6px 16px rgba(0,0,0,0.35);
}
.lp-alt .lp-step::before { box-shadow: 0 0 0 4px var(--bg), 0 6px 16px rgba(0,0,0,0.35); }
.lp-step h3 { font-size: 17px; margin-bottom: 8px; }
.lp-step p { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------------- Pricing ---------------- */
.lp-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.lp-plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px;
  padding: 26px 24px; box-shadow: var(--shadow);
}
.lp-plan.pop { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow); }
.lp-plan .pop-tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #171204; font-size: 12px; font-weight: 800;
  padding: 4px 12px; border-radius: 999px; white-space: nowrap; letter-spacing: 0.02em;
}
.lp-plan h3 { font-size: 18px; margin-bottom: 2px; }
.lp-plan .tagline { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.lp-plan .price { font-size: 34px; font-weight: 900; color: var(--primary); }
.lp-plan .price small { font-size: 14px; font-weight: 600; color: var(--muted); }
.lp-plan ul { list-style: none; margin: 18px 0 22px; padding: 0; display: grid; gap: 9px; flex: 1; }
.lp-plan li { font-size: 14px; color: var(--muted); display: flex; gap: 9px; align-items: flex-start; }
.lp-plan li::before { content: "✓"; color: var(--primary); font-weight: 900; flex-shrink: 0; }
.lp-plan .btn { justify-content: center; }
.lp-price-note { margin-top: 22px; text-align: center; color: var(--muted); font-size: 13px; }

/* ---------------- CTA band ---------------- */
.lp-cta {
  padding: clamp(48px, 7vw, 80px) clamp(18px, 4vw, 40px);
  text-align: center;
  background:
    radial-gradient(720px 380px at 50% 0%, rgba(245, 158, 11, 0.14) 0%, transparent 65%),
    var(--bg);
  border-top: 1px solid var(--border);
}
.lp-cta h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 900; margin-bottom: 12px; }
.lp-cta p { color: var(--muted); font-size: 17px; margin: 0 0 28px; }
.lp-cta .btn { font-size: 16px; padding: 14px 28px; }

/* ---------------- Footer ---------------- */
.lp-foot {
  border-top: 1px solid var(--border); background: var(--panel);
  padding: 30px clamp(18px, 4vw, 40px);
}
.lp-foot-inner { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.lp-foot .lp-brand { font-size: 16px; }
.lp-foot-links { display: flex; gap: 16px; margin-left: auto; font-size: 13px; }
.lp-foot-links a { color: var(--muted); }
.lp-foot-links a:hover { color: var(--text); }
.lp-foot-note { width: 100%; text-align: center; color: var(--muted); font-size: 12px; margin-top: 14px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 880px) {
  .lp-hero-inner { grid-template-columns: 1fr; text-align: center; }
  .lp-hero-sub { margin-left: auto; margin-right: auto; }
  .lp-hero-ctas, .lp-hero-chips { justify-content: center; }
  .lp-steps { grid-template-columns: 1fr; }
  .lp-plans { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .lp-nav-links { display: none; }
}
