/* Barbeat help site. Dark on purpose: it's a light show. */
:root {
  color-scheme: dark;
  --bg: #07070c;
  --surface: #10101a;
  --surface-2: #171724;
  --line: #262638;
  --text: #ececf4;
  --muted: #a3a4b8;
  --faint: #6f7088;
  --link: #8bdcff;
  --cyan: #22d3ee;
  --blue: #6366f1;
  --violet: #a855f7;
  --pink: #ec4899;
  --spectrum: linear-gradient(90deg, var(--cyan), var(--blue) 38%, var(--violet) 68%, var(--pink));
  --radius: 14px;
  --wide: 1120px;
  --text-width: 720px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
code, kbd { font: 0.88em/1.4 ui-monospace, "SF Mono", Menlo, monospace; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 0.1em 0.4em; }
strong { color: #fff; font-weight: 600; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 20px; }
.prose { max-width: var(--text-width); }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(7, 7, 12, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 20px; height: 56px; }
.brand { flex-shrink: 0; display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.topbar nav { display: flex; gap: 18px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.topbar nav::-webkit-scrollbar { display: none; }
.topbar nav a { color: var(--muted); font-size: 14px; white-space: nowrap; }
.topbar nav a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 760px) { .topbar nav .optional { display: none; } }

/* Buttons */
.buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 16px;
  color: #fff; background: var(--surface-2); border: 1px solid var(--line);
}
.button:hover { text-decoration: none; border-color: #3a3a52; }
.button.primary { background: var(--spectrum); border: 0; color: #0a0a12; }
.button.primary:hover { filter: brightness(1.08); }

/* Hero */
.hero { text-align: center; padding-top: 72px; padding-bottom: 24px; }
.hero .icon { width: 96px; height: 96px; margin: 0 auto 22px; border-radius: 22px; box-shadow: 0 12px 40px rgba(99, 102, 241, 0.35); }
.hero h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.05; letter-spacing: -0.025em; margin: 0 0 18px; font-weight: 750; }
.gradient-text { background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 720px; margin: 0 auto 28px; }
.hero .fine { color: var(--faint); font-size: 14px; margin-top: 14px; }

.shot { position: relative; margin: 40px auto 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.shot.glow { box-shadow: 0 30px 120px -20px rgba(168, 85, 247, 0.35), 0 10px 60px -10px rgba(34, 211, 238, 0.25); }
figure { margin: 0; }
figcaption { color: var(--faint); font-size: 14px; margin-top: 10px; }
.hero figcaption { text-align: center; }

/* Sections */
section { padding: 72px 0; border-top: 1px solid var(--line); }
section.first { border-top: 0; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }
h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 16px; font-weight: 720; }
h3 { font-size: 22px; line-height: 1.25; margin: 40px 0 10px; font-weight: 680; letter-spacing: -0.01em; }
h4 { font-size: 17px; margin: 0 0 6px; font-weight: 650; }
p { margin: 0 0 14px; }
.lead { font-size: 19px; color: var(--muted); max-width: var(--text-width); }
.muted { color: var(--muted); }
ul, ol { padding-left: 1.3em; margin: 0 0 14px; }
li { margin: 4px 0; }

/* Screen colors feature */
.feature-head { text-align: center; max-width: 820px; margin: 0 auto 40px; }
.feature-head .lead { margin: 0 auto; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p:last-child { margin-bottom: 0; }
.card .tag { display: inline-block; font-size: 12px; font-weight: 700; color: #0a0a12; background: var(--spectrum); border-radius: 999px; padding: 2px 10px; margin-bottom: 10px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.pair figure { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pair figcaption { margin: 0; padding: 10px 14px; color: var(--muted); }
.pair figcaption strong { color: var(--text); }
@media (max-width: 680px) { .pair { grid-template-columns: 1fr; } }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 28px; }
.fact { border-left: 2px solid; border-image: var(--spectrum) 1; padding: 2px 0 2px 14px; }
.fact strong { display: block; font-size: 16px; }
.fact span { color: var(--muted); font-size: 15px; }
.note { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; color: var(--muted); font-size: 15px; margin-top: 22px; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; position: relative; padding: 16px 18px 16px 62px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin: 0; }
.steps li::before { content: counter(step); position: absolute; left: 18px; top: 15px; width: 28px; height: 28px; border-radius: 50%; background: var(--spectrum); color: #0a0a12; font-weight: 750; font-size: 15px; display: grid; place-items: center; }
.steps li p { margin: 2px 0 0; color: var(--muted); }

/* Style gallery */
.styles { display: grid; gap: 10px; margin-top: 28px; }
.style { display: grid; grid-template-columns: 210px 1fr; gap: 20px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.style h4 { margin: 0; }
.style p { margin: 2px 0 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.style img { border-radius: 6px; width: 100%; }
@media (max-width: 720px) { .style { grid-template-columns: 1fr; gap: 10px; } }

/* Settings reference */
.settings { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: start; margin-top: 28px; }
.settings .panel { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
@media (max-width: 860px) {
  .settings { grid-template-columns: 1fr; }
  .settings .panel { max-width: 320px; max-height: 560px; margin: 0 auto; }
}
dl { margin: 0; }
dt { font-weight: 650; margin-top: 18px; }
dt:first-child { margin-top: 0; }
dd { margin: 4px 0 0; color: var(--muted); }
dl + p { margin-top: 22px; }
.group-title { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin: 34px 0 6px; padding-top: 18px; border-top: 1px solid var(--line); }
.group-title:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin: 10px 0; }
summary { cursor: pointer; padding: 15px 0; font-weight: 620; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--faint); font-weight: 400; font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details > div { padding: 0 0 16px; color: var(--muted); }
details > div p:last-child { margin-bottom: 0; }

/* Support */
.support { text-align: center; }
.support .lead { margin: 0 auto 26px; }
.heart { color: var(--pink); }

footer { border-top: 1px solid var(--line); padding: 34px 0 48px; color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); }

/* Privacy page */
.page { padding: 56px 0 72px; }
.page h1 { font-size: clamp(32px, 5vw, 46px); letter-spacing: -0.02em; margin: 0 0 8px; line-height: 1.1; }
.page h2 { font-size: 24px; margin: 40px 0 10px; }
.summary-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 26px 0; }
.summary-box p:last-child { margin: 0; }
