/* =========================================================================
   MidiBro 2 — Homepage stylesheet
   Design tokens from the MidiBro 2 app LookAndFeel (dark + orange).
   Recreated from design_handoff_midibro2_website.
   ========================================================================= */

/* -------------------------------------------------------------------------
   Self-hosted fonts (WOFF2, latin + latin-ext). Replaces the Google Fonts
   CDN embed so no visitor data (IP etc.) is sent to Google on page load.
   ------------------------------------------------------------------------- */
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/space-grotesk-400.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('../assets/fonts/space-grotesk-500.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url('../assets/fonts/space-grotesk-600.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('../assets/fonts/space-grotesk-700.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/ibm-plex-mono-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../assets/fonts/ibm-plex-mono-500.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('../assets/fonts/ibm-plex-mono-600.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/barlow-400.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('../assets/fonts/barlow-500.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('../assets/fonts/barlow-600.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url('../assets/fonts/barlow-700.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 800; font-display: swap; src: url('../assets/fonts/barlow-800.woff2') format('woff2'); }

:root {
  /* Surfaces */
  --bg: #1a1a1a;
  --panel: #242424;
  --panel-2: #1e1e1e;
  --panel-dark: #141414;
  --darkest: #0f0f0f;

  /* Text */
  --text: #e8e8e8;
  --text-mid: #b8b8b8;
  --text-soft: #9a9a9a;
  --text-dim: #8a8a8a;
  --text-faint: #777;

  /* Accent */
  --accent: #ff8c00;
  --accent-light: #ffa12e;
  --accent-outline: #a85c00;
  --accent-tint: #241a10;
  --accent-tint-text: #e8c9a0;

  /* Lines */
  --border: #3a3a3a;
  --divider: #2a2a2a;
  --success: #4caf50;

  /* Type */
  --font-head: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Barlow', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Layout */
  --maxw: 1200px;
  --nav-h: 62px;

  /* Effects */
  --grad-accent: linear-gradient(var(--accent-light), var(--accent));
  --grad-dark: linear-gradient(#2e2e2e, #242424);
  --glow: 0 0 24px rgba(255, 140, 0, .25);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1); /* strong ease-out for UI motion */
  --ease-slide: cubic-bezier(0.45, 0, 0.18, 1.25); /* slow start, accelerate, slight overshoot, settle */
}

/* ---------- Reset / base ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-light); }

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; margin: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 72px 0; position: relative; }
/* Separator: hairline that fades out at both edges (spotlight) */
.section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--divider) 18%, var(--divider) 82%, transparent 100%);
  pointer-events: none;
}
/* One-shot accent glint that sweeps along the line (fires on reveal) */
.section::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 44%, rgba(255, 140, 0, .55) 50%, transparent 56%);
  background-size: 220% 100%;
  background-position: -35% 0;
  opacity: 0;
  pointer-events: none;
}
/* Animated mode — added by JS only when motion is allowed (no-JS = static hairline) */
body.anim-sep .section::before {
  transform: scaleX(0);
  transform-origin: 50% 0;
  transition: transform 3s var(--ease-out);
}
body.anim-sep .section.sep-in::before { transform: scaleX(1); }
/* When it leaves the viewport, snap back instantly so re-entry replays cleanly */
body.anim-sep .section:not(.sep-in)::before { transition: none; }
body.anim-sep .section.sep-in::after { animation: sepGlint 6s var(--ease-out) .4s 1 both; }
@keyframes sepGlint {
  0%   { opacity: 0; background-position: -35% 0; }
  22%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; background-position: 135% 0; }
}
.section--dark { background: var(--panel-dark); }
.section-title { font-size: 36px; letter-spacing: -.5px; text-align: center; }
.section-sub { text-align: center; color: var(--text-dim); margin: 12px 0 0; }

.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
}

/* ---------- Buttons ----------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid transparent;
  text-align: center;
  transition: transform .12s ease, box-shadow .2s ease, filter .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--grad-accent);
  border-color: var(--accent-outline);
  color: var(--panel-dark);
  font-weight: 800;
  font-size: 16px;
  padding: 14px 36px;
  box-shadow: var(--glow);
}
.btn-primary:hover { color: var(--panel-dark); filter: brightness(1.05); box-shadow: 0 0 30px rgba(255,140,0,.35); }

.btn-secondary {
  background: var(--grad-dark);
  border-color: var(--border);
  color: var(--text);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 36px;
}
.btn-secondary:hover { color: var(--text); border-color: #4a4a4a; }

.btn-block { display: block; width: 100%; }
.btn-sm { font-size: 14px; padding: 11px 20px; }

/* ---------- Pills / chips ---------------------------------------------- */
.pill {
  font-family: var(--font-body);
  font-size: 13px;
  padding: 8px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--grad-dark);
  color: var(--text-mid);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), inset 0 -1px 1px rgba(0, 0, 0, .4), 0 1px 2px rgba(0, 0, 0, .2);
  transition: transform 160ms var(--ease-out), color .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.pill:hover { color: var(--text); border-color: #4a4a4a; }
.pill:active { transform: scale(.97); } /* press feedback (Emil: 0.95–0.98) */
.pill.is-active,
.pill--on {
  background: var(--grad-accent);
  border-color: var(--accent-outline);
  color: var(--panel-dark);
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -1px 2px rgba(0, 0, 0, .2), 0 1px 3px rgba(0, 0, 0, .3);
}
.pill.is-active:hover { color: var(--panel-dark); }
@media (prefers-reduced-motion: reduce) { .pill:active { transform: none; } }

.chip {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text-mid);
  letter-spacing: .5px;
}
.chip--on {
  background: var(--grad-accent);
  border-color: var(--accent-outline);
  color: var(--panel-dark);
  font-weight: 600;
}
.chip--ghost { background: transparent; color: var(--text-dim); }

/* ---------- Cards ------------------------------------------------------- */
.card {
  background: var(--panel-dark);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
}
.card--highlight { background: var(--accent-tint); border-color: var(--accent-outline); }

/* Media placeholders (swap for real assets) */
.media-ph {
  background: var(--panel-dark);
  border: 1px dashed var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #666;
  padding: 16px;
}
.media-ph--accent { border-color: var(--accent-outline); }
.media-ph.has-shot { border: 0; padding: 0; background: transparent; aspect-ratio: auto; display: block; }
/* Tab screenshots are ~580–740px native. The panel column is ~580 CSS px = ~1160
   device px on Retina, so filling it upscales them ~1.6–2× and they go soft.
   Cap the container so display width ≈ native pixels (crisp on Retina), centered. */
.media-ph.has-shot { max-width: 450px; margin-left: auto; margin-right: auto; }
.media-ph.has-shot img { width: 100%; height: auto; display: block; border: 1px solid var(--border); border-radius: 10px; }
/* KeyShift shot is only ~334 wide — keep a tighter cap so it isn't upscaled. */
.media-ph.has-shot.shot-portrait { max-width: 341px; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-16-6 { aspect-ratio: 16 / 6; }

/* Inline routing diagrams (SVG) */
.routing-dia { width: 100%; aspect-ratio: 16 / 6; display: block; margin-top: 18px;
  background: var(--panel-dark); border: 1px solid var(--border); border-radius: 8px; }
.two-card--accent .routing-dia { border-color: var(--accent-outline); }
.routing-dia text { font-family: var(--font-head); }
.routing-dia .mono { font-family: var(--font-mono); }

/* Interactive routing nodes — neutral by default, accent on hover */
.routing-dia .rd-box { fill: #242424; stroke: #3a3a3a; stroke-width: 1.5; transition: fill .2s ease, stroke .2s ease; }
.routing-dia .rd-arrow { stroke: #8a8a8a; marker-end: url(#rd-arrDim); transition: stroke .2s ease; }
.routing-dia .rd-glyph { fill: #8a8a8a; transition: fill .2s ease; }
.routing-dia .rd-glyph .rd-arc { stroke: #8a8a8a; }
.routing-dia .rd-key { fill: #b8b8b8; transition: fill .2s ease; }
.routing-dia .rd-sub { fill: #8a8a8a; transition: fill .2s ease; }
.routing-dia .rd-node { cursor: pointer; }
.routing-dia .rd-node:hover .rd-box { fill: #241a10; stroke: var(--accent-outline); }
.routing-dia .rd-node:hover .rd-arrow { stroke: var(--accent); marker-end: url(#rd-arrAcc); }
.routing-dia .rd-node:hover .rd-glyph { fill: var(--accent-light); }
.routing-dia .rd-node:hover .rd-glyph .rd-arc { stroke: var(--accent-light); }
.routing-dia .rd-node:hover .rd-key { fill: var(--accent-light); }
.routing-dia .rd-node:hover .rd-sub { fill: #e8c9a0; }
@media (prefers-reduced-motion: reduce) {
  .routing-dia .rd-box, .routing-dia .rd-arrow, .routing-dia .rd-glyph,
  .routing-dia .rd-glyph .rd-arc, .routing-dia .rd-key, .routing-dia .rd-sub { transition: none; }
}

.play-badge {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--grad-accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 30px rgba(255,140,0,.3);
}
.play-badge::after {
  content: ""; width: 0; height: 0;
  border-left: 20px solid var(--panel-dark);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 5px;
}

/* ========================================================================
   NAVBAR
   ======================================================================== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(20, 20, 20, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner { display: flex; align-items: center; gap: 14px; height: var(--nav-h); }
.navbar-brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.navbar-logo { width: 30px; height: 30px; }
.navbar-title { font-family: var(--font-head); font-weight: 700; font-size: 17px; }
.navbar-title .two { color: var(--accent); }

/* Nav menu is a segmented control — same track + sliding highlight as the tabs */
.navbar-menu {
  display: flex; gap: 4px; align-items: center; list-style: none;
  margin: 0 0 0 20px; padding: 5px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--panel-dark), var(--panel-dark)) padding-box,
    linear-gradient(180deg, rgba(255,255,255,.38), rgba(255,255,255,.02) 45%, rgba(255,255,255,.16) 100%) border-box;
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.1),
    inset 0 -1px 3px rgba(0,0,0,.6),
    0 2px 4px rgba(0,0,0,.4);
}
.navbar-menu a { display: inline-block; }
.navbar-menu .pill { font-size: 13px; padding: 7px 16px; background: transparent; border-color: transparent; color: var(--text-mid); }
.navbar-menu .pill:hover:not(.is-active) { color: var(--text); }
.navbar-menu .pill.is-active { border-color: transparent; color: var(--panel-dark); font-weight: 600; }

.navbar-cta { margin-left: auto; padding: 9px 24px; font-size: 14px; }
.navbar-cta.btn-primary { font-weight: 700; box-shadow: none; }

.nav-toggle {
  display: none;
  margin-left: auto;
  flex-direction: column; gap: 4px;
  background: none; border: none; cursor: pointer; padding: 8px 4px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .2s; }

/* ========================================================================
   HERO
   ======================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  text-align: center;
  padding: 64px 0 32px;
  background: radial-gradient(ellipse 70% 55% at 50% 0%, #26201a 0%, var(--panel-dark) 70%);
}
/* Animated dot matrix (js/hero-dots.js). Masked to an ellipse around the
   headline so the field fades out before it reaches the text edges and the
   section boundary — no hard canvas seam against the next section. */
.hero-dots {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5; /* squares carry ~27% more area than circles at equal radius */
  -webkit-mask-image: radial-gradient(ellipse 80% 72% at 50% 26%, #000 0%, rgba(0,0,0,.6) 48%, transparent 80%);
          mask-image: radial-gradient(ellipse 80% 72% at 50% 26%, #000 0%, rgba(0,0,0,.6) 48%, transparent 80%);
}
/* Scrim between the dot field and the copy: keeps the headline contrast up
   without dimming the dots at the outer edges. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 46% 40% at 50% 44%, rgba(20,20,20,.84) 0%, rgba(20,20,20,.48) 58%, transparent 100%);
}
.hero > .container { position: relative; z-index: 1; }
.hero-logo { width: 72px; height: 72px; margin: 0 auto; }
/* Hero terminal eyebrow — types feature "commands" with human typos, loops.
   Rendered as a terminal chip so it reads as a real prompt and lifts off the
   dot field behind it. Fixed box width (min(54ch,94vw)), left-aligned content,
   block-centered: the line grows rightward instead of re-centering (no wobble)
   on the centered hero. 54ch = longest line (48ch) + cursor + the px padding. */
.hero-term {
  display: flex;
  justify-content: flex-start;
  align-items: baseline;
  width: min(54ch, 100%); /* 100% of the padded container, not vw: vw ignores
                             the container gutter and pushes the page sideways */
  margin: 22px auto 0;
  padding: 11px 1ch; /* ch, not px: the padding has to shrink with the font, or
                        the longest line gets clipped on narrow viewports */
  border: 1.5px solid transparent;
  border-radius: 10px;
  background:
    linear-gradient(rgba(18, 16, 14, .78), rgba(18, 16, 14, .78)) padding-box,
    linear-gradient(180deg, rgba(255, 196, 130, .55), rgba(168, 92, 0, .15) 45%, rgba(255, 161, 46, .4) 100%) border-box;
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .5), inset 0 1px 1px rgba(255, 255, 255, .08), inset 0 -1px 3px rgba(0, 0, 0, .6);
  font-family: var(--font-mono);
  /* Upper bound is set by the longest command line (48ch incl. prompt) plus the
     container gutter — above ~555px viewport the 15px cap takes over. */
  font-size: clamp(8px, 2.7vw, 15px);
  color: var(--text);
  white-space: pre;
  overflow: hidden;
}
.hero-term-p { color: var(--accent); font-weight: 600; }
.hero-term-cmd { color: var(--text); }
.hero-term-cur {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: var(--accent);
  margin-left: 3px;
  transform: translateY(2px);
  animation: mb-cursor 1.1s steps(1) infinite;
}
.hero-term.is-typing .hero-term-cur { animation: none; } /* solid while typing, blinks when idle */
@keyframes mb-cursor { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-term-cur { animation: none; } }
.hero h1 {
  font-size: 60px;
  letter-spacing: -1.5px;
  margin: 18px 0 0;
  line-height: 1.05;
}
.hero h1 .accent { color: var(--accent); }
.hero-sub {
  max-width: 620px;
  margin: 16px auto 0;
  color: var(--text-soft);
  font-size: 17px;
}
.hero-chips {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  margin-top: 20px;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.hero-note { color: var(--text-faint); font-size: 13px; margin-top: 12px; }

/* 3-step strip */
.steps {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap;
  gap: 18px 30px;
  margin-top: 28px;
}
/* Ghost-numeral steps — large outlined figures with flat text (no capsule, so
   the rounded capsule stays reserved for interactive controls only) */
.step {
  display: flex; align-items: center; gap: 14px;
}
.step-num {
  flex: none;
  font-family: var(--font-head); font-weight: 700; font-size: 34px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.4px var(--accent-outline);
}
.step-text { font-size: 13px; color: var(--text-mid); max-width: 220px; line-height: 1.4; }
.step--accent .step-num { -webkit-text-stroke: 0; color: var(--accent); }
.step-join { display: none; }

/* ========================================================================
   BENTO GRID
   ======================================================================== */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 14px;
}
.bento-cell { display: flex; flex-direction: column; }
.bento-video { grid-column: span 2; grid-row: span 2; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.bento-video video { width: 100%; height: auto; display: block; }
.bento-video-cap {
  flex: 1; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .3px;
  color: var(--accent); text-align: center; padding: 10px 16px;
}
.bento-wide { grid-column: span 2; flex-direction: row; align-items: center; gap: 20px; }

.bento-cell .card-kicker { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 1px; }
.bento-cell .card-title { font-family: var(--font-head); font-weight: 700; font-size: 19px; margin-top: 8px; }
.bento-cell .card-desc { color: var(--text-soft); font-size: 13px; margin-top: 6px; line-height: 1.5; }
.bento-cell .card-more { font-family: var(--font-mono); font-size: 11px; color: var(--accent); margin-top: 10px; }

.card-link { text-decoration: none; color: inherit; }
.card--clickable { cursor: pointer; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.card--clickable:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 8px 24px rgba(0,0,0,.35); }

.bento-chips { margin-left: auto; display: flex; gap: 6px; flex: none; }

/* ========================================================================
   TWO WAYS
   ======================================================================== */
.two-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.two-card { background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; padding: 28px; }
.two-card--accent { background: var(--accent-tint); border-color: var(--accent-outline); }
.two-card h3 { font-size: 21px; margin: 14px 0 8px; }
.two-card p { color: var(--text-soft); font-size: 14px; line-height: 1.65; margin: 0; }
/* Card eyebrow — borderless dot kicker (no capsule) */
.tag {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-mid); letter-spacing: 1.5px; text-transform: uppercase;
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--accent); }
.tag--accent { color: var(--accent); }
.two-card .media-ph { margin-top: 18px; }

/* ========================================================================
   TABS SECTION
   ======================================================================== */
/* Segmented control — all tabs sit in one enclosed track so it unmistakably
   reads as a switch. V2 tabs ride the track; the "everything from V1" tabs live
   in a recessed inner zone, so they read as secondary without a badge. */
.tabs-track {
  position: relative;
  display: flex; gap: 4px; align-items: center;
  width: fit-content; max-width: 100%; margin: 26px auto 0;
  border-radius: 999px; padding: 5px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--panel-dark), var(--panel-dark)) padding-box,
    linear-gradient(180deg, rgba(255,255,255,.38), rgba(255,255,255,.02) 45%, rgba(255,255,255,.16) 100%) border-box;
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.1),
    inset 0 -1px 3px rgba(0,0,0,.6),
    0 2px 4px rgba(0,0,0,.4);
}
.tz-group { display: flex; gap: 4px; align-items: center; }
.tz-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px;
  color: var(--text-dim); padding: 0 8px; user-select: none; white-space: nowrap;
}
/* Recessed V1 zone */
.tz-v1 {
  margin-left: 8px; padding: 4px 6px 4px 4px;
  background: var(--darkest); border-radius: 999px;
}
.tz-v1 .tz-label { color: var(--text-faint); }
/* Track pills: V2 on the track (medium), V1 lighter and narrower to cut scroll.
   .v1 sits before :hover/.is-active so those later, equal-specificity rules win. */
.tabs-track .pill { background: transparent; border-color: transparent; color: var(--text-mid); }
.tabs-track .pill.v1 { font-size: 12px; padding: 6px 12px; color: var(--text-dim); }
.tabs-track .pill:hover:not(.is-active) { color: var(--text); }
.tabs-track .pill.is-active { border-color: transparent; color: var(--panel-dark); font-weight: 600; }

/* Sliding highlight — one indicator per track glides to the active pill */
.seg-track { position: relative; }
.seg-track .pill { position: relative; z-index: 1; }
.seg-hl {
  position: absolute; top: 0; left: 0; width: 0; height: 0;
  border-radius: 999px; background: var(--grad-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -1px 2px rgba(0, 0, 0, .2), 0 1px 3px rgba(0, 0, 0, .3);
  transform: translate(0, 0); opacity: 0; z-index: 0; pointer-events: none;
  transition: transform .42s var(--ease-slide), width .42s var(--ease-slide),
              height .42s var(--ease-slide), opacity .18s ease;
}
@media (prefers-reduced-motion: reduce) { .seg-hl { transition: opacity .18s ease; } }

.tab-panel {
  display: grid; grid-template-columns: minmax(0, 480px) 1fr; gap: 36px;
  margin-top: 28px;
  background: var(--panel-dark);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  align-items: center;
  transition: border-color .4s ease, box-shadow .4s ease;
}
.tab-panel.is-flash { border-color: var(--accent); box-shadow: 0 0 30px rgba(255,140,0,.25); }
.tab-panel .tab-kicker { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 1px; }
.tab-panel h3 { font-size: 24px; margin: 8px 0 10px; }
.tab-panel p { color: var(--text-soft); font-size: 14px; line-height: 1.7; margin: 0; }

/* ========================================================================
   MCP TERMINAL
   ======================================================================== */
.mcp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.mcp-copy h2 { font-size: 32px; margin: 10px 0 12px; line-height: 1.2; }
.mcp-copy p { color: var(--text-soft); font-size: 15px; line-height: 1.7; margin: 0; }
.terminal {
  background: var(--darkest);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.9;
  overflow-x: auto;
}
.terminal .t-prompt { color: var(--text-dim); }
.terminal .t-out { color: var(--text); }
.terminal .t-accent { color: var(--accent); }

/* ========================================================================
   WHAT'S NEW
   ======================================================================== */
.wn-head { text-align: center; }
/* Section eyebrow — borderless dot kicker (no capsule) */
.wn-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 12px; color: var(--accent);
  letter-spacing: 1.5px; text-transform: uppercase;
}
.wn-badge::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--accent); }
.wn-head h2 { font-size: 36px; margin: 14px 0 0; }
.wn-head p { color: var(--text-dim); margin: 10px auto 0; max-width: 560px; }
.wn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 32px; }
.wn-card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 22px; }
.wn-card .wn-title { font-weight: 700; font-size: 16px; }
.wn-card p { color: var(--text-soft); font-size: 13px; line-height: 1.6; margin-top: 6px; }
.wn-link { display: block; text-align: center; margin-top: 22px; font-family: var(--font-mono); font-size: 13px; }

/* ========================================================================
   VIDEO
   ======================================================================== */
.video-pills { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.video-frame {
  max-width: 880px; margin: 28px auto 0;
  aspect-ratio: 16 / 9;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-facade {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px;
  cursor: pointer;
  background-size: cover; background-position: center;
}
.video-facade .vf-label { font-family: var(--font-mono); font-size: 12px; color: #999; }

/* ========================================================================
   TESTIMONIALS
   ======================================================================== */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.testi-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex; flex-direction: column;
  transition: opacity .35s ease;
}
.testi-grid.is-fading .testi-card { opacity: 0; }
.testi-card p { color: #c8c8c8; font-size: 14px; line-height: 1.65; margin: 0; }
.testi-meta { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 14px; }
.testi-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  background: var(--panel-dark); border: 1px solid var(--border);
  object-fit: cover;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 10px; color: #666;
}
.testi-name { font-size: 13px; }
.testi-name b { color: var(--text); }
.testi-alias { color: var(--accent); }
.testi-country { color: var(--text-dim); }

.testi-dots { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.testi-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); cursor: pointer; border: none; padding: 0; transition: background .2s; }
.testi-dot.is-active { background: var(--accent); }

.testi-source { text-align: center; color: var(--text-faint); font-size: 12px; margin-top: 14px; }

/* Marquee */
.marquee { margin-top: 24px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: mb-marquee 36s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  flex: none;
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 999px;
  padding: 9px 20px; font-size: 13px; color: var(--text-mid);
}
@keyframes mb-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ========================================================================
   STORY
   ======================================================================== */
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  max-width: 1000px;
  margin: 40px auto 0;
}
.story-shot { margin: 0; }
.story-shot img {
  display: block;
  width: 100%; height: auto;
  border-radius: 14px;
  border: 1px solid var(--accent-outline);
  box-shadow: 0 0 40px rgba(255, 140, 0, .08);
}
.story-lead { color: var(--text-mid); font-size: 16px; line-height: 1.7; margin: 0 0 22px; }
.story-list {
  display: flex; flex-direction: column; gap: 10px;
  margin: 14px 0 0; padding: 0; list-style: none;
  color: var(--text-mid); font-size: 15px;
}
.story-list li { position: relative; padding-left: 26px; }
.story-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--success); font-weight: 700;
}
.story-close { color: var(--text-soft); font-size: 15px; line-height: 1.7; margin: 22px 0 0; }
.story-cta {
  display: inline-block; margin-top: 16px;
  color: var(--accent); font-weight: 600; font-size: 15px;
}
.story-cta:hover { color: var(--accent-light); }
.story-cta .nowrap { white-space: nowrap; }

/* ========================================================================
   PRICING
   ======================================================================== */
.pricing-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; max-width: 920px; margin: 32px auto 0; }
.price-card {
  background: var(--panel-2);
  border: 1px solid var(--accent-outline);
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 0 40px rgba(255,140,0,.08);
}
.price-amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-top: 14px; }
/* nowrap: without it the price shrinks to "35" and drops the "€" onto its own
   line once the card gets narrow. The meta text wraps below instead. */
.price-amount .num { font-family: var(--font-head); font-size: 52px; font-weight: 700; white-space: nowrap; }
.price-amount .meta { color: var(--text-dim); font-size: 14px; }
.price-list { display: flex; flex-direction: column; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; color: var(--text-mid); font-size: 14px; }
.price-list .ok { color: var(--success); }
/* Button pairs wrap instead of forcing their card wider: two nowrap buttons
   side by side have a min-content width of ~280px, which blew the whole
   pricing grid past the viewport below ~380px. */
.price-alt { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.price-alt .btn { flex: 1 1 140px; }

.price-side { display: flex; flex-direction: column; gap: 16px; }
.side-card { background: var(--panel-2); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.side-card .side-kicker { font-family: var(--font-mono); font-size: 12px; color: var(--text-mid); letter-spacing: 2px; }
.side-card p { color: var(--text-soft); font-size: 14px; line-height: 1.6; margin: 10px 0 0; }
.side-dl { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.side-dl .btn { flex: 1 1 140px; }
.side-version { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }
.side-version span[hidden] { display: none; }
.side-version span:not([hidden])::after { content: ' ·'; }
.side-version a { color: var(--text-faint); text-decoration: none; border-bottom: 1px solid var(--border); }
.side-version a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.side-sys { color: var(--text-soft); font-size: 13px; line-height: 1.7; margin-top: 10px; }

.dl-warn { margin-top: 10px; }
.dl-warn summary { display: flex; justify-content: flex-end; align-items: center; gap: 6px; cursor: pointer; list-style: none; font-size: 12px; color: var(--text-dim); text-align: right; }
.dl-warn summary::-webkit-details-marker { display: none; }
.dl-warn summary::after { content: '›'; color: var(--text-faint); transform: rotate(90deg); transition: transform .2s var(--ease-out); }
.dl-warn[open] summary::after { transform: rotate(270deg); }
.dl-warn summary:hover { color: var(--text-mid); }
.dl-warn-icon { color: var(--accent); }
.dl-warn p { margin: 8px 0 0; padding: 10px 12px; background: var(--panel-dark); border: 1px solid var(--border); border-radius: 10px; color: var(--text-soft); font-size: 12.5px; line-height: 1.6; text-align: right; }

/* ========================================================================
   CONTACT
   ======================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.contact-copy h2 { font-size: 32px; }
.contact-copy p { color: var(--text-soft); font-size: 15px; line-height: 1.7; margin: 14px 0 0; }
.contact-form { background: var(--panel-dark); border: 1px solid var(--border); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.contact-row { display: flex; gap: 12px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #666; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form textarea { resize: vertical; min-height: 96px; }
.contact-row > * { flex: 1; }
/* Honeypot. Moved off-screen rather than display:none, which some bots skip. */
.form-trap {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.form-note { color: var(--text-faint); font-size: 12px; line-height: 1.5; margin: 2px 0 0; }
.form-note a { color: var(--text-dim); text-decoration: underline; }
.form-note a:hover { color: var(--accent); }

/* ========================================================================
   ORANGE CTA BAND
   ======================================================================== */
.cta-band {
  background: var(--grad-accent);
  padding: 48px 0;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: 34px; color: var(--panel-dark); letter-spacing: -1px; }
.cta-sub { font-family: var(--font-mono); font-size: 13px; color: #5a3300; margin-top: 8px; }
.cta-btn {
  background: var(--panel-dark); color: var(--accent);
  font-family: var(--font-mono); font-weight: 600; font-size: 14px;
  padding: 16px 36px; border-radius: 5px; letter-spacing: 1px; flex: none;
}
.cta-btn:hover { color: var(--accent-light); }

/* ========================================================================
   LEGACY / MIDIBRO 1 DOWNLOAD
   ======================================================================== */
.legacy-card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px 40px;
  flex-wrap: wrap;
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 14px;
  padding: 28px 32px;
}
.legacy-copy { flex: 1 1 340px; min-width: 0; }
.legacy-copy h2 { font-size: 24px; margin: 10px 0 8px; }
.legacy-copy p { color: var(--text-soft); font-size: 14px; line-height: 1.6; margin: 0; max-width: 620px; }
.legacy-dl { display: flex; gap: 12px; flex: none; flex-wrap: wrap; }

/* ========================================================================
   FOOTER
   ======================================================================== */
.footer { background: var(--darkest); padding: 40px 0; }
.footer-inner { display: flex; gap: 64px; align-items: flex-start; flex-wrap: wrap; }
.footer-brand .fb-row { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 28px; height: 28px; }
.footer-brand .fb-name { font-family: var(--font-head); font-weight: 700; font-size: 16px; }
.footer-brand .fb-name .two { color: var(--accent); }
.footer-tag { color: var(--text-faint); font-size: 13px; margin-top: 8px; }
.footer-legal { color: #555; font-size: 12px; margin-top: 16px; line-height: 1.6; }
.footer-cols { margin-left: auto; display: flex; gap: 56px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col .col-head { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); letter-spacing: 2px; }
.footer-col a { color: var(--text-mid); font-size: 13px; }
.footer-col a:hover { color: var(--accent); }

/* ========================================================================
   RESPONSIVE — tablet / mobile
   ======================================================================== */
@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .bento-video { grid-column: span 2; grid-row: auto; }
  .bento-wide { grid-column: span 2; }
  .mcp-grid, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .story-grid { grid-template-columns: 1fr; gap: 28px; max-width: 560px; }
  .two-grid { grid-template-columns: 1fr; }
  .wn-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .tab-panel { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
}

/* The one-row segmented tabs need ~855px to fit; below that, reflow into two
   stacked, swipeable capsules before the row overflows and gets clipped.
   (Higher breakpoint than the mobile nav — this is purely about tab-row width.) */
@media (max-width: 900px) {
  .tabs-track {
    flex-direction: column; align-items: stretch; gap: 10px;
    width: 100%; background: transparent; border: none; padding: 0; margin-top: 20px;
  }
  .tabs-track .seg-hl { display: none; } /* highlight is desktop-only */
  .tabs-track .pill.is-active { background: var(--grad-accent); color: var(--panel-dark); } /* fill instead */
  .tz-group {
    flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    background: var(--panel-dark); border: 1px solid var(--border);
    border-radius: 999px; padding: 5px 8px;
  }
  .tz-group::-webkit-scrollbar { display: none; }
  .tz-v1 { margin-left: 0; background: var(--darkest); border-color: var(--divider); }
}

@media (max-width: 720px) {
  .section { padding: 44px 0; }
  .section-title { font-size: 26px; }

  /* Mobile nav — drop the segmented-track look, revert to a dropdown */
  .navbar-menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 8px;
    background: rgba(20,20,20,.98);
    border: none; border-bottom: 1px solid var(--border); border-radius: 0;
    margin: 0; padding: 16px 24px;
    transform: translateY(-120%);
    transition: transform .25s ease;
    z-index: 90;
  }
  .navbar-menu.is-open { transform: translateY(0); }
  .navbar-menu .pill { display: block; text-align: center; }
  .navbar-menu .seg-hl { display: none; } /* highlight is desktop-only */
  .navbar-menu .pill.is-active { background: var(--grad-accent); color: var(--panel-dark); } /* fill instead */
  .nav-toggle { display: flex; }
  .navbar-cta { margin-left: auto; }

  /* Hero */
  .hero { padding: 40px 0 20px; }
  .hero-logo { width: 56px; height: 56px; }
  .hero h1 { font-size: 34px; letter-spacing: -1px; }
  .hero-sub { font-size: 14px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  /* Narrow viewport uses the `short` command variants from midibro2.js (max
     26ch + 12ch prompt + cursor + padding = 41ch), so the chip can be narrower
     and the type bigger than the desktop lines would allow. Keep the 720px
     cut-off in sync with `narrow` in initHeroTerminal(). */
  .hero-term { width: min(41ch, 100%); font-size: clamp(10px, 3.4vw, 15px); }

  /* Narrow viewport: the copy fills the width, so the dot field only frames it. */
  .hero-dots { opacity: .4; }
  .hero::before {
    background: radial-gradient(ellipse 78% 42% at 50% 40%, rgba(20,20,20,.9) 0%, rgba(20,20,20,.6) 60%, transparent 100%);
  }

  /* Steps stack */
  .steps { flex-direction: column; align-items: stretch; gap: 8px; }
  .step { justify-content: flex-start; }
  .step-join { display: none; }

  /* Bento single column */
  .bento { grid-template-columns: 1fr; }
  .bento-video, .bento-wide { grid-column: span 1; }
  .bento-wide { flex-direction: column; align-items: flex-start; }
  .bento-chips { margin-left: 0; }

  .video-pills { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }

  .mcp-copy h2 { font-size: 24px; }
  .cta-band h2 { font-size: 22px; }
  .cta-inner { flex-direction: column; text-align: center; }

  .contact-row { flex-direction: column; }
  .footer-inner { flex-direction: column; gap: 28px; }
  .footer-cols { margin-left: 0; gap: 40px; }
}

/* One testimonial per page on small screens (JS sets PER_PAGE = 1) */
@media (max-width: 720px) {
  .testi-grid { display: block; }
}

/* ========================================================================
   SUPPORT PAGE
   ======================================================================== */
.support-header {
  text-align: center;
  padding: 56px 0 40px;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, #26201a 0%, var(--bg) 70%);
}
.support-back { font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; }
.support-header h1 { font-size: 44px; letter-spacing: -1px; margin: 14px 0 0; }
.support-header p { color: var(--text-soft); font-size: 16px; margin: 10px 0 0; }

.quick-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quick-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 26px; text-align: center;
}
.quick-card .qc-kicker { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 2px; }
.quick-card .qc-title { font-family: var(--font-head); font-weight: 700; font-size: 18px; margin-top: 10px; }
.quick-card .btn, .quick-card .pill { margin-top: 16px; }

/* DAW guides */
/* nine guides: 3x3 divides evenly, where four columns leave one card alone
   on the last row */
.daw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.daw-card {
  background: var(--panel-dark); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px; text-align: center;
  display: flex; flex-direction: column; gap: 12px; align-items: center;
  transition: border-color .15s ease, transform .15s ease;
}
.daw-card:hover { border-color: var(--accent-outline); transform: translateY(-2px); }
.daw-logo {
  width: 52px; height: 52px; border-radius: 10px; object-fit: contain;
  background: var(--panel); border: 1px solid var(--border); padding: 8px;
}
.daw-name { font-weight: 700; font-size: 15px; }
.daw-intro {
  max-width: 720px; margin: 0 auto; text-align: center;
  color: var(--text-soft); font-size: 14.5px; line-height: 1.7;
}
.daw-intro strong { color: var(--text); font-weight: 600; }
/* the routing shape decides whether the card is worth opening, so it belongs
   on the card rather than only inside the guide */
.daw-meta {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .5px;
  color: var(--text-faint); margin-top: -4px;
}
.daw-dl {
  font-family: var(--font-mono); font-size: 11px; padding: 5px 16px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--border); color: var(--accent);
}
.daw-dl:hover { border-color: var(--accent-outline); }
.daw-note { text-align: center; color: var(--text-faint); font-size: 13px; margin-top: 18px; }
.daw-unsupported { text-align: center; margin-top: 8px; }
.daw-unsupported .u-label { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); letter-spacing: 1px; }
.daw-unsupported .u-list { color: var(--text-soft); font-size: 13px; }

/* FAQ accordion */
.faq { max-width: 820px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.faq-item { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.faq-q {
  display: flex; align-items: center; gap: 14px;
  width: 100%; text-align: left;
  padding: 16px 20px; cursor: pointer;
  background: none; border: none; color: var(--text);
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  transition: background .15s ease;
}
.faq-q:hover { background: var(--divider); }
.faq-icon { font-family: var(--font-mono); font-size: 16px; color: var(--accent); width: 16px; flex: none; }
.faq-a {
  max-height: 0; overflow: hidden;
  color: var(--text-soft); font-size: 14px; line-height: 1.7;
  padding: 0 20px 0 50px;
  transition: max-height .3s ease, padding .3s ease;
}
.faq-item.is-open .faq-a { max-height: 400px; padding-bottom: 18px; }
.faq-foot { text-align: center; margin-top: 32px; color: var(--text-soft); font-size: 14px; }

@media (max-width: 960px) {
  .quick-cards { grid-template-columns: 1fr; }
  .daw-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .support-header h1 { font-size: 30px; }
  .daw-grid { grid-template-columns: 1fr 1fr; }
  .faq-a { padding-left: 20px; }
  .faq-item.is-open .faq-a { padding-left: 20px; }
}
