/* /compare page styles */

:root {
  --cmp-bg:        #0f1629;
  --cmp-surface:   #1a2341;
  --cmp-surface2:  #1e2a47;
  --cmp-border:    rgba(255,255,255,0.08);
  --cmp-amber:     #f59e0b;
  --cmp-amber-dim: rgba(245,158,11,0.15);
  --cmp-text:      #f1f5f9;
  --cmp-muted:     #94a3b8;
  --cmp-faint:     #475569;
}

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

body {
  background: var(--cmp-bg);
  color: var(--cmp-text);
  font-family: 'DM Sans', system-ui, sans-serif;
  min-height: 100vh;
}

/* ── Header ────────────────────────────────────────────────────────── */
.cmp-header {
  border-bottom: 1px solid var(--cmp-border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cmp-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--cmp-text);
  text-decoration: none;
}
.cmp-header-cta {
  display: inline-block;
  background: var(--cmp-amber);
  color: #0f1629;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.cmp-header-cta:hover { opacity: 0.88; }

/* ── Page hero ─────────────────────────────────────────────────────── */
.cmp-hero {
  max-width: 860px;
  margin: 0 auto;
  padding: 52px 24px 0;
  text-align: center;
}
.cmp-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cmp-amber);
  margin-bottom: 12px;
}
.cmp-h1 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--cmp-text);
  margin-bottom: 14px;
}
.cmp-sub {
  font-size: 16px;
  color: var(--cmp-muted);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

/* ── Sliders card ──────────────────────────────────────────────────── */
.cmp-inputs-card {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}
.cmp-sliders {
  background: var(--cmp-surface);
  border: 1px solid var(--cmp-border);
  border-radius: 16px;
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
  align-items: end;
}
@media (max-width: 660px) {
  .cmp-sliders {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }
}

.cmp-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cmp-muted);
  margin-bottom: 10px;
}
.cmp-field .cmp-value-display {
  font-size: 22px;
  font-weight: 700;
  color: var(--cmp-amber);
  margin-bottom: 8px;
  display: block;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--cmp-border);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cmp-amber);
  cursor: pointer;
  border: 2px solid #0f1629;
  box-shadow: 0 0 0 2px rgba(245,158,11,0.3);
}
input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cmp-amber);
  cursor: pointer;
  border: 2px solid #0f1629;
}
.cmp-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--cmp-faint);
  margin-top: 4px;
}

.cmp-industry-select {
  width: 100%;
  background: var(--cmp-surface2);
  border: 1px solid var(--cmp-border);
  border-radius: 8px;
  color: var(--cmp-text);
  font-size: 14px;
  padding: 10px 12px;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.cmp-industry-select:focus {
  border-color: var(--cmp-amber);
}

/* ── Comparison table ─────────────────────────────────────────────── */
.cmp-table-wrap {
  max-width: 960px;
  margin: 32px auto 0;
  padding: 0 24px;
  overflow-x: auto;
}
.cmp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
  font-size: 14px;
}
.cmp-table th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cmp-faint);
  padding: 6px 14px;
  text-align: left;
  white-space: nowrap;
}
.cmp-table th:not(:first-child) { text-align: right; }
.cmp-table th.center { text-align: center; }

.cmp-row {
  background: var(--cmp-surface);
  border: 1px solid var(--cmp-border);
  transition: background 0.15s;
}
.cmp-row:hover { background: var(--cmp-surface2); }
.cmp-row.is-highlight {
  background: #1a2f5a;
  border: 2px solid var(--cmp-amber);
}
.cmp-row td {
  padding: 14px 14px;
  color: var(--cmp-text);
  vertical-align: middle;
}
.cmp-row td:first-child { border-radius: 10px 0 0 10px; }
.cmp-row td:last-child  { border-radius: 0 10px 10px 0; }

.cmp-lender-name {
  font-weight: 600;
  font-size: 15px;
}
.cmp-product-type {
  font-size: 11px;
  color: var(--cmp-faint);
  display: block;
  margin-top: 2px;
}
.cmp-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.cmp-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}
.cmp-badge-best {
  background: var(--cmp-amber);
  color: #0f1629;
}
.cmp-badge-noc {
  background: rgba(34,197,94,0.15);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,0.3);
}
.cmp-badge-human {
  background: rgba(99,102,241,0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99,102,241,0.3);
}
.cmp-badge-cap {
  background: rgba(239,68,68,0.1);
  color: #f87171;
  border: 1px solid rgba(239,68,68,0.2);
  font-size: 10px;
}

.cmp-amount-cell {
  text-align: right;
  font-size: 16px;
  font-weight: 700;
}
.cmp-row.is-highlight .cmp-amount-cell { color: var(--cmp-amber); }

.cmp-cell-right {
  text-align: right;
  color: var(--cmp-muted);
}
.cmp-cell-center { text-align: center; }

.cmp-collateral-yes { color: #f87171; }
.cmp-collateral-no  { color: #4ade80; }

.cmp-rate-text {
  font-size: 12px;
  color: var(--cmp-faint);
}
.cmp-skeleton td {
  padding: 14px;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 0.3; }
}

/* ── Savings callout ──────────────────────────────────────────────── */
.cmp-savings-bar {
  max-width: 960px;
  margin: 18px auto 0;
  padding: 0 24px;
}
.cmp-savings-inner {
  background: rgba(34,197,94,0.07);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 14px;
  color: #86efac;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cmp-savings-inner strong { color: #4ade80; }

/* ── Email gate / breakdown CTA ───────────────────────────────────── */
.cmp-gate {
  max-width: 620px;
  margin: 40px auto 0;
  padding: 0 24px;
}
.cmp-gate-card {
  background: var(--cmp-surface);
  border: 1px solid var(--cmp-border);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
}
.cmp-gate-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cmp-amber);
  margin-bottom: 10px;
}
.cmp-gate-h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.cmp-gate-sub {
  font-size: 14px;
  color: var(--cmp-muted);
  margin-bottom: 20px;
}
.cmp-gate-form {
  display: flex;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
}
@media (max-width: 540px) {
  .cmp-gate-form { flex-direction: column; }
}
.cmp-gate-input {
  flex: 1;
  background: var(--cmp-surface2);
  border: 1px solid var(--cmp-border);
  border-radius: 10px;
  color: var(--cmp-text);
  font-size: 14px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s;
}
.cmp-gate-input:focus { border-color: var(--cmp-amber); }
.cmp-gate-input::placeholder { color: var(--cmp-faint); }
.cmp-gate-btn {
  background: var(--cmp-amber);
  color: #0f1629;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.cmp-gate-btn:hover   { opacity: 0.88; }
.cmp-gate-btn:disabled { opacity: 0.5; cursor: wait; }
.cmp-gate-note {
  font-size: 12px;
  color: var(--cmp-faint);
  margin-top: 10px;
}
.cmp-gate-success {
  display: none;
  font-size: 15px;
  color: #4ade80;
  font-weight: 600;
  padding: 12px 0;
}
.cmp-gate-error {
  font-size: 13px;
  color: #f87171;
  margin-top: 8px;
  display: none;
}

/* ── Apply CTA ────────────────────────────────────────────────────── */
.cmp-apply-cta {
  max-width: 620px;
  margin: 32px auto;
  padding: 0 24px;
  text-align: center;
}
.cmp-apply-btn {
  display: inline-block;
  background: var(--cmp-amber);
  color: #0f1629;
  font-size: 16px;
  font-weight: 700;
  padding: 18px 40px;
  border-radius: 14px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.cmp-apply-btn:hover { opacity: 0.88; }
.cmp-apply-note {
  font-size: 13px;
  color: var(--cmp-faint);
  margin-top: 8px;
}

/* ── Citations / FAQ ──────────────────────────────────────────────── */
.cmp-citations {
  max-width: 860px;
  margin: 40px auto 0;
  padding: 0 24px;
}
.cmp-citations-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--cmp-faint);
  margin-bottom: 10px;
}
.cmp-citations-list {
  list-style: none;
}
.cmp-citations-list li {
  font-size: 11px;
  color: var(--cmp-faint);
  line-height: 1.6;
  padding: 2px 0;
}

.cmp-faq {
  max-width: 860px;
  margin: 40px auto 60px;
  padding: 0 24px;
}
.cmp-faq-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}
.cmp-faq-item {
  border-top: 1px solid var(--cmp-border);
  padding: 18px 0;
}
.cmp-faq-item:last-child { border-bottom: 1px solid var(--cmp-border); }
.cmp-faq-q {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--cmp-text);
}
.cmp-faq-a {
  font-size: 14px;
  color: var(--cmp-muted);
  line-height: 1.7;
}

/* ── Footer ───────────────────────────────────────────────────────── */
.cmp-footer {
  border-top: 1px solid var(--cmp-border);
  padding: 20px 24px;
  text-align: center;
  font-size: 12px;
  color: var(--cmp-faint);
}
.cmp-footer a { color: var(--cmp-faint); }
