/* AudioPull landing site — dark-first brand palette drawn from the app icon
   (charcoal tile, orange→red waveform). Light scheme via prefers-color-scheme. */

:root {
  --bg: #0b0e13;
  --bg-soft: #10141b;
  --surface: #161b23;
  --surface-2: #1e2530;
  --border: #2a3340;
  --text: #f2f4f7;
  --muted: #a5b0c0;
  --accent: #f97316;
  --accent-2: #ef4444;
  --accent-soft: rgba(249, 115, 22, 0.14);
  --link: #fb923c;
  --btn-text: #14100b;
  --wave: #fb923c;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --grad: linear-gradient(100deg, #fb923c, #f97316 55%, #ef4444);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #faf8f5;
    --bg-soft: #f3efe9;
    --surface: #ffffff;
    --surface-2: #f6f1ea;
    --border: #e4ddd2;
    --text: #1c2129;
    --muted: #566070;
    --accent: #c2410c;
    --accent-2: #b91c1c;
    --accent-soft: rgba(194, 65, 12, 0.1);
    --link: #b3400e;
    --btn-text: #ffffff;
    --wave: #ea580c;
    --shadow: 0 10px 28px rgba(60, 40, 20, 0.12);
    --grad: linear-gradient(100deg, #ea580c, #c2410c 55%, #b91c1c);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

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

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

a { color: var(--link); }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--btn-text);
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 0;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}
.brand img { width: 34px; height: 34px; border-radius: 8px; }

.nav-toggle {
  display: none;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  font-size: 0.95rem;
  cursor: pointer;
}
.site-nav ul {
  display: flex;
  gap: 1.4rem;
  list-style: none;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--text); }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; }
  .site-nav.open { display: block; }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 1rem;
  }
  .site-nav a { display: block; padding: 0.65rem 0.25rem; font-size: 1.05rem; }
  .header-inner { flex-wrap: wrap; }
}

/* Hero */
.hero { padding: 4rem 0 3.5rem; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero { padding: 2.75rem 0; }
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede { font-size: 1.15rem; color: var(--muted); max-width: 34rem; margin-bottom: 1.6rem; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }

.store-badge {
  display: inline-flex;
  border-radius: 12px;
  transition: transform 0.15s ease;
}
.store-badge:hover { transform: translateY(-2px); }
.store-badge svg { display: block; height: 54px; width: auto; }

.btn-secondary {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  background: var(--surface);
}
.btn-secondary:hover { border-color: var(--accent); }

.hero-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; }
.hero-chips li {
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}

/* Hero mock (illustrative — app ships no public screenshots) */
.hero-visual { display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
.hero-icon {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.mock-card {
  width: 100%;
  max-width: 340px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow);
}
.mock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.45rem 0;
}
.mock-row + .mock-row { border-top: 1px solid var(--border); }
.mock-tag {
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 6px;
  padding: 0.1rem 0.5rem;
  font-size: 0.78rem;
}
.mock-wave { width: 100%; height: 44px; }
.mock-wave path { stroke: var(--wave); }
.mock-note { font-size: 0.75rem; color: var(--muted); text-align: center; }

/* Sections */
section { padding: 3.5rem 0; }
section:nth-of-type(even) { background: var(--bg-soft); }

.section-head { max-width: 40rem; margin-bottom: 2.2rem; }
h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 0.7rem;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* Problem / solution */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.panel h3 { font-size: 1.15rem; margin-bottom: 0.7rem; }
.panel ul { list-style: none; display: grid; gap: 0.6rem; }
.panel li { color: var(--muted); padding-left: 1.5rem; position: relative; }
.panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--border);
}
.panel.solution li::before { background: var(--grad); }

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.15s ease;
}
.feature:hover { border-color: var(--accent); }
.feature-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  border-radius: 10px;
  margin-bottom: 0.9rem;
}
.feature-icon svg { width: 22px; height: 22px; stroke: var(--accent); }
.feature h3 { font-size: 1.05rem; margin-bottom: 0.45rem; }
.feature p { color: var(--muted); font-size: 0.95rem; }
.feature ul { margin-top: 0.5rem; padding-left: 1.1rem; color: var(--muted); font-size: 0.92rem; display: grid; gap: 0.3rem; }

/* Use cases */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}
.usecase {
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.4rem;
}
.usecase h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.usecase p { color: var(--muted); font-size: 0.93rem; }

/* Steps */
.steps { list-style: none; counter-reset: step; display: grid; gap: 1rem; max-width: 44rem; }
.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.3rem 1.15rem 4rem;
  position: relative;
  color: var(--muted);
}
.steps li strong { color: var(--text); display: block; margin-bottom: 0.15rem; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.15rem;
  top: 1.15rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

/* FAQ */
.faq-list { max-width: 46rem; display: grid; gap: 0.8rem; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  background: none;
  border: 0;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.faq-q .chev { transition: transform 0.2s ease; flex: none; color: var(--accent); font-weight: 700; }
.faq-q[aria-expanded="true"] .chev { transform: rotate(45deg); }
.faq-a { padding: 0 1.3rem 1.2rem; color: var(--muted); }
.faq-a[hidden] { display: none; }

/* Guides teaser */
.guide-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.guide-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.guide-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.guide-card h3 { font-size: 1.02rem; margin-bottom: 0.4rem; }
.guide-card p { color: var(--muted); font-size: 0.9rem; }
.guide-card .more { color: var(--link); font-weight: 600; font-size: 0.88rem; }

/* Final CTA */
.final-cta { text-align: center; }
.final-cta .cta-row { justify-content: center; }
.final-cta p { color: var(--muted); max-width: 36rem; margin: 0 auto 1.5rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
  background: var(--bg-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.75rem;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.7rem; color: var(--muted); }
.site-footer ul { list-style: none; display: grid; gap: 0.45rem; }
.site-footer a { color: var(--text); text-decoration: none; font-size: 0.95rem; }
.site-footer a:hover { color: var(--link); text-decoration: underline; }
.site-footer p { color: var(--muted); font-size: 0.9rem; }
.footer-note { border-top: 1px solid var(--border); padding-top: 1.25rem; font-size: 0.85rem; color: var(--muted); }

/* Guide pages */
.breadcrumb { padding: 1.25rem 0 0; font-size: 0.88rem; color: var(--muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; color: var(--border); }
.breadcrumb a { color: var(--link); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.article { padding: 1.5rem 0 3.5rem; }
.article-inner { max-width: 46rem; }
.article h1 { font-size: clamp(1.8rem, 4.2vw, 2.5rem); margin: 0.5rem 0 0.9rem; }
.article .meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 2rem; }
.article h2 { margin: 2.2rem 0 0.8rem; font-size: 1.45rem; }
.article h3 { margin: 1.6rem 0 0.5rem; font-size: 1.15rem; }
.article p { margin-bottom: 1rem; }
.article ul, .article ol { margin: 0 0 1rem 1.4rem; display: grid; gap: 0.4rem; }
.article table { border-collapse: collapse; width: 100%; margin: 1rem 0 1.5rem; font-size: 0.95rem; }
.article th, .article td { border: 1px solid var(--border); padding: 0.6rem 0.8rem; text-align: left; }
.article th { background: var(--surface); }
.article .callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.3rem;
  margin: 1.5rem 0;
}
.article .callout p:last-child { margin-bottom: 0; }
.related { margin-top: 3rem; border-top: 1px solid var(--border); padding-top: 1.75rem; }
.related h2 { margin-top: 0; }
