/* ─────────────────────────────────────────────────────────────
   CHAD KUNTZ SYSTEMS — YouTube channel gate
   ───────────────────────────────────────────────────────────── */

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

:root {
  --bg: #0a0f1e;
  --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-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --nav-h: 64px;
  --max-w: 860px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body.cks-page {
  position: relative;
  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 { display: block; max-width: 100%; height: auto; }

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

.cks-accent-left {
  position: fixed;
  top: 0;
  left: 0;
  width: 3px;
  height: 100vh;
  background: var(--gold);
  z-index: 200;
  pointer-events: none;
}

.cks-accent-bottom {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 5px;
  background: var(--gold);
  z-index: 200;
  pointer-events: none;
}

/* ─── NAV ─────────────────────────────────────────────────── */
.cks-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);
}

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

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

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

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

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

.cks-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 14px;
}

.cks-divider {
  width: 280px;
  max-width: 60%;
  height: 1px;
  margin: 0 auto 32px;
  background: rgba(245, 196, 0, 0.28);
}

.cks-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 12px;
}

.cks-tagline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 3vw, 1.65rem);
  line-height: 1.25;
  color: var(--gold);
  text-align: center;
  margin-bottom: 36px;
}

.cks-banner-preview {
  margin-bottom: 40px;
  border: 1px solid rgba(245, 196, 0, 0.12);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.cks-banner-preview img {
  width: 100%;
  aspect-ratio: 2048 / 1152;
  object-fit: cover;
}

.cks-banner-note {
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.cks-gate-copy {
  margin-bottom: 28px;
  text-align: center;
}

.cks-gate-heading {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 600;
  margin-bottom: 10px;
}

.cks-body {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto;
}

.cks-body strong { color: var(--gold); font-weight: 600; }

/* ─── FORM ────────────────────────────────────────────────── */
.cks-form-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.cks-input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  -webkit-appearance: none;
}

.cks-input::placeholder { color: var(--text-faint); }

.cks-input:focus {
  border-color: rgba(245, 196, 0, 0.45);
  background: rgba(255, 255, 255, 0.06);
}

.cks-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  background: rgba(245, 196, 0, 0.12);
  border: 1px solid rgba(245, 196, 0, 0.35);
  border-radius: 8px;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease-out);
}

.cks-btn:hover {
  background: rgba(245, 196, 0, 0.2);
  border-color: rgba(245, 196, 0, 0.6);
  transform: translateY(-1px);
}

.cks-btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.cks-btn--solid {
  margin-top: 20px;
  background: var(--gold);
  border-color: var(--gold);
  color: #0a0f1e;
}

.cks-btn--solid:hover {
  background: #ffcf1a;
  border-color: #ffcf1a;
}

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

.cks-form-error {
  margin-top: 10px;
  font-size: 0.8125rem;
  color: #f87171;
  text-align: left;
}

.cks-form-note {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  text-align: center;
}

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

/* ─── PROCESSING ──────────────────────────────────────────── */
.cks-processing,
.cks-ready {
  animation: cksFadeIn 0.45s var(--ease-out) both;
}

@keyframes cksFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.cks-processing-card,
.cks-ready-card {
  max-width: 520px;
  margin: 0 auto;
  padding: 40px 32px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(245, 196, 0, 0.1);
  border-radius: 16px;
}

.cks-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 24px;
  border: 2px solid rgba(245, 196, 0, 0.15);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: cksSpin 0.9s linear infinite;
}

@keyframes cksSpin {
  to { transform: rotate(360deg); }
}

.cks-processing-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.cks-processing-title,
.cks-ready-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 10px;
}

.cks-processing-body,
.cks-ready-body {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 28px;
}

.cks-ready-body strong { color: var(--gold); }

.cks-steps {
  list-style: none;
  text-align: left;
  margin-bottom: 24px;
}

.cks-step {
  position: relative;
  padding: 10px 0 10px 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  transition: color 0.25s ease;
}

.cks-step::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(245, 196, 0, 0.25);
  background: transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.cks-step.is-active {
  color: var(--gold);
}

.cks-step.is-active::before {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(245, 196, 0, 0.35);
}

.cks-step.is-done {
  color: #6ee7b7;
}

.cks-step.is-done::before {
  background: #6ee7b7;
  border-color: #6ee7b7;
}

.cks-progress {
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.cks-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(245, 196, 0, 0.5), var(--gold));
  border-radius: 999px;
  transition: width 0.5s var(--ease-out);
}

.cks-ready-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
  font-size: 1.5rem;
  font-weight: 700;
}

.cks-countdown {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-bottom: 4px;
}

/* ─── FOOTER ──────────────────────────────────────────────── */
.cks-footer {
  padding: 32px 24px 48px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.cks-handle {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(245, 196, 0, 0.7);
  margin-bottom: 10px;
}

.cks-footer p {
  font-size: 0.8125rem;
  color: var(--text-faint);
}

.cks-footer-legal {
  margin-top: 12px;
  font-size: 0.75rem !important;
  line-height: 1.5;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.cks-footer-legal a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 560px) {
  .cks-form-row {
    flex-direction: column;
  }

  .cks-btn {
    width: 100%;
  }

  .cks-processing-card,
  .cks-ready-card {
    padding: 32px 20px;
  }
}
