/* Coils Audio — landing page styles
   System font stack only, no external fonts/CDNs. */

:root {
  --bg: #0a0d12;
  --bg-alt: #0d1117;
  --card: #12161d;
  --card-border: #1f2530;
  --text: #e7ebf0;
  --text-dim: #9aa4b2;
  --text-faint: #6b7480;
  --accent: #5eead4;
  --accent-b: #fbbf24;
  --accent-c: #f472b6;
  --accent-ink: #04211c;
  --radius: 10px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 650; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; }
h4 { font-size: 1rem; margin-bottom: 0.4em; }
p { margin: 0 0 1em; color: var(--text-dim); }
a { color: var(--accent); text-decoration: none; }

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

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 13, 18, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--card-border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.logo-dot { color: var(--accent); }
.site-nav {
  display: flex; gap: 28px;
}
.site-nav a {
  color: var(--text-dim);
  font-size: 0.92rem;
}
.site-nav a:hover { color: var(--text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { background: #7ff2df; }
.btn-ghost {
  color: var(--text);
  border-color: var(--card-border);
}
.btn-ghost:hover { border-color: var(--text-faint); }
.btn-small { padding: 9px 16px; font-size: 0.88rem; }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-lede {
  max-width: 640px;
  font-size: 1.05rem;
}

/* ---------- hero ---------- */
.hero { padding: 72px 0 88px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.lede { font-size: 1.15rem; max-width: 46ch; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 14px; }
.hero-note { font-size: 0.85rem; color: var(--text-faint); margin: 0; }

/* ---------- mock frames (screenshot placeholders) ---------- */
.mock-frame {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.6);
}
.mock-chrome {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 12px;
  background: #171c25;
  border-bottom: 1px solid var(--card-border);
}
.mock-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #333c48;
}
.mock-title {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-faint);
}
.mock-body { display: flex; }
.mock-plot { width: 100%; height: auto; display: block; background: #0c1016; }
.mock-plot .grid line { stroke: #202836; stroke-width: 1; }
.mock-collision {
  fill: rgba(255,255,255,0.9);
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.7));
}
.mock-sidebar {
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px 10px;
  background: #10141b;
  border-right: 1px solid var(--card-border);
  min-width: 84px;
}
.mock-chip {
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 6px 8px;
  border-radius: 6px;
  color: #0a0d12;
  font-weight: 700;
}
.chip-a { background: var(--accent); }
.chip-b { background: var(--accent-b); }
.chip-c { background: var(--accent-c); }

.mock-caption {
  font-size: 0.8rem;
  color: var(--text-faint);
  text-align: center;
  margin-top: 12px;
}

.mock-frame--sm .mock-body { justify-content: center; padding: 0; }
.mock-frame--sm svg { width: 100%; height: 220px; display: block; }
.mock-body--rope, .mock-body--river { background: #0c1016; width: 100%; }
.mock-body--video {
  width: 100%; height: 220px;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 45%, #171c25, #0c1016);
}
.play-button {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--card-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  padding-left: 4px;
}

/* ---------- how it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 36px;
}
.step {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.step-num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(94, 234, 212, 0.12);
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.step p { margin-bottom: 0; font-size: 0.95rem; }

/* ---------- screenshots ---------- */
.screens-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 36px;
}
.screen-card { margin: 0; }
.screen-card figcaption {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.screen-card figcaption strong { color: var(--text); }

/* ---------- modules ---------- */
.module-group { margin-top: 40px; }
.module-group:first-of-type { margin-top: 30px; }
.group-label {
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-bottom: 16px;
  font-weight: 600;
}
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.module-grid--single { grid-template-columns: 1fr; }
.module {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 18px;
}
.module p { font-size: 0.9rem; margin-bottom: 0; }
.module--wide { padding: 22px 24px; }

/* ---------- who it's for ---------- */
.who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.who-card {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background: var(--bg);
}
.who-card p { margin-bottom: 0; font-size: 0.93rem; }

/* ---------- specs ---------- */
.specs-box {
  margin-top: 28px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}
.specs-box dl { margin: 0; }
.spec-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--card-border);
}
.spec-row:last-child { border-bottom: none; }
.spec-row dt {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-faint);
}
.spec-row dd { margin: 0; font-size: 0.95rem; }

/* ---------- notify / email capture ---------- */
.section-cta { text-align: center; }
.notify-wrap { max-width: 560px; }
.notify-form {
  display: flex; gap: 10px;
  margin: 26px 0 12px;
}
.notify-form input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--sans);
}
.notify-form input::placeholder { color: var(--text-faint); }
.notify-form input:focus, details summary:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.notify-fineprint { font-size: 0.8rem; color: var(--text-faint); }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }
details {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 16px 20px;
}
details[open] { padding-bottom: 18px; }
summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--text-faint);
  font-size: 1.2rem;
  margin-left: 12px;
}
details[open] summary::after { content: "\2212"; }
details p { margin: 12px 0 0; font-size: 0.94rem; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--card-border);
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
}
.footer-tagline { font-size: 0.85rem; margin: 0; }
.footer-copy { font-size: 0.8rem; color: var(--text-faint); margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .screens-grid { grid-template-columns: 1fr; }
  .who-grid { grid-template-columns: 1fr; }
  .site-nav { display: none; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .section { padding: 56px 0; }
  .hero { padding: 40px 0 56px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { text-align: center; }
  .notify-form { flex-direction: column; }
  .spec-row { grid-template-columns: 1fr; gap: 4px; }
  .header-inner { height: 58px; }
}
