/* batukê landing page. Fonts are the app's own (assets/fonts), subset to
   Latin-1 and served from here, so the page fetches nothing from Google. */

@font-face { font-family: 'Chakra Petch'; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/ChakraPetch-SemiBold.woff2) format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-weight: 700; font-style: normal; font-display: swap; src: url(fonts/ChakraPetch-Bold.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/IBMPlexSans-Regular.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 500; font-style: normal; font-display: swap; src: url(fonts/IBMPlexSans-Medium.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/IBMPlexSans-SemiBold.woff2) format('woff2'); }

:root {
  --bg: #10161b;
  --surface: #19222a;
  --cell: #222d37;
  --line: #35434f;
  --text: #e6ecf0;
  --text-2: #c3ccd4;
  --muted: #94a3af;
  --accent: #ffc928;
  --accent-hover: #ffd65c;
  --accent-ink: #1c1600;
  --pink: #ff5c9d;
  --display: 'Chakra Petch', 'Trebuchet MS', sans-serif;
  --body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html.i18n-pending main, html.i18n-pending header, html.i18n-pending footer { visibility: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }
section[id] { scroll-margin-top: 16px; }

.skip { position: absolute; left: 16px; top: -100px; z-index: 10; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 16px; color: var(--bg); }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.band { border-top: 1px solid var(--line); }
.section { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 48px; }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }

.eyebrow {
  font-family: var(--display); font-weight: 600; font-size: 14px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
}
.eyebrow-dark { color: var(--bg); }

h1 { font-family: var(--display); font-weight: 700; font-size: clamp(44px, 6vw, 80px); line-height: 1.02; letter-spacing: -0.03em; }
h2 { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 4vw, 52px); line-height: 1.08; letter-spacing: -0.02em; }
.lead { font-size: 20px; color: var(--text-2); max-width: 34em; }
.lead-sm { font-size: 19px; color: var(--text-2); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 999px; text-decoration: none; font-weight: 600;
  transition: background-color 120ms, border-color 120ms, color 120ms;
}
.btn-sm { font-size: 16px; padding: 10px 20px; min-height: 44px; }
.btn-lg { font-size: 18px; padding: 16px 28px; min-height: 52px; }
.btn-xl { font-size: 18px; padding: 18px 32px; min-height: 56px; }
.btn-light { background: var(--text); color: var(--bg); }
.btn-light:hover { background: #fff; color: var(--bg); }
.btn-outline { color: var(--text); border: 1px solid var(--muted); }
.btn-outline:hover { color: var(--text); border-color: var(--text); background: rgba(230, 236, 240, 0.06); }
.btn-accent { border-color: var(--accent); }
.btn-accent:hover { border-color: var(--accent-hover); }
.btn-dark { background: var(--bg); color: var(--text); }
.btn-dark:hover { background: #000; color: #fff; }

/* Header */
.site-header { padding-top: 24px; padding-bottom: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-family: var(--display); font-weight: 700; font-size: 28px; letter-spacing: -0.02em; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.nav-link { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav-link:hover { color: var(--text); }
.lang { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; }
.lang button {
  min-width: 44px; min-height: 36px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--muted); font: 600 14px var(--body);
}
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { background: var(--text); color: var(--bg); }

/* Hero */
.hero { padding-top: 72px; padding-bottom: 96px; display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* Demo grid (a still of the app's grid, funk 16ths at 80 BPM) */
.demo { flex: 1 1 560px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.demo-bar { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.play {
  font: 700 15px var(--display); letter-spacing: 0.06em; text-transform: uppercase;
  border: 0; border-radius: 10px; height: 52px; min-width: 104px; padding: 0 20px; cursor: pointer;
  background: var(--text); color: var(--bg);
}
.play[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.bpm { display: flex; align-items: baseline; gap: 6px; }
.bpm-num { font: 700 44px/1 var(--display); font-variant-numeric: tabular-nums; }
.bpm-unit { font: 600 12px var(--display); letter-spacing: 0.09em; color: var(--muted); }
.demo-status { font-size: 13px; color: var(--muted); flex: 1; min-width: 160px; text-align: right; }

.grid { display: flex; flex-direction: column; gap: 22px; }
.bar { display: flex; align-items: center; gap: 8px; }
.bar-num { width: 12px; flex: none; text-align: right; font: 700 13px var(--display); color: var(--muted); }
.beats { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.beat { display: flex; gap: 3px; min-width: 0; }
.cell {
  position: relative; flex: 1 1 0; min-width: 0; height: 52px;
  border-radius: 7px; border: 1px solid var(--line); background: var(--cell);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  transition: background-color 60ms;
}
.cell-label { font: 500 11px/1 var(--display); color: var(--muted); }
.cell.down { flex-grow: 1.45; border: 1.5px solid var(--muted); background: var(--bg); }
.cell.down .cell-label { font-size: 17px; font-weight: 700; color: var(--text); }
.cell.accent { border: 1.5px solid var(--pink); }
.cell.accent .cell-label { color: var(--pink); }
.cell.accent::before, .cell.accent::after {
  content: ''; position: absolute; left: 22%; right: 22%; height: 3px; border-radius: 2px; background: var(--pink);
}
.cell.accent::before { top: -8px; }
.cell.accent::after { bottom: -8px; }
.cell.now { background: var(--accent); border-color: var(--accent); }
.cell.now .cell-label { color: var(--accent-ink); }
.chips { display: flex; gap: 2px; justify-content: center; }
.chip { width: 11px; height: 11px; border-radius: 2px; color: var(--bg); font: 700 8px/11px var(--display); text-align: center; }
.chip-K { background: #f08a5d; }
.chip-S { background: #6cc4f5; }
.chip-H { background: #f5d04e; }

/* Features */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.card h3 { font-size: 21px; font-weight: 600; line-height: 1.3; }
.card p { color: var(--muted); }
.card-top { display: flex; align-items: center; justify-content: space-between; }
.pro { font: 600 12px var(--display); letter-spacing: 0.06em; color: var(--bg); background: var(--accent); border-radius: 999px; padding: 3px 10px; }

/* Platforms */
.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.platform { border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 18px; min-height: 260px; }
.platform h3 { font: 700 32px/1.2 var(--display); letter-spacing: -0.02em; }
.platform p { color: var(--muted); flex: 1; }
.status { align-self: flex-start; font: 600 13px var(--display); color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 4px 12px; }

/* Beta */
.beta-wrap { padding: 0 24px 96px; }
.beta {
  max-width: 1200px; margin: 0 auto; background: var(--accent); color: var(--bg);
  border-radius: 32px; padding: 64px 48px;
  display: flex; flex-wrap: wrap; gap: 48px; align-items: center;
}
.beta-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.beta-copy h2 { font-size: clamp(36px, 4.5vw, 60px); line-height: 1.04; letter-spacing: -0.03em; }
.beta-copy p:last-child { font-size: 19px; max-width: 34em; }
.beta-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: 18px; font-weight: 500; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { flex: none; margin-top: 3px; }
.form-note { font-size: 14px; margin-top: -12px; color: #3a3000; }
.beta :focus-visible { outline-color: var(--bg); }

/* Preview */
.preview { padding-top: 80px; padding-bottom: 80px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.preview-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.preview h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; }

/* Footer */
.footer { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 15px; color: var(--muted); }
.brand-sm { font-family: var(--display); font-weight: 700; color: var(--text); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }

/* Phones */
@media (max-width: 720px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .site-header { flex-wrap: nowrap; gap: 12px; padding-top: 16px; padding-bottom: 16px; }
  .brand { font-size: 24px; }
  .nav { gap: 8px; flex-wrap: nowrap; }
  .nav-link { display: none; }
  .lang button { min-width: 40px; }
  .btn-sm { font-size: 15px; padding: 10px 14px; white-space: nowrap; }
  .hero { padding-top: 32px; padding-bottom: 72px; gap: 40px; }
  .hero-copy { flex-basis: 100%; }
  .lead { font-size: 18px; }
  .demo { flex-basis: 100%; padding: 16px; border-radius: 14px; }
  .demo-bar { gap: 14px; }
  .play { height: 44px; min-width: 88px; font-size: 14px; }
  .bpm-num { font-size: 34px; }
  .demo-status { text-align: left; flex-basis: 100%; }
  .grid { gap: 16px; }
  .bar { gap: 6px; }
  .beats { gap: 4px; }
  .beat { gap: 2px; }
  .cell { height: 44px; border-radius: 5px; gap: 3px; }
  .cell.down .cell-label { font-size: 14px; }
  .cell-label { font-size: 9px; }
  .cell.accent::before { top: -6px; }
  .cell.accent::after { bottom: -6px; }
  .chip { width: 5px; height: 5px; border-radius: 50%; font-size: 0; }
  .section { padding-top: 72px; padding-bottom: 72px; gap: 32px; }
  .cards, .platforms { grid-template-columns: 1fr; }
  .card, .platform { padding: 24px; }
  .platform { min-height: 0; }
  .beta-wrap { padding: 0 16px 72px; }
  .beta { padding: 40px 24px; border-radius: 24px; gap: 32px; }
  .beta-copy, .beta-side { flex-basis: 100%; }
  .btn-lg, .btn-xl { width: 100%; justify-content: center; }
  .preview { padding-top: 64px; padding-bottom: 64px; }
  .preview-copy { flex-basis: 100%; }
}

/* Small phones: the hero repeats the beta button right below. */
@media (max-width: 360px) {
  .nav .btn-sm { display: none; }
}
