/* ==========================================================================
   InspectAura — Shared Design System
   Brand: deep trust blue #0f172a + safety gold #f59e0b
   Mobile-first. No external font/CSS dependencies (Netlify Drop safe).
   ========================================================================== */

:root {
  --navy-950: #0b1220;
  --navy-900: #0f172a;
  --navy-800: #16213b;
  --navy-700: #1e2c4d;
  --navy-600: #2c3d63;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-100: #f1f5f9;
  --gold-500: #f59e0b;
  --gold-400: #fbbf24;
  --gold-050: #fff7e6;
  --green-600: #16a34a;
  --green-050: #ecfdf3;
  --red-600: #dc2626;
  --red-050: #fef2f2;
  --white: #ffffff;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 10px 30px -12px rgba(15, 23, 42, 0.25);
  --max-width: 1160px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--navy-900);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
section { padding: 64px 0; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 16px; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 16px; color: var(--navy-700); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 14px;
}
.eyebrow::before { content: "—"; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  min-height: 48px;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold-500); color: var(--navy-900); }
.btn-primary:hover { background: var(--gold-400); }
.btn-outline { background: transparent; border-color: var(--slate-300); color: var(--navy-900); }
.btn-outline:hover { border-color: var(--navy-900); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.35); color: var(--white); }
.btn-outline-light:hover { border-color: var(--white); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* Header / Nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--white); font-weight: 800; font-size: 1.15rem; text-decoration: none;
}
.brand-badge {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--gold-500); color: var(--navy-900);
  display: flex; align-items: center; justify-content: center; font-weight: 900;
}
.nav-links {
  display: none;
  align-items: center; gap: 28px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  color: var(--slate-300); text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--white); }
.nav-cta { display: none; }
.nav-toggle {
  display: inline-flex; background: none; border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-sm); color: var(--white); padding: 8px 10px; cursor: pointer;
}
.mobile-menu { display: none; flex-direction: column; gap: 4px; padding: 8px 20px 18px; }
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--slate-300); text-decoration: none; padding: 10px 4px; font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-menu .btn { margin-top: 10px; }

@media (min-width: 860px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* Hero (dark section) */
.hero {
  background: radial-gradient(circle at 15% 0%, var(--navy-800), var(--navy-950) 60%);
  color: var(--white);
  padding: 56px 0 64px;
}
.hero .eyebrow { color: var(--gold-400); }
.hero h1 { color: var(--white); }
.hero h1 mark { background: none; color: var(--gold-500); }
.hero-sub { color: var(--slate-300); font-size: 1.05rem; max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 8px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
}

/* Section helpers */
.section-light { background: var(--white); }
.section-tint { background: var(--slate-100); }
.section-dark { background: var(--navy-900); color: var(--white); }
.section-dark p { color: var(--slate-300); }
.section-head { max-width: 640px; margin-bottom: 40px; }

/* Cards */
.card {
  background: var(--white);
  border: 1px solid #e6eaf0;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } .grid-5 { grid-template-columns: repeat(5, 1fr); } }

/* Pricing */
.price-card {
  display: flex; flex-direction: column; gap: 10px;
  border: 2px solid #e6eaf0; border-radius: var(--radius-lg);
  padding: 28px 24px; background: var(--white);
}
.price-card.featured {
  border-color: var(--gold-500);
  box-shadow: 0 16px 40px -18px rgba(245, 158, 11, 0.45);
  position: relative;
}
.price-card .badge {
  position: absolute; top: -13px; left: 24px;
  background: var(--gold-500); color: var(--navy-900);
  font-size: 0.72rem; font-weight: 800; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 999px; text-transform: uppercase;
}
.price-amount { font-size: 2.4rem; font-weight: 800; color: var(--navy-900); }
.price-amount span { font-size: 1rem; font-weight: 600; color: var(--slate-400); }
.price-list { list-style: none; padding: 0; margin: 14px 0 20px; display: flex; flex-direction: column; gap: 10px; }
.price-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.94rem; color: var(--navy-700); }
.price-list li::before { content: "✓"; color: var(--green-600); font-weight: 800; }

/* Forms */
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid #d7dce4; font-size: 1rem; font-family: inherit;
  background: var(--white); color: var(--navy-900);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px var(--gold-050);
}
.form-check { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0; font-size: 0.9rem; color: var(--navy-700); }
.form-check input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; }
.form-note { font-size: 0.82rem; color: var(--slate-400); margin-top: 10px; }
.form-error { border-color: var(--red-600) !important; }
.field-error-msg { color: var(--red-600); font-size: 0.82rem; margin-top: 4px; display: none; }
.field-error-msg.show { display: block; }

/* Status banners */
.banner {
  border-radius: var(--radius-md); padding: 16px 18px; font-size: 0.94rem; margin-bottom: 20px;
  display: flex; gap: 10px; align-items: flex-start;
}
.banner-success { background: var(--green-050); color: #14532d; border: 1px solid #bbf7d0; }
.banner-error { background: var(--red-050); color: #7f1d1d; border: 1px solid #fecaca; }
.banner-mock { background: var(--gold-050); color: #7c4a03; border: 1px dashed var(--gold-500); font-weight: 600; }

/* Payment modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(11,18,32,0.6);
  display: none; align-items: flex-start; justify-content: center;
  padding: 24px 16px; z-index: 100; overflow-y: auto;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white); border-radius: var(--radius-lg);
  max-width: 480px; width: 100%; padding: 28px; position: relative;
  margin-top: 40px;
}
.modal-box.modal-wide { max-width: 680px; }
.modal-close {
  position: absolute; top: 14px; right: 14px; border: none; background: none;
  font-size: 1.4rem; cursor: pointer; color: var(--slate-400); line-height: 1;
  width: 32px; height: 32px;
}
.modal-kicker { text-transform: uppercase; letter-spacing: .06em; font-size: 0.75rem; font-weight: 800; color: var(--gold-500); }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #eef1f5; font-size: 0.94rem; }
.summary-row.total { font-weight: 800; font-size: 1.1rem; border-bottom: none; padding-top: 14px; }
.legal-text { max-height: 50vh; overflow-y: auto; font-size: 0.9rem; color: var(--navy-700); padding-right: 6px; }
.legal-text h3 { font-size: 1rem; margin-top: 18px; }

/* Footer */
.site-footer { background: var(--navy-950); color: var(--slate-300); padding: 48px 0 24px; }
.footer-grid { display: grid; gap: 28px; margin-bottom: 32px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.3fr repeat(3, 1fr); } }
.footer-col h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; }
.footer-col a { display: block; color: var(--slate-400); text-decoration: none; font-size: 0.92rem; padding: 5px 0; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  font-size: 0.82rem; color: var(--slate-400);
}

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.small-note { font-size: 0.82rem; color: var(--slate-400); }
.tag {
  display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
}
.tag-mock { background: var(--gold-050); color: #7c4a03; border: 1px dashed var(--gold-500); }
.tag-sample { background: #eef2ff; color: #3730a3; }
.tag-active { background: var(--green-050); color: #15803d; }

/* Page hero (secondary pages, lighter than home hero) */
.page-hero { background: var(--navy-900); color: var(--white); padding: 48px 0 40px; }
.page-hero p { color: var(--slate-300); max-width: 60ch; }

/* Simple table (admin) */
table.simple-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.simple-table th, table.simple-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #eef1f5; }
table.simple-table th { color: var(--slate-400); text-transform: uppercase; font-size: 0.72rem; letter-spacing: .04em; }
.status-pill { padding: 3px 10px; border-radius: 999px; font-size: 0.76rem; font-weight: 700; display: inline-block; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-progress { background: #dbeafe; color: #1e40af; }
.status-ready { background: #dcfce7; color: #166534; }
.status-cancelled { background: #fee2e2; color: #991b1b; }

.stat-tile { background: var(--white); border: 1px solid #e6eaf0; border-radius: var(--radius-md); padding: 18px; }
.stat-tile .stat-label { font-size: 0.78rem; color: var(--slate-400); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.stat-tile .stat-value { font-size: 1.7rem; font-weight: 800; color: var(--navy-900); }

@media (max-width: 480px) {
  section { padding: 44px 0; }
  .modal-box { padding: 20px; margin-top: 20px; }
}
