/* St6.Lapidary public site — burnt-amber autumn palette, centered editorial layout */
:root {
  /* Brighter base so OLED screens don't make it look pure black.
     Slight warm-brown tint maintains the autumn palette identity. */
  --bg-0:    #1a100b;
  --bg-1:    #221610;
  --bg-2:    #2c1e16;
  --bg-3:    #3a281e;
  --line:    #3a281e;
  --line-2:  #4d3525;
  --text:    #f7ede0;
  --text-mid:#c4a888;
  --text-mute:#8a7158;
  --amber:   #d99a2c;
  --amber-2: #e8b350;
  --gold:    #f0c060;
  --hot:     #f6a838;
  --green:   #6ec85b;
  --red:     #e0584a;
  --discord: #5865F2;
  --grad:    linear-gradient(135deg, #d99a2c 0%, #f6a838 100%);
  --glow-amber: rgba(217,154,44,0.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(1100px 600px at 50% -10%, rgba(217,154,44,0.14) 0%, transparent 60%),
    radial-gradient(800px  600px at 100% 40%, rgba(246,168,56,0.06) 0%, transparent 60%),
    radial-gradient(800px  600px at 0%   80%, rgba(217,154,44,0.05) 0%, transparent 60%),
    var(--bg-0);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
code {
  font-family: "JetBrains Mono", "Consolas", monospace;
  background: var(--bg-2);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12.5px;
  color: var(--amber-2);
}
.muted { color: var(--text-mute); }
strong { color: var(--text); font-weight: 600; }
em { color: var(--amber-2); font-style: normal; }

/* tiny accent */
.dot { color: var(--hot); }
.dot-pulse {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--hot);
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(246,168,56,0.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(246,168,56,0.55); }
  70%  { box-shadow: 0 0 0 6px rgba(246,168,56,0);    }
  100% { box-shadow: 0 0 0 0 rgba(246,168,56,0);      }
}

/* ─────────── HEADER ─────────── */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,5,4,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad);
  border-radius: 8px;
  font-size: 16px;
  box-shadow: 0 4px 14px var(--glow-amber);
}
.brand-name { font-size: 14.5px; font-weight: 700; letter-spacing: -0.2px; }
.site-header nav {
  display: flex; gap: 4px; align-items: center;
}
.site-header nav a {
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  color: var(--text-mid);
  border-radius: 8px;
  transition: color .15s, background .15s;
}
.site-header nav a:hover { color: var(--amber-2); background: var(--bg-2); }
.site-header nav a.nav-discord {
  color: #fff;
  background: rgba(88,101,242,0.18);
  border: 1px solid rgba(88,101,242,0.35);
  margin-left: 6px;
}
.site-header nav a.nav-discord:hover { background: rgba(88,101,242,0.35); }
.site-header nav a.nav-kofi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  font-size: 14px;
  padding: 0;
  background: rgba(255,94,91,0.15);
  border: 1px solid rgba(255,94,91,0.4);
  border-radius: 50%;
  color: #ff8a65;
  margin-left: 4px;
  transition: transform .2s, background .15s, border-color .15s, box-shadow .2s;
}
.site-header nav a.nav-kofi:hover {
  background: rgba(255,94,91,0.3);
  border-color: rgba(255,94,91,0.7);
  transform: rotate(-10deg) scale(1.08);
  box-shadow: 0 4px 14px rgba(255,94,91,0.35);
}

/* Support section + Ko-fi CTA */
.support-section .kofi-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 30px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.4px;
  background: linear-gradient(180deg, #ff5e5b 0%, #ff8a65 100%);
  color: #fff;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  margin-top: 12px;
  box-shadow: 0 8px 28px rgba(255,94,91,0.35);
  transition: transform .2s, box-shadow .25s, filter .15s;
}
.support-section .kofi-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 14px 38px rgba(255,94,91,0.5);
}
.support-section .kofi-cup { font-size: 18px; transition: transform .35s; }
.support-section .kofi-cta:hover .kofi-cup { transform: rotate(-8deg) scale(1.1); }
.support-section .kofi-arrow { font-size: 13px; opacity: 0.85; }

/* ─────────── HERO ─────────── */
.hero {
  text-align: center;
  padding: 80px 24px 60px;
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}
.hero-leaf {
  font-size: 64px;
  display: inline-block;
  filter: drop-shadow(0 8px 30px var(--glow-amber));
  margin-bottom: 22px;
  animation: leafFloat 7s ease-in-out infinite;
}
@keyframes leafFloat {
  0%, 100% { transform: translateY(0)    rotate(-4deg); }
  50%      { transform: translateY(-12px) rotate(4deg); }
}
.version-badge {
  display: inline-flex; align-items: center;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--text-mid);
  background: var(--bg-1);
  margin-bottom: 24px;
}
.display {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -2px;
  margin: 0 0 20px;
  color: var(--text);
}
.hero-sub {
  font-size: 16px;
  color: var(--text-mid);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.hero-cta {
  display: flex; gap: 10px; justify-content: center;
  flex-wrap: wrap;
}

/* ─────────── BUTTONS ─────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  font-size: 13.5px; font-weight: 600;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-primary {
  background: linear-gradient(180deg, #e8b350 0%, #d99a2c 100%);
  color: var(--bg-0);
  box-shadow: 0 6px 24px var(--glow-amber);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 32px var(--glow-amber); }
.btn-ghost {
  background: var(--bg-1);
  color: var(--text);
  border-color: var(--line-2);
}
.btn-ghost:hover { background: var(--bg-2); border-color: var(--amber-2); color: var(--amber-2); }
.btn-discord {
  background: var(--discord);
  color: #fff;
}
.btn-discord:hover { background: #4a55e2; transform: translateY(-1px); }

/* ─────────── SECTIONS (centered) ─────────── */
.lay {
  max-width: 1080px;
  margin: 0 auto;
  padding: 80px 32px;
  text-align: center;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--amber-2);
  background: rgba(217,154,44,0.06);
  border: 1px solid rgba(217,154,44,0.18);
  border-radius: 999px;
  padding: 6px 14px 6px 8px;
  margin-bottom: 18px;
}
.leaf-tag {
  font-size: 13px;
  filter: drop-shadow(0 0 6px var(--glow-amber));
}
.section-title {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
  margin: 0 auto 16px;
  color: var(--text);
  max-width: 760px;
}
.lead {
  font-size: 15px;
  color: var(--text-mid);
  max-width: 640px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

/* ─────────── COMPARISON SLIDER ─────────── */
/* AFTER image goes underneath as the full background. BEFORE image sits in
   .compare-clip whose width is controlled by the JS drag handler. The handle
   line+dot mirrors that width. */
.compare-block { margin-bottom: 40px; }
.compare-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  text-align: left;
  padding: 0 4px;
}
.compare-tag {
  font-size: 13px; font-weight: 600;
  color: var(--amber-2);
  display: inline-flex; align-items: center; gap: 6px;
}
.compare-info {
  font-family: "JetBrains Mono", "Consolas", monospace;
  font-size: 11.5px;
  color: var(--text-mute);
}
.compare-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  user-select: none;
  -webkit-user-select: none;
  cursor: ew-resize;
  touch-action: none;
}
.compare-frame .compare-bg,
.compare-frame .compare-fg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  display: block;
}
.compare-clip {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  overflow: hidden;
  /* width set inline by JS (default 50%) */
}
.compare-clip .compare-fg {
  /* fg lives inside the clip — keep it at the FRAME's full dimensions so
     the visible portion lines up perfectly with the bg even though the
     clip is narrower. */
  width: var(--frame-w, 100%);
  min-width: 100%;
}
.compare-handle {
  position: absolute;
  top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), #fff 50%, rgba(255,255,255,0.05));
  transform: translateX(-1.5px);
  pointer-events: none;
  box-shadow: 0 0 18px rgba(255,255,255,0.4);
}
.compare-handle-dot {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-0);
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: 14px;
  color: #fff;
  font-weight: 700;
  letter-spacing: -1px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.6);
}
.compare-label {
  position: absolute;
  top: 14px;
  font-family: "JetBrains Mono", "Consolas", monospace;
  font-size: 10.5px;
  letter-spacing: 1.5px;
  font-weight: 700;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  pointer-events: none;
}
.compare-label-before { left: 14px; }
.compare-label-after  { right: 14px; color: var(--hot); border: 1px solid rgba(246,168,56,0.4); }

/* ─────────── FEATURE GRID ─────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 8px;
  text-align: left;
}
.feature {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 22px;
  transition: border-color .2s, transform .2s, background .2s;
}
.feature:hover {
  border-color: var(--amber);
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(217,154,44,0.04) 0%, var(--bg-1) 100%);
}
.feature-ico {
  font-size: 22px;
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(217,154,44,0.08);
  border: 1px solid rgba(217,154,44,0.2);
  border-radius: 10px;
  margin-bottom: 14px;
}
.feature h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--text); }
.feature p  { margin: 0; font-size: 13.5px; color: var(--text-mid); line-height: 1.6; }

/* ─────────── COMMUNITY CLIPS GRID (animeclips-style) ─────────── */
.clip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 24px;
  text-align: left;
}
.clip-card {
  display: block;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  text-decoration: none;
  color: var(--text);
}
.clip-card:hover {
  border-color: var(--amber);
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.5);
}
.clip-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-2);
  overflow: hidden;
}
.clip-thumb img,
.clip-thumb video,
.clip-thumb iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
}
.clip-thumb iframe { pointer-events: auto; }
.clip-card:hover video { transform: scale(1.02); }
.clip-thumb video { transition: transform .35s; }
.clip-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border-radius: 50%;
  font-size: 17px;
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
  opacity: 0.9;
  transition: opacity .15s, transform .15s;
}
.clip-card:hover .clip-play { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
.clip-meta {
  padding: 12px 14px 14px;
}
.clip-title {
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.clip-author {
  font-size: 12px;
  color: var(--text-mute);
}
.clip-card.placeholder {
  border-style: dashed;
  border-color: var(--line-2);
}
.clip-card.placeholder .clip-thumb {
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-1);
}
.clip-card.placeholder .clip-add {
  font-size: 36px; color: var(--text-mute); font-weight: 200;
}
.clip-card.featured {
  background: linear-gradient(180deg, rgba(217,154,44,0.10) 0%, var(--bg-1) 35%);
  border-color: rgba(217,154,44,0.3);
}
/* The thumbnail itself is the click target when it has data-yt-id —
   gives the cursor + keyboard focus ring for the lite-youtube pattern. */
.clip-thumb[data-yt-id] { cursor: pointer; }
.clip-thumb[data-yt-id]:focus-visible {
  outline: 2px solid var(--amber-2);
  outline-offset: 2px;
}
.clip-watch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--amber-2);
  letter-spacing: 0.3px;
  transition: color .15s, transform .15s;
}
.clip-watch:hover { color: var(--gold); transform: translateX(2px); }

/* ─────────── STATS KPIs ─────────── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 0 0 28px;
  text-align: left;
}
.kpi {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
}
.kpi::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--grad);
}
.kpi-label { font-size: 10.5px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.kpi-value { font-size: 30px; font-weight: 700; margin-top: 4px; color: var(--text); }

/* Charts */
.card.chart-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
  margin: 14px 0;
  text-align: left;
}
.card.chart-card h4 { margin: 0 0 12px; font-size: 13.5px; font-weight: 600; color: var(--text); }
.chart-wrap { position: relative; height: 280px; }
.chart-wrap.small { height: 220px; }
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.updated { text-align: right; font-size: 11px; margin-top: 12px; }

/* ─────────── DOWNLOAD ─────────── */
.download-single {
  max-width: 540px;
  margin: 0 auto;
}
.download-card {
  display: block;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 22px 24px;
  transition: border-color .2s, background .2s, transform .2s;
  text-align: left;
}
.download-card:hover {
  border-color: var(--amber);
  background: linear-gradient(180deg, rgba(217,154,44,0.06) 0%, var(--bg-1) 100%);
  transform: translateY(-2px);
}
.download-card.primary {
  border-color: rgba(246,168,56,0.4);
  background: linear-gradient(180deg, rgba(246,168,56,0.10) 0%, rgba(217,154,44,0.02) 100%);
}
.download-card-row { display: flex; align-items: center; gap: 16px; }
.download-ico {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(217,154,44,0.10);
  border: 1px solid rgba(217,154,44,0.3);
  border-radius: 10px;
  font-size: 18px;
  flex-shrink: 0;
}
.download-text { flex: 1; }
.download-title { font-weight: 700; font-size: 15px; color: var(--text); }
.download-sub  { font-family: "JetBrains Mono", "Consolas", monospace; font-size: 11px; color: var(--text-mute); margin-top: 3px; }
.download-arrow { font-size: 22px; color: var(--hot); }

/* ─────────── FAQ — anime speech-bubble chat ─────────── */
/* No overflow:hidden here on purpose — the .lay::before glow needs to bleed
   into the section corners; the sakura-bg has its own clip wrapper. */
.faq-section { position: relative; }
.faq-thread {
  margin: 24px auto 0;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  position: relative;
  z-index: 2;
}

/* Each Q&A row */
.faq-row {
  position: relative;
}
.faq-row summary {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  list-style: none;
  padding: 8px 0;
  outline: none;
}
.faq-row summary::-webkit-details-marker { display: none; }

/* Avatar circles — sakura blossom for the user, leaf for St6 */
.faq-avatar {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: var(--bg-2);
  border: 2px solid var(--line-2);
  border-radius: 50%;
  position: relative;
  transition: transform .25s, border-color .2s;
}
.faq-avatar-q {
  background: linear-gradient(135deg, #3a2030 0%, #2c1620 100%);
  border-color: rgba(255,150,180,0.35);
}
.faq-avatar-a {
  background: linear-gradient(135deg, #3a2818 0%, #2a1c14 100%);
  border-color: rgba(246,168,56,0.5);
  box-shadow: 0 0 14px rgba(246,168,56,0.2);
}

/* Speech bubble */
.faq-bubble {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 14px 18px 14px 18px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--text);
  max-width: calc(100% - 60px);
  transition: border-color .2s, background .2s, transform .25s;
}
.faq-bubble code {
  font-weight: 500;
}
.faq-name {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,150,180,0.85);
  margin-bottom: 4px;
}
.faq-name-a {
  color: var(--amber-2);
}

/* Question bubble — left aligned, sakura tint */
.faq-bubble-q {
  border-color: rgba(255,150,180,0.25);
}
.faq-bubble-q::before {
  /* tail pointing LEFT toward the sakura avatar */
  content: '';
  position: absolute;
  left: -7px; top: 18px;
  width: 14px; height: 14px;
  background: var(--bg-2);
  border-left: 1px solid rgba(255,150,180,0.25);
  border-bottom: 1px solid rgba(255,150,180,0.25);
  transform: rotate(45deg);
  border-bottom-left-radius: 4px;
}

/* Hover question bubble */
.faq-row summary:hover .faq-bubble-q {
  border-color: rgba(255,150,180,0.55);
  transform: translateX(2px);
}
.faq-row summary:hover .faq-avatar-q {
  transform: scale(1.05);
  border-color: rgba(255,150,180,0.6);
}

/* Toggle indicator — anime-style "▾" rotated chevron at the right of the question bubble */
.faq-bubble-q::after {
  content: '▾';
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--text-mute);
  transition: transform .3s, color .2s;
}
.faq-row[open] .faq-bubble-q::after {
  transform: translateY(-50%) rotate(180deg);
  color: var(--amber-2);
}

/* Reply (answer) row — flips orientation: bubble on left, leaf avatar on right */
.faq-reply {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 8px 0 12px 0;
  /* Pop-in animation */
  animation: bubblePop .35s cubic-bezier(.2,.9,.3,1.2);
  transform-origin: right top;
}
.faq-reply .faq-bubble {
  margin-left: auto;
  background: linear-gradient(180deg, rgba(217,154,44,0.10) 0%, rgba(217,154,44,0.04) 100%);
  border-color: rgba(246,168,56,0.4);
  font-weight: 500;
  color: var(--text);
}
.faq-bubble-a::before {
  /* tail pointing RIGHT toward the leaf avatar */
  content: '';
  position: absolute;
  right: -7px; top: 18px;
  width: 14px; height: 14px;
  background: linear-gradient(180deg, rgba(217,154,44,0.10) 0%, rgba(217,154,44,0.04) 100%);
  border-right: 1px solid rgba(246,168,56,0.4);
  border-top: 1px solid rgba(246,168,56,0.4);
  transform: rotate(45deg);
  border-top-right-radius: 4px;
}
.faq-row[open] .faq-avatar-a {
  transform: rotate(-12deg) scale(1.08);
}

/* Pop-in keyframe */
@keyframes bubblePop {
  0%   { opacity: 0; transform: translateY(-8px) scale(0.92); }
  60%  { opacity: 1; transform: translateY(2px)  scale(1.03); }
  100% { opacity: 1; transform: translateY(0)    scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .faq-reply { animation: none; }
}

/* Decorative falling sakura petals + leaves behind the FAQ section */
.sakura-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.sakura-bg span {
  position: absolute;
  font-size: 22px;
  opacity: 0.18;
  animation: sakuraFall 18s linear infinite;
  filter: blur(0.5px);
}
.sakura-bg span:nth-child(1) { left: 8%;  font-size: 28px; animation-duration: 22s; animation-delay: 0s;   }
.sakura-bg span:nth-child(2) { left: 22%; font-size: 18px; animation-duration: 16s; animation-delay: 4s;   }
.sakura-bg span:nth-child(3) { left: 75%; font-size: 30px; animation-duration: 20s; animation-delay: 2s;   }
.sakura-bg span:nth-child(4) { left: 90%; font-size: 22px; animation-duration: 24s; animation-delay: 8s;   }
.sakura-bg span:nth-child(5) { left: 45%; font-size: 24px; animation-duration: 18s; animation-delay: 11s;  }
.sakura-bg span:nth-child(6) { left: 60%; font-size: 18px; animation-duration: 26s; animation-delay: 6s;   }
@keyframes sakuraFall {
  0%   { transform: translateY(-10vh) translateX(0)    rotate(0deg);   opacity: 0; }
  10%  { opacity: 0.18; }
  50%  { transform: translateY(50vh)  translateX(40px) rotate(180deg); }
  100% { transform: translateY(110vh) translateX(-30px) rotate(360deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sakura-bg { display: none; }
}

@media (max-width: 640px) {
  .faq-avatar { width: 36px; height: 36px; font-size: 18px; }
  .faq-bubble { padding: 12px 14px; font-size: 13.5px; }
  .faq-bubble-q::after { right: 10px; }
}

/* ─────────── BIG CTA ─────────── */
.big-cta {
  text-align: center;
  padding: 80px 24px;
  position: relative;
  background: radial-gradient(ellipse at center, rgba(246,168,56,0.08) 0%, transparent 60%);
}
.big-leaf {
  font-size: 42px !important;
  margin-bottom: 18px;
  display: inline-block;
}
.big-cta-title {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -2.5px;
  margin: 0 0 14px;
}
.cta-sub {
  font-family: "JetBrains Mono", "Consolas", monospace;
  font-size: 12px;
  letter-spacing: 2.5px;
  color: var(--text-mute);
  margin: 14px 0 30px;
  text-transform: uppercase;
}
.cta-buttons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ─────────── FOOTER ─────────── */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-1);
  padding: 50px 32px 24px;
  margin-top: 60px;
}
.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  max-width: 1080px;
  margin: 0 auto 36px;
}
.footer-brand-col p { font-size: 13px; line-height: 1.7; max-width: 360px; margin: 12px 0 0; }
.footer-h {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--amber-2);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-mid);
  padding: 4px 0;
  transition: color .15s;
}
.footer-col a:hover { color: var(--amber-2); }
.footer-base {
  max-width: 1080px;
  margin: 0 auto;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-mute);
}

/* ─────────── RESPONSIVE ─────────── */
@media (max-width: 920px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .grid-2       { grid-template-columns: 1fr; }
  .footer-cols  { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .site-header { padding: 14px 18px; flex-wrap: wrap; gap: 8px; }
  .site-header nav { gap: 0; flex-wrap: wrap; }
  .site-header nav a { padding: 6px 10px; font-size: 12px; }
  .lay  { padding: 50px 18px; }
  .hero { padding: 50px 18px 30px; }
  .feature-grid { grid-template-columns: 1fr; }
  .clip-grid    { grid-template-columns: 1fr 1fr; }
  .footer-cols  { grid-template-columns: 1fr; gap: 28px; }
  .footer-base  { flex-direction: column; gap: 6px; }
  .compare-meta { flex-direction: column; align-items: flex-start; gap: 4px; }
  .compare-handle-dot { width: 32px; height: 32px; font-size: 12px; }
}

/* ─────────── SCROLL-REVEAL ANIMATIONS ─────────── */
/* IntersectionObserver in app.js adds .reveal-in when each .reveal element
   enters the viewport. Default state is faded + offset; revealed = back to
   normal. The CSS variable --reveal-delay gives a subtle stagger. */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1) var(--reveal-delay,0ms),
              transform .7s cubic-bezier(.2,.7,.2,1) var(--reveal-delay,0ms);
  will-change: opacity, transform;
}
.reveal-in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Hover micro-animations */
.feature, .clip-card, .download-card, .kpi {
  transition: transform .25s cubic-bezier(.2,.7,.2,1),
              border-color .2s, background .2s, box-shadow .25s;
}
.feature:hover, .clip-card:hover, .download-card:hover {
  box-shadow: 0 18px 38px rgba(0,0,0,0.35);
}
.kpi:hover {
  transform: translateY(-2px);
  border-color: rgba(217,154,44,0.35);
}

/* Section-tag pill gentle pulse — tells the eye there's life on the page */
.section-tag .leaf-tag { animation: leafSpin 12s ease-in-out infinite; }
@keyframes leafSpin {
  0%, 100% { transform: rotate(-6deg) scale(1); }
  50%      { transform: rotate(6deg) scale(1.08); }
}

/* Slow drifting amber glow behind sections */
.lay {
  position: relative;
}
.lay::before {
  content: '';
  position: absolute;
  pointer-events: none;
  inset: -10% auto auto -10%;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(246,168,56,0.06) 0%, transparent 70%);
  filter: blur(8px);
  animation: drift 18s ease-in-out infinite;
  z-index: -1;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(60px, 40px); }
}

/* Animated gradient line at the hero/section boundary */
.hero {
  position: relative;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 50%; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--amber-2) 50%, transparent 100%);
  transform: translateX(-50%);
  opacity: 0.5;
  animation: shimmer 5s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { width: 30%; opacity: 0.3; }
  50%      { width: 60%; opacity: 0.6; }
}

/* Hero leaf — also scaled by the JS parallax on mousemove */
.hero-leaf { transition: transform .25s cubic-bezier(.2,.7,.2,1); }

/* ─────────── COMPARE: zoom pill in meta row + lightbox ─────────── */
/* Sits inline with the comparison's meta row, well above the frame so the
   slider drag handle can never reach it. Pill-shaped to match section-tags. */
.compare-zoom-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  background: rgba(217,154,44,0.08);
  color: var(--amber-2);
  border: 1px solid rgba(217,154,44,0.3);
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, transform .15s, border-color .15s, color .15s;
  margin-left: auto;
}
.compare-zoom-btn:hover {
  background: rgba(217,154,44,0.2);
  border-color: var(--amber-2);
  color: var(--gold);
  transform: translateY(-1px);
}
.compare-zoom-btn svg { display: block; }

/* Full-screen lightbox overlay */
.zoom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,4,3,0.92);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: zoomFade .25s ease-out;
}
@keyframes zoomFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.zoom-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--line-2);
  border-radius: 50%;
  font-size: 22px;
  font-weight: 300;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.zoom-close:hover { background: var(--bg-3); border-color: var(--amber-2); color: var(--amber-2); }
.zoom-tabs {
  position: absolute;
  top: 24px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 4px;
}
.zoom-tab {
  padding: 8px 18px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--text-mid);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.zoom-tab:hover { color: var(--text); }
.zoom-tab.active {
  background: var(--grad);
  color: var(--bg-0);
}
.zoom-stage {
  width: 100%;
  height: 100%;
  max-width: 1400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: grab;
  position: relative;
}
.zoom-stage:active { cursor: grabbing; }
.zoom-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform .12s ease-out;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.zoom-img.hidden {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.zoom-hint {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  font-family: "JetBrains Mono", "Consolas", monospace;
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 1.2px;
  background: rgba(0,0,0,0.5);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
}
