/* ============================================================
   MidiPrompter — Main Stylesheet
   Shared across all pages
   ============================================================ */

/* ── TOKENS ── */
:root {
  --bg:           #0a0a0f;
  --bg2:          #111118;
  --bg3:          #16161f;
  --card:         rgba(255,255,255,0.04);
  --border:       rgba(255,255,255,0.08);
  --border2:      rgba(255,255,255,0.14);
  --text:         #f0f0f5;
  --muted:        #888899;
  --faint:        #444455;
  --purple:       #7c3aed;
  --pink:         #ec4899;
  --green:        #4ade80;
  --yellow:       #facc15;
  --grad:         linear-gradient(135deg, #7c3aed, #a855f7, #ec4899);
  --grad-text:    linear-gradient(90deg, #a78bfa, #ec4899);
  --glow-purple:  rgba(124,58,237,0.35);
  --glow-pink:    rgba(236,72,153,0.25);
  --font-display: 'Roboto', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'DM Mono', monospace;
  --radius:       12px;
  --radius-lg:    20px;
  --radius-xl:    32px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* Noise overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ── TYPOGRAPHY ── */
h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 7vw, 72px);
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 20px;
}
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 16px;
}
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 8px;
}
a { color: var(--purple); }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-cta {
  background: var(--grad) !important;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 100px;
  font-weight: 700 !important;
  transition: opacity 0.2s, transform 0.2s !important;
  -webkit-text-fill-color: #fff !important;
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }

/* ── PAGE HERO (sub-pages) ── */
.page-hero {
  padding: 140px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.18) 0%, rgba(236,72,153,0.08) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}
.lead {
  font-size: 18px;
  color: var(--muted);
  font-weight: 300;
  max-width: 560px;
  margin: 0 auto;
}

/* ── LAYOUT ── */
.container { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 24px; max-width: 1000px; margin: 0 auto; }
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 12px;
}
.divider { border: none; border-top: 1px solid var(--border); margin: 48px 0; }

/* ── GRID ── */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }

/* ── CARDS ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.3s;
}
.card:hover {
  border-color: var(--border2);
  transform: translateY(-3px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.card:hover::before { opacity: 1; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 0 30px var(--glow-purple);
}
.btn-primary:hover { transform: translateY(-2px); opacity: 0.95; }
.btn-ghost {
  background: var(--card);
  border: 1px solid var(--border2);
  color: var(--text);
  text-decoration: none;
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); transform: translateY(-1px); }
.btn-intel {
  background: linear-gradient(135deg, #3b82f6, #7c3aed);
  color: #fff;
  box-shadow: 0 0 30px rgba(59,130,246,0.3);
}
.btn-intel:hover { transform: translateY(-2px); opacity: 0.95; }

/* ── HELPERS ── */
.kbd {
  display: inline-block;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-bottom: 3px solid var(--border2);
  border-radius: 5px;
  padding: 1px 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
}
.tip {
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 13px;
  color: #c4b5fd;
  margin: 12px 0;
}
.tip strong { color: #a78bfa; }
.warn {
  background: rgba(236,72,153,0.08);
  border: 1px solid rgba(236,72,153,0.2);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 13px;
  color: #f9a8d4;
  margin: 12px 0;
}
.code {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #a78bfa;
  line-height: 1.8;
  overflow-x: auto;
}

/* ── FOOTER ── */
footer {
  padding: 48px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer-links { display: flex; gap: 24px; list-style: none; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 13px; }
.footer-links a:hover { color: var(--text); }
.footer-copy {
  font-size: 12px;
  color: var(--faint);
  width: 100%;
  text-align: center;
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}
@keyframes eq {
  0%, 100% { transform: scaleY(0.35); }
  50%      { transform: scaleY(1); }
}
@keyframes light-pulse {
  from { opacity: 0.4; transform: scale(0.9); }
  to   { opacity: 1;   transform: scale(1.05); box-shadow: 0 0 30px currentColor; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── HOMEPAGE SPECIFIC ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  top: 20%; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.2) 0%, rgba(236,72,153,0.1) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }

.beta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.4);
  color: #a78bfa;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: fadeUp 0.6s ease both;
}
.beta-dot {
  width: 6px; height: 6px;
  background: #a78bfa;
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}
.hero h1 { animation: fadeUp 0.7s 0.1s ease both; }
.hero p  {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 48px;
  font-weight: 300;
  animation: fadeUp 0.7s 0.2s ease both;
}

.download-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: fadeUp 0.7s 0.3s ease both;
}
.download-buttons { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn-download {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid transparent;
}
.btn-download:hover { transform: translateY(-2px); }
.btn-download.primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 0 40px var(--glow-purple);
}
.btn-download.primary:hover { box-shadow: 0 0 60px var(--glow-purple); }
.btn-download.secondary {
  background: var(--card);
  border-color: var(--border2);
  color: var(--text);
}
.btn-download.secondary:hover { background: rgba(255,255,255,0.07); }
.btn-icon { font-size: 20px; }
.btn-sub  { display: block; font-size: 10px; font-weight: 400; opacity: 0.7; margin-top: 1px; }

.expiry-notice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(236,72,153,0.08);
  border: 1px solid rgba(236,72,153,0.25);
  color: #f9a8d4;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-family: var(--font-mono);
}

/* Hero equalizer bars */
.eq-hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 64px;
  margin-top: 48px;
  opacity: 0.7;
}
.eq-bar {
  width: 4px;
  border-radius: 2px;
  background: var(--grad);
  transform-origin: bottom;
  animation: eq var(--d, 1s) ease-in-out infinite;
}


/* App mockup */
.preview-section { padding: 24px 24px 80px; position: relative; }
.app-mockup {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,0.6), 0 0 80px var(--glow-purple);
}
.mockup-bar {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mockup-dot { width: 12px; height: 12px; border-radius: 50%; }
.mockup-dot:nth-child(1) { background: #ff5f57; }
.mockup-dot:nth-child(2) { background: #febc2e; }
.mockup-dot:nth-child(3) { background: #28c840; }
.mockup-title {
  flex: 1;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font-mono);
  margin-left: -52px;
}
.mockup-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 380px;
}
.mockup-sidebar {
  background: var(--bg2);
  border-right: 1px solid var(--border);
  padding: 16px;
}
.mockup-song {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  margin-bottom: 4px;
  cursor: default;
  color: var(--muted);
}
.mockup-song.active {
  background: rgba(124,58,237,0.2);
  color: #fff;
  border: 1px solid rgba(124,58,237,0.4);
}
.mockup-prog {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--purple);
  margin-right: 8px;
}
.mockup-main { padding: 24px 32px; display: flex; flex-direction: column; gap: 16px; }
.mockup-section-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--purple);
  font-weight: 600;
  margin-bottom: 4px;
}
.mockup-lyric-line {
  font-family: var(--font-display);
  font-size: clamp(16px, 2.5vw, 24px);
  font-weight: 700;
  line-height: 1.5;
  color: rgba(240,240,245,0.9);
}
.mockup-chord {
  color: var(--pink);
  font-size: 0.65em;
  font-family: var(--font-mono);
  vertical-align: super;
  margin-right: 2px;
}
.mockup-transport {
  margin-top: auto;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}
.transport-live { color: #4ade80; font-weight: 600; animation: pulse 1.2s ease infinite; }

/* Features grid */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.3s;
}
.feature-card:hover { border-color: var(--border2); transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.feature-card:hover::before { opacity: 1; }
.feature-icon { font-size: 32px; margin-bottom: 16px; display: block; }
.feature-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature-desc { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* Steps */
.steps { display: flex; flex-direction: column; gap: 0; position: relative; max-width: 700px; }
.steps::before {
  content: '';
  position: absolute;
  left: 27px; top: 28px; bottom: 28px;
  width: 2px;
  background: linear-gradient(to bottom, var(--purple), var(--pink));
  opacity: 0.3;
}
.step { display: flex; gap: 24px; padding: 24px 0; position: relative; }
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 0 24px var(--glow-purple);
}
.step-body { padding-top: 12px; }
.step-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.step-desc { font-size: 15px; color: var(--muted); }

/* DMX block */
.dmx-block {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.dmx-block::before {
  content: '';
  position: absolute;
  right: -200px; top: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(236,72,153,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.dmx-lights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.light-circle {
  aspect-ratio: 1;
  border-radius: 50%;
  animation: light-pulse var(--d, 2s) ease-in-out infinite alternate;
}

/* Download section */
.download-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.download-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center bottom, rgba(124,58,237,0.12) 0%, transparent 70%);
}
.download-section > * { position: relative; z-index: 1; }

.processor-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 680px;
  margin: 48px auto 32px;
}
.processor-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.processor-card:hover { border-color: var(--purple); box-shadow: 0 0 40px var(--glow-purple); }
.processor-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 8px;
}
.processor-chip.intel { color: #3b82f6; }
.processor-name { font-family: var(--font-display); font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.processor-desc { font-size: 12px; color: var(--muted); margin-bottom: 20px; }

.expiry-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(236,72,153,0.08);
  border: 1px solid rgba(236,72,153,0.2);
  border-radius: 100px;
  padding: 8px 20px;
  font-size: 12px;
  color: #f9a8d4;
  font-family: var(--font-mono);
  margin-bottom: 16px;
}
.how-to-check {
  max-width: 500px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: 13px;
  color: var(--muted);
  text-align: left;
}
.how-to-check strong { color: var(--text); display: block; margin-bottom: 8px; }

/* Guide nav */
.guide-nav-item {
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  display: block;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.guide-nav-item:hover,
.guide-nav-item.active {
  background: rgba(124,58,237,0.1);
  color: var(--text);
  border-left-color: var(--purple);
}

/* FAQ accordion */
details summary::-webkit-details-marker { display: none; }
details[open] summary .accordion-arrow { transform: rotate(180deg); }
details p { animation: fadeIn 0.2s ease; }
.accordion-arrow { transition: transform 0.2s; display: inline-block; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav {
    position: static;
    padding: 12px 16px;
    flex-direction: column;
    gap: 10px;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 14px;
    width: 100%;
  }
  .nav-links a { font-size: 13px; }
  .nav-cta { margin-top: 2px; }
  /* Fixed nav is now static on mobile, so remove the desktop top-padding that
     reserved space for it (otherwise a large gap appears above the hero). */
  .hero { padding-top: 48px; min-height: auto; }
  .page-hero { padding-top: 56px; }
  .dmx-block { grid-template-columns: 1fr; padding: 32px 24px; }
  .mockup-body { grid-template-columns: 1fr; }
  .mockup-sidebar { display: none; }
  .processor-cards { grid-template-columns: 1fr; max-width: 340px; }
  footer { flex-direction: column; text-align: center; padding: 32px 24px; }
}

/* ── INDEX PAGE SECTIONS ── */
.features-outer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
}
.section-intro {
  font-size: 17px;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 48px;
  font-weight: 300;
}
.section-cta { margin-top: 40px; }

.steps-outer {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 24px;
}

.dmx-outer  { padding: 0 24px 80px; }
.dmx-text   {}
.dmx-text p { color: var(--muted); font-size: 15px; line-height: 1.75; margin-bottom: 24px; }
.dmx-visual {}
.dmx-list   { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.dmx-list li { font-size: 14px; color: var(--muted); display: flex; gap: 10px; align-items: flex-start; }
.dmx-bullet { color: var(--pink); flex-shrink: 0; }
.dmx-terminal {
  margin-top: 24px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.dmx-terminal-ok { color: #4ade80; margin-bottom: 4px; }

/* ── FAQ PAGE ── */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--purple); }
.faq-a { padding: 0 0 24px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.faq-item[open] .accordion-arrow { transform: rotate(180deg); }
.accordion-arrow { transition: transform 0.2s; display: inline-block; color: var(--purple); font-size: 20px; }

/* ── CHANGELOG PAGE ── */
.cl-entry { display: flex; gap: 32px; padding: 48px 0; border-bottom: 1px solid var(--border); }
.cl-entry:last-of-type { border-bottom: none; }
.cl-meta { width: 110px; flex-shrink: 0; }
.cl-version { font-family: var(--font-mono); font-size: 12px; color: var(--purple); font-weight: 700; }
.cl-date { font-size: 12px; color: var(--faint); margin-top: 4px; }
.cl-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.cl-list li { font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.cl-list li::before { content: "✦"; color: var(--pink); flex-shrink: 0; font-size: 12px; margin-top: 2px; }

/* ── GUIDE PAGE LAYOUT ── */
.guide-page-wrap {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.guide-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.guide-sidebar-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--faint);
  font-family: var(--font-mono);
  margin-bottom: 10px;
  padding-left: 12px;
}

.guide-content {
  display: flex;
  flex-direction: column;
  gap: 56px;
  min-width: 0;
}

/* ── USER GUIDE LAYOUT (mobile stacking) ── */
@media (max-width: 768px) {
  .guide-page-wrap {
    grid-template-columns: 1fr;
  }
  .guide-sidebar {
    display: none;
  }
}

/* ── FEEDBACK FORM ── */
.feedback-form-wrap {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.form-optional {
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
}

.form-required {
  color: var(--pink);
}

.form-input,
.form-textarea {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--faint);
}

.form-textarea {
  min-height: 120px;
  line-height: 1.65;
}

/* Radio group */
.radio-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.radio-option input[type="radio"] {
  accent-color: var(--purple);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.radio-label {
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s;
}

.radio-option:has(input:checked) .radio-label {
  color: var(--text);
  font-weight: 600;
}

/* Submit row */
.form-submit-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 8px;
}

.form-submit {
  font-size: 15px !important;
  padding: 14px 32px !important;
}

.form-note {
  font-size: 13px;
  color: var(--muted);
}

.form-note a {
  color: var(--purple);
  text-decoration: none;
}

.form-note a:hover { text-decoration: underline; }
