/* ForeverHumans Toolkit — demo.css (founder demo chrome only.
   The link-page preview paints itself from the config theme.) */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  background: #0a0a0f;
  color: #f4f4f5;
  line-height: 1.5;
}

.demo-header {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 20px 8px;
}
.demo-header h1 {
  margin: 0 0 6px;
  font-size: clamp(34px, 6vw, 54px);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.hero-title { margin: 0 0 6px; }
.hero-wordmark {
  display: block;
  max-width: 660px;
  filter: drop-shadow(0 0 14px rgba(57,255,20,.35));
}
.hero-wordmark svg { display: block; width: 100%; height: auto; }
@keyframes hero-wordmark-pulse {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(57,255,20,.28)); }
  50% { filter: drop-shadow(0 0 22px rgba(57,255,20,.50)); }
}
html.fx-on .hero-wordmark { animation: hero-wordmark-pulse 3.8s ease-in-out infinite; }
html.fx-off .hero-wordmark { animation: none; }
.hero-title-sub {
  display: block;
  margin-top: 10px;
  font-family: var(--fh-display-font, 'Permanent Marker', 'Arial Black', 'Franklin Gothic Heavy', sans-serif);
  font-size: clamp(20px, 3.5vw, 30px);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.25;
  color: #c9c9d1;
}
.demo-sub { margin: 0; color: #c9c9d1; font-size: 19px; }

.demo-main {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 12px 20px 48px;
  display: grid;
  gap: 20px;
}

.demo-card {
  background: #15151f;
  border: 1px solid #262633;
  border-radius: 14px;
  padding: 20px;
  transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease, transform .25s ease;
}
html.fx-on .demo-card {
  background: rgba(21,21,31,.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: rgba(57,255,20,.16);
}
@media (hover: hover) and (pointer: fine) {
  html.fx-on .demo-card:hover {
    border-color: rgba(57,255,20,.45);
    box-shadow: 0 10px 34px rgba(0,0,0,.45), 0 0 24px rgba(57,255,20,.14);
  }
}
.demo-card h2 {
  margin: 0 0 6px;
  font-size: 21px;
  font-family: var(--fh-display-font, 'Permanent Marker', 'Arial Black', 'Franklin Gothic Heavy', sans-serif);
  font-weight: 400;
  letter-spacing: 0.01em;
}
.demo-card h2::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: #39ff14;
  margin-right: 10px;
  box-shadow: 0 0 10px rgba(57,255,20,.8);
  vertical-align: 2px;
}
.demo-card h3 { margin: 18px 0 8px; font-size: 16px; }
.demo-hint { color: #a1a1aa; margin: 4px 0 12px; }
.demo-note {
  border-left: 3px solid #39ff14;
  padding-left: 10px;
  color: #d4d4d8;
}

.btn {
  display: inline-block;
  background: #23232f;
  color: #f4f4f5;
  border: 1px solid #3a3a4a;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  margin: 0 6px 6px 0;
}
.btn:hover { border-color: #39ff14; }
.btn.primary { background: #39ff14; color: #0a0a0f; border-color: #39ff14; font-weight: 600; box-shadow: 0 0 18px rgba(57,255,20,.35); }
.btn.small { padding: 5px 10px; font-size: 13px; }
.btn.danger:hover { border-color: #ff5470; color: #ff8fa3; }
.file-btn { cursor: pointer; }

.preset-row { display: flex; flex-wrap: wrap; gap: 8px; }
.preset-btn {
  background: #23232f;
  color: #f4f4f5;
  border: 2px solid #3a3a4a;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 15px;
  cursor: pointer;
}
.preset-btn.active { border-color: #39ff14; background: #1d2b16; box-shadow: 0 0 18px rgba(57,255,20,.35); }

.custom-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 14px 0 4px;
}
.custom-colors label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.custom-colors input[type="color"] {
  width: 44px; height: 32px; padding: 0;
  border: 1px solid #3a3a4a; border-radius: 6px; background: none; cursor: pointer;
}

.control-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.control-row label { font-size: 15px; }
.text-input, select {
  background: #0f0f16;
  color: #f4f4f5;
  border: 1px solid #3a3a4a;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 15px;
}
.text-input.grow { flex: 1 1 260px; }
input[type="range"] { accent-color: #39ff14; }

.phone-frame {
  position: relative;
  max-width: 390px;
  margin: 8px auto 16px;
  border: 3px solid #2c2c3d;
  border-radius: 28px;
  padding: 10px;
  background: #000;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(57,255,20,.12), 0 0 44px rgba(57,255,20,.10);
}
.phone-frame::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 10px;
  border-radius: 999px;
  background: #23232f;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  z-index: 2;
  pointer-events: none;
}
.phone-frame > div { border-radius: 18px; overflow: hidden; }

.detect-result { min-height: 1.4em; color: #b6ffb0; margin: 6px 0; }
.error { color: #ff8fa3; min-height: 1.4em; margin: 6px 0; font-weight: 600; }

.channel-list { display: grid; gap: 10px; }
.channel-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #0f0f16;
  border: 1px solid #2c2c3a;
  border-radius: 10px;
  padding: 10px 12px;
  transition: border-color .2s ease, transform .2s ease;
}
.channel-row:hover {
  border-color: rgba(57,255,20,.45);
  transform: translateY(-1px);
}
.channel-row.is-hidden { opacity: 0.55; }
.channel-info { flex: 1 1 auto; min-width: 0; }
.channel-icon { font-size: 18px; }
.channel-value {
  color: #a1a1aa;
  font-size: 13px;
  word-break: break-all;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}
/* Machine-style data readouts ride the StoreFab mono stack. */
#popLevelValue { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }
.channel-actions { display: flex; gap: 6px; flex-shrink: 0; }
.qr-thumb { width: 64px; height: 64px; flex-shrink: 0; background: #fff; border-radius: 6px; padding: 4px; }
.qr-thumb svg { width: 100%; height: 100%; display: block; }

@media (max-width: 560px) {
  .channel-row { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  .channel-row:hover { transform: none; }
}

.demo-footer {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 20px 20px 40px;
  border-top: 1px solid #262633;
  font-size: 14px;
  color: #a1a1aa;
}
.demo-footer .demo-hint { font-size: 14px; }
.demo-jar-link { margin: 14px 0 0; }
