/* ==========================================================================
   InsuranceCheck — systematic design system
   Palette: cool navy / ice (no pure-white sections)
   ========================================================================== */

:root {
  --canvas: #d7e3f2;
  --section: #c5d4e8;
  --card: #e8f0fa;
  --ink: #0b1f3a;
  --muted: #334e6e;
  --header: #0b1929;
  --cta: #1d4ed8;
  --success: #047857;
  --warn: #b45309;
  --risk: #b91c1c;
  --line: #9eb4d0;
}

html,
body {
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: var(--canvas);
  color: var(--ink);
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

/* ---------- Typography contrast ---------- */
h1, h2, h3, h4, h5 {
  color: var(--ink);
}

p, li, label, td, th, summary {
  color: inherit;
}

/* ---------- Navigation ---------- */
.nav-link {
  color: #cbd5e1;
  font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link.active {
  color: #ffffff;
  border-bottom-color: #60a5fa;
}

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.mobile-menu.open {
  max-height: 420px;
}

/* ---------- Surfaces ---------- */
.policy-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(11, 31, 58, 0.08);
  color: var(--ink);
}

.policy-panel h3 {
  color: var(--ink);
}

header.bg-headerc {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-label {
  display: inline-block;
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cta);
}

.data-grid-dark {
  background-image:
    linear-gradient(rgba(96, 165, 250, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ---------- Badges / pills ---------- */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #065f46;
  background: #d1fae5;
  border: 1px solid #6ee7b7;
}

.gap-pill {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #92400e;
  background: #fde68a;
  border: 1px solid #fbbf24;
}

.risk-pill {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #991b1b;
  background: #fecaca;
  border: 1px solid #f87171;
}

/* ---------- Verification stamp ---------- */
.verification-stamp {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(29, 78, 216, 0.12);
  border: 1px solid rgba(29, 78, 216, 0.28);
  color: var(--cta);
  font-size: 18px;
}

/* ---------- Coverage meter ---------- */
.coverage-meter {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  height: 10px;
}

.coverage-meter .segment {
  background: #b7c9df;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.coverage-meter .segment.filled {
  background: var(--success);
}

.coverage-meter .segment.filled.warn {
  background: var(--warn);
}

.coverage-meter .segment .sheen {
  position: absolute;
  inset: 0;
  animation: sheen 1.2s ease-out both;
}

@keyframes sheen {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

/* ---------- Checklist ---------- */
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.check-row .font-medium {
  color: var(--ink);
}

.check-row:last-child {
  border-bottom: 0;
}

.check-box {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 6px;
  border: 2px solid var(--cta);
  background: var(--card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.check-box.checked {
  background: var(--cta);
  border-color: var(--cta);
}

/* ---------- Forms ---------- */
input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
  background: var(--card) !important;
  color: var(--ink) !important;
  border: 1.5px solid var(--line) !important;
  border-radius: 10px;
}

input::placeholder,
textarea::placeholder {
  color: #5b7394;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--cta) !important;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.18);
}

/* ---------- Table ---------- */
.matrix-table {
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

.matrix-table th {
  background: #b7c9df;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.matrix-table td {
  color: var(--ink);
  font-size: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}

.matrix-table tbody tr:last-child td {
  border-bottom: 0;
}

/* ---------- Claims timeline ---------- */
.claim-timeline {
  position: relative;
}

.timeline-node {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cta);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 6px rgba(29, 78, 216, 0.16);
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Dark-band text ---------- */
.bg-headerc h1,
.bg-headerc h2,
.bg-headerc h3,
footer h4 {
  color: #ffffff;
}

.bg-headerc .text-muted,
footer .text-muted {
  color: #94a3b8 !important;
}

/* ---------- Filter chips ---------- */
.filter-btn {
  background: var(--card);
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.filter-btn.is-active {
  background: var(--cta);
  color: #fff;
  border-color: var(--cta);
}
