/* 40 Bars Music — dark-studio design system. $0, no paid fonts or scripts. */
:root {
  --bg: #0b0b0d;
  --bg-2: #101014;
  --card: #16161b;
  --card-2: #1c1c22;
  --line: #2c2c34;
  --text: #f3efe6;
  --muted: #a8a399;
  --gold: #d4a017;
  --gold-2: #f0c14b;
  --gold-dim: rgba(212, 160, 23, 0.14);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --radius: 1rem;
  --wrap: 70rem;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); }
html { scroll-behavior: smooth; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(212, 160, 23, 0.08), transparent 55%),
    radial-gradient(800px 400px at 100% 0%, rgba(240, 193, 75, 0.05), transparent 45%),
    var(--bg);
}
img { max-width: 100%; }
a { color: var(--gold-2); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: #fff; }
.wrap { width: min(var(--wrap), calc(100% - 2rem)); margin: 0 auto; }
.wrap-narrow { width: min(46rem, calc(100% - 2rem)); margin: 0 auto; }

/* Header / nav */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11, 11, 13, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.85rem 0;
}
.brand {
  color: var(--text); text-decoration: none; font-weight: 750;
  letter-spacing: -0.03em; font-size: 1.05rem; white-space: nowrap;
}
.brand span { color: var(--gold); }
.nav-toggle {
  display: none; background: transparent; color: var(--text);
  border: 1px solid var(--line); border-radius: 0.6rem;
  min-width: 44px; min-height: 44px; font-weight: 700; cursor: pointer;
}
.nav { display: flex; flex-wrap: wrap; gap: 0.15rem 0.85rem; align-items: center; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: 0.86rem; font-weight: 650;
  padding: 0.35rem 0;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav .nav-cta {
  color: #111; background: var(--gold); border-radius: 999px;
  padding: 0.4rem 0.8rem; margin-left: 0.25rem;
}
.nav .nav-cta:hover { background: var(--gold-2); color: #111; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    display: none; flex-direction: column; align-items: stretch;
    position: absolute; left: 0; right: 0; top: 100%;
    background: #0f0f13; border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 1rem;
  }
  .site-header.is-open .nav { display: flex; }
  .nav a { padding: 0.7rem 0.2rem; min-height: 44px; display: flex; align-items: center; }
  .nav .nav-cta { margin: 0.4rem 0 0; justify-content: center; }
}

/* Hero / typography */
main { flex: 1; padding: 2.75rem 0 4.5rem; }
.hero { padding: 1.2rem 0 0.5rem; }
.eyebrow {
  color: var(--gold); font-size: 0.78rem; font-weight: 750;
  letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 0.7rem;
}
h1 {
  font-size: clamp(2rem, 5vw, 3.35rem); letter-spacing: -0.045em;
  line-height: 1.08; font-weight: 750; margin: 0 0 0.85rem;
}
h2 { font-size: 1.35rem; letter-spacing: -0.03em; margin: 0 0 0.6rem; }
h3 { font-size: 1.05rem; margin: 0 0 0.35rem; letter-spacing: -0.02em; }
.lede { font-size: 1.12rem; color: var(--muted); margin: 0 0 1.4rem; max-width: 40rem; }
.note, .fine { font-size: 0.92rem; color: var(--muted); }
.price-line { font-size: 1.05rem; color: var(--text); margin: 0 0 1.5rem; }
.price-line strong { color: var(--gold-2); }

/* Cards / grids */
.grid { display: grid; gap: 0.9rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}
.card {
  display: flex; flex-direction: column; gap: 0.35rem;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.15rem 1.2rem;
  text-decoration: none; color: inherit;
}
a.card:hover { border-color: var(--gold); }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card .amt { color: var(--gold-2); font-weight: 750; font-size: 1.2rem; letter-spacing: -0.03em; }
.card .tag { color: var(--gold); font-size: 0.75rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.card.feature { border-color: var(--gold); background: linear-gradient(180deg, var(--gold-dim), var(--card)); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.1rem 0 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem; min-height: 46px; padding: 0.6rem 1.05rem;
  border-radius: 999px; border: 1px solid var(--gold);
  background: var(--gold); color: #111; font-weight: 750;
  text-decoration: none; font-size: 0.95rem; cursor: pointer;
}
.btn:hover { background: var(--gold-2); color: #111; border-color: var(--gold-2); }
.btn.secondary {
  background: transparent; color: var(--text); border-color: var(--line);
}
.btn.secondary:hover { border-color: var(--gold); color: var(--gold-2); }

/* Sections / lists */
.section { margin-top: 2.75rem; }
.steps, .checklist, .legal-doc { color: var(--text); }
.steps, .checklist { padding-left: 1.15rem; }
.steps li, .checklist li { margin: 0.4rem 0; color: var(--muted); }
.steps li strong, .checklist li strong { color: var(--text); }
.callout {
  border: 1px solid var(--line); background: var(--card);
  border-radius: var(--radius); padding: 1rem 1.1rem; margin: 1rem 0 0;
}
.callout.legal { border-color: var(--gold); }

/* Beat catalog */
.beat-list { display: grid; gap: 0.65rem; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .beat-list { grid-template-columns: 1fr; } }
.beat {
  display: flex; justify-content: space-between; gap: 0.8rem; align-items: center;
  border: 1px solid var(--line); border-radius: 0.8rem; padding: 0.85rem 1rem;
  background: var(--card);
}
.beat h3 { margin: 0; font-size: 1rem; }
.beat p { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.85rem; }
.beat-links { display: flex; flex-wrap: wrap; gap: 0.4rem; flex: 0 0 auto; }
.beat-links a {
  color: #111; background: var(--gold); text-decoration: none;
  font-size: 0.78rem; font-weight: 750; border-radius: 999px; padding: 0.35rem 0.65rem;
}
.beat-links a.alt { background: transparent; color: var(--gold-2); border: 1px solid var(--line); }
.beat-links a:hover { background: var(--gold-2); color: #111; }

/* Legal typography */
.legal-doc h2 { margin-top: 1.8rem; }
.legal-doc h3 { margin-top: 1.2rem; }
.legal-doc p, .legal-doc li { color: var(--muted); }
.legal-doc p, .legal-doc ul, .legal-doc ol { margin: 0.55rem 0; }
.legal-updated { color: var(--muted); font-size: 0.9rem; margin-top: 0; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem;
  background: #09090b; margin-top: auto;
}
.footer-inner { padding: 1.4rem 0 5.5rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.7rem 1.1rem; margin: 0 0 0.7rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* Chat widget (dark studio) */
.bars-chat-root {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 9999;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text);
}
.bars-chat-toggle {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--gold); color: #111; border: 0; border-radius: 999px;
  padding: 12px 16px 12px 12px; font: 750 15px/1.2 ui-sans-serif, system-ui, sans-serif;
  cursor: pointer; min-height: 48px; min-width: 48px;
  box-shadow: var(--shadow);
}
.bars-chat-toggle:hover { background: var(--gold-2); }
.bars-chat-toggle .ico { width: 22px; height: 22px; flex: 0 0 22px; display: flex; align-items: center; justify-content: center; }
.bars-chat-toggle .ico svg { display: block; width: 18px; height: 18px; }
.bars-chat-panel {
  position: absolute; right: 0; bottom: 62px;
  width: min(390px, calc(100vw - 24px));
  height: min(580px, calc(100dvh - 120px));
  background: #141418; color: var(--text);
  border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; overflow: hidden;
}
.bars-chat-panel[hidden] { display: none; }
.bars-chat-hd {
  padding: 12px 14px; display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--line); background: #19191f;
}
.bars-chat-hd strong { font-size: 15px; display: block; letter-spacing: -0.02em; }
.bars-chat-hd span { font-size: 12px; color: var(--muted); }
.bars-chat-hd button {
  margin-left: auto; background: transparent; border: 0; color: var(--text);
  font-size: 28px; line-height: 1; cursor: pointer; width: 44px; height: 44px;
}
.bars-chat-msgs {
  flex: 1; overflow: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px;
  background: #121216; -webkit-overflow-scrolling: touch;
}
.bars-msg {
  max-width: 88%; padding: 9px 12px; border-radius: 14px;
  font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word;
}
.bars-msg.bot { background: #1c1c22; border: 1px solid var(--line); align-self: flex-start; }
.bars-msg.me { background: var(--gold); color: #111; align-self: flex-end; }
.bars-msg a { color: inherit; font-weight: 700; }
.bars-chat-qs {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 8px; background: #121216;
}
.bars-chat-qs button {
  background: #1c1c22; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 12px; font: 650 13px ui-sans-serif, system-ui, sans-serif;
  cursor: pointer; color: var(--text); min-height: 40px;
}
.bars-chat-qs button:hover { border-color: var(--gold); color: var(--gold-2); }
.bars-chat-form {
  display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: #19191f;
}
.bars-chat-form input {
  flex: 1; margin: 0; min-height: 44px; font-size: 16px;
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
  background: #121216; color: var(--text); outline: none;
}
.bars-chat-form input:focus { border-color: var(--gold); }
.bars-chat-form button {
  flex: 0; min-height: 44px; min-width: 64px; border: 0; border-radius: 12px;
  background: var(--gold); color: #111; font: 750 15px ui-sans-serif, system-ui, sans-serif;
  cursor: pointer; padding: 0 14px;
}
@media (max-width: 520px) {
  .bars-chat-root { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .bars-chat-toggle { width: 52px; height: 52px; padding: 0; font-size: 0; gap: 0; }
}

.legal-doc table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.95rem; }
.legal-doc th, .legal-doc td { border: 1px solid var(--line); padding: 0.5rem 0.65rem; text-align: left; vertical-align: top; }
.legal-doc th { color: var(--text); background: var(--card); }
.legal-doc code { font-size: 0.9em; }
.legal-doc hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }

