/**
 * ApolloFM marketing site + legal pages.
 * Tokens from Theme.swift.
 *
 * Last edited: 2026-05-06
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400;14..32,500;14..32,600;14..32,700;14..32,800&display=swap');

:root {
  --bg:      #020617;
  --card:    #080e20;
  --card-b:  #151c34;
  --text:    #ffffff;
  --dim:     #9295a0;
  --faint:   #42444f;
  --rule:    #171d32;
  --gold:    #f4c430;
  --gold-lo: rgba(244, 196, 48, 0.06);
  --gold-b:  rgba(244, 196, 48, 0.18);
  --font:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a   { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap      { max-width: 560px; margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* ── Nav ─────────────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--rule);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.nav-mark { width: 26px; height: 26px; border-radius: 6px; }

.nav-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav-links { display: flex; gap: 20px; }

.nav-links a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--dim);
  transition: color 0.12s;
}

.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.nav-active { color: var(--text); }

.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
  z-index: 12;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}

.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero-sub-mobile { display: none; }

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 60px;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 40% at 30% 40%,
    rgba(244, 196, 48, 0.06) 0%,
    transparent 70%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }

.hero-split {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.gold {
  color: var(--gold);
  -webkit-text-fill-color: var(--gold);
}

.lede {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--dim);
  max-width: 400px;
  margin-bottom: 32px;
}

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

.hero-sub {
  font-size: 0.8125rem;
  color: var(--faint);
  letter-spacing: 0.01em;
}

/* App Store badge */

.cta-button { display: inline-block; transition: opacity 0.12s; }
.cta-button:hover { opacity: 0.85; text-decoration: none; }
.badge { height: 50px; width: auto; display: block; }
.cta-sm .badge { height: 40px; }

/* ── Hero phones ─────────────────────────────────────────────────────────── */

.hero-phones {
  position: relative;
  flex-shrink: 0;
  width: 340px;
  height: 480px;
}


.phone {
  position: absolute;
  width: 240px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 40px rgba(244, 196, 48, 0.06);
}

.phone img {
  width: 100%;
  height: auto;
  display: block;
}

.phone-back {
  top: 60px;
  left: 0;
  transform: rotate(-6deg);
  z-index: 1;
  opacity: 0.7;
}

.phone-front {
  top: 0;
  right: 0;
  transform: rotate(3deg);
  z-index: 2;
}

/* ── Stats bar ───────────────────────────────────────────────────────────── */

.stats {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 48px 0;
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat {
  flex: 1;
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--rule);
  flex-shrink: 0;
}

/* ── Screenshot showcase ─────────────────────────────────────────────────── */

.showcase {
  padding: 0;
  background: var(--card);
  border-top: 1px solid var(--card-b);
  border-bottom: 1px solid var(--card-b);
}

.showcase-wrap {
  position: relative;
  padding: 52px 0;
}

.showcase-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 8px 8px 16px;
  scrollbar-width: none;
}

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

.showcase-item {
  flex-shrink: 0;
  width: 220px;
  scroll-snap-align: center;
  border-radius: 22px;
  background: var(--card-b);
  padding: 4px;
}

.showcase-item img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  display: block;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease;
}

.showcase-item img:hover {
  transform: scale(1.03);
}

.showcase-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}

.showcase-arrow:hover {
  background: var(--card-b);
  border-color: var(--faint);
}

.showcase-arrow-left  { left: -52px; }
.showcase-arrow-right { right: -52px; }

/* ── Section shared ──────────────────────────────────────────────────────── */

.section-title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  text-align: center;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--dim);
  text-align: center;
  max-width: 480px;
  margin: 0 auto 56px;
}

/* ── Features ────────────────────────────────────────────────────────────── */

.features {
  padding: 80px 0;
  border-top: 1px solid var(--rule);
}

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

.feature-card {
  background: var(--card);
  border: 1px solid var(--card-b);
  border-radius: 16px;
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(244, 196, 48, 0.2);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--gold-lo);
  border: 1px solid var(--gold-b);
  color: var(--gold);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text);
}

.feature-card p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--dim);
}

/* ── Why radio ───────────────────────────────────────────────────────────── */

.why {
  padding: 64px 0 80px;
  border-top: 1px solid var(--rule);
}

.why-body {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.why-body p {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--dim);
  margin-bottom: 20px;
}

.why-body p:last-child { margin-bottom: 0; }

.why-closer {
  color: var(--text) !important;
  font-weight: 600;
}

.why-closer strong {
  color: var(--gold);
}

/* ── Pro card ────────────────────────────────────────────────────────────── */

.pro {
  padding: 0 0 80px;
}

.pro-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-b);
  border-radius: 16px;
  padding: 36px 32px;
  overflow: hidden;
  text-align: center;
}

.pro-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.pro-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.pro-trial-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  padding: 3px 10px;
  border-radius: 100px;
}

.pro-price-row {
  margin-bottom: 24px;
}

.pro-price {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
}

.pro-unit {
  font-size: 1rem;
  font-weight: 500;
  color: var(--dim);
  letter-spacing: 0;
}

.pro-features {
  list-style: none;
  margin: 0 auto 24px;
  max-width: 320px;
}

.pro-features li {
  font-size: 0.9375rem;
  color: var(--dim);
  line-height: 1.5;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-align: left;
}

.pro-features li:last-child { border-bottom: none; }

.pro-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--gold);
  position: relative;
  top: -1px;
  flex-shrink: 0;
}

.pro-legal {
  font-size: 0.75rem;
  color: var(--faint);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.pro-card .cta-button { display: inline-block; }

/* ── Footer ──────────────────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--rule);
  padding: 24px 0;
}

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy { font-size: 0.8125rem; color: var(--faint); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 0.8125rem; color: var(--dim); }
.footer-links a:hover { color: var(--text); text-decoration: none; }

/* ── Support / Contact form ──────────────────────────────────────────────── */

.nav-active { color: var(--text) !important; }

.support-wrap {
  max-width: 580px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}

.support-header { margin-bottom: 40px; }

.support-header h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}

.support-lede {
  font-size: 0.9375rem;
  color: var(--dim);
  line-height: 1.7;
}

.support-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  position: relative;
}

.form-field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.form-optional {
  font-weight: 400;
  color: var(--faint);
  text-transform: none;
  letter-spacing: 0;
}

.form-field input,
.form-field textarea {
  background: var(--card);
  border: 1px solid var(--card-b);
  border-radius: 10px;
  padding: 13px 14px;
  font-size: 0.9375rem;
  font-family: var(--font);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--faint); }

.form-field input:focus,
.form-field textarea:focus { border-color: rgba(244, 196, 48, 0.45); }

.form-field input.is-invalid,
.form-field textarea.is-invalid { border-color: rgba(220, 60, 60, 0.6); }

.form-field textarea {
  resize: vertical;
  min-height: 144px;
  line-height: 1.6;
}

.form-error {
  font-size: 0.8125rem;
  color: #e05555;
  margin-top: 2px;
}

/* ── Custom dropdown ─────────────────────────────────────────────────────── */

.custom-select {
  position: relative;
  user-select: none;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card);
  border: 1px solid var(--card-b);
  border-radius: 10px;
  padding: 13px 14px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.custom-select.is-open .custom-select-trigger,
.custom-select-trigger:focus-within {
  border-color: rgba(244, 196, 48, 0.45);
}

.custom-select.is-invalid .custom-select-trigger {
  border-color: rgba(220, 60, 60, 0.6);
}

.custom-select-value {
  font-size: 0.9375rem;
  font-family: var(--font);
  color: var(--faint);
  line-height: 1;
}

.custom-select-value.has-value { color: var(--text); }

.custom-select-chevron {
  color: var(--dim);
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.custom-select.is-open .custom-select-chevron {
  transform: rotate(180deg);
}

.custom-select-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--card);
  border: 1px solid var(--card-b);
  border-radius: 10px;
  overflow: hidden;
  list-style: none;
  padding: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.custom-select.is-open .custom-select-list {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.custom-select-list li {
  padding: 11px 12px;
  font-size: 0.9375rem;
  font-family: var(--font);
  color: var(--dim);
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
  outline: none;
}

.custom-select-list li:hover,
.custom-select-list li:focus { background: var(--card-b); color: var(--text); }

.custom-select-list li.is-selected { color: var(--gold); }

/* ── Submit button ───────────────────────────────────────────────────────── */

.form-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gold);
  color: #08100e;
  border: none;
  border-radius: 10px;
  padding: 15px 28px;
  font-size: 0.9375rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: opacity 0.15s, transform 0.12s;
  margin-top: 4px;
}

.form-submit:hover  { opacity: 0.88; }
.form-submit:active { transform: scale(0.98); }
.form-submit:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.form-legal {
  font-size: 0.8125rem;
  color: var(--faint);
  text-align: center;
}

.form-legal strong { color: var(--dim); }

/* ── Success state ───────────────────────────────────────────────────────── */

.support-success {
  text-align: center;
  padding: 56px 0;
}

.success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(244, 196, 48, 0.08);
  border: 1px solid rgba(244, 196, 48, 0.25);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.support-success h2 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.support-success p {
  font-size: 0.9375rem;
  color: var(--dim);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

.back-link {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold);
  border: 1px solid rgba(244, 196, 48, 0.25);
  border-radius: 8px;
  padding: 10px 20px;
  transition: background 0.15s;
}

.back-link:hover { background: rgba(244, 196, 48, 0.07); text-decoration: none; }

@media (max-width: 520px) {
  .form-row-split { grid-template-columns: 1fr; }
  .support-wrap   { padding: 52px 20px 72px; }
}

/* ── Legal pages ─────────────────────────────────────────────────────────── */

.legal-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 72px 24px;
}

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

.legal-header h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.legal-header .effective { font-size: 0.875rem; color: var(--dim); }

.legal-body h2 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 44px;
  margin-bottom: 12px;
}

.legal-body h2:first-child { margin-top: 0; }

.legal-body p {
  font-size: 0.9375rem;
  color: var(--dim);
  line-height: 1.8;
  margin-bottom: 14px;
}

.legal-body p:last-child { margin-bottom: 0; }
.legal-body ul { list-style: none; margin-bottom: 14px; }

.legal-body ul li {
  font-size: 0.9375rem;
  color: var(--dim);
  line-height: 1.7;
  padding-left: 16px;
  position: relative;
  margin-bottom: 8px;
}

.legal-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

.legal-body a { color: var(--gold); }

.highlight-box {
  background: var(--gold-lo);
  border: 1px solid var(--gold-b);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

.highlight-box p { color: var(--text); margin-bottom: 0; }

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .hero-split {
    flex-direction: column;
    text-align: center;
    gap: 48px;
  }

  .lede {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-row {
    justify-content: center;
  }

  .hero-phones {
    width: 280px;
    height: 400px;
  }

  .phone { width: 200px; }
}

@media (max-width: 640px) {
  .wrap      { padding: 0 20px; }
  .wrap-wide { padding: 0 20px; }
  .hero      { padding: 72px 0 48px; }
  .features  { padding: 56px 0; }
  .why       { padding: 48px 0 56px; }
  .pro       { padding: 0 0 56px; }
  .nav-bar   { height: 50px; }
  .legal-wrap { padding: 52px 20px; }
  .showcase-wrap { padding: 36px 0; }
  .showcase-arrow { display: none; }

  .hero-title { font-size: clamp(2rem, 8vw, 3rem); }

  .hero-phones {
    width: 260px;
    height: 370px;
  }

  .phone { width: 180px; border-radius: 22px; }

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

  .feature-card { padding: 22px 20px; }

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

  .stat-divider { display: none; }
  .stat { flex: 0 0 calc(50% - 12px); }

  .showcase-item { width: 180px; border-radius: 18px; }
  .showcase-item img { border-radius: 14px; }

  .section-sub { margin-bottom: 40px; }
  .pro-card { padding: 28px 20px; }
  .footer-bar { flex-direction: column; align-items: flex-start; }

  .nav-burger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(2, 6, 23, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--rule);
    padding: 8px 24px 16px;
  }

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

  .nav-links a {
    font-size: 0.9375rem;
    padding: 12px 0;
    border-bottom: 1px solid var(--rule);
  }

  .nav-links a:last-child { border-bottom: none; }

  .nav { position: sticky; }
  .nav-bar { position: relative; }

  .hero-sub-desktop { display: none; }
  .hero-sub-mobile {
    display: block;
    margin-top: 8px;
    font-size: 0.8125rem;
    color: var(--faint);
    letter-spacing: 0.01em;
  }

  .hero-cta-row { flex-direction: column; align-items: center; }
}
