/* =========================================
   Riskernel Brand Overrides
   Navy/Blue financial trust theme
   Overrides Startly purple/orange defaults
   ========================================= */

:root {
  --colors--brand-prime: #1B6FA8;
  --colors--brand-prime-hover: #155D8C;
  --colors--brand-second: #5AAED6;
  --colors--brand-second-hover: #3D9AC8;
  --colors--brand-third: #10B981;
  --colors--brand-fourth: #F59E0B;
  --colors--brand-fifth: #EF4444;
  --colors--brand-sixth: #6366F1;
}

/* Terminal / API response block */
.rk-terminal {
  background: #0F172A;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 100%;
}

.rk-terminal-header {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rk-terminal-dots {
  display: flex;
  gap: 6px;
}

.rk-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.rk-dot-red { background: #EF4444; }
.rk-dot-yellow { background: #F59E0B; }
.rk-dot-green { background: #10B981; }

.rk-terminal-title {
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.75rem;
  color: #94A3B8;
}

.rk-code {
  padding: 20px;
  margin: 0;
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.8rem;
  line-height: 1.7;
  color: #E2E8F0;
  overflow-x: auto;
  white-space: pre;
}

.rk-key { color: #93C5FD; }
.rk-str { color: #86EFAC; }
.rk-num { color: #FCD34D; }
.rk-danger { color: #FCA5A5; }
.rk-kw { color: #C4B5FD; }
.rk-cmt { color: #6B7280; }

.rk-score-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 20px;
}

.rk-score-fill {
  height: 100%;
  background: linear-gradient(90deg, #10B981 0%, #F59E0B 50%, #EF4444 100%);
  border-radius: 2px;
  transition: width 1s ease;
}

.rk-score-labels {
  display: flex;
  justify-content: space-between;
  padding: 8px 20px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.rk-score-low { color: #10B981; }
.rk-score-med { color: #F59E0B; }
.rk-score-high { color: #EF4444; }

/* Code tabs */
.rk-code-tabs {
  display: flex;
  gap: 0;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rk-tab {
  padding: 10px 20px;
  background: none;
  border: none;
  color: #94A3B8;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.rk-tab.active {
  color: #60A5FA;
  border-bottom-color: #3B82F6;
  background: rgba(59, 130, 246, 0.1);
}

.rk-tab:hover { color: #FFFFFF; }

/* SHAP explanation bars */
.rk-explanations {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 1.5rem;
}

.rk-explanation-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
}

.rk-explanation-bar {
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-left: 3px solid #3B82F6;
}

.rk-explanation-label {
  font-size: 0.875rem;
  font-weight: 600;
}

.rk-explanation-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  opacity: 0.7;
}

/* Timeline comparison */
.rk-timeline {
  max-width: 700px;
  margin: 2rem auto 0;
}

.rk-timeline-row {
  margin-bottom: 1rem;
}

.rk-timeline-label {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.rk-timeline-bar {
  display: flex;
  justify-content: space-between;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
}

.rk-timeline-fast {
  background: linear-gradient(90deg, #10B981, rgba(16, 185, 129, 0.3));
  color: #065F46;
}

.rk-timeline-slow {
  background: linear-gradient(90deg, #EF4444, rgba(239, 68, 68, 0.15));
  color: #991B1B;
}

/* Inventor quote */
.rk-quote {
  font-size: 1.15rem;
  font-style: italic;
  border-left: 4px solid var(--colors--brand-prime);
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Waitlist form */
.rk-waitlist-form {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
}

.rk-email-input {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1rem;
  outline: none;
  font-family: inherit;
}

.rk-email-input::placeholder { color: #94A3B8; }
.rk-email-input:focus { border-color: #3B82F6; }

.rk-waitlist-note {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.8rem;
  opacity: 0.6;
}

/* Pricing grid override for 4 columns */
.rk-pricing-4 {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-column-gap: 1.5rem;
  grid-row-gap: 1.5rem;
}

@media screen and (max-width: 991px) {
  .rk-pricing-4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media screen and (max-width: 479px) {
  .rk-pricing-4 { grid-template-columns: minmax(0, 1fr) !important; }
  .rk-waitlist-form { flex-direction: column; }
  .rk-timeline-bar { flex-direction: column; gap: 4px; }
}

/* Footer fix */
.section.footer {
  padding-top: 2.5rem !important;
  padding-bottom: 1.5rem !important;
  min-height: 0 !important;
  height: auto !important;
}
.section.footer .footer-extended {
  padding: 0 !important;
  min-height: 0 !important;
}
.section.footer .footer-cta-section {
  display: none !important;
}

/* JetBrains Mono font */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap');
