/* DrumSheetScanner website
   Palette lifted from lib/core/theme/app_colors.dart so the site and the app
   are recognisably the same product. Light is the "paper and ink" scheme,
   dark is the original groove-machine look.

   No webfonts, no CDN, no analytics: every byte of this site is served from
   your own host. A privacy page that quietly calls a third party undercuts
   its own text. */

:root {
  --bg: #FAF7F5;
  --surface: #FFFFFF;
  --surface-2: #F1ECE9;
  --text: #1B1614;
  --text-dim: #6B615C;
  --border: #E2DAD5;
  --brand: #C62828;
  --brand-soft: #FFDAD6;
  --accent: #E65100;
  --on-brand: #FFFFFF;
  --shadow: 0 1px 2px rgba(27, 22, 20, .06), 0 8px 24px rgba(27, 22, 20, .05);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --surface: #1E1E1E;
    --surface-2: #2A2A2A;
    --text: #EEEEEE;
    --text-dim: #9E9E9E;
    --border: #3A3A3A;
    --brand: #E53935;
    --brand-soft: #B71C1C;
    --accent: #FF9800;
    --on-brand: #FFFFFF;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- layout ---------- */

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 22px; }
.wrap--wide { max-width: 1000px; }

main { padding: 8px 0 64px; }

section { margin: 0 0 44px; }

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -.01em;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}
.brand:hover { color: var(--text); }
.brand img { width: 32px; height: 32px; border-radius: 8px; display: block; }

nav.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

nav.site-nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 6px 11px;
  border-radius: 7px;
}
nav.site-nav a:hover { color: var(--text); background: var(--surface-2); }
nav.site-nav a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }

@media (prefers-color-scheme: dark) {
  nav.site-nav a[aria-current="page"] { color: #FFFFFF; }
}

/* ---------- type ---------- */

h1 {
  font-size: clamp(30px, 5vw, 40px);
  line-height: 1.15;
  letter-spacing: -.022em;
  margin: 36px 0 10px;
  font-weight: 700;
}

h2 {
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -.014em;
  margin: 40px 0 12px;
  font-weight: 650;
}

h3 {
  font-size: 18px;
  margin: 26px 0 6px;
  font-weight: 650;
}

p { margin: 0 0 15px; }

ul, ol { margin: 0 0 15px; padding-left: 22px; }
li { margin-bottom: 7px; }

.lede {
  font-size: 20px;
  line-height: 1.55;
  color: var(--text-dim);
  margin-bottom: 26px;
}

.meta {
  font-size: 14px;
  color: var(--text-dim);
  margin: 0 0 30px;
}

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: .085em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em;
  background: var(--surface-2);
  padding: 1.5px 5px;
  border-radius: 4px;
}

/* ---------- components ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
}

.card h3:first-child, .card h2:first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 0 0 24px;
}
.callout > :last-child { margin-bottom: 0; }
.callout strong { color: var(--text); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: 16px;
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 17px;
}
.feature p {
  margin: 0;
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.55;
}

.btn {
  display: inline-block;
  background: var(--brand);
  color: var(--on-brand);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 12px 22px;
  border-radius: 9px;
  border: 1px solid transparent;
}
.btn:hover { background: var(--accent); color: var(--on-brand); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { background: var(--surface-2); color: var(--text); border-color: var(--text-dim); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }

dl.faq { margin: 0; }
dl.faq dt {
  font-weight: 650;
  font-size: 17px;
  margin: 26px 0 6px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
dl.faq dt:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
dl.faq dd { margin: 0; color: var(--text-dim); }
dl.faq dd p { margin: 0 0 12px; }
dl.faq dd > :last-child { margin-bottom: 0; }

table.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  margin: 0 0 15px;
}
table.spec th, table.spec td {
  text-align: left;
  vertical-align: top;
  padding: 11px 14px 11px 0;
  border-bottom: 1px solid var(--border);
}
table.spec th {
  font-weight: 600;
  width: 34%;
  padding-right: 20px;
}
table.spec td { color: var(--text-dim); }

.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  margin-bottom: 20px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
  font-size: 14.5px;
  display: grid;
  place-items: center;
}
@media (prefers-color-scheme: dark) {
  .steps li::before { color: #FFFFFF; }
}
.steps li strong { display: block; margin-bottom: 2px; }
.steps li span { color: var(--text-dim); font-size: 15.5px; }

/* Placeholders must wrap: some of them are whole sentences, and `nowrap`
   pushed the page wider than a phone screen. */
.fill-me {
  background: var(--brand-soft);
  color: var(--text);
  padding: 0 6px;
  border-radius: 4px;
  font-weight: 600;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
@media (prefers-color-scheme: dark) {
  .fill-me { color: #FFFFFF; }
}

/* ---------- hero (index) ---------- */

.hero {
  background: #121212;
  color: #EEEEEE;
  border-bottom: 1px solid #2A2A2A;
  padding: 72px 0 76px;
}
.hero h1 { color: #FFFFFF; margin-top: 0; }
.hero .lede { color: #B9B2AF; max-width: 30em; }
.hero .eyebrow { color: #FF9800; }
.hero .btn--ghost { color: #EEEEEE; border-color: #4A4A4A; }
.hero .btn--ghost:hover { background: #2A2A2A; color: #FFFFFF; border-color: #6E6E6E; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 52px;
  align-items: center;
}
@media (max-width: 780px) {
  .hero { padding: 52px 0 56px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
}

/* The step grid from the sequencer, drawn in CSS. Decorative only. */
.step-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 5px;
  padding: 16px;
  background: #1E1E1E;
  border: 1px solid #383838;
  border-radius: 12px;
}
.step-grid i {
  display: block;
  aspect-ratio: 1;
  border-radius: 3px;
  background: #252525;
  border: 1px solid #383838;
}
.step-grid i.on   { background: #E53935; border-color: #E53935; }
.step-grid i.acc  { background: #FF6F00; border-color: #FF6F00; }
.step-grid i.gho  { background: #546E7A; border-color: #546E7A; }
.step-grid i.cur  { background: #FFEB3B; border-color: #FFEB3B; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 30px 0 42px;
  font-size: 15px;
  color: var(--text-dim);
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: baseline; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; margin-right: auto; }
.site-footer a { color: var(--text-dim); text-decoration: none; }
.site-footer a:hover { color: var(--brand); text-decoration: underline; }
.site-footer small { font-size: 14px; }
