/* badum! site. One stylesheet, no framework, system fonts.
   Colours are the app's (Badum/Views/Theme.swift and the Drum colours). Dark is the app's own look; light follows the
   reader's system setting and keeps the same accents, darkened where they carry text. */

:root {
  color-scheme: dark light;
  --ground: #0f1113;
  --panel: #181b1f;
  --panel-2: #14171a;
  --line: #2a2e35;
  --text: #f3f0ea;
  --muted: #a2a9b3;
  --hat: #f2c43d;        /* brand yellow: buttons and the hi-hat */
  --hat-text: #f2c43d;   /* yellow used as text */
  --on-hat: #15181c;
  --snare: #ff7a59;
  --kick: #5b9bff;
  --good: #57d68d;
  --here: #1e1c14;
  --focus: #5b9bff;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03);
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --round: ui-rounded, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --ground: #f6f3ec;
    --panel: #ffffff;
    --panel-2: #efebe2;
    --line: #ddd7cb;
    --text: #15181c;
    --muted: #535a63;
    --hat-text: #7a5a00;
    --snare: #e2532f;
    --kick: #2f6fdc;
    --good: #1d8049;
    --here: #fbf1cf;
    --focus: #2f6fdc;
    --shadow: 0 1px 2px rgba(21, 24, 28, 0.06);
  }
}

* { box-sizing: border-box; }
html { background: var(--ground); color: var(--text); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
img { max-width: 100%; height: auto; }

a { color: var(--text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--hat-text); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--hat); color: var(--on-hat);
  padding: 10px 14px; border-radius: 10px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Layout */
.wrap, header.site, footer.site { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
main { display: block; }
section { margin: 0 0 72px; }

/* Header */
header.site {
  display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 8px;
}
header.site .name { display: block; line-height: 0; margin-right: auto; }
header.site .name img { height: 30px; width: auto; }
header.site nav { display: flex; gap: 4px 18px; flex-wrap: wrap; order: 3; width: 100%; font-size: 15px; }
header.site nav a { text-decoration: none; color: var(--muted); padding: 6px 0; }
header.site nav a:hover, header.site nav a[aria-current="page"] { color: var(--text); }
header.site nav a[aria-current="page"] { text-decoration: underline; }
@media (min-width: 760px) {
  header.site { padding-top: 28px; }
  header.site nav { order: 0; width: auto; }
}

/* Type */
.eyebrow {
  font: 700 12px/1.3 var(--mono); letter-spacing: 0.08em; color: var(--hat-text); text-transform: uppercase;
  margin: 0 0 14px;
}
h1 { font-size: clamp(36px, 8.5vw, 60px); line-height: 1.04; margin: 0 0 18px; letter-spacing: -0.02em; }
h2 { font-size: clamp(25px, 5vw, 34px); line-height: 1.15; margin: 0 0 14px; letter-spacing: -0.01em; }
h3 { font-size: 19px; line-height: 1.3; margin: 32px 0 8px; }
p { margin: 0 0 16px; }
.lede { font-size: 19px; color: var(--muted); max-width: 34em; }
@media (min-width: 760px) { .lede { font-size: 21px; } }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.section-lede { color: var(--muted); max-width: 36em; margin-bottom: 28px; }
.term { color: var(--hat-text); font-weight: 600; }
kbd {
  font: 600 14px var(--mono); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px;
  padding: 1px 6px; background: var(--panel);
}

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px;
  border-radius: 999px; background: var(--hat); color: var(--on-hat); font-family: inherit; font-size: 17px;
  font-weight: 700; line-height: 1.2;
  text-decoration: none; border: 0; cursor: pointer;
}
.button:hover { color: var(--on-hat); filter: brightness(1.06); }
.button.small { min-height: 40px; padding: 8px 18px; font-size: 15px; }
.button.quiet { background: transparent; color: var(--text); border: 1px solid var(--line); }
.button.quiet:hover { border-color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 24px 0 12px; }
.soon { font-size: 15px; color: var(--muted); }

/* Hero */
.hero { padding: 40px 0 8px; display: grid; gap: 40px; align-items: center; }
.hero .price-line { font-size: 15px; color: var(--muted); max-width: 30em; }
@media (min-width: 860px) {
  .hero { grid-template-columns: 1.25fr 0.75fr; padding-top: 72px; }
}

/* A phone with a real screenshot in it */
.phone {
  margin: 0 auto; width: min(300px, 78vw); border-radius: 44px; padding: 10px; background: #000;
  border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5);
}
.phone img { display: block; width: 100%; border-radius: 34px; }
figure { margin: 0; }
figcaption { font-size: 14px; color: var(--muted); margin-top: 12px; text-align: center; }

/* Panels and cards */
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 22px 20px;
  box-shadow: var(--shadow);
}
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.cards > li { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 20px; box-shadow: var(--shadow); }
.cards strong { display: block; font-size: 18px; margin-bottom: 4px; }
.cards p { color: var(--muted); font-size: 16px; margin: 0; }
.cards .more { display: inline-block; margin-top: 10px; font-weight: 600; font-size: 15px; }
@media (min-width: 640px) { .cards.two { grid-template-columns: 1fr 1fr; } }
@media (min-width: 860px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) and (max-width: 859px) { .cards.three { grid-template-columns: 1fr 1fr; } }

/* The four ways in */
.doors { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .doors { grid-template-columns: 1fr 1fr; } }
.doors a {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 22px; background: var(--panel);
  border: 1px solid var(--line); text-decoration: none; min-height: 84px; box-shadow: var(--shadow);
}
.doors a:hover { border-color: var(--hat); color: var(--text); }
.doors svg { flex: none; width: 40px; height: 40px; }
.doors .door { display: block; }
.doors strong { display: block; font-size: 18px; color: var(--text); }
.doors .door span { display: block; color: var(--muted); font-size: 15px; }

/* Drum shapes inside inline SVG */
.s-hat { stroke: var(--hat); }
.f-hat { fill: var(--hat); }
.f-snare { fill: var(--snare); }
.f-kick { fill: var(--kick); }
.f-text { fill: var(--text); }
.f-muted { fill: var(--muted); }
.f-panel { fill: var(--panel); }
.s-line { stroke: var(--line); }
.s-text { stroke: var(--text); }

.beat { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 22px 16px 14px; margin: 0 0 8px; }
.beat svg { display: block; width: 100%; height: auto; }
.caption { font-size: 14px; color: var(--muted); }

/* The groove player embed (built in /js/groove-player.js). Holds its place while the script loads. */
/* Its own look (the gp-* classes) comes with the player; these rules only keep it inside the column. */
.groove { margin: 20px 0 8px; border-radius: 22px; max-width: 100%; overflow-x: auto; }
.groove:empty { min-height: 180px; background: var(--panel); border: 1px solid var(--line); }

/* Steps */
ol.steps-big { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 28px; }
ol.steps-big > li { counter-increment: step; position: relative; padding-left: 52px; }
ol.steps-big > li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--hat); color: var(--on-hat); font: 700 16px/36px var(--mono); text-align: center;
}
ol.steps-big strong { display: block; font-size: 19px; }
ol.steps-big p { color: var(--muted); margin: 2px 0 0; }

.how { display: grid; gap: 32px; align-items: start; }
@media (min-width: 860px) { .how { grid-template-columns: 1fr 1fr; } }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.shots .phone { width: 100%; border-radius: 30px; padding: 6px; }
.shots .phone img { border-radius: 25px; }

/* Levels */
ol.levels { list-style: none; padding: 0; margin: 20px 0 12px; counter-reset: level -1; border-top: 1px solid var(--line); }
ol.levels li { counter-increment: level; padding: 12px 0 12px 46px; border-bottom: 1px solid var(--line); position: relative; }
ol.levels li::before {
  content: counter(level); position: absolute; left: 0; top: 12px; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line); text-align: center; font: 700 14px/30px var(--mono); color: var(--muted);
}
ol.levels li.free::before { background: var(--hat); border-color: var(--hat); color: var(--on-hat); }
ol.levels strong { display: block; }
ol.levels span { color: var(--muted); font-size: 16px; }
.tag {
  display: inline-block; font: 700 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 999px; vertical-align: 2px; margin-left: 6px;
}
.tag.free { background: var(--hat); color: var(--on-hat); }
.tag.full { border: 1px solid var(--line); color: var(--muted); }

/* Price */
.price { display: grid; gap: 14px; }
@media (min-width: 760px) { .price { grid-template-columns: 1fr 1fr; } }
.price .plan { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 24px 22px; }
.price .plan.free { background: var(--here); }
.price h3 { margin: 0 0 4px; font-size: 20px; }
.price .amount { font: 700 30px/1.1 var(--round); margin: 10px 0 4px; letter-spacing: -0.01em; }
.price .amount small { font-size: 16px; font-weight: 600; color: var(--muted); }
.price .or { font-size: 15px; color: var(--muted); margin: 14px 0 0; }
.price ul { padding-left: 20px; margin: 14px 0 0; color: var(--muted); font-size: 16px; }
.price ul li { margin-bottom: 6px; }
.price .amount + p { color: var(--muted); font-size: 15px; }
.trial-line { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.trial-line li { display: grid; grid-template-columns: 78px 1fr; gap: 12px; font-size: 15px; color: var(--muted); }
.trial-line b { color: var(--text); font: 700 13px/1.6 var(--mono); text-transform: uppercase; letter-spacing: 0.04em; }

/* Lists */
ul.points { list-style: none; padding: 0; margin: 24px 0; border-top: 1px solid var(--line); }
ul.points li { padding: 16px 0; border-bottom: 1px solid var(--line); }
ul.points strong { display: block; }
ul.points span { color: var(--muted); font-size: 16px; }
ul.tips, ol.steps { padding-left: 22px; margin: 0 0 24px; }
ul.tips li, ol.steps li { margin-bottom: 10px; }
ol.steps li::marker { color: var(--muted); font-family: var(--mono); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 700; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 12px; font: 400 24px/1 var(--mono); color: var(--muted);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 18px; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* Waitlist */
.join { background: var(--panel); border: 1px solid var(--line); border-radius: 26px; padding: 28px 20px; }
@media (min-width: 760px) { .join { padding: 40px; } }
.waitlist { display: grid; gap: 16px; max-width: 520px; margin-top: 20px; }
.waitlist label.field { font-weight: 600; font-size: 15px; display: grid; gap: 6px; }
.waitlist input[type="email"] {
  font: inherit; color: var(--text); background: var(--ground); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 14px; min-height: 50px; width: 100%;
}
.waitlist input[type="email"]:focus-visible { border-color: var(--focus); }
.waitlist fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.waitlist legend { font-weight: 600; font-size: 15px; padding: 0; margin-bottom: 8px; width: 100%; }
.waitlist .choice, .waitlist .check { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; }
.waitlist input[type="radio"], .waitlist input[type="checkbox"] {
  width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--hat); flex: none;
}
.waitlist .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.waitlist .button { justify-self: start; }
.form-status { margin: 0; font-weight: 600; }
.form-status.error { color: var(--snare); }
.joined { font-size: 18px; }

/* Articles */
article .lede { margin-bottom: 28px; }
article h2 { margin-top: 48px; }
article .answer { background: var(--panel); border-left: 4px solid var(--hat); border-radius: 0 16px 16px 0; padding: 16px 18px; }
article .answer p:last-child { margin-bottom: 0; }
.crumbs { font-size: 14px; color: var(--muted); margin: 32px 0 16px; }
.crumbs a { color: var(--muted); }
.practise {
  margin: 48px 0 0; padding: 24px 20px; border-radius: 22px; background: var(--here); border: 1px solid var(--line);
}
.practise h2 { margin-top: 0; font-size: 24px; }
.next { margin-top: 32px; font-size: 16px; }

ul.lessons { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
ul.lessons a {
  display: block; padding: 18px 20px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line);
  text-decoration: none;
}
ul.lessons a:hover { border-color: var(--hat); color: var(--text); }
ul.lessons strong { display: block; font-size: 18px; }
ul.lessons span { display: block; color: var(--muted); font-size: 15px; }
ul.lessons .meta { font: 700 12px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--hat-text); margin-bottom: 4px; }

/* Tables (setup) */
table.cables { width: 100%; border-collapse: collapse; margin: 24px 0 8px; font-size: 16px; }
table.cables th {
  text-align: left; font: 700 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  padding: 0 12px 10px 0;
}
table.cables td { vertical-align: top; padding: 14px 12px 14px 0; border-top: 1px solid var(--line); }
table.cables td:first-child { width: 34%; }
table.cables td > span:not(.term) { display: block; color: var(--muted); font-size: 14px; }
ul.ways { list-style: none; padding: 0; margin: 36px 0; display: grid; gap: 12px; }
ul.ways li { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 18px 20px; }
ul.ways strong { display: block; font-size: 18px; }
ul.ways span { display: block; color: var(--muted); font-size: 16px; }
ul.ways a { display: inline-block; margin-top: 8px; font-size: 15px; font-weight: 600; }

/* Legal */
dl.facts { display: grid; grid-template-columns: 1fr; gap: 4px 20px; margin: 20px 0; }
dl.facts dt { font-weight: 700; margin-top: 12px; }
dl.facts dd { margin: 0; color: var(--muted); }
@media (min-width: 640px) {
  dl.facts { grid-template-columns: 200px 1fr; }
  dl.facts dt, dl.facts dd { margin: 0; padding: 10px 0; border-top: 1px solid var(--line); }
}

/* Page-level spacing */
.page-head { padding: 40px 0 8px; }
@media (min-width: 760px) { .page-head { padding-top: 64px; } }
.page-body h2 { margin-top: 48px; }

/* Footer */
footer.site { padding-top: 48px; padding-bottom: 48px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 24px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 16px; }
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--text); }
footer.site p { margin: 0 0 8px; }

@media (max-width: 520px) {
  .term { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.end { margin-bottom: 72px; }
.after-price { margin-top: 14px; }
/* Text pages line up with the header on wide screens instead of floating in the middle. */
.wrap.narrow { max-width: 1040px; }
.wrap.narrow > * { max-width: 720px; }
section.page-head { margin-bottom: 32px; }
