/* KeyStyle Studio website. Layout: an arranger's front panel. A sticky row of
   lit section buttons, a hero beside the real style editor, then plain
   sections. Dark first, like the app; light for light-mode visitors.
   Everything is served from this site: no outside fonts, scripts or trackers. */
/* Archivo (headlines: a sturdy grotesque with a width axis, set a little wide like
   the lettering on a keyboard panel) and Figtree (text), both variable, OFL. */
@font-face { font-family: "Archivo"; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("fonts/archivo-latin-wdth-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-weight: 300 900; font-display: swap; src: url("fonts/figtree-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-weight: 300 900; font-display: swap; src: url("fonts/figtree-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Outfit"; font-weight: 400; font-display: swap; src: url("fonts/outfit-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 600; font-display: swap; src: url("fonts/outfit-latin-600-normal.woff2") format("woff2"); }

:root {
  --bg: #0b111d;
  --panel: #121a2b;
  --panel-2: #182337;
  --line: #26344f;
  --fg: #e9eef7;
  --muted: #9aa7bd;
  --accent: #ff7a59;
  --accent-text: #ff9a80;
  --on-accent: #2a0b03;
  --led-off: #34425f;
  --ok: #46c98a;
  --shadow: 0 18px 50px rgba(0, 4, 14, 0.5);
  --display: "Archivo", "Arial", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 10px;
  --wide: 1160px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f1f3f8; --panel: #ffffff; --panel-2: #e9edf5; --line: #d7dde9; --fg: #141c2b; --muted: #56627a;
    --accent: #ff7a59; --accent-text: #b83a1a; --on-accent: #2a0b03; --led-off: #c9ced4; --ok: #1f9a5c;
    --shadow: 0 18px 44px rgba(20, 26, 34, 0.16); color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f1f3f8; --panel: #ffffff; --panel-2: #e9edf5; --line: #d7dde9; --fg: #141c2b; --muted: #56627a;
  --accent: #ff7a59; --accent-text: #b83a1a; --on-accent: #2a0b03; --led-off: #c9ced4; --ok: #1f9a5c;
  --shadow: 0 18px 44px rgba(20, 26, 34, 0.16); color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 780; font-stretch: 112%; line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.3rem; font-weight: 680; font-stretch: 104%; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { max-width: var(--wide); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-family: var(--display); font-weight: 700; font-stretch: 108%; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 0.92em; }

/* Header: the brand and a row of panel buttons with LEDs. */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--panel); }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--panel) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 64px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-family: "Outfit", var(--display); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; }
.brand span { font-weight: 400; color: var(--muted); }
.panel-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-inline-start: auto; }
.panel-nav a { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-2); color: var(--fg); text-decoration: none; font-family: var(--display); font-weight: 650; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.panel-nav a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--led-off); transition: background 0.2s, box-shadow 0.2s; }
.panel-nav a:hover::before, .panel-nav a.on::before { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
/* The selling page's header, planned for every language: one row on a big
   screen; below 1160 px the section buttons get a row of their own; below
   760 px they are left out (the sections are a scroll away). */
.main-top .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "brand nav tools buy"; column-gap: 14px; row-gap: 8px; }
.main-top .brand { grid-area: brand; }
.main-top .panel-nav { grid-area: nav; justify-self: end; flex-wrap: nowrap; margin: 0; }
.main-top .panel-nav a { white-space: nowrap; }
.main-top .top-tools { grid-area: tools; }
.main-top .actions { grid-area: buy; white-space: nowrap; }
@media (max-width: 1159px) {
  .main-top .wrap { grid-template-areas: "brand . tools buy" "nav nav nav nav"; }
  .main-top .panel-nav { justify-self: start; }
}
@media (max-width: 760px) {
  .main-top .wrap { grid-template-areas: "brand . tools buy"; }
  .main-top .panel-nav { display: none; }
}
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 8px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.ghost { border-color: var(--line); color: var(--fg); background: var(--panel); }
.btn.ghost:hover { border-color: var(--accent); }
.btn.small { padding: 8px 14px; font-size: 0.95rem; }
/* Light or dark: a switch in the header (dark first). It shows the sun in the
   dark (click for light) and the moon in the light. */
.theme-btn { width: 40px; height: 40px; display: grid; place-items: center; flex: none; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); color: var(--fg); cursor: pointer; }
.theme-btn:hover { border-color: var(--accent); color: var(--accent-text); }
.theme-btn svg { width: 19px; height: 19px; }
.theme-btn .moon, :root[data-theme="light"] .theme-btn .sun { display: none; }
:root[data-theme="light"] .theme-btn .moon { display: block; }
.doc-top-tools { margin-inline-start: auto; }
/* The header's tools: light/dark, then the language menu (plain links in a
   <details>, so it works without scripts). Its lights are the panel buttons'. */
.top-tools { display: flex; align-items: center; gap: 6px; flex: none; }
.lang-pick { position: relative; }
.lang-pick summary { height: 40px; display: flex; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); color: var(--fg); cursor: pointer; list-style: none; font-family: var(--display); font-weight: 650; font-size: 0.78rem; letter-spacing: 0.08em; }
.lang-pick summary::-webkit-details-marker { display: none; }
.lang-pick summary:hover, .lang-pick[open] summary { border-color: var(--accent); color: var(--accent-text); }
.lang-pick summary svg { width: 18px; height: 18px; flex: none; }
.lang-menu { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; z-index: 6; display: grid; grid-template-rows: repeat(8, auto); grid-auto-flow: column; gap: 0 4px; margin: 0; padding: 6px; list-style: none; max-height: calc(100vh - 90px); overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); box-shadow: var(--shadow); }
.lang-menu a { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 10px; border-radius: 6px; color: var(--fg); text-decoration: none; white-space: nowrap; }
.lang-menu a::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--led-off); }
.lang-menu a:hover { background: var(--panel-2); }
.lang-menu a:hover::before, .lang-menu a[aria-current="page"]::before { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.lang-menu a[aria-current="page"] { font-weight: 600; }
/* First visit only: one line offering the page in the browser's language. */
.lang-offer { border-bottom: 1px solid var(--line); background: var(--panel-2); font-size: 0.95rem; }
.lang-offer .wrap { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; }
.lang-offer a { font-weight: 600; }
.lang-offer-x { flex: none; width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 6px; background: none; color: var(--muted); font: inherit; font-size: 1.25rem; line-height: 1; cursor: pointer; }
.lang-offer-x:hover { border-color: var(--line); color: var(--fg); }

/* Hero */
.hero { padding-block: 56px 40px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero-copy .lead { font-size: 1.2rem; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 0.95rem; list-style: none; margin: 0; padding: 0; }
.facts li::before { content: "✓ "; color: var(--ok); font-weight: 700; }
/* The model name as the keyboard's own screens show it: a small lit plate. */
.eyebrow .model { display: inline-block; margin-inline-end: 8px; padding: 1px 8px; border-radius: 4px; background: var(--accent); color: var(--on-accent); letter-spacing: 0.06em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.screen { border-radius: 12px; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.screen img { width: 100%; }
.screen figcaption { padding: 10px 14px; font-size: 0.88rem; color: var(--muted); border-top: 1px solid var(--line); }

/* The style's section buttons, as on the keyboard: what "hear a style" plays. */
.elements { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.elements .group { display: flex; align-items: center; gap: 6px; }
.elements .label { font-family: var(--display); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.1em; color: var(--muted); margin-inline-end: 4px; }
.elements .key { min-width: 34px; height: 34px; display: grid; place-items: center; border-radius: 6px; border: 1px solid var(--line); background: var(--panel-2); font-family: var(--display); font-weight: 600; color: var(--fg); position: relative; }
.elements .key.lit { border-color: var(--accent); color: var(--accent-text); box-shadow: inset 0 0 0 1px var(--accent); }
.elements .key.lit::after { content: ""; position: absolute; top: 4px; inset-inline-end: 4px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 6px var(--accent); }

/* The trip of a set: keyboard -> PC -> keyboard, with the menus to press. */
.journey { padding-block: 8px 40px; }
.trip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.trip li { display: grid; gap: 4px; align-content: start; padding: 18px 22px; position: relative; min-width: 0; }
.trip li + li { border-inline-start: 1px solid var(--line); }
.trip li + li::before { content: "›"; position: absolute; inset-inline-start: -11px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; line-height: 1; }
.trip .where { font-family: var(--display); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); }
.trip b { font-weight: 600; }
.trip .menu { font-family: var(--mono); font-size: 0.85rem; color: var(--muted); }

/* Sections */
section.block { padding-block: 72px; border-top: 1px solid var(--line); }
.head { display: grid; gap: 12px; margin-bottom: 36px; max-width: 760px; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 44px; align-items: center; }
.feature + .feature { margin-top: 64px; }
.feature.flip { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.feature.flip > :first-child { order: 2; }
.feature-copy { display: grid; gap: 14px; min-width: 0; }
.feature-copy ul { margin: 4px 0 0; padding-inline-start: 1.2em; color: var(--muted); display: grid; gap: 6px; }
.feature-copy li::marker { color: var(--accent); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 64px; }
.wide-shot { margin-top: 40px; }
.wide-shot + .feature { margin-top: 64px; }

/* The drum grid to try, drawn like the Studio's: rows of drums, sixteen steps,
   every beat set a little apart, lit squares in the accent. */
.beat { display: grid; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: var(--shadow); min-width: 0; }
.beat-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.beat-info { font-weight: 600; }
.beat-meta { margin-inline-start: auto; font-family: var(--mono); font-size: 0.82rem; color: var(--muted); }
.beat-grid { display: grid; gap: 6px; min-height: 160px; }
.beat-row { display: grid; grid-template-columns: 7.5em repeat(16, minmax(0, 1fr)); gap: 3px; align-items: center; }
.beat-name { font-size: 0.85rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.beat-cell { height: 34px; min-width: 0; padding: 0; border: 1px solid var(--line); border-radius: 4px; background: var(--panel-2); cursor: pointer; }
.beat-cell.beat-down { border-color: color-mix(in srgb, var(--muted) 45%, var(--line)); }
.beat-cell.beat-down:not(:nth-child(2)) { margin-inline-start: 4px; }
.beat-cell[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
.beat-cell:hover { border-color: var(--accent); }
.beat-cell.beat-now { box-shadow: inset 0 -4px 0 var(--fg); }
.beat-note { font-size: 0.88rem; color: var(--muted); }
.cell { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); display: grid; gap: 8px; align-content: start; min-width: 0; }
.cell h3 { font-size: 1.2rem; }
.cell p { color: var(--muted); font-size: 0.97rem; }

/* How it works: three real steps, in order. */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.step { padding: 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.step::before { counter-increment: step; content: counter(step); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-family: var(--display); font-weight: 700; }
.need { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 22px; padding: 16px 22px; border: 1px dashed var(--line); border-radius: var(--radius); }
.need h3 { font-size: 1.1rem; }
.need ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--muted); }
.need li::before { content: "✓ "; color: var(--ok); font-weight: 700; }

/* Coming next: a lit board, like a display on the keyboard's panel. */
.soon { padding-block: 0 72px; }
.soon-board { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px 40px; align-items: center; padding: 30px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line)); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--panel)), var(--panel) 60%); }
.soon-copy { display: grid; gap: 10px; }
.soon-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.soon-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 12px 16px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line); }
.soon-list b { font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.soon-list span { color: var(--muted); font-size: 0.92rem; }
.soon-list li::after { content: attr(data-soon); margin-inline-start: auto; padding: 1px 9px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent-text); font-family: var(--display); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.soon-ask { grid-column: 1 / -1; color: var(--muted); }

/* What works on which keyboard */
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 0.97rem; }
th, td { text-align: start; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-family: var(--display); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.88rem; color: var(--muted); background: var(--panel-2); }
tbody tr:last-child td { border-bottom: 0; }
td.yes { color: var(--ok); font-weight: 600; white-space: nowrap; }
td.no { color: var(--muted); white-space: nowrap; }

/* Safety and privacy: two plain promises. */
.promises { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.promise { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); display: grid; gap: 12px; align-content: start; }
.promise ul { margin: 0; padding-inline-start: 1.2em; display: grid; gap: 8px; }
.promise li::marker { color: var(--ok); }

/* Price */
/* One price, two ways to pay, then what happens after paying. */
.buy { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px 40px; align-items: center; max-width: 1000px; }
.pay { display: flex; flex-wrap: wrap; gap: 10px; }
.pay .btn { flex: 1 1 180px; }
.after { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: after; }
.after li { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 12px; align-items: start; }
.after li::before { counter-increment: after; content: counter(after); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--accent); color: var(--accent-text); font-family: var(--display); font-weight: 700; }
.after b { font-weight: 600; }
.after span { color: var(--muted); font-size: 0.95rem; }
.price { padding: 28px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); display: grid; gap: 14px; align-content: start; }
.price.main { border-color: var(--accent); box-shadow: var(--shadow); }
.price .amount { font-family: var(--display); font-weight: 700; font-size: 2.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.price .amount small { font-size: 1rem; font-weight: 600; color: var(--muted); margin-inline-start: 6px; }
.price ul { margin: 0; padding-inline-start: 1.2em; display: grid; gap: 6px; color: var(--muted); }
.price li::marker { color: var(--accent); }
.note { font-size: 0.92rem; color: var(--muted); }
.buy + .note { margin-top: 16px; }

/* The last word: one more way to the trial. */
.last-call { padding-block: 56px; border-top: 1px solid var(--line); background: var(--panel); }
.last-call .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 0 18px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-text); font-family: var(--display); font-weight: 700; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 16px; color: var(--muted); }

/* Footer */
footer { border-top: 1px solid var(--line); padding-block: 36px 48px; background: var(--panel); }
footer .wrap { display: grid; gap: 14px; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer .legal-lang { color: var(--muted); font-size: 0.9rem; }
footer p { font-size: 0.9rem; color: var(--muted); max-width: 90ch; }

/* Plain text pages (privacy, terms) */
.doc { padding-block: 48px 72px; }
.doc .wrap { max-width: 820px; display: grid; gap: 18px; }
.doc h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
.doc h2 { font-size: 1.6rem; margin-top: 18px; }
.doc p, .doc li { color: var(--fg); }
.doc ul { margin: 0; padding-inline-start: 1.2em; display: grid; gap: 6px; }
.todo { background: color-mix(in srgb, var(--accent) 22%, transparent); border-radius: 4px; padding: 0 4px; }

@media (max-width: 900px) {
  .hero .wrap, .feature, .feature.flip, .soon-board { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .trip { grid-template-columns: minmax(0, 1fr); }
  .trip li + li { border-inline-start: 0; border-top: 1px solid var(--line); }
  .trip li + li::before { content: "↓"; inset-inline-start: 22px; top: -11px; translate: none; font-size: 0.8rem; }
  .feature.flip > :first-child { order: 0; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps, .promises, .buy { grid-template-columns: minmax(0, 1fr); }
  .panel-nav { margin-inline-start: 0; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-block: 32px 28px; }
  section.block { padding-block: 52px; }
  /* On a phone: the brand and the trial button; the sections are a scroll away. */
  .panel-nav { display: none; }
  .top .top-tools { margin-inline-start: auto; }
  /* One row in every language: the brand a little smaller, the language menu
     a globe, a smaller buy button, and no light/dark switch (a phone follows
     its own light or dark setting). */
  .main-top .wrap { column-gap: 8px; }
  .main-top .brand { gap: 8px; font-size: 1.05rem; }
  .main-top .brand img { width: 24px; height: 24px; }
  .main-top .theme-btn { display: none; }
  .main-top .actions { padding: 7px 11px; font-size: 0.9rem; }
  .top-tools { gap: 4px; }
  .lang-pick summary { width: 40px; padding: 0; justify-content: center; }
  .lang-now { display: none; }
  /* The language menu opens under the whole header, not off the screen. */
  .lang-pick { position: static; }
  .lang-menu { top: 100%; inset-inline: max(16px, env(safe-area-inset-left, 0px)); }
  .beat { padding: 12px; }
  .beat-row { grid-template-columns: 4.4em repeat(16, minmax(0, 1fr)); gap: 2px; }
  .beat-cell { height: 28px; border-radius: 3px; }
  .beat-cell.beat-down:not(:nth-child(2)) { margin-inline-start: 2px; }
  .beat-meta { display: none; }
  .soon-board { padding: 20px; }
}

/* Recording the keyboard's sounds: a small picture of the app's progress. */
.rec-mock { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: var(--shadow); min-width: 0; }
.rec-mock-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; }
.rec-mock-top span { font-family: var(--mono); font-size: 0.82rem; color: var(--muted); }
.rec-mock-bar { height: 10px; border-radius: 5px; background: var(--panel-2); border: 1px solid var(--line); overflow: hidden; }
.rec-mock-bar span { display: block; height: 100%; background: var(--accent); }
.rec-mock ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rec-mock li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); }
.rec-mock li em { font-style: normal; font-size: 0.85rem; color: var(--muted); white-space: nowrap; }
.rec-mock .led { width: 8px; height: 8px; border-radius: 50%; background: var(--led-off); }
.rec-mock li.done .led { background: var(--ok); }
.rec-mock li.now { border-color: var(--accent); }
.rec-mock li.now .led { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.elements .key.wide { padding: 0 12px; font-family: var(--body); font-weight: 600; font-size: 0.92rem; }
@media (max-width: 520px) { .rec-mock li { grid-template-columns: 12px minmax(0, 1fr); } .rec-mock li em { grid-column: 2; white-space: normal; } }

/* Right to left (Arabic). The drum grid and the keyboard's buttons stay left to
   right, as the app and the keyboard show them (step 1 and INTRO first); the
   arrows between the trip's steps point the way the page reads. */
[dir="rtl"] .beat-grid, [dir="rtl"] .panel-keys { direction: ltr; }
/* The logo is a lockup, not text: icon, KeyStyle, Studio in every language. */
[dir="rtl"] .brand { direction: ltr; }
[dir="rtl"] .trip li + li::before { content: "‹"; }
@media (max-width: 900px) { [dir="rtl"] .trip li + li::before { content: "↓"; } }
/* Arabic letters join up: spacing them out breaks the words. */
:lang(ar) :is(h1, h2, h3, .eyebrow, .panel-nav a, .trip .where, .elements:not(.panel-keys) .label), :lang(ar) .soon-list li::after { letter-spacing: normal; }
/* The smallest phones: the brand is the logo and "KeyStyle". */
@media (max-width: 380px) { .main-top .brand span { display: none; } }
/* Arabic letters don't join in the typewriter font: the page's own font there. */
[dir="rtl"] .rec-mock-top span { font-family: inherit; }
/* The before/after row: on a narrow phone its two long buttons go under the label. */
.elements .group:has(.key.wide) { flex-wrap: wrap; row-gap: 8px; }
