/* ─────────────────────────────────────────────────────────────
   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: #000;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.jr-video-stage {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
}

.jr-video-poster,
.jr-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.jr-video-poster {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  overflow: hidden;
}

.jr-video-poster::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 15, 30, 0.08) 0%, rgba(10, 15, 30, 0.45) 42%, rgba(10, 15, 30, 0.88) 100%),
    radial-gradient(ellipse 80% 60% at 50% 50%, transparent 20%, rgba(10, 15, 30, 0.35) 100%),
    var(--jr-poster-url, none) center/cover no-repeat;
  filter: brightness(var(--jr-poster-brightness, 1.35)) contrast(var(--jr-poster-contrast, 1.05)) saturate(1.04);
}

.jr-video-poster-hit {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  cursor: pointer;
}

.jr-video-play {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--gold);
  display: grid;
  place-items: center;
  box-shadow:
    0 0 0 10px rgba(245, 196, 0, 0.14),
    0 16px 48px rgba(0, 0, 0, 0.5);
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s ease;
}

.jr-video-poster-hit:hover .jr-video-play,
.jr-video-poster-hit:focus-visible .jr-video-play {
  transform: scale(1.07);
  box-shadow:
    0 0 0 12px rgba(245, 196, 0, 0.2),
    0 20px 56px rgba(0, 0, 0, 0.55);
}

.jr-video-play-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}

.jr-video-poster-hit:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 8px;
}

.jr-video {
  border: none;
  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-btn--link {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  width: auto;
}

.jr-step-link a {
  color: var(--gold);
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.jr-step-link a:hover { color: var(--text); }

.jr-step-link {
  margin-top: 24px;
  text-align: center;
}

.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;
}

/* ─── DIAGNOSTIC CTA (Start Here pattern) ─────────────────── */
.jr-cta {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(245, 196, 0, 0.08);
  text-align: center;
}

.jr-cta-inner {
  max-width: 560px;
  margin: 0 auto;
}

.jr-cta-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.jr-cta-heading {
  font-weight: 700;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  line-height: 1.25;
  margin-bottom: 14px;
}

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

.jr-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: var(--gold);
  color: #0a0f1e;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 8px;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
  box-shadow: 0 8px 32px rgba(245, 196, 0, 0.2);
}

.jr-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(245, 196, 0, 0.3);
}

.jr-cta-url {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

/* ─── 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; }
}
