/* SBA Reject-Proof Audit - Design System
   Theme: Light Professional (Banking / Financial Trust)
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* CSS Variables */
:root {
  /* Primary - Deep Navy */
  --primary: #1B3A6B;
  --primary-light: #2554A0;
  --primary-dark: #102548;

  /* Accent - Antique Gold */
  --accent: #9A7B2C;
  --accent-light: #C9A84C;
  --accent-dark: #8B6914;

  /* Status */
  --success: #166534;
  --success-bg: #F0FDF4;
  --danger: #991B1B;
  --danger-bg: #FEF2F2;
  --warning: #92400E;
  --warning-bg: #FFFBEB;

  /* Backgrounds */
  --bg: #FFFFFF;
  --bg-subtle: #F8F9FB;
  --bg-muted: #EEF0F4;

  /* Text */
  --text: #1A1A2E;
  --text-secondary: #4B5563;
  --text-muted: #6B7280;

  /* Borders */
  --border: #E5E7EB;
  --border-strong: #D1D5DB;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 24px rgba(0,0,0,0.12);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Layout */
  --max-width: 1160px;
  --max-width-narrow: 760px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
}

/* Base */
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; font-weight: 600; }
p { color: var(--text-secondary); }
.lead { font-size: 1.125rem; line-height: 1.7; }

/* Layout Utilities */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}
.container-narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}
.section { padding: var(--space-4xl) 0; }
.section-sm { padding: var(--space-3xl) 0; }
.section-alt { background: var(--bg-subtle); }
.text-center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-accent {
  background: var(--accent);
  color: #111111;
}
.btn-accent:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}
.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.0625rem;
}
.btn-full { width: 100%; justify-content: center; }

/* Navigation */
.nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-xl);
  max-width: var(--max-width);
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.nav-logo-text {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
}
.nav-logo-sub {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.nav-cta { font-size: 0.9375rem; padding: 0.625rem 1.25rem; }

/* Hero */
.hero {
  background: linear-gradient(160deg, #F0F4F8 0%, #FFFFFF 60%);
  padding: var(--space-4xl) 0;
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--space-3xl);
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--warning-bg);
  color: var(--warning);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-lg);
  border: 1px solid #FCD34D;
}
.hero h1 {
  font-size: 2.75rem;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: var(--space-lg);
}
.hero h1 em {
  font-style: normal;
  color: var(--primary);
}
.hero-sub {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 540px;
}
.hero-proof {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}
.hero-proof-stat {
  display: flex;
  flex-direction: column;
}
.hero-proof-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}
.hero-proof-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.hero-proof-divider {
  width: 1px;
  height: 40px;
  background: var(--border-strong);
}

/* Waitlist Card */
.waitlist-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-lg);
}
.waitlist-card-header {
  margin-bottom: var(--space-xl);
}
.waitlist-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-xs);
}
.waitlist-card-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.form-group { margin-bottom: var(--space-md); }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.375rem;
}
.form-input, .form-select {
  width: 100%;
  padding: 0.6875rem 0.875rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
}
.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27, 58, 107, 0.12);
}
.form-input::placeholder { color: var(--text-muted); }
.form-disclaimer {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: var(--space-sm);
  text-align: center;
}
.form-success {
  display: none;
  text-align: center;
  padding: var(--space-xl) 0;
}
.form-success-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}
.form-success h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}
.form-success p { font-size: 0.9375rem; }

/* Stats Bar */
.stats-bar {
  background: var(--primary);
  color: #fff;
  padding: var(--space-2xl) 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  text-align: center;
}
.stat-num {
  font-size: 2.25rem;
  font-weight: 700;
  color: #fff;
  display: block;
}
.stat-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  margin-top: 0.25rem;
}

/* Section Headers */
.section-header {
  margin-bottom: var(--space-3xl);
}
.section-eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-dark);
  margin-bottom: var(--space-md);
}
.section-header h2 { margin-bottom: var(--space-md); }
.section-header p { font-size: 1.0625rem; max-width: 600px; }
.section-header.text-center p { margin: 0 auto; }

/* Problem Cards */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}
.problem-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
}
.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--danger);
}
.problem-icon {
  width: 48px;
  height: 48px;
  background: var(--danger-bg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  font-size: 1.375rem;
}
.problem-card h3 {
  font-size: 1.0625rem;
  margin-bottom: var(--space-sm);
}
.problem-card p { font-size: 0.9375rem; }

/* How It Works */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(16.67% + 24px);
  right: calc(16.67% + 24px);
  height: 2px;
  background: linear-gradient(90deg, var(--border) 0%, var(--primary) 50%, var(--border) 100%);
}
.step {
  text-align: center;
  position: relative;
}
.step-num {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 auto var(--space-lg);
  position: relative;
  z-index: 1;
}
.step h3 {
  font-size: 1.0625rem;
  margin-bottom: var(--space-sm);
}
.step p { font-size: 0.9375rem; }

/* Metrics */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}
.metric-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
}
.metric-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.metric-icon-pass { background: var(--success-bg); }
.metric-icon-fail { background: var(--danger-bg); }
.metric-icon-warn { background: var(--warning-bg); }
.metric-content h3 { margin-bottom: 0.25rem; font-size: 1rem; font-weight: 600; }
.metric-content p { font-size: 0.875rem; }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  max-width: 860px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
}
.pricing-card.featured {
  border-color: var(--primary);
  border-width: 2px;
  position: relative;
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.875rem;
  border-radius: var(--radius-xl);
  white-space: nowrap;
}
.pricing-tier {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}
.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-xs);
  line-height: 1;
}
.pricing-price span { font-size: 1.25rem; font-weight: 500; vertical-align: super; }
.pricing-note { font-size: 0.875rem; color: var(--text-muted); margin-bottom: var(--space-xl); }
.pricing-divider { border: none; border-top: 1px solid var(--border); margin: var(--space-xl) 0; }
.pricing-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}
.pricing-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.9375rem;
  color: var(--text-secondary);
}
.pricing-list li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1.6;
}
.pricing-list li.locked::before {
  content: '🔒';
  font-weight: normal;
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: var(--space-lg);
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}
.faq-question:hover { background: var(--bg-subtle); }
.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 0 var(--space-lg) var(--space-lg);
}
.faq-answer p { font-size: 0.9375rem; }
.faq-item.open .faq-answer { display: block; }

/* Trust Bar */
.trust-bar {
  background: var(--bg-muted);
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3xl);
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.trust-icon { font-size: 1.125rem; }

/* CTA Banner */
.cta-banner {
  background: var(--primary);
  color: #fff;
  padding: var(--space-4xl) 0;
  text-align: center;
}
.cta-banner h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: var(--space-md);
}
.cta-banner p {
  color: rgba(255,255,255,0.8);
  font-size: 1.0625rem;
  margin-bottom: var(--space-2xl);
}
.cta-banner .btn-accent {
  background: var(--accent-light);
  font-size: 1.0625rem;
  padding: 1rem 2.5rem;
}
.cta-banner .btn-accent:hover {
  background: #E0B84A;
}

/* Footer */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: var(--space-3xl) 0 var(--space-xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}
.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-top: var(--space-md);
  max-width: 280px;
}
.footer-col h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.15s;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.65);
}
.footer-logo-text {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}
.footer-logo-sub {
  font-size: 0.625rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Alert Banner */
.alert-banner {
  background: var(--warning-bg);
  border: 1px solid #FCD34D;
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  margin-bottom: var(--space-xl);
}
.alert-banner-icon { font-size: 1.125rem; flex-shrink: 0; margin-top: 0.1rem; }
.alert-banner p { font-size: 0.9375rem; color: var(--warning); margin: 0; }

/* Sample Report Preview */
.report-preview {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.report-preview-header {
  background: var(--primary);
  color: #fff;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.report-preview-title { font-weight: 600; font-size: 0.9375rem; }
.report-badge {
  background: rgba(255,255,255,0.15);
  font-size: 0.75rem;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-xl);
}
.report-preview-body { padding: var(--space-lg); }
.flag-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
}
.flag-item-critical { background: var(--danger-bg); border: 1px solid #FECACA; }
.flag-item-warning { background: var(--warning-bg); border: 1px solid #FDE68A; }
.flag-item-info { background: #EFF6FF; border: 1px solid #BFDBFE; }
.flag-severity {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.flag-severity-critical { background: #FECACA; color: var(--danger); }
.flag-severity-warning { background: #FDE68A; color: var(--warning); }
.flag-severity-info { background: #BFDBFE; color: #1E40AF; }
.flag-content h3 { font-size: 0.9375rem; margin-bottom: 0.25rem; font-weight: 600; }
.flag-content p { font-size: 0.875rem; }
.flag-locked {
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
}
.report-preview-lock {
  text-align: center;
  padding: var(--space-lg);
  border-top: 1px solid var(--border);
  background: var(--bg-muted);
}
.report-preview-lock p { font-size: 0.9375rem; font-weight: 500; color: var(--text-secondary); }

/* Responsive */
@media (max-width: 900px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.625rem; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .problem-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .steps-grid::before { display: none; }
  .metrics-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .trust-items { gap: var(--space-xl); }
}
@media (max-width: 600px) {
  .container, .container-narrow { padding: 0 var(--space-lg); }
  .hero { padding: var(--space-3xl) 0; }
  .section, .section-sm { padding: var(--space-3xl) 0; }
  .nav-inner { padding: var(--space-md) var(--space-lg); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
  .stat-num { font-size: 1.75rem; }
  .hero-proof { flex-wrap: wrap; gap: var(--space-md); }
  .hero-proof-divider { display: none; }
  .waitlist-card { padding: var(--space-xl); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .trust-items { flex-direction: column; gap: var(--space-md); }
}
