/* Duomobi — Apresentação. Design system espelhado de index.php. */
:root {
  --accent: #22c55e;
  --accent-hover: #4ade80;
  --accent-dim: rgba(34, 197, 94, 0.14);
  --accent-text: #86efac;
  --bg-base: #0d0d0f;
  --bg-panel: #161618;
  --bg-card: #1d1d20;
  --bg-input: #141416;
  --bg-modal: #1c1c1e;
  --text-primary: #ededed;
  --text-muted: #9a9a9e;
  --text-faint: #707074;
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-default: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.22);
  --danger: #e05252;
  --info: #4a7fff;
  --radius-sm: 7px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.55);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 620ms;
  --rail-w: 248px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg-base);
  color: var(--text-primary);
  font: 15px/1.55 "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
::selection { background: var(--accent-dim); color: var(--accent-text); }
a { color: inherit; }

/* ambient glow background */
.bg-fx {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 600px at 78% 12%, rgba(34, 197, 94, 0.10), transparent 60%),
    radial-gradient(700px 500px at 12% 88%, rgba(74, 127, 255, 0.07), transparent 60%);
}
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.35;
  background-image:
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 78%);
}

/* ------- Shell ------- */
.shell { position: relative; z-index: 1; display: flex; height: 100vh; }

/* nav rail */
.rail {
  width: var(--rail-w); flex: 0 0 var(--rail-w);
  border-right: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(22,22,24,0.9), rgba(13,13,15,0.9));
  backdrop-filter: blur(8px);
  display: flex; flex-direction: column;
  padding: 22px 16px;
}
.rail__brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: 0.04em; font-size: 17px;
  padding: 4px 8px 18px;
}
.rail__logo {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #15803d);
  display: grid; place-items: center; color: #04130a;
  box-shadow: 0 0 22px rgba(34, 197, 94, 0.35);
}
.rail__logo svg { width: 18px; height: 18px; }
.rail__nav { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 3px; }
.rail__nav::-webkit-scrollbar { width: 6px; }
.rail__nav::-webkit-scrollbar-thumb { background: var(--border-default); border-radius: 3px; }
.rail__item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 11px; border-radius: var(--radius-sm);
  color: var(--text-muted); cursor: pointer;
  border: 1px solid transparent;
  transition: background 160ms, color 160ms, border-color 160ms;
  font-size: 13.5px; user-select: none;
}
.rail__item:hover { color: var(--text-primary); background: rgba(255,255,255,0.035); }
.rail__item.active {
  color: var(--text-primary); background: var(--accent-dim);
  border-color: rgba(34, 197, 94, 0.32);
}
.rail__num {
  width: 24px; height: 24px; flex: 0 0 24px;
  display: grid; place-items: center;
  border: 1px solid var(--border-default); border-radius: 7px;
  font-size: 11px; font-weight: 700; color: var(--text-faint);
  transition: all 160ms;
}
.rail__item.active .rail__num,
.rail__item.done .rail__num {
  border-color: var(--accent); color: var(--accent-text);
  background: rgba(34,197,94,0.12);
}
.rail__foot {
  font-size: 11px; color: var(--text-faint);
  padding: 14px 8px 0; border-top: 1px solid var(--border-subtle); margin-top: 12px;
}

/* progress bar */
.progress {
  position: fixed; top: 0; left: var(--rail-w); right: 0; height: 2px;
  background: var(--border-subtle); z-index: 50;
}
.progress__fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  box-shadow: 0 0 14px rgba(34,197,94,0.6);
  transition: width var(--dur) var(--ease-out);
}

/* ------- Stage ------- */
.stage { flex: 1; position: relative; overflow: hidden; }
.slide {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
  align-items: center;
  padding: 28px 40px 32px;
  opacity: 0; pointer-events: none;
  transform: translateY(26px) scale(0.985);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.slide.active { opacity: 1; pointer-events: auto; transform: none; }
.slide.leaving { opacity: 0; transform: translateY(-22px) scale(0.985); }
.slide--solo { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
.slide--solo .copy { max-width: 880px; margin: 0 auto; text-align: center; }
.slide--solo .copy .kicker { margin: 0 auto; }
.slide--solo .demoslot { min-height: 0; }
.slide--solo .demo {
  max-width: 1100px; margin: 0 auto; width: 100%;
  aspect-ratio: auto; height: 100%; max-height: none;
}

/* CAPA — abertura limpa, título grande, dica de navegação */
.slide--cover { align-items: center; }
.slide--cover .copy { max-width: 620px; }
.slide--cover h1 { font-size: clamp(48px, 6.2vw, 86px); margin: 16px 0 18px; }
.slide--cover .lead { font-size: 20px; }
.cover-hint {
  margin-top: 26px; font-size: 13px; color: var(--text-faint);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.cover-hint kbd { margin: 0 1px; }

/* demo column — centralizada e limitada à viewport */
.demoslot { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 0; }
.demoslot--wide { width: 100%; }

/* copy column — fit-to-viewport, nunca rola */
.copy {
  align-self: center; max-width: 560px;
  max-height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
}
/* todos os ícones inline têm tamanho fixo (SVG sem width estoura) */
.kicker svg, .edge__h svg { width: 13px; height: 13px; flex: 0 0 13px; }
.copy svg, .navhint svg, .rep svg { flex: 0 0 auto; }
.kicker {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-text);
  padding: 4px 10px; border: 1px solid rgba(34,197,94,0.3);
  border-radius: 999px; background: var(--accent-dim);
}
.copy h1 {
  font-size: clamp(26px, 3.4vw, 48px); line-height: 1.04;
  font-weight: 800; letter-spacing: -0.02em; margin: 10px 0 8px;
}
.copy h1 .grad {
  background: linear-gradient(120deg, #fff, var(--accent-hover));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(14px, 1.1vw, 17px); color: var(--text-primary); margin-bottom: 8px; font-weight: 500; line-height: 1.35; }
.body { font-size: clamp(12.5px, 0.9vw, 14px); color: var(--text-muted); margin-bottom: 12px; line-height: 1.45; }

.actions { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.action {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 7px 11px; border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm); background: rgba(255,255,255,0.018);
  opacity: 0; transform: translateX(-12px);
  cursor: pointer; user-select: none;
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out),
              border-color 160ms, background 160ms;
}
.slide.active .action { opacity: 1; transform: none; }
.slide.active .action:nth-child(1) { transition-delay: 140ms; }
.slide.active .action:nth-child(2) { transition-delay: 200ms; }
.slide.active .action:nth-child(3) { transition-delay: 260ms; }
.slide.active .action:nth-child(4) { transition-delay: 320ms; }
.slide.active .action:nth-child(5) { transition-delay: 380ms; }
.slide.active .action:nth-child(6) { transition-delay: 440ms; }
.action:hover { border-color: rgba(34,197,94,0.30); background: rgba(34,197,94,0.05); }
.action.live { border-color: rgba(34,197,94,0.55); background: var(--accent-dim); box-shadow: 0 0 0 1px rgba(34,197,94,0.18) inset; }
.action__dot {
  width: 20px; height: 20px; flex: 0 0 20px; border-radius: 6px;
  border: 1px solid var(--border-default); display: grid; place-items: center;
  color: var(--text-faint); font-size: 10.5px; font-weight: 700; margin-top: 1px;
}
.action.live .action__dot { border-color: var(--accent); color: var(--accent-text); background: rgba(34,197,94,0.16); }
.action__t { font-weight: 600; font-size: 13px; line-height: 1.3; }
.action__d { font-size: 11.5px; color: var(--text-muted); line-height: 1.35; margin-top: 1px; }

.edge {
  border: 1px solid rgba(34,197,94,0.26); border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(34,197,94,0.08), rgba(34,197,94,0.02));
  padding: 9px 13px;
}
.edge__h {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 6px; display: flex; align-items: center; gap: 7px;
}
.edge ul { list-style: none; display: flex; flex-direction: column; gap: 3px; }
.edge li { font-size: 12px; color: var(--text-primary); display: flex; gap: 8px; line-height: 1.35; }
.edge li::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; margin-top: 6px;
  background: var(--accent); flex: 0 0 5px; box-shadow: 0 0 8px var(--accent);
}

/* render compare slider (CAD ↔ GPT-Image) — usado no card 4 do render */
.render-compare {
  position: absolute; inset: 0; display: none;
  background: #0a0a0c; overflow: hidden;
}
.render-compare.show { display: block; }
.rc-base, .rc-overlay {
  position: absolute; inset: 0; overflow: hidden;
}
.rc-base img, .rc-overlay img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.rc-overlay {
  width: 0%;
  /* ciclo 23s · 5s CAD · 2s sweep · 8s GPT · 2s volta até 50% · 4s hold meio · 2s sweep até 0 */
  animation: rc-sweep 23s cubic-bezier(.55,.06,.45,.94) infinite;
}
.rc-line {
  position: absolute; top: 0; bottom: 0; width: 2px; left: 0%;
  background: linear-gradient(180deg, transparent, #fff, transparent);
  box-shadow: 0 0 14px rgba(255,255,255,.6);
  animation: rc-line 23s cubic-bezier(.55,.06,.45,.94) infinite;
  pointer-events: none;
}
.rc-line::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid #fff; background: rgba(10,10,12,.6);
  transform: translate(-50%, -50%); backdrop-filter: blur(4px);
}
.rc-line::after {
  content: "⇄"; position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%); color: #fff;
  font-size: 14px; font-weight: 700;
}
.rc-label {
  position: absolute; top: 14px;
  padding: 6px 11px; border-radius: 6px;
  font: 700 11px Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase;
  backdrop-filter: blur(8px); background: rgba(10,10,12,.55);
  border: 1px solid rgba(255,255,255,.18); color: #fff;
}
.rc-label.left { left: 14px; color: #aaa; }
.rc-label.right { right: 14px; color: var(--accent-text); border-color: rgba(34,197,94,.4); }
.rc-info {
  position: absolute; bottom: 14px; left: 14px; right: 14px;
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 13px; border-radius: 7px;
  background: rgba(10,10,12,.7); backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle); font: 12px Inter, sans-serif;
  color: var(--text-muted);
}
.rc-info b { color: var(--accent-text); }
@keyframes rc-sweep {
  /* ciclo 23s · breakpoints: 5s=21.7% · 7s=30.4% · 15s=65.2% · 17s=73.9% · 21s=91.3% · 23s=100% */
  0%, 21.7% { width: 0%; }     /* 0-5s: full CAD */
  30.4%     { width: 100%; }   /* 5-7s: sweep CAD→GPT (2s) */
  65.2%     { width: 100%; }   /* 7-15s: hold GPT (8s) */
  73.9%     { width: 50%; }    /* 15-17s: sweep volta até 50% (2s) */
  91.3%     { width: 50%; }    /* 17-21s: hold no meio (4s) */
  100%      { width: 0%; }     /* 21-23s: sweep meio → 0% (2s) — loop limpo */
}
@keyframes rc-line {
  0%, 21.7% { left: 0%; opacity: 0; }
  21.8%     { opacity: 1; }
  30.4%     { left: calc(100% - 2px); opacity: 1; }
  65.2%     { left: calc(100% - 2px); opacity: 1; }
  73.9%     { left: calc(50% - 1px); opacity: 1; }
  91.3%     { left: calc(50% - 1px); opacity: 1; }
  99.9%     { left: 0%; opacity: 1; }
  100%      { left: 0%; opacity: 0; }
}

/* demo column */
.demo {
  position: relative; border: 1px solid var(--border-default);
  border-radius: var(--radius-lg); overflow: hidden;
  background: radial-gradient(120% 120% at 50% 0%, #1b1b1f, #0e0e11);
  box-shadow: var(--shadow-lg);
  width: 100%; aspect-ratio: 16 / 11;
  max-height: calc(100vh - 70px);
  max-width: calc((100vh - 70px) * 1.4545);
  display: flex; flex-direction: column;
}
/* demo mais alto (specbook, onboarding) — conteúdo denso precisa de mais altura */
.demoslot--tall .demo {
  aspect-ratio: 5 / 4;
  max-height: calc(100vh - 50px);
  max-width: calc((100vh - 50px) * 1.25);
}
.demo__bar {
  height: 36px; flex: 0 0 36px; display: flex; align-items: center; gap: 8px;
  padding: 0 13px; border-bottom: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.025); font-size: 12px; color: var(--text-muted);
}
.demo__dots { display: flex; gap: 6px; }
.demo__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); display: block; }
.demo__dots i:first-child { background: #e05252; }
.demo__dots i:nth-child(2) { background: #e0a52e; }
.demo__dots i:nth-child(3) { background: var(--accent); }
.demo__title { margin-left: 6px; font-weight: 600; color: var(--text-primary); }
.demo__live {
  margin-left: auto; font-size: 11px; color: var(--accent-text);
  display: flex; align-items: center; gap: 6px;
}
.demo__live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  animation: pulse 1.4s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;box-shadow:0 0 0 0 rgba(34,197,94,.5)} 50%{opacity:.5;box-shadow:0 0 0 6px rgba(34,197,94,0)} }
.demo__stage { flex: 1; position: relative; min-height: 0; }
.demo__stage canvas { display: block; width: 100% !important; height: 100% !important; }
.demo__caption {
  position: absolute; left: 14px; bottom: 14px; right: 14px;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 13px; border-radius: var(--radius-sm);
  background: rgba(10,10,12,0.7); backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle); font-size: 12.5px;
  opacity: 0; transform: translateY(8px); transition: opacity 320ms, transform 320ms;
}
.demo__caption.show { opacity: 1; transform: none; }
.demo__caption b { color: var(--accent-text); }
.demo__replay {
  position: absolute; top: 10px; right: 10px; z-index: 5;
  width: 30px; height: 30px; border-radius: 8px;
  border: 1px solid var(--border-default); background: rgba(10,10,12,0.55);
  color: var(--text-muted); cursor: pointer; display: grid; place-items: center;
  transition: all 160ms;
}
.demo__replay:hover { color: var(--accent-text); border-color: var(--accent); }
.demo__replay svg { width: 15px; height: 15px; }

/* ------- Replica (UI windows) ------- */
.rep { position: absolute; inset: 0; padding: 16px; display: none; }
.rep.show { display: block; }
.rep-win {
  border: 1px solid var(--border-default); border-radius: var(--radius-md);
  background: var(--bg-modal); height: 100%; display: flex; flex-direction: column;
  overflow: hidden;
}
.rep-head {
  display: flex; align-items: center; gap: 10px; padding: 12px 15px;
  border-bottom: 1px solid var(--border-subtle); font-weight: 600; font-size: 14px;
}
.rep-head .x { margin-left: auto; color: var(--text-faint); }
.rep-tabs { display: flex; gap: 4px; padding: 8px 12px; border-bottom: 1px solid var(--border-subtle); flex-wrap: wrap; }
.rep-tab {
  font-size: 12px; padding: 6px 12px; border-radius: 7px; color: var(--text-muted);
  border: 1px solid transparent; cursor: default; transition: all 200ms;
}
.rep-tab.on { color: var(--text-primary); background: var(--accent-dim); border-color: rgba(34,197,94,0.3); }
.rep-body { flex: 1; overflow: hidden; padding: 12px; min-height: 0; }
.rep-grid { width: 100%; border-collapse: collapse; font-size: 12px; }
.rep-grid th, .rep-grid td { text-align: left; padding: 7px 9px; border-bottom: 1px solid var(--border-subtle); }
.rep-grid th { color: var(--text-faint); font-weight: 600; text-transform: uppercase; font-size: 10.5px; letter-spacing: 0.06em; }
.rep-grid tbody tr { opacity: 0; transform: translateY(6px); transition: opacity 300ms, transform 300ms; }
.rep-grid tbody tr.in { opacity: 1; transform: none; }
.rep-stat { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.rep-stat .card {
  flex: 1; min-width: 110px; padding: 8px 11px; border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm); background: rgba(255,255,255,0.02);
}
.rep-stat .v { font-size: 18px; font-weight: 800; color: var(--accent-text); line-height: 1.1; }
.rep-stat .k { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; }

/* slider/check replicas */
.std-slider { margin: 12px 0; }
.std-slider__label { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); margin-bottom: 7px; }
.std-slider__val { color: var(--accent-text); font-weight: 700; }
.std-slider__track { height: 6px; border-radius: 3px; background: var(--bg-input); position: relative; }
.std-slider__track::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--fill, 40%);
  background: linear-gradient(90deg, var(--accent), var(--accent-hover)); border-radius: 3px;
  transition: width 500ms var(--ease-out);
}
.std-slider__track::before {
  content: ""; position: absolute; top: 50%; left: var(--fill, 40%);
  width: 14px; height: 14px; border-radius: 50%; background: #fff;
  transform: translate(-50%, -50%); box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  transition: left 500ms var(--ease-out);
}
.std-check { display: flex; align-items: center; gap: 9px; font-size: 13px; margin: 9px 0; color: var(--text-primary); }
.std-check__box {
  width: 18px; height: 18px; border-radius: 5px; border: 1px solid var(--border-strong);
  display: grid; place-items: center; transition: all 200ms;
}
.std-check.on .std-check__box { background: var(--accent); border-color: var(--accent); }
.std-check.on .std-check__box::after { content: "✓"; color: #04130a; font-size: 12px; font-weight: 900; }

/* Checkbox GLOBAL — QUALQUER input[type=checkbox] herda visual padrão dark theme (mesmo sem .std-check).
   Specificity baixa: .std-check tem prioridade. Check via SVG bg (pseudo-elem não renderiza em <input>). */
input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  flex-shrink: 0;
  width: 14px; height: 14px;
  margin: 0 6px 0 0;
  vertical-align: -2px;
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 4px;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 10px 10px;
  display: inline-block;
  cursor: pointer;
  transition: background-color .12s, border-color .12s;
}
input[type="checkbox"]:hover:not(:disabled) { border-color: rgba(255,255,255,0.55); }
input[type="checkbox"]:checked {
  background-color: #4ade80; border-color: #4ade80;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%230b0b0b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E");
}
input[type="checkbox"]:focus-visible { outline: 2px solid rgba(74,222,128,0.5); outline-offset: 2px; }
input[type="checkbox"]:disabled { opacity: 0.4; cursor: not-allowed; }
input[type="checkbox"].native-checkbox { appearance: auto; -webkit-appearance: auto; width: auto; height: auto; border: 0; background: none; vertical-align: baseline; }

/* swatches */
.sw-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.sw {
  width: 56px; height: 56px; border-radius: 10px; border: 2px solid transparent;
  cursor: default; transition: all 220ms; position: relative;
}
.sw.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); transform: scale(1.06); }

/* matrix */
.matrix { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.matrix th, .matrix td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border-subtle); }
.matrix th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-faint); }
.matrix th:last-child { color: var(--accent-text); }
.matrix td:last-child { color: var(--accent-text); font-weight: 600; }
.matrix td:nth-child(2) { color: var(--text-muted); }
.matrix tr { opacity: 0; transform: translateY(10px); transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out); }
.matrix tr.in { opacity: 1; transform: none; }
.matrix tbody tr:hover td { background: rgba(255,255,255,0.02); }

/* gallery */
.gallery { display: none; }
.gallery.show {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
  gap: 8px; padding: 14px; overflow: auto; height: 100%;
}
.gchip {
  border: 1px solid var(--border-subtle); border-radius: 9px; padding: 10px 6px;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.018); font-size: 10px; color: var(--text-muted);
  text-align: center; opacity: 0; transform: scale(0.9);
  transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out), border-color 180ms;
}
.gchip.in { opacity: 1; transform: none; }
.gchip:hover { border-color: rgba(34,197,94,0.4); color: var(--text-primary); }
.gchip svg { width: 30px; height: 30px; color: var(--accent-text); }

/* footer hint + controls */
.navhint {
  position: fixed; bottom: 20px; right: 26px; z-index: 40;
  display: flex; gap: 10px; align-items: center;
}
.navbtn {
  display: flex; align-items: center; gap: 7px; padding: 9px 15px;
  border: 1px solid var(--border-default); border-radius: 999px;
  background: rgba(22,22,24,0.8); backdrop-filter: blur(8px);
  color: var(--text-muted); cursor: pointer; font-size: 13px;
  transition: all 180ms;
}
.navbtn:hover { color: var(--text-primary); border-color: var(--accent); }
.navbtn svg { width: 15px; height: 15px; }
.navbtn[disabled] { opacity: 0.35; pointer-events: none; }

kbd {
  font: inherit; font-size: 11px; padding: 2px 7px; border-radius: 5px;
  border: 1px solid var(--border-default); background: var(--bg-card); color: var(--text-muted);
}

@media (max-width: 1100px) {
  .slide { grid-template-columns: 1fr; gap: 22px; padding: 40px 28px; overflow-y: auto; }
  .demo { aspect-ratio: 16 / 10; }
  :root { --rail-w: 0px; }
  .rail { display: none; }
}
