/* Arbitrage Leads — brand additions on top of Tailwind (CDN). Charcoal + crimson. */

:root {
  --brand: #b91c1c;
  --brand-dark: #991b1b;
  --charcoal: #111827;
}

/* IP-protection deterrent for module content (a speed bump; watermark is the real deterrent). */
.sop-content { user-select: none; -webkit-user-select: none; }
.sop-content h3 { font-size: 1.15rem; font-weight: 600; color: #1e293b; margin: 1.25rem 0 0.5rem; }
.sop-content h3:first-child { margin-top: 0; }
.sop-content .lead { color: #475569; font-weight: 500; margin: 0.25rem 0 0.5rem; }
.sop-content ul { list-style: disc; padding-left: 1.5rem; margin: 0.5rem 0 1rem; }
.sop-content li { margin: 0.35rem 0; color: #334155; line-height: 1.5; }
.sop-content .module-slide { padding-bottom: 1rem; border-bottom: 1px solid #f1f5f9; margin-bottom: 1rem; }
.sop-content .module-slide:last-child { border-bottom: none; }

/* Per-user watermark overlay. */
.watermark {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  display: flex; flex-wrap: wrap; align-content: flex-start; gap: 3.5rem 4rem;
  transform: rotate(-24deg) scale(1.4); opacity: 0.05;
}
.watermark span { font-size: 0.8rem; color: #0f172a; white-space: nowrap; }
main { position: relative; z-index: 1; }

/* Brand accents */
.brand-bar { background: var(--charcoal); }
.text-brand { color: var(--brand); }
.hover\:text-brand:hover { color: var(--brand); }

/* ---- App shell: sidebar + content column + pinned footer ---- */
.app-shell { display: flex; min-height: 100vh; }
.app-main-col { flex: 1 1 0%; display: flex; flex-direction: column; min-width: 0; }
/* The page's own <main> is a direct child — make it grow so the footer pins to the bottom. */
.app-main-col > main { flex: 1 0 auto; width: 100%; }

.app-sidebar { background: var(--charcoal); color: #cbd5e1; }
.app-topbar {
  height: 3.5rem; flex: none; display: flex; align-items: center;
  gap: 0.5rem; padding: 0 1rem; background: #fff;
  border-bottom: 1px solid #e2e8f0; position: sticky; top: 0; z-index: 20;
}
@media (min-width: 768px) { .app-topbar { padding: 0 1.5rem; } }

.app-footer {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.85rem 1.5rem; font-size: 0.72rem; color: #94a3b8;
  border-top: 1px solid #e2e8f0; background: #fff;
}

.side-link {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.55rem 0.75rem; border-radius: 0.5rem;
  font-size: 0.875rem; color: #cbd5e1; transition: background .15s, color .15s;
}
.side-link:hover { background: rgba(255,255,255,0.06); color: #fff; }
.side-link.active { background: var(--brand); color: #fff; font-weight: 500; }
.side-link.active:hover { background: var(--brand-dark); }

/* Auth / public hero background: subtle ink-splatter watermark of the target icon. */
.brand-hero {
  background-color: #0b0b0d;
  background-image:
    radial-gradient(circle at 50% 40%, rgba(185,28,28,0.18), transparent 45%),
    url('/static/img/favicon.png');
  background-repeat: no-repeat;
  background-position: center 42%;
  background-size: 340px auto;
}

/* Multi-step apply wizard */
.wizard-step { display: none; }
.wizard-step.active { display: block; }
.wizard-progress-bar { transition: width 0.25s ease; }
.q-required::after { content: " *"; color: var(--brand); }
