/* Offbeat Music Player — website styles
 * Single stylesheet shared by every page.
 * Brand references:
 *   - Pink glow:  #F36AD7  (VinylPulseLogoView)
 *   - Cyan glow:  #48CFFF  (VinylPulseLogoView)
 *   - App surface dark: #0b0b10
 */

:root {
  color-scheme: light dark;

  --bg: #fafaf9;
  --bg-elevated: #ffffff;
  --text: #15131a;
  --muted: #5a5468;
  --border: #e7e4df;
  --card: #ffffff;
  --accent-pink: #d33ea8;
  --accent-cyan: #1d9fd6;
  --accent-gradient: linear-gradient(135deg, #f36ad7 0%, #48cfff 100%);
  --accent-gradient-soft: linear-gradient(135deg, rgba(243,106,215,0.18) 0%, rgba(72,207,255,0.18) 100%);
  --shadow-card: 0 1px 2px rgba(20, 16, 32, 0.04), 0 8px 28px rgba(20, 16, 32, 0.06);
  --shadow-cta: 0 8px 24px rgba(243, 106, 215, 0.28);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --max-width: 1120px;
  --nav-height: 68px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b10;
    --bg-elevated: #15131d;
    --text: #f5f3f8;
    --muted: #a39eb1;
    --border: #2a2735;
    --card: #15131d;
    --accent-pink: #f36ad7;
    --accent-cyan: #48cfff;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 40px rgba(0, 0, 0, 0.5);
    --shadow-cta: 0 8px 28px rgba(243, 106, 215, 0.32);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }

a {
  color: var(--accent-pink);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--accent-cyan); }

p { margin: 0 0 1em; }

/* --- Header / Nav --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--nav-height);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--text); }

.brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(243, 106, 215, 0.35);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
}
.nav a:hover,
.nav a.is-active { color: var(--text); }

.nav__cta {
  margin-left: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nav__cta:hover {
  color: var(--bg);
  transform: translateY(-1px);
  box-shadow: var(--shadow-cta);
}

.nav__cta svg { width: 14px; height: 14px; }

@media (max-width: 640px) {
  .nav a:not(.nav__cta) { display: none; }
  .site-header__inner { padding: 12px 18px; gap: 12px; }
}

/* --- Main / Sections --- */

main { flex: 1 0 auto; }

.section {
  padding: clamp(56px, 8vw, 96px) 24px;
}
.section--tight { padding: clamp(40px, 6vw, 64px) 24px; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

h1, h2, h3 {
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

/* --- Hero --- */

.hero {
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(48px, 7vw, 96px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 20% 0%, rgba(243, 106, 215, 0.18), transparent 60%),
    radial-gradient(50% 50% at 90% 10%, rgba(72, 207, 255, 0.18), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero__inner--center {
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
  text-align: center;
}
@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .hero__inner--center { grid-template-columns: 1fr; }
}

.hero__copy h1 { margin-top: 8px; }
.hero__copy--center { max-width: 60ch; margin: 0 auto; }
.hero__copy h1 em {
  font-style: normal;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--muted);
  max-width: 38ch;
  margin: 18px 0 28px;
}
.hero__copy--center .hero__lede {
  margin-left: auto;
  margin-right: auto;
}
.cta-row--center {
  justify-content: center;
}

.hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}
.pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gradient);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: 14px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  font-size: 1rem;
  box-shadow: var(--shadow-cta);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-appstore:hover {
  color: var(--bg);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(243, 106, 215, 0.42);
}
.btn-appstore__label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}
.btn-appstore__label small {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0.75;
}
.btn-appstore__label strong { font-size: 1.05rem; }
.btn-appstore svg { width: 26px; height: 26px; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--bg-elevated);
  font-weight: 500;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.btn-secondary:hover {
  border-color: var(--accent-pink);
  color: var(--accent-pink);
}

.hero__art {
  position: relative;
  display: flex;
  justify-content: center;
}

/* --- Feature grid --- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 880px) {
  .features { grid-template-columns: 1fr; }
}

.feature {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.feature:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent-pink) 40%, var(--border));
}
.feature__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-gradient-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--accent-pink);
}
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* --- About / narrative --- */

.narrative {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.narrative h2 { margin-bottom: 12px; }
.narrative p { color: var(--muted); margin: 0 0 16px; }
.narrative p:last-child { margin-bottom: 0; }
.narrative .btn-secondary { margin-top: 4px; }

/* --- Install CTA --- */

.cta-banner {
  text-align: center;
  padding: clamp(48px, 6vw, 72px) 32px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(243, 106, 215, 0.18), transparent 70%),
    radial-gradient(60% 80% at 50% 100%, rgba(72, 207, 255, 0.18), transparent 70%),
    var(--card);
  border: 1px solid var(--border);
}
.cta-banner h2 { margin-bottom: 12px; }
.cta-banner p { color: var(--muted); max-width: 48ch; margin: 0 auto 28px; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: left;
  margin: 36px auto 0;
  max-width: 820px;
}
@media (max-width: 720px) { .steps { grid-template-columns: 1fr 1fr; } }
.step {
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}
.step__num {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-pink);
}
.step__title { font-weight: 600; margin-top: 6px; }
.step__body { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }

/* --- Prose (used on /about, /faq, /support, /privacy, /terms) --- */

.prose {
  max-width: 760px;
  margin: 0 auto;
}
.prose h1 { margin-bottom: 12px; }
.prose h2 { font-size: 1.4rem; margin-top: 36px; margin-bottom: 12px; }
.prose p, .prose li { color: var(--text); font-size: 1.02rem; }
.prose ul { padding-left: 22px; }
.prose ul li { margin-bottom: 6px; }
.prose .meta { color: var(--muted); font-size: 0.95rem; margin-bottom: 28px; }
.prose .lede { color: var(--muted); font-size: 1.1rem; max-width: 60ch; margin-bottom: 32px; }

.highlight {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--border);
  margin-bottom: 14px;
}
.highlight__icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-gradient-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-pink);
}
.highlight__icon svg { width: 18px; height: 18px; }
.highlight h3 { font-size: 1.05rem; margin: 0 0 4px; }
.highlight p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* --- FAQ --- */

.faq details {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 12px;
  transition: border-color 0.15s ease;
}
.faq details[open] { border-color: color-mix(in srgb, var(--accent-pink) 45%, var(--border)); }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.02rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--muted);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.97rem;
}

/* --- Contact cards --- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 24px;
}
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--border);
}
.contact-card h3 { margin-bottom: 6px; }
.contact-card p { color: var(--muted); margin: 0 0 14px; font-size: 0.95rem; }
.contact-card a.email {
  display: inline-block;
  font-weight: 600;
  color: var(--accent-pink);
  font-size: 1rem;
}

/* --- Footer --- */

.site-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  padding: 36px 24px 28px;
  background: var(--bg-elevated);
  margin-top: 64px;
}
.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}
@media (max-width: 720px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } }
.site-footer h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a {
  color: var(--text);
  font-size: 0.92rem;
}
.site-footer a:hover { color: var(--accent-pink); }

.site-footer__brand p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
  max-width: 32ch;
}
.site-footer__brand .brand { margin-bottom: 10px; }

.site-footer__legal {
  max-width: var(--max-width);
  margin: 28px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
}

/* --- Utility --- */

.center { text-align: center; }
.muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.mt-lg { margin-top: 56px; }