/* Random Jingle – Marketing site
 * Reuses the same dark-mode color tokens as the app (css/style.css in the
 * app project) so the two feel like one product, but this stylesheet is
 * otherwise fully independent — the marketing site ships on its own
 * domain (random-jingle.com) with no shared assets or build step.
 */
:root {
  color-scheme: dark;
  --bg: #121212;
  --bg-elevated: #1c1c1f;
  --bg-elevated-2: #262629;
  --border: #333338;
  --text: #f2f2f4;
  --text-muted: #9a9aa2;
  --accent: #7c3aed;
  --accent-2: #8b46f4;
  --accent-contrast: #ffffff;
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 64px;
  --max-w: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }

p { margin: 0 0 12px; }

a { color: inherit; }

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus { top: 12px; }

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 64px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: filter 0.15s ease, transform 0.1s ease;
}

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

.btn-primary:hover { filter: brightness(1.1); }
.btn-primary:active { transform: scale(0.97); }

.btn-lg { padding: 15px 30px; font-size: 1.05rem; border-radius: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(28, 28, 31, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: inherit;
  flex: 0 0 auto;
}

.logo-mark { font-size: 1.4rem; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: var(--bg-elevated-2);
  color: var(--text);
  cursor: pointer;
  position: relative;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--text);
}

.nav-toggle-bar { top: 19px; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
}

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

.site-nav a.nav-cta { color: #ffffff; }

.lang-switch { display: flex; }

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg-elevated-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%239a9aa2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  font-family: inherit;
  padding: 7px 26px 7px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.lang-select:hover { border-color: var(--text-muted); }
.lang-select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.lang-select option { background: var(--bg-elevated-2); color: var(--text); }

/* Simple two-language link used on blog pages (DE/EN only, no dropdown needed) */
.lang-btn-link {
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 8px;
  text-decoration: none;
}

.lang-btn-link:hover { border-color: var(--text-muted); }

/* ---------- Hero ---------- */
.hero { padding-top: 72px; padding-bottom: 56px; }

.hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-copy { flex: 1 1 380px; }

.hero-copy h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: 28px;
}

.hero-visual { flex: 1 1 420px; display: flex; justify-content: center; }

/* App screenshots, framed like a browser window (dot bar + the screenshot
 * itself) — reused at full size in the hero and smaller in the gallery. */
.browser-frame {
  width: 100%;
  max-width: 560px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}

.browser-frame-bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-elevated-2);
  border-bottom: 1px solid var(--border);
}

.browser-frame-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border);
}

.browser-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--bg);
}

.gallery-item .browser-frame {
  max-width: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.gallery-caption {
  margin: 10px 2px 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  text-align: center;
}

/* ---------- Benefits ---------- */
.benefit-grid,
.feature-grid,
.audience-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.benefit-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.feature-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.audience-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.benefit-card,
.feature-card,
.audience-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
}

.benefit-card { text-align: center; }

.benefit-icon,
.audience-icon {
  display: inline-flex;
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.feature-icon {
  display: block;
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
}

.benefit-card h3,
.feature-card h3,
.audience-card h3 { font-size: 1.05rem; }

.benefit-card p,
.feature-card p,
.audience-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 0;
}

.audience-card p { margin-bottom: 10px; }

.audience-more {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.audience-more:hover { text-decoration: underline; }

.features, .how-it-works { background: var(--bg-elevated); }

.audiences {
  background-image: linear-gradient(rgba(18, 18, 18, 0.88), rgba(18, 18, 18, 0.88)), url("/assets/images/bg-audiences-dj.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.features h2, .audiences h2, .how-it-works h2, .gallery h2, .faq h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
  margin-bottom: 36px;
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  counter-reset: step;
}

.step { text-align: center; }

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  margin-bottom: 12px;
}

.step h3 { font-size: 1rem; }
.step p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0; }

/* ---------- Gallery ---------- */
.gallery-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 20px;
}

.faq-item summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 28px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 14px;
  font-size: 1.3rem;
  color: var(--accent);
  transition: transform 0.15s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  color: var(--text-muted);
  padding-bottom: 16px;
  margin: 0;
}

/* ---------- Final CTA ---------- */
.cta-final {
  text-align: center;
  background: linear-gradient(160deg, var(--bg-elevated) 0%, var(--bg) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-final h2 { font-size: clamp(1.5rem, 3vw, 2rem); }

/* ---------- Footer ---------- */
.site-footer { padding: 32px 0 40px; }

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
}

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

.footer-copy {
  width: 100%;
  order: 3;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-align: center;
}

/* ---------- Language gate (root redirector fallback) ---------- */
.lang-gate {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
  padding: 40px 20px;
}

.lang-gate p { color: var(--text-muted); max-width: 46ch; }

.lang-gate-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- Standalone legal pages ---------- */
.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}

.legal-content h1 { margin-top: 0; }
.legal-content a { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px 24px;
    gap: 16px;
    display: none;
  }

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

  .nav-cta { order: 10; }
}

@media (max-width: 520px) {
  section { padding: 48px 0; }
  .hero { padding-top: 40px; }
}

/* ---------- Blog ---------- */
.blog-hero {
  max-width: 680px;
  margin: 0 auto 40px;
  text-align: center;
}

.blog-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.blog-hero p { color: var(--text-muted); font-size: 1.05rem; }

.blog-grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blog-card {
  display: block;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.1s ease;
}

.blog-card:hover { border-color: var(--accent); }
.blog-card:active { transform: scale(0.995); }

.blog-card-meta {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.blog-card h2 { font-size: 1.2rem; margin-bottom: 8px; }
.blog-card p { color: var(--text-muted); margin-bottom: 0; }
.blog-card-more { display: inline-block; margin-top: 12px; color: var(--accent); font-weight: 600; font-size: 0.9rem; }

/* ---------- Blog article ---------- */
.article-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 20px 72px;
  line-height: 1.75;
}

.article-content .article-back {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.article-content .article-back:hover { color: var(--text); }

.article-content .article-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 28px;
}

.article-content h1 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin-bottom: 12px; }
.article-content h2 { font-size: 1.25rem; margin: 32px 0 12px; }
.article-content p { color: var(--text); margin-bottom: 16px; }
.article-content p:first-of-type { color: var(--text-muted); font-size: 1.05rem; }

.article-cta {
  margin-top: 40px;
  padding: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.article-cta p { color: var(--text-muted); margin-bottom: 14px; }
