/* Carry Shield Quote - Design System */

/* === CSS Variables === */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12131a;
  --bg-tertiary: #1a1b25;
  --border: #2a2b35;
  --text-primary: #e8e8ec;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --accent: #c9a227;
  --accent-hover: #d4af37;
  --cta: #dc2626;
  --cta-hover: #ef4444;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 12px;
  --radius-sm: 8px;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-primary);
}
h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
p { color: var(--text-secondary); }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-muted { color: var(--text-muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* === Layout === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header p { margin-top: 16px; font-size: 1.125rem; max-width: 640px; margin-left: auto; margin-right: auto; }

/* === Cards === */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.card-accent { border-top: 3px solid var(--accent); }
.card-hover { transition: border-color 0.2s, transform 0.2s; }
.card-hover:hover { border-color: var(--accent); transform: translateY(-2px); }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 1rem; border: none; cursor: pointer;
  border-radius: var(--radius-sm); padding: 16px 32px;
  transition: background 0.2s, transform 0.1s; text-decoration: none;
}
.btn:active { transform: scale(0.98); }
.btn-cta { background: var(--cta); color: #fff; }
.btn-cta:hover { background: var(--cta-hover); color: #fff; }
.btn-accent { background: var(--accent); color: #0a0a0f; }
.btn-accent:hover { background: var(--accent-hover); color: #0a0a0f; }
.btn-outline { background: transparent; border: 1px solid var(--accent); color: var(--accent); }
.btn-outline:hover { background: rgba(201,162,39,0.1); }
.btn-lg { font-size: 1.125rem; padding: 18px 40px; border-radius: var(--radius); }
.btn-sm { font-size: 0.875rem; padding: 10px 20px; }
.btn-block { width: 100%; }

/* === Grid Helpers === */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }

/* === Stats === */
.stat-number {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--accent);
  line-height: 1;
}
.stat-label { font-size: 0.875rem; color: var(--text-muted); margin-top: 8px; }

/* === Progress Bar (Quiz) === */
.progress-bar {
  display: flex; gap: 6px; width: 100%; max-width: 400px; margin: 0 auto;
}
.progress-segment {
  flex: 1; height: 6px; border-radius: 3px;
  background: var(--bg-tertiary); transition: background 0.3s;
}
.progress-segment.active { background: var(--accent); }

/* === Comparison Table === */
.comparison-table { width: 100%; border-collapse: collapse; }
.comparison-table th {
  background: var(--bg-tertiary); padding: 16px; text-align: left;
  font-weight: 700; border-bottom: 2px solid var(--accent);
  position: sticky; top: 0; z-index: 10;
}
.comparison-table td {
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.comparison-table tr:nth-child(even) td { background: rgba(255,255,255,0.02); }
.comparison-table .check { color: var(--success); font-weight: 700; }
.comparison-table .cross { color: var(--danger); font-weight: 700; }
.table-wrapper { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }

/* === Testimonial Cards === */
.testimonial {
  border-left: 4px solid var(--accent);
  padding: 24px 24px 24px 28px;
  background: var(--bg-secondary);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}
.testimonial .outcome { font-style: normal; font-weight: 700; margin-top: 12px; color: var(--text-primary); }

/* === Nav === */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,10,15,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-brand {
  font-weight: 700; font-size: 1.125rem; color: var(--text-primary);
  text-decoration: none; display: flex; align-items: center; gap: 8px;
}
.nav-brand img { width: 28px; height: 28px; }
.nav-brand span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  color: var(--text-secondary); text-decoration: none; font-size: 0.9375rem;
  font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-toggle { display: none; background: none; border: none; color: var(--text-primary); cursor: pointer; padding: 8px; }
body { padding-top: 64px; }

/* === Footer === */
.site-footer {
  background: var(--bg-secondary); border-top: 1px solid var(--border);
  padding: 40px 0; margin-top: 80px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
}
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { color: var(--text-muted); font-size: 0.875rem; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { color: var(--text-muted); font-size: 0.8125rem; }
.footer-disclaimer { width: 100%; text-align: center; margin-top: 16px; font-size: 0.75rem; color: var(--text-muted); }

/* === Badge === */
.badge {
  display: inline-block; padding: 6px 14px; border-radius: 20px;
  font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.badge-danger { background: rgba(239,68,68,0.15); color: var(--danger); }
.badge-warning { background: rgba(245,158,11,0.15); color: var(--warning); }
.badge-success { background: rgba(34,197,94,0.15); color: var(--success); }
.badge-gold { background: rgba(201,162,39,0.15); color: var(--accent); }

/* === Cost Bar Chart === */
.cost-bar {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.cost-bar-label { min-width: 140px; font-size: 0.875rem; color: var(--text-secondary); text-align: right; }
.cost-bar-fill {
  height: 32px; border-radius: 4px; background: var(--accent);
  display: flex; align-items: center; padding: 0 12px;
  font-size: 0.8125rem; font-weight: 700; color: #0a0a0f;
  transition: width 0.6s ease;
}

/* === Scrollbar === */
::-webkit-scrollbar { width: 16px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background-color: var(--bg-tertiary); border-radius: 8px;
  border: 4px solid transparent; background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background-color: var(--border); }

/* === Responsive === */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  section { padding: 48px 0; }
  .card { padding: 24px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 64px; left: 0; right: 0; background: var(--bg-secondary);
    border-bottom: 1px solid var(--border); padding: 16px 24px; gap: 16px;
  }
  .nav-toggle { display: block; }
  .footer-inner { flex-direction: column; text-align: center; }
  .stat-number { font-size: 2rem; }
  .cost-bar-label { min-width: 100px; font-size: 0.75rem; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.625rem; }
  .container { padding: 0 16px; }
  .btn-lg { padding: 16px 24px; font-size: 1rem; }
}
