/* Sparkle5 — custom overrides on top of Tailwind CDN */

:root {
  --navy-950: #060c1a;
  --navy-900: #0a0f1e;
  --navy-800: #0f172a;
  --navy-700: #1e293b;
  --navy-600: #334155;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --glow: rgba(37, 99, 235, 0.25);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px; /* offset for fixed nav */
  overflow-x: hidden;
}

body {
  background-color: var(--navy-900);
  color: #f1f5f9;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* ── Grid background for hero ── */
.hero-grid {
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── Blue glow blobs ── */
.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

/* ── Gradient text ── */
.gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #2563eb 50%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Card with border glow ── */
.card {
  background: var(--navy-800);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 0 24px rgba(37, 99, 235, 0.12);
}

/* ── Featured plan card ── */
.card-featured {
  background: linear-gradient(145deg, #0f172a, #0f1f3d);
  border: 1px solid rgba(37, 99, 235, 0.5);
  box-shadow: 0 0 32px rgba(37, 99, 235, 0.18);
}

/* ── Nav ── */
.nav-link {
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
  text-decoration: none;
}
.nav-link:hover { color: #f1f5f9; }
.nav-link.active { color: #60a5fa; }

/* ── Buttons ── */
.btn-primary {
  background: var(--blue-600);
  color: #fff;
  padding: 0.625rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.15s, transform 0.1s;
  border: none;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}
.btn-primary:hover { background: #1d4ed8; transform: translateY(-1px); }

.btn-outline {
  border: 1px solid rgba(37, 99, 235, 0.5);
  color: var(--blue-400);
  padding: 0.625rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.15s;
  background: transparent;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}
.btn-outline:hover {
  border-color: var(--blue-500);
  background: rgba(37, 99, 235, 0.1);
  color: #fff;
}

.btn-ghost {
  color: #94a3b8;
  padding: 0.625rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.15s, background 0.15s;
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}
.btn-ghost:hover { color: #f1f5f9; background: rgba(255,255,255,0.05); }

/* ── Section labels ── */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-400);
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.25);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

/* ── Flash messages ── */
.flash-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
}
.flash-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
}
.flash-info {
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.35);
  color: #93c5fd;
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
}

/* ── Form inputs ── */
.form-input {
  width: 100%;
  background: var(--navy-800);
  border: 1px solid var(--navy-600);
  border-radius: 8px;
  color: #f1f5f9;
  padding: 0.625rem 0.875rem;
  font-size: 0.9rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.form-input::placeholder { color: #475569; }
.form-input:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
select.form-input option { background: var(--navy-800); }

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Tables ── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.data-table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #475569;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--navy-700);
}
.data-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid rgba(30, 41, 59, 0.5);
  color: #cbd5e1;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(37, 99, 235, 0.04); }

/* ── Status badges ── */
.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}
.badge-green  { background: rgba(16, 185, 129, 0.12); color: #6ee7b7; border: 1px solid rgba(16,185,129,0.25); }
.badge-blue   { background: rgba(37, 99, 235, 0.12);  color: #93c5fd; border: 1px solid rgba(37,99,235,0.25); }
.badge-yellow { background: rgba(245, 158, 11, 0.12); color: #fcd34d; border: 1px solid rgba(245,158,11,0.25); }
.badge-red    { background: rgba(239, 68, 68, 0.12);  color: #fca5a5; border: 1px solid rgba(239,68,68,0.25); }
.badge-gray   { background: rgba(100, 116, 139, 0.12); color: #94a3b8; border: 1px solid rgba(100,116,139,0.25); }

/* ── Footer ── */
footer {
  background: var(--navy-950);
  border-top: 1px solid rgba(30, 41, 59, 0.8);
}

/* ── Divider ── */
.divider {
  border: none;
  border-top: 1px solid var(--navy-700);
  margin: 0;
}

/* ── Prose (legal pages) ── */
.prose h2 { font-size: 1.25rem; font-weight: 700; color: #f1f5f9; margin: 2rem 0 0.75rem; }
.prose h3 { font-size: 1rem; font-weight: 600; color: #e2e8f0; margin: 1.5rem 0 0.5rem; }
.prose p  { color: #94a3b8; line-height: 1.75; margin-bottom: 1rem; }
.prose ul { color: #94a3b8; line-height: 1.75; padding-left: 1.5rem; list-style: disc; margin-bottom: 1rem; }
.prose a  { color: var(--blue-400); text-decoration: underline; }

/* ── Mobile menu ── */
#mobile-menu { display: none; }
#mobile-menu.open { display: block; }

/* Hide hamburger and mobile menu on desktop (≥768px) */
@media (min-width: 768px) {
  #nav-toggle  { display: none !important; }
  #mobile-menu { display: none !important; }
}

/* ── Mobile touch targets ── */
@media (max-width: 767px) {
  .btn-primary, .btn-outline, .btn-ghost {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .nav-link { min-height: 44px; display: flex; align-items: center; }

  /* Prevent table overflow */
  .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Tighter hero padding on small screens */
  .hero-mobile-py { padding-top: 5rem; padding-bottom: 5rem; }
}

/* ── Responsive table scroll hint ── */
.table-scroll::-webkit-scrollbar { height: 4px; }
.table-scroll::-webkit-scrollbar-track { background: var(--navy-700); }
.table-scroll::-webkit-scrollbar-thumb { background: var(--blue-600); border-radius: 2px; }

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.6s ease both; }
.delay-100  { animation-delay: 0.1s; }
.delay-200  { animation-delay: 0.2s; }
.delay-300  { animation-delay: 0.3s; }
