/* BeatsAround — one stylesheet for every page.
   Colors are tokens on :root; dark mode follows the visitor's system. */

:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --surface-2: #efeee9;
  --text: #17171a;
  --text-2: #55555c;
  --text-3: #8a8a91;
  --border: rgba(20, 20, 30, 0.12);
  --border-strong: rgba(20, 20, 30, 0.22);
  --accent: #14b892;          /* WayMix teal, from its icon */
  --accent-ink: #087a60;
  --accent-soft: #d9f5ec;
  --practice: #155e59;        /* Muserno teal, the app's accent (PRACTICE_UI.md) */
  --practice-ink: #155e59;
  --practice-soft: #ddf3f4;
  --warm: #f08a4b;
  --mac-panel: rgba(250, 250, 252, 0.92);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 28px rgba(0,0,0,.08);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111114;
    --surface: #1b1b20;
    --surface-2: #24242a;
    --text: #f2f2f4;
    --text-2: #b4b4bc;
    --text-3: #7c7c85;
    --border: rgba(255, 255, 255, 0.10);
    --border-strong: rgba(255, 255, 255, 0.20);
    --accent: #2fd3aa;
    --accent-ink: #6fe6c6;
    --accent-soft: #11392f;
    --practice: #7fd0c3;
    --practice-ink: #7fd0c3;
    --practice-soft: #1d2e2f;
    --mac-panel: rgba(40, 40, 46, 0.92);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.45);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:hover { color: var(--accent-ink); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.muted { color: var(--text-2); }
.small { font-size: .9rem; }
.eyebrow { font-size: .8rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: .6em; }
.practice .eyebrow, .eyebrow.practice { color: var(--practice-ink); }

/* Header and footer */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; font-size: 1.1rem; letter-spacing: -0.02em; }
.brand-mark { width: 28px; height: 28px; flex: none; }
.brand-word { white-space: nowrap; }
/* The ea of "Beats" is a ligature (design/sketches/logo-ea): sized to the x-height. */
.brand-ea { height: .6em; width: auto; vertical-align: -0.03em; margin: 0 .01em 0 .02em; }
.nav { display: flex; gap: 22px; font-size: .95rem; }
.nav a { text-decoration: none; color: var(--text-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.site-footer { border-top: 1px solid var(--border); margin-top: 80px; padding: 36px 0 48px; font-size: .9rem; color: var(--text-2); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; }
.footer-grid h4 { margin: 0 0 8px; font-size: .85rem; color: var(--text); }
.footer-grid a { display: block; text-decoration: none; padding: 2px 0; }
.copyright { margin-top: 28px; color: var(--text-3); font-size: .85rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: 600 .95rem var(--font); text-decoration: none; cursor: pointer; transition: transform .12s ease, background .12s ease; }
.btn:hover { transform: translateY(-1px); color: var(--text); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-store { background: var(--text); color: var(--bg); border-color: transparent; }
.btn-store:hover { color: var(--bg); }
.btn-store svg { width: 20px; height: 20px; }
.btn-store small { display: block; font-size: .7rem; font-weight: 500; opacity: .8; line-height: 1; }
.btn-store span { line-height: 1.15; text-align: left; }
.btn-store.soon { opacity: .55; cursor: default; }
.btn-store.soon:hover { transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Sections */
section { padding: 72px 0; }
.hero { padding: 72px 0 40px; }
.lede { font-size: clamp(1.1rem, 2.4vw, 1.3rem); color: var(--text-2); max-width: 640px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.feature svg { width: 26px; height: 26px; color: var(--accent); margin-bottom: 10px; }
.practice .feature svg { color: var(--practice); }
.feature p { color: var(--text-2); margin: 0; font-size: .97rem; }

/* App cards on the home page */
.app-card { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: hidden; }
.app-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.app-card .icon { width: 72px; height: 72px; border-radius: 18px; }
.app-card h3 { font-size: 1.5rem; margin: 0; }
.app-card p { color: var(--text-2); margin: 0; }
.app-card .more { margin-top: auto; font-weight: 600; color: var(--accent-ink); }
.app-card.practice .more { color: var(--practice-ink); }
.tag { display: inline-block; font-size: .75rem; font-weight: 650; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); }
.tag.practice { background: var(--practice-soft); color: var(--practice-ink); }
.tag.later { background: var(--surface-2); color: var(--text-2); }

/* Home hero: dancing bars */
.beats { display: flex; align-items: flex-end; gap: 6px; height: 64px; margin-bottom: 28px; }
.beats i { display: block; width: 10px; border-radius: 5px; background: var(--accent); animation: beat 1.1s ease-in-out infinite; transform-origin: bottom; }
.beats i:nth-child(3n) { background: var(--practice); }
.beats i:nth-child(4n) { background: var(--warm); }
@keyframes beat { 0%, 100% { height: 18%; } 50% { height: 100%; } }
@media (prefers-reduced-motion: reduce) { .beats i { animation: none; height: 60%; } }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 750; }
.practice .step::before { background: var(--practice-soft); color: var(--practice-ink); }
.step h3 { margin: 8px 0 4px; }
.step p { color: var(--text-2); margin: 0; }
kbd { font: 600 .85em var(--mono); padding: 1px 6px; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 5px; background: var(--surface); }

/* Callouts and FAQ */
.callout { border-radius: var(--radius); padding: 18px 20px; background: var(--surface-2); color: var(--text-2); font-size: .97rem; }
.callout strong { color: var(--text); }
details { border-bottom: 1px solid var(--border); padding: 14px 0; }
details summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--text-3); font-weight: 400; font-size: 1.3em; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--text-2); margin: 10px 0 0; }

/* The Pro teaser */
.pro { border-radius: 24px; padding: 40px; background: #121216; color: #f2f2f4; position: relative; overflow: hidden; }
.pro .muted { color: #b4b4bc; }
.pro h2 { color: #fff; }
.pro .tag.later { background: rgba(255,255,255,.1); color: #d6d6dc; }
.pro-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 28px; }
.pro-item { border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 18px; }
.pro-item h3 { color: #fff; margin-bottom: 4px; font-size: 1.02rem; }
.pro-item p { color: #b4b4bc; margin: 0; font-size: .93rem; }
.pro-item svg { width: 22px; height: 22px; color: #2fd3aa; margin-bottom: 8px; }

/* Legal and support pages */
.doc { padding-top: 56px; }
.doc h2 { font-size: 1.35rem; margin-top: 2em; }
.doc p, .doc li { color: var(--text-2); }
.doc li { margin-bottom: .4em; }
.updated { color: var(--text-3); font-size: .9rem; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { gap: 14px; font-size: .9rem; }
  .nav .hide-sm { display: none; }
  section { padding: 52px 0; }
  .pro { padding: 28px 22px; }
}
