/* landing.css — scoped to .landing and .landing-* selectors only.
   All colours resolve to tokens from base.css (:root). Zero hardcoded
   hex values — grep test: rg '#[0-9a-fA-F]{3,6}' landing.css → 0 hits. */

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

/* ── Container ─────────────────────────────────────────────────────────── */

.landing-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.landing-hero {
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg2) 40%, var(--bg3) 100%);
  padding: 120px 0 80px;
  text-align: center;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 40px;
}

.landing-brand-img {
  height: 288px;
  width: auto;
}

/* Kept for /privacy and /terms, which render the wordmark without an image. */
.landing-brand-wordmark {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.5px;
}

.landing-headline {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.landing-subhead {
  font-size: 1.15rem;
  color: var(--text2);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

.landing-cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.landing-cta {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s;
}

.landing-cta-primary {
  background: var(--accent);
  color: var(--text);
  border: 1px solid var(--accent);
}

.landing-cta-primary:hover {
  background: var(--accent2);
  border-color: var(--accent2);
}

.landing-cta-ghost {
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--border);
}

.landing-cta-ghost:hover {
  background: var(--bg3);
  color: var(--text);
  border-color: var(--accent);
}

/* ── Sections ──────────────────────────────────────────────────────────── */

.landing-section {
  padding: 80px 0;
}

.landing-section-alt {
  background: var(--bg2);
}

.landing-section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 48px;
}

/* ── Just Cause pull-quote (lives inside .landing-hero) ────────────────── */

.landing-justcause-quote {
  font-size: 1.25rem;
  line-height: 1.5;
  font-style: italic;
  color: var(--text);
  text-align: center;
  max-width: 720px;
  margin: 24px auto 32px;
  padding: 0 20px;
  border-left: 3px solid var(--accent);
  border-right: 3px solid var(--accent);
  font-weight: 500;
}

/* ── Supported DAWs ────────────────────────────────────────────────────── */

.landing-daws {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.landing-daw {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  letter-spacing: 0.3px;
  font-size: 1rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s;
}

.landing-daw:hover {
  transform: translateY(-2px);
}

.landing-daw-ext {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.4px;
  opacity: 0.85;
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
}

/* Palette via base.css tokens — card.css mirrors the same hex values. */
.landing-daw-ableton { background: var(--daw-ableton-bg); color: var(--daw-ableton-fg); }
.landing-daw-cubase { background: var(--daw-cubase-bg); color: var(--daw-cubase-fg); }
.landing-daw-bitwig { background: var(--daw-bitwig-bg); color: var(--daw-bitwig-fg); }
.landing-daw-mpc { background: var(--daw-mpc-bg); color: var(--daw-mpc-fg); }
.landing-daw-reaper { background: var(--daw-reaper-bg); color: var(--daw-reaper-fg); }
.landing-daw-fl_studio { background: var(--daw-fl_studio-bg); color: var(--daw-fl_studio-fg); }
.landing-daw-garageband { background: var(--daw-garageband-bg); color: var(--daw-garageband-fg); }
.landing-daw-logic { background: var(--daw-logic-bg); color: var(--daw-logic-fg); }
.landing-daw-dawproject { background: var(--daw-dawproject-bg); color: var(--daw-dawproject-fg); }
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
  font-style: italic;
}

/* ── How-it-works steps ────────────────────────────────────────────────── */

.landing-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
}

.landing-step {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  box-shadow: var(--shadow);
  transition: transform 0.15s, border-color 0.15s;
}

.landing-step:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.landing-step-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.landing-step-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.landing-step p {
  font-size: 0.875rem;
  color: var(--text2);
  line-height: 1.6;
}

/* ── Privacy grid ──────────────────────────────────────────────────────── */

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

.landing-privacy-item {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.landing-privacy-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.landing-privacy-item p {
  font-size: 0.875rem;
  color: var(--text2);
  line-height: 1.6;
}

/* ── Features (named screenshot blocks) ────────────────────────────────── */

.landing-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 48px;
}

.landing-feature:first-of-type {
  margin-top: 24px;
}

.landing-feature-flip .landing-feature-copy {
  order: 2;
}

.landing-feature-flip .landing-feature-shot {
  order: 1;
}

.landing-feature-title {
  margin: 0 0 12px;
  font-size: 1.4rem;
  color: var(--text);
}

.landing-feature-copy p {
  margin: 0;
  color: var(--text2);
  font-size: 1rem;
  line-height: 1.55;
}

.landing-feature-shot {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.landing-feature-shot img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Download ──────────────────────────────────────────────────────────── */

.landing-download-lede {
  text-align: center;
  color: var(--text2);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.landing-download-grid {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.landing-download-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 32px;
  border-radius: var(--radius);
  background: var(--bg3);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.15s;
  min-width: 140px;
}

.landing-download-btn:hover:not([data-fallback="true"]) {
  border-color: var(--accent);
  background: var(--card-hover);
}

.landing-download-btn[data-fallback="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.landing-download-os {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.landing-download-ext {
  font-size: 0.8rem;
  color: var(--text3);
  margin-top: 4px;
}

.landing-download-fallback {
  text-align: center;
  margin-top: 20px;
  font-size: 0.875rem;
  color: var(--text3);
}

.landing-download-fallback a {
  color: var(--accent);
  text-decoration: none;
}

.landing-download-fallback a:hover {
  text-decoration: underline;
}

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

.landing-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: auto;
}

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

.landing-footer-brand {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
}

.landing-footer-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.landing-footer-link {
  font-size: 0.875rem;
  color: var(--text2);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: color 0.15s;
}

.landing-footer-link:hover {
  color: var(--text);
}

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

@media (max-width: 720px) {
  .landing-headline {
    font-size: 2rem;
  }

  .landing-brand-img {
    height: 192px;
  }

  .landing-justcause-quote {
    font-size: 1rem;
    padding: 0 14px;
    margin: 20px auto 24px;
  }

  .landing-steps {
    grid-template-columns: 1fr;
  }

  .landing-privacy-grid {
    grid-template-columns: 1fr;
  }

  .landing-feature {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* On mobile, ignore flip — copy always above its screenshot */
  .landing-feature-flip .landing-feature-copy {
    order: 0;
  }

  .landing-feature-flip .landing-feature-shot {
    order: 0;
  }

  .landing-hero {
    padding: 60px 0 48px;
  }

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