/* Chords Weaver landing site. Palette and type come from the app (index.html :root, src/constants.js). */
:root {
  color-scheme: dark;
  --bg-0: #100e0b;
  --bg-1: #17130d;
  --bg-3: #221d16;
  --border: #38301f;
  --text-primary: #f3efe8;
  --text-secondary: #cacaca;
  --text-muted: #9a9a9a;
  --accent: #e0a84e;
  --mono: 'Courier New', Courier, monospace;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text-primary);
  font: 16px/1.6 var(--sans);
}
a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

.wordmark { font-family: var(--mono); font-weight: 700; letter-spacing: 0.08em; color: var(--text-primary); margin: 0; }
.wordmark span { color: var(--accent); }

/* ── Home ── */
.hero { display: grid; gap: 32px; padding-top: 40px; padding-bottom: 24px; align-items: center; }
.brand { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.brand img { width: 64px; height: 64px; border-radius: 15px; display: block; }
.brand .wordmark { font-size: clamp(26px, 7.4vw, 44px); line-height: 1.1; }
.copy p { margin: 0 0 14px; font-family: var(--mono); color: var(--text-secondary); font-size: 17px; line-height: 1.55; }
.copy p.lead { color: var(--text-primary); font-weight: 700; font-size: 20px; line-height: 1.45; }
.copy p.price { color: var(--text-muted); font-size: 15px; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.store {
  display: flex; flex-direction: column; justify-content: center;
  min-width: 190px; min-height: 56px; padding: 8px 18px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--bg-3);
  color: var(--text-primary); text-decoration: none; font-family: var(--mono); line-height: 1.2;
}
.store small { font-size: 12px; color: var(--text-muted); }
.store strong { font-size: 19px; letter-spacing: 0.02em; }
.store:hover { border-color: var(--accent); }
.os-ios .store-ios, .os-android .store-android { order: -1; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset, 0 0 24px #e0a84e22; }
.os-ios .store-ios strong, .os-android .store-android strong { color: var(--accent); }

.sibling { font-family: var(--mono); font-size: 14px; color: var(--text-muted); margin: 0; }
.sibling.try-web { margin: -8px 0 12px; }

.video { position: relative; width: 100%; max-width: 400px; margin: 0 auto; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: #0e0c09; }
.video video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; cursor: pointer; }
.video .sound {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  min-height: 44px; padding: 0 18px; border-radius: 22px; white-space: nowrap;
  border: 1px solid var(--border); background: #17130de6; color: var(--text-primary);
  font: 700 14px/1 var(--mono); letter-spacing: 0.04em; cursor: pointer;
}
.video .sound[aria-pressed="true"] { color: var(--text-muted); }
.video .play {
  position: absolute; left: 0; right: 0; bottom: 20%; margin: 0 auto; width: 88px; height: 88px; border-radius: 50%;
  border: 1px solid var(--accent); background: #17130de6; color: var(--accent);
  font: 30px/1 var(--mono); cursor: pointer; padding-left: 6px;
}
[hidden] { display: none !important; }

@media (min-width: 860px) {
  .hero { grid-template-columns: 1fr 360px; gap: 56px; padding-top: 56px; padding-bottom: 32px; }
  .video { max-width: none; width: min(360px, calc((100vh - 60px) * 9 / 16)); }
}

/* ── Text pages ── */
.topbar { padding-top: 20px; padding-bottom: 20px; }
.topbar a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.topbar img { width: 32px; height: 32px; border-radius: 8px; display: block; }
.topbar .wordmark { font-size: 17px; }
.doc { max-width: 680px; padding-top: 8px; padding-bottom: 24px; overflow-wrap: anywhere; }
.doc h1 { font-family: var(--mono); font-size: 28px; margin: 12px 0 8px; }
.doc h2 { font-family: var(--mono); font-size: 18px; margin: 2rem 0 0.5rem; color: var(--accent); }
.doc p, .doc ul { margin: 0.5rem 0; color: var(--text-secondary); }
.doc li { margin: 0.4rem 0; }
.doc strong { color: var(--text-primary); }
.doc .mail { font-family: var(--mono); font-weight: 700; font-size: 18px; }

/* ── Footer ── */
.foot { border-top: 1px solid var(--border); margin-top: 24px; padding-top: 18px; padding-bottom: 28px; font-family: var(--mono); font-size: 13px; color: var(--text-muted); }
.foot a { color: var(--text-secondary); text-decoration: none; }
.foot a:hover { color: var(--accent); }
.foot .sep { margin: 0 8px; }
