:root {
  --juniora-h: 38px;
  --bg: rgb(19, 21, 25);
  --panel: #1c1f26;
  --panel-2: #23272f;
  --ink: #fff;
  --muted: #9aa3ad;
  --good: var(--jn-green, #a0e747);
  --bad: #ff6b6b;
}
* { box-sizing: border-box }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font-family: var(--jn-font); min-height: 100% }
body { padding-bottom: var(--juniora-h); -webkit-tap-highlight-color: transparent; }
.wrap { max-width: 620px; margin: 0 auto; padding: 26px 18px 44px; }
.head { text-align: center; margin-bottom: 20px }
.head h1 { font-size: clamp(20px, 5vw, 26px); margin: 0 0 8px }
.head p { color: var(--muted); font-size: 14px; line-height: 1.9; margin: 0 }

/* timeline */
.timeline { position: relative; margin: 24px 0 22px; }
.track { position: relative; height: 4px; background: #2a2e36; border-radius: 4px; }
.track-fill { position: absolute; inset-inline-start: 0; top: 0; height: 100%; width: 0%; background: var(--good); border-radius: 4px; transition: width .35s ease; }
.dots { position: absolute; inset: -10px 0 auto 0; display: flex; justify-content: space-between; }
.dot {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--panel-2); border: 2px solid #2a2e36;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--muted); cursor: pointer;
  transition: all .2s ease;
}
.dot.active { background: var(--good); border-color: var(--good); color: #10231f; transform: scale(1.15); }
.dot.done { border-color: var(--good); color: var(--good); }

.stage-card {
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px; padding: 22px 18px; text-align: center; min-height: 200px;
  display: flex; flex-direction: column; align-items: center;
}
.stage-emoji { font-size: 38px; margin-bottom: 6px; }
.stage-card h2 { margin: 0 0 8px; font-size: 18px; }
.stage-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.9; max-width: 460px; }
.stage-extra { width: 100%; margin-top: 16px; }

.nav-btns { display: flex; gap: 10px; margin-top: 16px; }
.nav-btn {
  flex: 1; padding: 13px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.1);
  background: var(--panel); color: var(--ink); font-family: var(--jn-font);
  font-weight: 700; font-size: 14px; cursor: pointer;
}
.nav-btn.primary { background: var(--good); color: #10231f; border-color: var(--good); }
.nav-btn:disabled { opacity: .35; cursor: default; }

.loop-msg { margin-top: 16px; background: rgba(160,231,71,0.08); border-radius: 12px; padding: 14px; text-align: center; }
.loop-msg p { margin: 0; font-size: 13.5px; color: var(--good); line-height: 1.9; }

/* ===== before/after compare slider (reused pattern) ===== */
.compare-slider {
  position: relative; width: 100%; max-width: 340px; height: 210px; margin: 0 auto;
  border-radius: 14px; overflow: hidden; background: #0d0f13;
  border: 1px solid rgba(255,255,255,0.08);
}
.compare-slider .layer { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.compare-slider .bad-layer { background: linear-gradient(160deg, #201a1a, #16110f); }
.compare-slider .good-layer { background: linear-gradient(160deg, #16241a, #0f1c11); clip-path: inset(0 50% 0 0); }
.compare-slider .tag { position: absolute; top: 10px; font-size: 10.5px; font-weight: 900; padding: 3px 9px; border-radius: 999px; z-index: 5; }
.compare-slider .tag-bad-fixed { right: 10px; background: rgba(255,107,107,0.18); color: var(--bad); }
.compare-slider .tag-good-fixed { left: 10px; background: rgba(160,231,71,0.18); color: var(--good); }
.compare-slider .handle {
  position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center; pointer-events: none; z-index: 6;
}
.compare-slider .handle-line { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; opacity: 0.7; }
.compare-slider .handle-btn {
  width: 30px; height: 30px; border-radius: 50%; background: #fff; color: #10231f;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 900;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}
.compare-slider input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; z-index: 10;
}
.compare-caption { font-size: 12px; color: var(--muted); margin-top: 10px; line-height: 1.8; }

/* landing page mini mockups */
.landing-mock { width: 100%; padding: 0 14px; display: flex; flex-direction: column; }
.l-nav { display: flex; gap: 7px; margin-bottom: 12px; flex-wrap: wrap; }
.l-nav span { font-size: 8px; color: var(--muted); white-space: nowrap; }
.l-nav-hidden-cta { color: var(--muted); }
.l-title { font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.l-sub-bad { font-size: 8px; color: var(--muted); line-height: 1.7; margin-bottom: 8px; max-width: 92%; }
.l-para { height: 6px; border-radius: 3px; background: #2c313a; margin-bottom: 5px; }
.l-para.w1 { width: 90%; } .l-para.w2 { width: 75%; } .l-para.w3 { width: 55%; }
.l-cta-bad { align-self: flex-start; margin-top: 10px; font-size: 9px; padding: 5px 10px; border-radius: 5px; background: #3a3f48; color: #dfe3e8; }

.l-title-good { font-size: 14px; font-weight: 900; margin-bottom: 5px; }
.l-sub-good { font-size: 9.5px; color: var(--muted); line-height: 1.7; margin-bottom: 14px; max-width: 88%; }
.l-cta-good {
  font-size: 12px; font-weight: 900; padding: 10px 16px; border-radius: 10px;
  background: var(--good); color: #10231f; display: inline-block; align-self: center;
  box-shadow: 0 0 0 0 rgba(160,231,71,0.5);
  animation: ctaPulse 2s ease-in-out infinite;
}
.l-stat-good { font-size: 8.5px; color: var(--muted); margin-top: 10px; }
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(160,231,71,0.35); }
  50% { box-shadow: 0 0 0 8px rgba(160,231,71,0); }
}

/* ===== stats stage ===== */
.stats-row { display: flex; justify-content: center; gap: 34px; margin-top: 6px; }
.stat-box { text-align: center; }
.stat-box .stat-label { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 6px; }
.stat-box .stat-num { font-size: 30px; font-weight: 900; }
.stat-box.before .stat-num { color: var(--bad); }
.stat-box.after .stat-num { color: var(--good); }
.stats-arrow { align-self: center; font-size: 22px; color: var(--muted); }

/* ===== brand bar ===== */
.juniora-overlay {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 8px 14px; background: rgba(13, 15, 19, 0.92);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255, 255, 255, 0.06); z-index: 1000;
}
.juniora-link {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  color: #9aa3ad; font-family: var(--jn-font); font-size: 10.5px; font-weight: 600;
  line-height: 1; opacity: 0.85; transition: opacity .15s ease;
}
.juniora-link:hover { opacity: 1; }
.juniora-logo { width: 13px; height: auto; display: block; flex-shrink: 0; }
.juniora-text { letter-spacing: normal; }
