/* ─── Base ─── */
html {
  scroll-behavior: smooth;
}

body,
button,
input,
select,
textarea {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ─── Override hardcoded Tailwind green hover states ─── */
.hover\:bg-green-800:hover,
.hover\:bg-green-700:hover {
  background-color: #1440b8 !important;
}

/* ─── Form accent → blue ─── */
input[type="radio"],
input[type="checkbox"] {
  accent-color: #1b4ed8;
}

/* ─── Document preview grid ─── */
.document-page {
  background:
    linear-gradient(90deg, rgba(30, 58, 138, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(30, 58, 138, 0.04) 1px, transparent 1px),
    #fff;
  background-size: 32px 32px;
}

/* ─── Signature pad ─── */
.signature-pad {
  background:
    linear-gradient(transparent 68%, rgba(27, 78, 216, 0.12) 68%),
    repeating-linear-gradient(0deg, #fff, #fff 23px, #e8f0fe 24px);
}

/* ─── Hero with photo ─── */
.hero-photo {
  background-image:
    linear-gradient(135deg, rgba(13, 33, 102, 0.94) 0%, rgba(27, 78, 216, 0.70) 100%),
    url("https://images.unsplash.com/photo-1450101499163-c8848c66ca85?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
  position: relative;
  overflow: hidden;
}

/* Subtle dot-grid overlay on hero */
.hero-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ─── Gradient text ─── */
.gradient-text {
  background: linear-gradient(135deg, #93c5fd, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Glass card (floating hero mockup) ─── */
.glass-card {
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
}

/* ─── Card hover lift ─── */
.card-lift {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.card-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(27, 78, 216, 0.11);
}

/* ─── Healthcare metric cards ─── */
.metric-card {
  position: relative;
  overflow: hidden;
}
.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  border-radius: 4px 0 0 4px;
}
.metric-card-blue::before  { background: linear-gradient(180deg, #2563eb, #1b4ed8); }
.metric-card-green::before { background: linear-gradient(180deg, #10b981, #059669); }
.metric-card-amber::before { background: linear-gradient(180deg, #f59e0b, #d97706); }
.metric-card-red::before   { background: linear-gradient(180deg, #ef4444, #dc2626); }

/* ─── Icon boxes ─── */
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: #1d4ed8;
  flex-shrink: 0;
}

/* ─── Step circles (How it works) ─── */
.step-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1b4ed8, #2563eb);
  color: white;
  font-size: 0.8125rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(27, 78, 216, 0.30);
}

/* ─── Trust badge pill ─── */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9999px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.18);
  color: #1d4ed8;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ─── CTA section gradient ─── */
.cta-gradient {
  background: linear-gradient(135deg, #0d2166 0%, #1b4ed8 100%);
  position: relative;
  overflow: hidden;
}
.cta-gradient::before {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}
.cta-gradient::after {
  content: '';
  position: absolute;
  left: 20%;
  bottom: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

/* ─── Auth brand panel (login/register left side) ─── */
.auth-brand-panel {
  background: linear-gradient(160deg, #0d2166 0%, #1b4ed8 100%);
  position: relative;
  overflow: hidden;
}
.auth-brand-panel::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
.auth-brand-panel::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

/* ─── Float animation (hero mockup card) ─── */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}
.float-animation {
  animation: float 5s ease-in-out infinite;
}

/* ─── Fade-in-up ─── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
}

/* ─── Print ─── */
@media print {
  header,
  footer,
  .no-print {
    display: none;
  }
}
