/* ─────────────────────────────────────────────────────────────
   JUST RELEASED — changelog / dev-log register
   ───────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0f1e;
  --bg-2: #080c18;
  --gold: #F5C400;
  --gold-dim: rgba(245, 196, 0, 0.12);
  --gold-border: rgba(245, 196, 0, 0.28);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-faint: rgba(248, 250, 252, 0.32);
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --nav-h: 64px;
  --max-w: 820px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html { -webkit-font-smoothing: antialiased; }

body.jr-page {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }
img, video { display: block; max-width: 100%; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ─── NAV ─────────────────────────────────────────────────── */
.jr-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 24px;
  background: rgba(10, 15, 30, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(245, 196, 0, 0.06);
}

.jr-nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
}

.jr-logo-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
}

.jr-nav-back {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.jr-nav-back:hover { color: var(--gold); }

/* ─── MAIN ────────────────────────────────────────────────── */
.jr-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.jr-header {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(245, 196, 0, 0.08);
}

.jr-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.jr-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.jr-subhead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 36ch;
}

/* ─── VIDEO ───────────────────────────────────────────────── */
.jr-video-section {
  margin-bottom: 56px;
}

.jr-video-wrap {
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.jr-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.jr-video-placeholder {
  aspect-ratio: 16 / 9;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 32px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.jr-video-placeholder-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.jr-video-placeholder code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text);
}

.jr-caption {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}

/* ─── BONUS ───────────────────────────────────────────────── */
.jr-bonus {
  margin-bottom: 56px;
}

.jr-bonus-inner {
  padding: 32px 28px;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(245, 196, 0, 0.05), rgba(8, 12, 24, 0.8));
  border: 1px solid var(--gold-border);
}

.jr-kicker--bonus { margin-bottom: 12px; }

.jr-section-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.2rem, 3.5vw, 1.45rem);
  line-height: 1.3;
  margin-bottom: 14px;
}

.jr-body {
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

.jr-body--stack p + p { margin-top: 14px; }

.jr-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.jr-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.jr-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.jr-input:focus {
  outline: none;
  border-color: var(--gold-border);
}

.jr-btn {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  background: var(--gold);
  color: #0a0f1e;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), opacity 0.2s;
}

.jr-btn:hover { transform: translateY(-1px); }
.jr-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.jr-form-note {
  font-size: 11px;
  color: var(--text-faint);
  line-height: 1.5;
}

.jr-form-note a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.jr-bonus-unlocked {
  margin-top: 0;
}

.jr-bonus-unlocked[hidden] { display: none; }

.jr-bonus.is-unlocked .jr-bonus-inner { display: none; }

/* ─── NEXT ────────────────────────────────────────────────── */
.jr-next {
  padding-top: 32px;
  border-top: 1px solid rgba(245, 196, 0, 0.08);
}

.jr-next .jr-section-title { margin-bottom: 16px; }
.jr-next .jr-body { margin-bottom: 0; }

/* ─── FOOTER ──────────────────────────────────────────────── */
.jr-footer {
  padding: 32px 24px 48px;
  text-align: center;
  border-top: 1px solid rgba(245, 196, 0, 0.06);
}

.jr-footer p {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}

.jr-footer-legal {
  max-width: 640px;
  margin: 14px auto 0;
  font-family: var(--font-body) !important;
  font-size: 11px !important;
  letter-spacing: 0 !important;
  line-height: 1.55 !important;
  color: rgba(148, 163, 184, 0.75) !important;
}

.jr-footer-legal a {
  color: rgba(245, 196, 0, 0.75);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (min-width: 640px) {
  .jr-form {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .jr-input { flex: 1 1 220px; }
  .jr-btn { flex: 0 0 auto; width: auto; min-width: 240px; }
  .jr-form-note { flex: 1 1 100%; }
}

@media (max-width: 639px) {
  .jr-main { padding-top: 32px; }
  .jr-bonus-inner { padding: 24px 20px; }
}
