/* ============================================
   Dials: Live Radio & FM — Landing Page Styles
   Design System: WLColor tokens mapped to CSS
   ============================================ */

/* --- CSS Variables (WLColor Mapping) --- */
:root {
  --primary-accent: #007AFF;
  --primary-accent-hover: #0066DD;
  --success: #30D158;
  --premium-gold: #FFD60A;
  --premium-orange: #FF9F0A;
  --destructive: #FF453A;

  --bg-primary: #000000;
  --bg-secondary: #1C1C1E;
  --bg-elevated: #2C2C2E;
  --bg-grouped: #111111;

  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-tertiary: rgba(255, 255, 255, 0.45);

  --separator: rgba(255, 255, 255, 0.12);

  --card-radius: 16px;
  --section-radius: 24px;
  --screen-margin: 20px;
  --max-width: 1200px;

  --font-stack: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text',
    'Helvetica Neue', Arial, sans-serif;

  --gradient-premium: linear-gradient(135deg, #FFD60A, #FF9F0A);
  --gradient-hero: linear-gradient(180deg, #0a0a0a 0%, #111827 50%, #0a0a0a 100%);
  --gradient-cta: linear-gradient(135deg, #007AFF 0%, #00C6FF 100%);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-stack);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--primary-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-accent-hover);
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Utility --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--screen-margin);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.nav.scrolled {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--separator);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--screen-margin);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-cta);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-cta {
  background: var(--primary-accent);
  color: var(--text-primary) !important;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
  background: var(--primary-accent-hover);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 80px;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 122, 255, 0.15) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 8px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero h1 {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.hero h1 .gradient-text {
  background: var(--gradient-cta);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-accent);
  color: white;
  padding: 16px 32px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: var(--primary-accent-hover);
  color: white;
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  padding: 16px 32px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--separator);
}

.hero-stat-value {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-primary);
}

.hero-stat-label {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* --- Features Section --- */
.features {
  padding: 120px 0;
  background: var(--bg-primary);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary-accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--separator);
  border-radius: var(--card-radius);
  padding: 32px;
  transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 122, 255, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* --- Genres Section --- */
.genres {
  padding: 120px 0;
  background: var(--bg-grouped);
}

.genres-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 0 var(--screen-margin) 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.genres-scroll::-webkit-scrollbar {
  display: none;
}

.genre-pill {
  flex-shrink: 0;
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  transition: transform 0.2s;
}

.genre-pill:hover {
  transform: scale(1.05);
}

/* --- Pricing Section --- */
.pricing {
  padding: 120px 0;
  background: var(--bg-primary);
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-secondary);
  border: 1px solid var(--separator);
  border-radius: var(--section-radius);
  padding: 40px 32px;
  position: relative;
  transition: transform 0.2s;
}

.pricing-card:hover {
  transform: translateY(-4px);
}

.pricing-card.featured {
  border-color: var(--primary-accent);
  background: linear-gradient(180deg, rgba(0, 122, 255, 0.08) 0%, var(--bg-secondary) 50%);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-accent);
  color: white;
  padding: 4px 16px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pricing-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 4px;
}

.pricing-price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0;
}

.pricing-savings {
  font-size: 14px;
  color: var(--success);
  font-weight: 600;
  margin-bottom: 24px;
}

.pricing-trial {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 15px;
  color: var(--text-secondary);
}

.pricing-features li::before {
  content: '';
  width: 20px;
  height: 20px;
  background: rgba(48, 209, 88, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2330D158'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}

.pricing-features li.disabled {
  color: var(--text-tertiary);
  text-decoration: line-through;
}

.pricing-features li.disabled::before {
  background: rgba(255, 69, 58, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23FF453A'%3E%3Cpath fill-rule='evenodd' d='M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

.btn-pricing {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 24px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s;
}

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

.btn-pricing.primary {
  background: var(--primary-accent);
  color: white;
}

.btn-pricing.primary:hover {
  background: var(--primary-accent-hover);
  color: white;
}

.btn-pricing.outline {
  background: transparent;
  border: 1px solid var(--separator);
  color: var(--text-primary);
}

.btn-pricing.outline:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

.pricing-note {
  text-align: center;
  margin-top: 32px;
  font-size: 14px;
  color: var(--text-tertiary);
  line-height: 1.6;
}

/* --- CTA Section --- */
.cta-section {
  padding: 120px 0;
  background: var(--bg-grouped);
  text-align: center;
}

.cta-box {
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.12) 0%, rgba(0, 198, 255, 0.06) 100%);
  border: 1px solid rgba(0, 122, 255, 0.2);
  border-radius: var(--section-radius);
  padding: 64px 40px;
  max-width: 700px;
  margin: 0 auto;
}

.cta-box h2 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.cta-box p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* --- Footer --- */
.footer {
  padding: 64px 0 32px;
  background: var(--bg-primary);
  border-top: 1px solid var(--separator);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 12px;
  line-height: 1.6;
}

.footer h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--separator);
  font-size: 13px;
  color: var(--text-tertiary);
}

/* --- Legal Pages --- */
.legal-page {
  padding: 120px 0 80px;
  min-height: 100vh;
}

.legal-page .container {
  max-width: 800px;
}

.legal-header {
  margin-bottom: 48px;
}

.legal-header h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.legal-header .last-updated {
  font-size: 14px;
  color: var(--text-tertiary);
}

.legal-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 40px 0 16px;
  letter-spacing: -0.3px;
}

.legal-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 28px 0 12px;
}

.legal-content p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.legal-content ul {
  list-style: none;
  margin-bottom: 16px;
}

.legal-content ul li {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
  padding: 4px 0 4px 24px;
  position: relative;
}

.legal-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-accent);
}

.legal-content a {
  color: var(--primary-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-nav {
  display: flex;
  gap: 16px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--separator);
}

.legal-nav a {
  font-size: 14px;
  color: var(--text-secondary);
}

/* --- Support Page --- */
.support-page {
  padding: 120px 0 80px;
  min-height: 100vh;
}

.support-page .container {
  max-width: 900px;
}

.support-header {
  text-align: center;
  margin-bottom: 64px;
}

.support-header h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.support-header p {
  font-size: 18px;
  color: var(--text-secondary);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}

.support-card {
  background: var(--bg-secondary);
  border: 1px solid var(--separator);
  border-radius: var(--card-radius);
  padding: 32px;
}

.support-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.support-card .icon.blue { background: rgba(0, 122, 255, 0.12); }
.support-card .icon.green { background: rgba(48, 209, 88, 0.12); }
.support-card .icon.gold { background: rgba(255, 214, 10, 0.12); }
.support-card .icon.red { background: rgba(255, 69, 58, 0.12); }

.support-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.support-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.faq-section {
  max-width: 800px;
  margin: 0 auto;
}

.faq-section h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 32px;
  text-align: center;
}

.faq-item {
  border-bottom: 1px solid var(--separator);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-stack);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  padding: 20px 40px 20px 0;
  cursor: pointer;
  position: relative;
  display: block;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--text-tertiary);
  transition: transform 0.2s;
}

.faq-item.open .faq-question::after {
  content: '-';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 20px;
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* --- Contact Form (Support) --- */
.contact-section {
  margin-top: 64px;
  text-align: center;
}

.contact-section h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.contact-section > p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.contact-card {
  background: var(--bg-secondary);
  border: 1px solid var(--separator);
  border-radius: var(--section-radius);
  padding: 40px;
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
}

.contact-card .email-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-accent);
  margin-bottom: 24px;
}

.contact-card .response-time {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-tertiary);
}

.contact-card .response-time .dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 32px 20px;
    gap: 24px;
    border-bottom: 1px solid var(--separator);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }

  .legal-header h1 {
    font-size: 28px;
  }

  .support-header h1 {
    font-size: 32px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    letter-spacing: -1px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 14px 24px;
    font-size: 15px;
    width: 100%;
    justify-content: center;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .cta-box {
    padding: 40px 24px;
  }
}
