/* Guitar Mentor — site v2 ("stage" theme)
   One family (Bricolage Grotesque), aubergine stage, tungsten light,
   string-glow gradient reserved for strings. */

:root {
  --bg: #120e1f;
  --bg-2: #171226;
  --surface: #1e1832;
  --surface-2: #272041;
  --surface-3: #312852;
  --line: rgba(226, 218, 255, 0.1);
  --line-2: rgba(226, 218, 255, 0.18);
  --text: #f3f0fa;
  --text-2: #c2bad8;
  --text-3: #8c84a6;
  --violet: #8c7bff;
  --violet-deep: #6b55f0;
  --tungsten: #f6b865;
  --tungsten-deep: #e0953a;
  --pink: #ff5fa2;
  --cyan: #3fd2f2;
  --green: #4be3a0;
  --red: #ff6b6b;
  --string-grad: linear-gradient(90deg, #ff5fa2, #a45cff 45%, #3fd2f2);

  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --bar-h: 68px; /* the nav row */
  --switch-h: 48px; /* the Guitar | Keyboard row above it */
  --nav-h: calc(var(--bar-h) + var(--switch-h));
  --r-s: 10px;
  --r-m: 18px;
  --r-l: 28px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --fs-hero: clamp(2.6rem, 5.4vw, 4.9rem);
  --fs-h2: clamp(2rem, 4.4vw, 3.6rem);
  --fs-h3: clamp(1.25rem, 1.6vw, 1.45rem);
  --fs-lead: clamp(1.08rem, 1.35vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9rem;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 740; line-height: 1.04; letter-spacing: -0.028em; font-variation-settings: "wdth" 90; text-wrap: balance; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.02em; line-height: 1.15; font-variation-settings: "wdth" 95; }
.lead { font-size: var(--fs-lead); color: var(--text-2); line-height: 1.55; max-width: 34em; text-wrap: pretty; }
.muted { color: var(--text-3); }
.num { font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--tungsten); color: #1a1208; padding: 10px 16px; border-radius: var(--r-s); font-weight: 650; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--tungsten); outline-offset: 3px; border-radius: 6px; }

section { position: relative; }
.section { padding-block: clamp(72px, 9vw, 120px); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 + .lead { margin-top: 20px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s, transform 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, .site-header.is-solid {
  background: rgba(18, 14, 31, 0.78);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  backdrop-filter: saturate(140%) blur(16px);
  border-bottom-color: var(--line);
}
.nav { height: var(--bar-h); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; font-size: 1.12rem; letter-spacing: -0.03em; flex-shrink: 0; }
.brand img { width: 32px; height: 32px; }
.nav-links { display: flex; gap: 4px; margin-left: 12px; list-style: none; padding: 0; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--text-2); font-size: 0.97rem; font-weight: 520; transition: color 0.2s, background 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; position: relative; transition: transform 0.25s var(--ease), background 0.2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { display: none; }

@media (max-width: 920px) {
  .nav-links, .nav-cta .btn-get-desktop { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta { gap: 8px; }
  .mobile-menu {
    display: block; position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 49;
    background: rgba(18, 14, 31, 0.97); border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    padding: 12px var(--gutter) 24px; transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0.2s;
  }
  .nav-open .mobile-menu { opacity: 1; transform: none; visibility: visible; }
  .mobile-menu a { display: block; padding: 14px 4px; font-size: 1.15rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
  .mobile-menu .store-row { margin-top: 18px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 650; font-size: 0.98rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-light { background: var(--text); color: #160f25; }
.btn-light:hover { background: #fff; box-shadow: 0 8px 28px -10px rgba(246, 184, 101, 0.6); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { border-color: rgba(226, 218, 255, 0.35); background: rgba(255, 255, 255, 0.07); }
.btn-tungsten { background: var(--tungsten); color: #1d1206; }
.btn-tungsten:hover { background: #ffc77e; box-shadow: 0 10px 30px -10px rgba(246, 184, 101, 0.7); }
.btn-sm { min-height: 38px; padding: 7px 15px; font-size: 0.92rem; }

.store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 9px 22px 9px 18px;
  border-radius: 16px; text-decoration: none; background: #0a0812; color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22); transition: transform 0.2s var(--ease), border-color 0.2s, background 0.2s;
}
.store-btn:hover { border-color: rgba(255, 255, 255, 0.5); background: #000; transform: translateY(-1px); }
.store-btn svg { width: 26px; height: 26px; flex-shrink: 0; }
.store-btn small { display: block; font-size: 0.7rem; font-weight: 500; opacity: 0.8; line-height: 1.1; letter-spacing: 0.01em; }
.store-btn strong { display: block; font-size: 1.18rem; font-weight: 650; line-height: 1.15; letter-spacing: -0.02em; }
.store-row.compact .store-btn { min-height: 46px; padding: 6px 16px 6px 13px; border-radius: 13px; gap: 9px; }
.store-row.compact .store-btn svg { width: 20px; height: 20px; }
.store-row.compact .store-btn strong { font-size: 0.98rem; }
.store-row.compact .store-btn small { font-size: 0.62rem; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(100svh, 980px); display: flex; flex-direction: column; padding-top: var(--nav-h); isolation: isolate; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 78% 40%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(18, 14, 31, 0.92) 32%, rgba(18, 14, 31, 0.5) 60%, rgba(18, 14, 31, 0.35) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(18, 14, 31, 0) 34%),
    linear-gradient(180deg, rgba(18, 14, 31, 0.7) 0%, rgba(18, 14, 31, 0) 22%);
}
.hero-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: center; gap: 40px; padding-block: clamp(12px, 3vh, 40px) 4px; }
.hero h1 { font-size: var(--fs-hero); line-height: 0.98; letter-spacing: -0.02em; max-width: 12em; font-variation-settings: "wdth" 92; font-weight: 740; }
.hero .lead { margin-top: 22px; max-width: 31em; }
.hero .store-row { margin-top: 28px; }
.hero-note { margin-top: 18px; color: var(--text-3); font-size: var(--fs-small); }
.hero-note b { color: var(--text-2); font-weight: 600; }
.hero-phone { justify-self: center; position: relative; }
.hero-chip {
  position: absolute; z-index: 2; padding: 10px 14px; border-radius: 14px; font-size: 0.86rem; font-weight: 600; line-height: 1.25;
  background: rgba(30, 24, 50, 0.82); border: 1px solid var(--line-2); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); white-space: nowrap;
}
.hero-chip small { display: block; color: var(--text-3); font-weight: 500; font-size: 0.74rem; }
.hero-chip.c1 { left: -86px; top: 16%; }
.hero-chip.c2 { right: -70px; top: 52%; }
.hero-chip .ok { color: var(--green); }
.chip-chords { display: flex; gap: 6px; margin-top: 4px; }
.chip-chords span { padding: 2px 8px; border-radius: 7px; background: rgba(255, 255, 255, 0.08); font-weight: 700; }
.chip-chords span.on { background: var(--tungsten); color: #1d1206; }

/* fretboard band */
.fretband { position: relative; height: clamp(140px, 17vh, 176px); margin-top: 4px; user-select: none; -webkit-user-select: none; touch-action: pan-y; cursor: crosshair; }
.fretband canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.fret-ui-wrap { position: absolute; left: 0; right: 0; top: -6px; pointer-events: none; }
.fret-ui { display: flex; align-items: center; justify-content: space-between; gap: 12px; pointer-events: none; }
.fret-ui > * { pointer-events: auto; }
.chord-readout { display: flex; align-items: baseline; gap: 12px; }
.chord-readout .name { font-size: 2rem; font-weight: 800; letter-spacing: -0.04em; min-width: 2.2em; font-variation-settings: "wdth" 80; }
.chord-readout .hint { color: var(--text-3); font-size: var(--fs-small); }
.prog { display: flex; gap: 6px; }
.prog button { min-width: 44px; min-height: 36px; padding: 4px 10px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(18, 14, 31, 0.6); font-weight: 700; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.prog button[aria-pressed="true"] { background: var(--tungsten); border-color: var(--tungsten); color: #1d1206; }
.sound-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(18, 14, 31, 0.6); cursor: pointer; font-weight: 600; font-size: 0.9rem; }
.sound-toggle svg { width: 18px; height: 18px; }
.sound-toggle[aria-pressed="true"] { border-color: var(--tungsten); color: var(--tungsten); }
.sound-toggle .on { display: none; }
.sound-toggle[aria-pressed="true"] .on { display: inline; }
.sound-toggle[aria-pressed="true"] .off { display: none; }

/* ---------- phone frame ---------- */
.phone {
  --pw: 280px;
  width: var(--pw); aspect-ratio: 1206 / 2622; border-radius: calc(var(--pw) * 0.15); padding: calc(var(--pw) * 0.035);
  background: linear-gradient(145deg, #3a3350, #15111f 40%, #2b2440);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 40px 80px -30px rgba(0, 0, 0, 0.85), 0 0 120px -40px rgba(140, 123, 255, 0.45);
  position: relative;
}
.phone-screen { width: 100%; height: 100%; border-radius: calc(var(--pw) * 0.12); overflow: hidden; background: #120e1f; position: relative; }
.phone-screen::before { /* status bar */
  content: "9:41"; position: absolute; left: 0; right: 0; top: 0; height: 5.6%; z-index: 2; display: flex; align-items: center; padding-left: 13%;
  font-size: calc(var(--pw) * 0.047); font-weight: 650; color: #fff; background: #120e1f;
}
.phone-screen::after { /* island */
  content: ""; position: absolute; top: 1.4%; left: 50%; width: 31%; height: 3.3%; transform: translateX(-50%); border-radius: 999px; background: #000; z-index: 3;
}
.phone-screen img { position: absolute; left: 0; right: 0; top: 5.6%; width: 100%; height: auto; }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding-block: 18px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 0; animation: marquee 42s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; font-size: 1.05rem; color: var(--text-2); font-weight: 550; white-space: nowrap; }
.marquee-track span::after { content: ""; width: 34px; height: 1px; margin-inline: 22px; background: var(--line-2); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- split layouts ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.split.flip > :first-child { order: 2; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; color: var(--text-2); }
.ticks li::before { content: ""; width: 22px; height: 2px; margin-top: 0.8em; background: var(--tungsten); border-radius: 2px; }
.ticks b { color: var(--text); font-weight: 650; }
.tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 650; vertical-align: 2px; letter-spacing: 0.01em; }
.tag-free { background: rgba(75, 227, 160, 0.14); color: var(--green); }
.tag-pro { background: rgba(140, 123, 255, 0.2); color: #b9afff; }

.photo { position: relative; border-radius: var(--r-l); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); pointer-events: none; }

/* ---------- song pipeline demo ---------- */
.songs-stage { position: relative; }
.songs-stage .photo { aspect-ratio: 3 / 2; }
.songs-stage .photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 14, 31, 0) 40%, rgba(18, 14, 31, 0.85)); z-index: 1; }
.pipe {
  position: relative; z-index: 2; margin: -120px clamp(12px, 4vw, 40px) 0; padding: 18px; border-radius: var(--r-m);
  background: rgba(23, 18, 38, 0.94); border: 1px solid var(--line-2); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.pipe-url { display: flex; gap: 10px; align-items: center; }
.pipe-url .field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--text-2); font-size: 0.95rem; overflow: hidden; white-space: nowrap; }
.pipe-url .field svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--text-3); }
.pipe-url .typed::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -2px; background: var(--tungsten); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.pipe-url .go { height: 44px; padding: 0 16px; border-radius: 12px; background: var(--violet-deep); color: #fff; font-weight: 650; display: inline-flex; align-items: center; font-size: 0.95rem; transition: transform 0.15s, background 0.2s; }
.pipe.s-press .pipe-url .go { transform: scale(0.94); background: var(--violet); }
.pipe-steps { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pipe-steps li { position: relative; padding: 9px 10px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); font-size: 0.8rem; color: var(--text-3); line-height: 1.25; overflow: hidden; }
.pipe-steps li::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--tungsten); transition: width 0.55s linear; }
.pipe-steps li.done { color: var(--text); }
.pipe-steps li.done::after { width: 100%; }
.pipe-player { margin-top: 14px; display: grid; gap: 12px; opacity: 0.35; transition: opacity 0.5s; }
.pipe.s-play .pipe-player { opacity: 1; }
.lane { position: relative; height: 54px; border-radius: 10px; background: rgba(0, 0, 0, 0.28); overflow: hidden; }
.lane-track { position: absolute; top: 0; bottom: 0; left: 0; display: flex; width: max-content; animation: lane 8s linear infinite; animation-play-state: paused; }
.pipe.s-play .lane-track { animation-play-state: running; }
.pipe.s-slow .lane-track { animation-duration: 10.67s; }
.lane-track .bar { width: 132px; flex-shrink: 0; border-left: 1px solid rgba(255, 255, 255, 0.12); display: flex; align-items: center; padding-left: 10px; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.03em; position: relative; }
.lane-track .bar i { position: absolute; bottom: 7px; width: 3px; height: 3px; border-radius: 50%; background: rgba(255, 255, 255, 0.28); }
.lane-track .bar i:nth-child(1) { left: 25%; } .lane-track .bar i:nth-child(2) { left: 50%; } .lane-track .bar i:nth-child(3) { left: 75%; }
@keyframes lane { to { transform: translateX(-50%); } }
.lane .playhead { position: absolute; top: 0; bottom: 0; left: 30%; width: 2px; background: var(--tungsten); box-shadow: 0 0 12px var(--tungsten); z-index: 2; }
.lane .loop { position: absolute; top: 0; bottom: 0; left: 18%; width: 44%; border-left: 2px solid var(--cyan); border-right: 2px solid var(--cyan); background: rgba(63, 210, 242, 0.08); opacity: 0; transition: opacity 0.4s; z-index: 1; }
.pipe.s-loop .lane .loop { opacity: 1; }
.pipe-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pills span { padding: 4px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 650; background: rgba(255, 255, 255, 0.06); color: var(--text-2); transition: background 0.3s, color 0.3s; }
.pills span.hot { background: rgba(246, 184, 101, 0.18); color: var(--tungsten); }
.stems { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.stem { display: grid; gap: 6px; justify-items: center; font-size: 0.72rem; color: var(--text-3); }
.stem .rail { position: relative; width: 100%; height: 76px; border-radius: 8px; background: rgba(0, 0, 0, 0.3); overflow: hidden; display: flex; justify-content: center; }
.stem .meter { position: absolute; bottom: 0; left: 0; right: 0; height: 60%; background: linear-gradient(0deg, rgba(140, 123, 255, 0.55), rgba(140, 123, 255, 0.1)); transform-origin: bottom; animation: meter 0.9s ease-in-out infinite alternate; animation-play-state: paused; }
.pipe.s-play .stem .meter { animation-play-state: running; }
.stem:nth-child(2) .meter { background: linear-gradient(0deg, rgba(246, 184, 101, 0.75), rgba(246, 184, 101, 0.12)); animation-duration: 0.7s; }
.stem:nth-child(3) .meter { animation-duration: 1.1s; }
.stem:nth-child(4) .meter { animation-duration: 0.5s; }
.stem:nth-child(5) .meter { animation-duration: 1.3s; }
.stem:nth-child(6) .meter { animation-duration: 0.8s; }
@keyframes meter { from { transform: scaleY(0.35); } to { transform: scaleY(1); } }
.stem .knob { position: absolute; left: 8%; right: 8%; height: 10px; border-radius: 4px; background: #e9e4f7; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); bottom: 62%; transition: bottom 0.7s var(--ease); z-index: 1; }
.pipe.s-mute .stem.vox .knob { bottom: 4%; }
.pipe.s-mute .stem.vox .meter { opacity: 0.15; }
.stem.gtr { color: var(--tungsten); }
.pipe-foot { margin: 12px 2px 0; font-size: 0.8rem; color: var(--text-3); }

/* ---------- learn ---------- */
.learn-visual { position: relative; }
.learn-visual .photo { aspect-ratio: 4 / 5; max-width: 480px; }
.learn-visual .phone { --pw: 210px; position: absolute; right: -10px; bottom: -40px; }
.grades { margin-top: clamp(56px, 8vw, 96px); display: grid; gap: 14px; }
.grades-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 8px; }
.grades-head p { margin: 0; color: var(--text-3); font-size: var(--fs-small); max-width: 44em; }
.board { display: grid; grid-template-columns: 210px 1fr; gap: 16px; align-items: center; padding: 14px 18px; border-radius: var(--r-m); background: var(--bg-2); border: 1px solid var(--line); }
.board h3 { font-size: 1.05rem; font-variation-settings: "wdth" 100; letter-spacing: -0.01em; }
.board h3 small { display: block; color: var(--text-3); font-weight: 500; font-size: 0.8rem; letter-spacing: 0; }
.rungs { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; }
.rungs span { height: 36px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; font-size: 0.86rem; background: rgba(255, 255, 255, 0.04); color: var(--text-3); border: 1px solid var(--line); transition: background 0.35s var(--ease), color 0.35s, border-color 0.35s; transition-delay: calc(var(--i, 0) * 70ms); }
.rungs.lit span { background: rgba(246, 184, 101, calc(0.1 + var(--i, 0) * 0.07)); color: var(--text); border-color: rgba(246, 184, 101, 0.35); }
.rungs span.w { grid-column: span 1; font-size: 0.74rem; }

/* ---------- pedalboard ---------- */
.rig { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.amp-screen {
  position: sticky; top: calc(var(--nav-h) + 24px);
  border-radius: var(--r-l); padding: 22px; min-height: 420px; display: grid; grid-template-rows: auto 1fr auto;
  background: radial-gradient(120% 90% at 50% 0%, #2a2246 0%, #17122a 65%);
  border: 1px solid var(--line-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}
.amp-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.amp-top h3 { font-size: 1.5rem; }
.amp-view { display: grid; place-items: center; min-height: 280px; position: relative; }
.amp-view > div { display: none; width: 100%; }
.amp-view > div.on { display: block; animation: fadein 0.35s var(--ease); }
.amp-view > .demo-chord.on, .amp-view > .demo-chat.on { display: grid; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } }
.amp-desc { color: var(--text-2); margin: 0; font-size: 0.98rem; min-height: 3.2em; }

.board-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 18px; border-radius: var(--r-l); background: repeating-linear-gradient(90deg, #15111f 0 2px, #1a1527 2px 14px); border: 1px solid var(--line); }
.pedal {
  --c: #6b55f0; position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: 8px; justify-items: center;
  aspect-ratio: 0.62; padding: 14px 10px 14px; border-radius: 14px; cursor: pointer; text-align: center;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 92%, #fff 8%), color-mix(in srgb, var(--c) 70%, #000 30%));
  border: 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -3px 0 rgba(0, 0, 0, 0.25), 0 14px 22px -12px rgba(0, 0, 0, 0.8);
  transition: transform 0.15s var(--ease), box-shadow 0.2s;
}
.pedal:hover { transform: translateY(-2px); }
.pedal:active { transform: translateY(1px) scale(0.99); }
.pedal .knobs { display: flex; gap: 10px; }
.pedal .knobs i { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #4a4458, #15121c 70%); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); position: relative; transform: rotate(var(--r, -40deg)); transition: transform 0.4s var(--ease); }
.pedal .knobs i::after { content: ""; position: absolute; left: 50%; top: 3px; width: 2px; height: 7px; margin-left: -1px; border-radius: 1px; background: #f3f0fa; }
.pedal[aria-pressed="true"] .knobs i { transform: rotate(calc(var(--r, -40deg) + 70deg)); }
.pedal .led { width: 9px; height: 9px; border-radius: 50%; background: #3a1414; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.6); transition: background 0.15s, box-shadow 0.15s; }
.pedal[aria-pressed="true"] .led { background: #ff4d4d; box-shadow: 0 0 10px 2px rgba(255, 77, 77, 0.8); }
.pedal .label { align-self: center; color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); }
.pedal .label b { display: block; font-size: clamp(1rem, 1.4vw, 1.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; font-variation-settings: "wdth" 80; }
.pedal .label small { display: block; margin-top: 4px; font-size: 0.72rem; font-weight: 600; opacity: 0.82; }
.pedal .switch { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #f1eef8, #8d879c 60%, #4e4a59); box-shadow: 0 3px 0 #2c2833, 0 6px 10px rgba(0, 0, 0, 0.5); transition: transform 0.1s, box-shadow 0.1s; }
.pedal[aria-pressed="true"] .switch { transform: translateY(2px); box-shadow: 0 1px 0 #2c2833, 0 3px 6px rgba(0, 0, 0, 0.5); }

/* amp demos */
.demo-tuner { text-align: center; }
.demo-tuner .note { font-size: 6rem; font-weight: 800; line-height: 1; letter-spacing: -0.05em; transition: color 0.3s; }
.demo-tuner .note sub { font-size: 1.6rem; font-weight: 650; vertical-align: baseline; color: var(--text-3); margin-left: 0.12em; letter-spacing: 0; }
.demo-tuner .dial { position: relative; width: min(320px, 90%); height: 120px; margin: 6px auto 0; }
.demo-tuner .dial svg { width: 100%; height: 100%; overflow: visible; }
.demo-tuner .needle { transform-origin: 160px 118px; transition: transform 0.35s cubic-bezier(0.3, 1.4, 0.5, 1); }
.demo-tuner .readout { margin-top: 6px; font-weight: 650; color: var(--text-2); font-variant-numeric: tabular-nums; }
.demo-tuner.ok .note, .demo-tuner.ok .readout { color: var(--green); }
.demo-tuner .strings { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.demo-tuner .strings span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-2); font-weight: 700; font-size: 0.85rem; color: var(--text-3); transition: all 0.3s; }
.demo-tuner .strings span.cur { border-color: var(--tungsten); color: var(--tungsten); }
.demo-tuner .strings span.done { border-color: var(--green); background: rgba(75, 227, 160, 0.15); color: var(--green); }

.demo-metro { text-align: center; }
.demo-metro .bpm { font-size: 5.5rem; font-weight: 800; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.demo-metro .bpm small { font-size: 1.1rem; color: var(--text-3); font-weight: 600; letter-spacing: 0; }
.demo-metro .beats { display: flex; justify-content: center; gap: 14px; margin-top: 26px; }
.demo-metro .beats i { width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); transition: background 0.06s, transform 0.06s; }
.demo-metro .beats i.hit { background: var(--violet); transform: scale(1.15); }
.demo-metro .beats i.acc.hit { background: var(--tungsten); transform: scale(1.3); }
.demo-metro .subs { margin-top: 18px; color: var(--text-3); font-size: 0.9rem; }

.demo-chord { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; justify-content: center; max-width: 380px; margin: 0 auto; }
.demo-chord svg { width: 170px; height: auto; }
.demo-chord .cname { font-size: 4.2rem; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.demo-chord .cfing { color: var(--text-3); margin-top: 8px; font-variant-numeric: tabular-nums; letter-spacing: 0.08em; }
.demo-chord .dot { transition: cx 0.45s var(--ease), cy 0.45s var(--ease), opacity 0.3s; }

.demo-ear { max-width: 380px; margin: 0 auto; }
.demo-ear .q { font-size: 1.5rem; font-weight: 750; letter-spacing: -0.03em; text-align: center; }
.demo-ear .wave { display: flex; justify-content: center; gap: 30px; margin: 22px 0; }
.demo-ear .wave span { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-weight: 750; border: 2px solid var(--violet); color: var(--text); position: relative; }
.demo-ear .wave span.ping::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--violet); animation: ping 0.9s ease-out; }
@keyframes ping { to { transform: scale(1.7); opacity: 0; } }
.demo-ear .opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.demo-ear .opts span { padding: 12px 6px; border-radius: 12px; text-align: center; font-weight: 650; font-size: 0.92rem; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); transition: all 0.3s; }
.demo-ear .opts span.right { background: rgba(75, 227, 160, 0.16); border-color: var(--green); color: var(--green); }

.demo-band { max-width: 400px; margin: 0 auto; }
.demo-band .lanes { display: grid; gap: 10px; }
.demo-band .lane2 { display: grid; grid-template-columns: 64px repeat(8, 1fr); gap: 5px; align-items: center; font-size: 0.82rem; color: var(--text-2); font-weight: 600; }
.demo-band .lane2 i { height: 26px; border-radius: 6px; background: rgba(255, 255, 255, 0.05); transition: background 0.08s; }
.demo-band .lane2 i.x { background: rgba(140, 123, 255, 0.35); }
.demo-band .lane2 i.x.now { background: var(--tungsten); }
.demo-band .prog2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 16px; }
.demo-band .prog2 span { padding: 10px 0; text-align: center; border-radius: 10px; background: rgba(255, 255, 255, 0.05); font-weight: 750; transition: all 0.2s; }
.demo-band .prog2 span.now { background: rgba(246, 184, 101, 0.2); color: var(--tungsten); }

.demo-chat { max-width: 400px; margin: 0 auto; display: grid; gap: 10px; }
.demo-chat .msg { max-width: 88%; padding: 11px 14px; border-radius: 16px; font-size: 0.95rem; line-height: 1.45; }
.demo-chat .me { justify-self: end; background: var(--violet-deep); color: #fff; border-bottom-right-radius: 6px; }
.demo-chat .ai { justify-self: start; background: rgba(255, 255, 255, 0.07); border-bottom-left-radius: 6px; }
.demo-chat .ai ol { margin: 6px 0 0; padding-left: 1.2em; }
.demo-chat .ai li { opacity: 0; transform: translateY(4px); transition: all 0.35s var(--ease); }
.demo-chat .ai li.in { opacity: 1; transform: none; }
.demo-chat .who { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--text-3); }
.demo-chat .who img { width: 20px; height: 20px; }

/* ---------- live ---------- */
.live { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(110px, 14vw, 200px); }
.live-media { position: absolute; inset: 0; z-index: -2; }
.live-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.live::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--bg) 6%, rgba(18, 14, 31, 0.62) 46%, rgba(18, 14, 31, 0.05)), linear-gradient(0deg, var(--bg), transparent 25%), linear-gradient(180deg, var(--bg), transparent 25%); }
.live .wrap { position: relative; }
.live-body { max-width: 560px; }

/* ---------- what's new ---------- */
.news { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.news-card { position: relative; overflow: hidden; border-radius: 22px; padding: 22px; background: var(--surface); border: 1px solid var(--line); }
.news-card h3 { font-size: 1.15rem; margin: 12px 0 8px; font-variation-settings: "wdth" 100; }
.news-card p { margin: 0; color: var(--text-2); font-size: 0.95rem; line-height: 1.55; }
.news > .n1, .news > .n2, .news > .n3, .news > .n4 { border: 0; color: #fff; }
.news > .n1 { background: linear-gradient(150deg, #ff9a5a, #c74a93); }
.news > .n2 { background: linear-gradient(150deg, #8c7bff, #4532b8); }
.news > .n3 { background: linear-gradient(150deg, #2fd3a0, #0b7a75); }
.news > .n4 { background: linear-gradient(150deg, #3fc4f2, #2346c8); }
.news > .n1 p, .news > .n2 p, .news > .n3 p, .news > .n4 p { color: rgba(255, 255, 255, 0.92); }
.news-tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; background: rgba(255, 255, 255, 0.22); }
.news-tag.soon { background: rgba(246, 184, 101, 0.16); color: var(--tungsten); }
.news-sub { font-size: 1.3rem; margin: clamp(32px, 4vw, 48px) 0 16px; }
.news-next .news-card { border-style: dashed; border-color: var(--line-2); }
@media (max-width: 1000px) { .news { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .news { grid-template-columns: 1fr; } }

.news.news-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .news.news-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .news.news-3 { grid-template-columns: 1fr; } }

/* ---------- PlugAI page ---------- */
.pa-hero .split { align-items: center; }
.pa-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 999px; background: rgba(140, 123, 255, 0.14); border: 1px solid rgba(140, 123, 255, 0.35); font-weight: 650; font-size: 0.9rem; margin-bottom: 20px; }
.pa-eyebrow img { border-radius: 6px; }
.pa-hero .store-row { margin-top: 28px; }
.pa-ask { border-radius: 26px; padding: clamp(16px, 2.4vw, 24px); background: radial-gradient(120% 80% at 100% 0%, rgba(140, 123, 255, 0.22), transparent 55%), var(--surface); border: 1px solid var(--line-2); box-shadow: 0 40px 100px -50px rgba(0, 0, 0, 0.9); }
.pa-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pa-chips button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); color: var(--text-2); font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.pa-chips button:hover { color: var(--text); border-color: rgba(226, 218, 255, 0.35); }
.pa-chips button[aria-selected="true"] { background: var(--violet-deep); border-color: transparent; color: #fff; }
.pa-chat { display: grid; gap: 10px; min-height: 290px; align-content: start; }
.pa-chat .msg { max-width: 90%; padding: 11px 14px; border-radius: 16px; font-size: 0.95rem; line-height: 1.5; }
.pa-chat .me { justify-self: end; background: var(--violet-deep); color: #fff; border-bottom-right-radius: 6px; }
.pa-chat .ai { justify-self: start; background: rgba(255, 255, 255, 0.07); border-bottom-left-radius: 6px; }
.pa-chat .ai p { margin: 0 0 8px; }
.pa-chat .ai ol, .pa-chat .ai ul { margin: 4px 0 0; padding-left: 1.2em; }
.pa-chat .ai li { margin-bottom: 3px; }
.pa-chat .who { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--text-3); }
.pa-chat .who img { border-radius: 5px; }
.pa-chat .card { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pa-chat .card b { margin-right: auto; }
.pa-chat .chip { padding: 2px 9px; border-radius: 999px; background: rgba(246, 184, 101, 0.16); color: var(--tungsten); font-size: 0.8rem; font-weight: 700; }
.pa-chat .act { padding: 3px 10px; border-radius: 999px; background: var(--text); color: #160f25; font-size: 0.8rem; font-weight: 700; }
.pa-chat .fade { animation: pa-in 0.4s var(--ease) both; }
@keyframes pa-in { from { opacity: 0; transform: translateY(6px); } }
.pa-note { margin: 12px 0 0; font-size: 0.8rem; color: var(--text-3); }
.pa-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pa-card { border-radius: 22px; padding: 22px; background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; }
.pa-card::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; margin-bottom: 16px; background: var(--pc); box-shadow: 0 0 14px var(--pc); }
.pa-card h3 { font-size: 1.12rem; margin-bottom: 8px; font-variation-settings: "wdth" 100; }
.pa-card p { margin: 0; color: var(--text-2); font-size: 0.95rem; line-height: 1.55; }
.pa-card.c1 { --pc: #f6b865; } .pa-card.c2 { --pc: #ff5fa2; } .pa-card.c3 { --pc: #8c7bff; } .pa-card.c4 { --pc: #3fd2f2; }
.pa-card.c5 { --pc: #4be3a0; } .pa-card.c6 { --pc: #ff9a5a; } .pa-card.c7 { --pc: #b9afff; } .pa-card.c8 { --pc: #2fd3a0; }
.pa-honest { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; border-radius: 30px; padding: clamp(24px, 4vw, 52px); background: linear-gradient(135deg, rgba(140, 123, 255, 0.16), rgba(255, 95, 162, 0.06)), var(--bg-2); border: 1px solid var(--line); }
.pa-honest .ticks { margin: 0; }
.pa-honest a { color: var(--text); }
@media (max-width: 1000px) { .pa-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 920px) { .pa-honest { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .pa-cards { grid-template-columns: 1fr; } .pa-chat { min-height: 330px; } }

/* ---------- compare ---------- */
.stack { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: stretch; }
.stack-card { padding: clamp(20px, 3vw, 32px); border-radius: var(--r-l); background: var(--bg-2); border: 1px solid var(--line); }
.stack-card h3 { margin-bottom: 4px; }
.stack-card > p { color: var(--text-3); font-size: var(--fs-small); }
.bars { display: grid; gap: 12px; margin-top: 22px; }
.barrow { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 0.95rem; }
.barrow .what { color: var(--text-2); }
.barrow .what b { color: var(--text); font-weight: 650; }
.barrow .price { font-weight: 700; font-variant-numeric: tabular-nums; }
.barrow .bar { grid-column: 1 / -1; height: 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.05); overflow: hidden; }
.barrow .bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: rgba(226, 218, 255, 0.38); transition: width 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 120ms); }
.stack.lit .barrow .bar i { width: var(--w); }
.stack-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 700; }
.stack-total .big { font-size: 2rem; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stack-card.ours { background: radial-gradient(120% 120% at 100% 0%, rgba(140, 123, 255, 0.22), transparent 60%), var(--surface); border-color: rgba(140, 123, 255, 0.4); display: flex; flex-direction: column; }
.stack-card.ours .barrow .bar i { background: var(--tungsten); }
.ours-price { margin-top: auto; padding-top: 26px; }
.ours-price .big { font-size: clamp(3rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.ours-price .big small { font-size: 1.1rem; font-weight: 600; color: var(--text-2); letter-spacing: 0; }
.ours-price p { margin: 10px 0 0; color: var(--text-2); }

.matrix-wrap { margin-top: clamp(40px, 6vw, 72px); overflow-x: auto; border-radius: var(--r-m); border: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
.matrix { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 0.95rem; }
.matrix th, .matrix td { padding: 14px 14px; text-align: center; border-bottom: 1px solid var(--line); }
.matrix thead th { font-weight: 700; font-size: 0.9rem; color: var(--text-2); background: var(--bg-2); position: sticky; top: 0; }
.matrix tbody th { text-align: left; font-weight: 550; color: var(--text); position: sticky; left: 0; background: var(--bg); min-width: 220px; }
.matrix thead th:first-child { position: sticky; left: 0; z-index: 2; text-align: left; }
.matrix .us { background: rgba(140, 123, 255, 0.1); color: var(--text); }
.matrix thead .us { color: #fff; background: rgba(140, 123, 255, 0.28); }
.matrix tr:last-child th, .matrix tr:last-child td { border-bottom: 0; }
.yes { color: var(--green); font-weight: 800; }
.part { color: var(--tungsten); font-weight: 700; font-size: 0.85rem; }
.no { color: var(--text-3); }
.fine { margin-top: 18px; font-size: 0.82rem; color: var(--text-3); max-width: 70em; }
.fine a { color: var(--text-2); }
.compare-more { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* ---------- community ---------- */
.reels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.reel { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 9 / 16; background: var(--surface); text-decoration: none; border: 1px solid var(--line); }
.reel video, .reel img { width: 100%; height: 100%; object-fit: cover; }
.reel figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 14px; background: linear-gradient(0deg, rgba(10, 8, 18, 0.92), transparent); font-weight: 650; font-size: 0.95rem; line-height: 1.25; }
.reel figcaption small { display: block; color: var(--tungsten); font-weight: 650; font-size: 0.76rem; margin-bottom: 3px; }
.social-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.social-btn { display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px 12px 14px; border-radius: 16px; text-decoration: none; background: var(--surface); border: 1px solid var(--line-2); transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease); }
.social-btn:hover { border-color: rgba(226, 218, 255, 0.4); background: var(--surface-2); transform: translateY(-1px); }
.social-btn svg { width: 28px; height: 28px; }
.social-btn b { display: block; font-weight: 650; line-height: 1.2; }
.social-btn small { display: block; color: var(--text-3); font-size: 0.82rem; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 980px; }
.plan { padding: clamp(22px, 3vw, 34px); border-radius: var(--r-l); background: var(--bg-2); border: 1px solid var(--line); display: flex; flex-direction: column; }
.plan.pro { background: radial-gradient(110% 80% at 100% 0%, rgba(246, 184, 101, 0.16), transparent 55%), var(--surface); border-color: rgba(246, 184, 101, 0.35); }
.plan h3 { font-size: 1.6rem; }
.plan .price { margin: 18px 0 4px; font-size: 3rem; font-weight: 800; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan .price small { font-size: 1rem; font-weight: 600; color: var(--text-2); letter-spacing: 0; }
.plan .per { color: var(--text-3); font-size: var(--fs-small); min-height: 1.5em; margin: 0; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 11px; }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; color: var(--text-2); }
.plan li::before { content: ""; width: 10px; height: 10px; margin-top: 0.5em; border-radius: 50%; border: 2px solid var(--green); }
.plan.pro li::before { border-color: var(--tungsten); }
.plan .btn { margin-top: auto; }
.billing { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); margin-bottom: 26px; }
.billing button { min-height: 40px; padding: 6px 18px; border-radius: 999px; border: 0; background: transparent; cursor: pointer; font-weight: 650; color: var(--text-2); }
.billing button[aria-pressed="true"] { background: var(--text); color: #160f25; }

/* ---------- faq ---------- */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font-size: 1.18rem; font-weight: 650; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -9px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: rotate(45deg); transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
.faq details > div { padding: 0 0 22px; color: var(--text-2); max-width: 66ch; }
.faq details > div a { color: var(--text); }

/* ---------- final cta ---------- */
.finale { position: relative; overflow: hidden; isolation: isolate; }
.finale-media { position: absolute; inset: 0; z-index: -2; }
.finale-media img { width: 100%; height: 100%; object-fit: cover; }
.finale::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg) 0%, rgba(18, 14, 31, 0.72) 30%, rgba(18, 14, 31, 0.72) 70%, var(--bg) 100%); }
.finale-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.finale h2 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); line-height: 0.98; }
.finale .store-row { margin-top: 30px; }
.qr { padding: 14px; border-radius: 20px; background: #fff; width: 172px; text-align: center; color: #160f25; }
.qr img { width: 144px; height: 144px; }
.qr small { display: block; margin-top: 8px; font-size: 0.78rem; font-weight: 600; line-height: 1.3; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 36px; color: var(--text-2); font-size: 0.95rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.foot-grid h4 { font-size: 0.95rem; color: var(--text); margin-bottom: 14px; letter-spacing: -0.01em; font-variation-settings: "wdth" 100; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-grid a { text-decoration: none; color: var(--text-2); }
.foot-grid a:hover { color: var(--text); }
.foot-brand p { margin-top: 14px; max-width: 26em; color: var(--text-3); }
.foot-social { display: flex; gap: 10px; margin-top: 18px; }
.foot-social a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line-2); }
.foot-social a:hover { background: var(--surface); }
.foot-social svg { width: 20px; height: 20px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 0.85rem; }
.foot-bottom a { color: var(--text-2); }

/* ---------- inner pages ---------- */
.page-hero { padding: calc(var(--nav-h) + clamp(48px, 8vw, 96px)) 0 clamp(28px, 4vw, 48px); position: relative; }
.prose > :first-child, .prose > .faq:first-child h2:first-child { margin-top: 0; }
.page-hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: 1; letter-spacing: -0.032em; font-variation-settings: "wdth" 86; max-width: 14em; }
.page-hero .lead { margin-top: 22px; }
.prose { max-width: 760px; color: var(--text-2); }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--text); margin: 2.2em 0 0.6em; }
.prose h3 { color: var(--text); margin: 1.8em 0 0.5em; font-size: 1.25rem; }
.prose p, .prose li { line-height: 1.7; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.5em; }
.prose a { color: var(--text); text-underline-offset: 3px; }
.prose strong, .prose b { color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 0.95rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
.prose code { font-size: 0.9em; background: var(--surface); padding: 2px 6px; border-radius: 6px; }
.callout { padding: 18px 20px; border-radius: var(--r-m); background: var(--bg-2); border: 1px solid var(--line); color: var(--text-2); }

.feature-block { padding-block: clamp(56px, 8vw, 110px); border-top: 1px solid var(--line); }
.feature-block .phone { --pw: 270px; margin-inline: auto; }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 32px; margin-top: 30px; }
.feature-list div h3 { font-size: 1.12rem; font-variation-settings: "wdth" 100; letter-spacing: -0.01em; margin-bottom: 6px; }
.feature-list div p { margin: 0; color: var(--text-2); font-size: 0.98rem; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }

.cmp-table { width: 100%; border-collapse: collapse; }
.cmp-table th, .cmp-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: center; }
.cmp-table th:first-child, .cmp-table td:first-child { text-align: left; }
.cmp-table thead th { color: var(--text-2); font-size: 0.92rem; }
.cmp-table tbody th { font-weight: 550; text-align: left; }
.cmp-table .grp th { padding-top: 30px; color: var(--tungsten); font-size: 0.95rem; font-weight: 700; border-bottom-color: var(--line-2); }

@media (prefers-reduced-motion: reduce) {
  .lane-track, .stem .meter { animation: none !important; }
  .rungs span, .barrow .bar i { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hero-chip.c1 { left: -40px; }
  .hero-chip.c2 { right: -30px; }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 920px) {
  .hero-body { grid-template-columns: 1fr; gap: 28px; }
  .hero-phone { display: none; }
  .split, .rig, .stack { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .amp-screen { position: relative; top: 0; min-height: 0; }
  .learn-visual { max-width: 520px; }
  .reels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: 1fr; }
  .finale-grid { grid-template-columns: 1fr; }
  .qr { display: none; }
  .board { grid-template-columns: 1fr; gap: 10px; }
  .feature-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --bar-h: 60px; --switch-h: 46px; }
  .hero { min-height: auto; }
  .hero-media img { object-position: 50% 100%; }
  .hero::before {
    background: linear-gradient(180deg, rgba(18, 14, 31, 0.55) 0%, rgba(18, 14, 31, 0.8) 38%, rgba(18, 14, 31, 0.55) 70%, var(--bg) 100%);
  }
  .hero h1 { font-size: clamp(2.5rem, 11.5vw, 3.4rem); }
  .store-btn { min-height: 52px; padding: 7px 16px 7px 13px; flex: 1 1 0; justify-content: center; }
  .store-btn strong { font-size: 1.02rem; }
  .store-btn svg { width: 22px; height: 22px; }
  .fretband { height: auto; margin-top: 18px; }
  .fret-ui-wrap { position: relative; top: 0; }
  .fretband canvas { position: relative; height: 128px; }
  .fret-ui { flex-wrap: nowrap; }
  .chord-readout { display: none; }
  .chord-readout .name { font-size: 1.6rem; }
  .prog button { min-width: 40px; }
  .pipe { margin-inline: 0; margin-top: -60px; padding: 14px; }
  .pipe-steps { grid-template-columns: repeat(2, 1fr); }
  .stem .rail { height: 60px; }
  .learn-visual .phone { --pw: 150px; right: -4px; bottom: -28px; }
  .rungs { gap: 4px; }
  .rungs span { height: 32px; font-size: 0.78rem; border-radius: 7px; }
  .board-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; gap: 12px; }
  .pedal { aspect-ratio: 0.78; }
  .demo-tuner .note { font-size: 4.6rem; }
  .demo-metro .bpm { font-size: 4.4rem; }
  .demo-chord { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 12px; }
  .reels { gap: 10px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .social-btn { flex: 1 1 100%; }
  .faq summary { font-size: 1.06rem; }
  .matrix tbody th { min-width: 150px; }
}

/* ---------- product switcher (Guitar | Keyboard | Schools) ----------
   Sits in the header's top row on every page. A gradient pill slides
   between the tabs; the page content slides with it (View Transitions
   across documents where supported, a CSS slide otherwise). */
.switch-row { height: var(--switch-h); display: flex; align-items: center; justify-content: center; padding-inline: var(--gutter); }
.switcher {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: 999px; isolation: isolate;
  background: rgba(10, 8, 20, 0.5); border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px);
}
.switch-tab {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 128px; height: 34px; padding: 0 18px; border-radius: 999px; text-decoration: none;
  font-weight: 680; font-size: 0.94rem; letter-spacing: -0.01em; color: rgba(243, 240, 250, 0.78);
  transition: color 0.35s var(--ease);
}
.switch-tab:hover { color: #fff; }
.switch-tab svg { width: 17px; height: 17px; flex-shrink: 0; }
.switch-tab:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 999px; }
.switch-pill {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); border-radius: 999px;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s var(--ease);
  box-shadow: 0 8px 22px -10px rgba(246, 184, 101, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.switch-pill::before, .switch-pill::after, .switch-pill i { content: ""; position: absolute; inset: 0; border-radius: inherit; transition: opacity 0.45s var(--ease); }
.switch-pill i { background: linear-gradient(105deg, #14b88a 0%, #2fd3a0 36%, #3fd2f2 78%, #8c7bff 100%); box-shadow: inset 0 0 0 1px rgba(200, 255, 236, 0.45); opacity: 0; }
.switch-pill::before { background: linear-gradient(105deg, #ffd796 0%, #f6b865 32%, #e0953a 70%, #f0707c 100%); }
.switch-pill::after { background: linear-gradient(105deg, #2346c8 0%, #2b50d6 38%, #3a7fd3 72%, #4ba3d0 100%); box-shadow: inset 0 0 0 1px rgba(196, 186, 255, 0.55); opacity: 0; }
.switcher[data-active="keyboard"] .switch-pill { transform: translateX(100%); box-shadow: 0 8px 24px -10px rgba(75, 163, 208, 0.95), 0 0 0 1px rgba(185, 176, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.switcher[data-active="keyboard"] .switch-pill::before { opacity: 0; }
.switcher[data-active="keyboard"] .switch-pill::after { opacity: 1; }
.switcher[data-active="schools"] .switch-pill { transform: translateX(200%); box-shadow: 0 8px 24px -10px rgba(47, 211, 160, 0.9), 0 0 0 1px rgba(160, 255, 220, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.switcher[data-active="schools"] .switch-pill::before { opacity: 0; }
.switcher[data-active="schools"] .switch-pill i { opacity: 1; }
.switcher[data-active="schools"] [data-product="schools"] { color: #04241b; }
.switcher[data-active="guitar"] [data-product="guitar"] { color: #23140a; }
.switcher[data-active="keyboard"] [data-product="keyboard"] { color: #fff; text-shadow: 0 1px 2px rgba(10, 20, 80, 0.35); }

/* the row tucks away while you read down the page and returns when you scroll up */
.site-header.switch-off { transform: translateY(calc(-1 * var(--switch-h))); }
.site-header.switch-off + .mobile-menu { top: var(--bar-h); }
.nav-open .site-header.switch-off { transform: none; }
.nav-open .site-header.switch-off + .mobile-menu { top: var(--nav-h); }

@media (max-width: 640px) {
  .switch-tab { min-width: 0; width: 100%; height: 32px; padding: 0 10px; gap: 6px; font-size: 0.88rem; }
  .switcher { width: min(100%, 372px); }
}
@media (max-width: 380px) {
  .switch-tab svg { display: none; }
}

/* slide between Guitar and Keyboard */
@keyframes mentor-out-left { to { transform: translateX(-10%); opacity: 0; } }
@keyframes mentor-out-right { to { transform: translateX(10%); opacity: 0; } }
@keyframes mentor-in-from-right { from { transform: translateX(12%); opacity: 0; } }
@keyframes mentor-in-from-left { from { transform: translateX(-12%); opacity: 0; } }
@keyframes mentor-fade-out { to { opacity: 0; } }
@keyframes mentor-fade-in { from { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  /* the @view-transition opt-in is added by script, only for a Guitar <-> Keyboard switch */
  main { view-transition-name: mentor-main; }
  /* the switcher holds still while the page slides; the pill glides under the labels */
  .switch-row { view-transition-name: mentor-switch; }
  .switch-pill { view-transition-name: mentor-pill; }
  #tab-guitar { view-transition-name: mentor-tab-guitar; }
  #tab-keyboard { view-transition-name: mentor-tab-keyboard; }
  #tab-schools { view-transition-name: mentor-tab-schools; }
  ::view-transition-group(mentor-pill) { animation-duration: 0.55s; animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  ::view-transition-old(mentor-pill) { animation: mentor-fade-out 0.22s ease-out both; }
  ::view-transition-new(mentor-pill) { animation: mentor-fade-in 0.22s ease-out both; mix-blend-mode: normal; }
  html:active-view-transition-type(slide-left)::view-transition-old(mentor-main) { animation: mentor-out-left 0.38s cubic-bezier(0.4, 0, 1, 1) both; }
  html:active-view-transition-type(slide-left)::view-transition-new(mentor-main) { animation: mentor-in-from-right 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both; }
  html:active-view-transition-type(slide-right)::view-transition-old(mentor-main) { animation: mentor-out-right 0.38s cubic-bezier(0.4, 0, 1, 1) both; }
  html:active-view-transition-type(slide-right)::view-transition-new(mentor-main) { animation: mentor-in-from-left 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both; }

  /* fallback for browsers without cross-document view transitions */
  html[data-switch-out="left"] main { transform: translateX(-8%); opacity: 0; transition: transform 0.34s cubic-bezier(0.4, 0, 1, 1), opacity 0.3s; }
  html[data-switch-out="right"] main { transform: translateX(8%); opacity: 0; transition: transform 0.34s cubic-bezier(0.4, 0, 1, 1), opacity 0.3s; }
  html[data-switch-in="left"] main { animation: mentor-in-from-right 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
  html[data-switch-in="right"] main { animation: mentor-in-from-left 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
}
@media (prefers-reduced-motion: reduce) {
  .switch-pill, .switch-pill::before, .switch-pill::after, .switch-pill i, .switch-tab, .site-header { transition: none; }
}

/* small phones: the header CTA gives way so the menu button stays on screen
   (the menu carries the store buttons) */
@media (max-width: 380px) {
  .nav { gap: 12px; }
  .nav-cta .btn { padding-inline: 12px; font-size: 0.88rem; }
}
@media (max-width: 360px) {
  .nav-cta .btn { display: none; }
}
