/* ============================================
   MERCHANT CHARGE GUARD — Design System & Styles
   Production-ready • WCAG 2.2 AA • <2s load
   ============================================ */

/* --- Custom Properties --- */
:root {
  /* Colors */
  --midnight: #0B1D33;
  --midnight-light: #122744;
  --gold: #C8A24D;
  --gold-light: #D4B46A;
  --gold-dark: #A88635;
  --white: #F8F9FC;
  --alert: #D93025;
  --alert-light: #FEE2E2;
  --success: #1B8A4E;
  --success-light: #D1FAE5;
  --slate: #4A5568;

  --heading: #1A202C;
  --subheading: #2D3748;
  --muted: #718096;
  --border: #E2E8F0;
  --bg-alt: #F7FAFC;
  --bg-body: #FFFFFF;

  /* Typography */
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Scale (Major Third 1.25) */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.563rem;
  --text-3xl: 1.953rem;
  --text-4xl: 2.441rem;
  --text-5xl: 3.052rem;
  --text-6xl: 3.815rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(11,29,51,0.06);
  --shadow-md: 0 4px 6px rgba(11,29,51,0.08);
  --shadow-lg: 0 10px 25px rgba(11,29,51,0.1);
  --shadow-xl: 0 20px 50px rgba(11,29,51,0.15);
  --shadow-gold: 0 4px 20px rgba(200,162,77,0.3);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-base: 300ms;
  --duration-slow: 500ms;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--slate);
  background: var(--bg-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font: inherit;
  border: none;
  background: none;
}

ul, ol { list-style: none; }

/* --- Focus Styles (Accessibility) --- */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 9999;
  padding: var(--space-3) var(--space-6);
  background: var(--gold);
  color: var(--midnight);
  font-weight: 700;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: top var(--duration-fast) var(--ease-out);
}

.skip-link:focus {
  top: 0;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (min-width: 768px) {
  .container { padding: 0 var(--space-8); }
}

/* --- Section Spacing --- */
.section {
  padding: var(--space-16) 0;
}

@media (min-width: 768px) {
  .section { padding: var(--space-24) 0; }
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--heading);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--text-4xl); font-weight: 800; }
h2 { font-size: var(--text-3xl); font-weight: 700; }
h3 { font-size: var(--text-2xl); font-weight: 700; }
h4 { font-size: var(--text-xl); font-weight: 600; }

@media (min-width: 768px) {
  h1 { font-size: var(--text-5xl); }
  h2 { font-size: var(--text-4xl); }
  h3 { font-size: var(--text-3xl); }
}

@media (min-width: 1024px) {
  h1 { font-size: var(--text-6xl); }
}

.text-gold { color: var(--gold); }
.text-muted { color: var(--muted); }
.text-mono { font-family: var(--font-mono); }
.text-center { text-align: center; }

.lead {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--subheading);
}

@media (min-width: 768px) {
  .lead { font-size: var(--text-xl); }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.5;
  border-radius: var(--radius-md);
  transition: all var(--duration-base) var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--midnight);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 25px rgba(200,162,77,0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(248,249,252,0.3);
}

.btn-secondary:hover {
  border-color: var(--white);
  background: rgba(248,249,252,0.1);
}

.btn-dark {
  background: var(--midnight);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--midnight-light);
  transform: translateY(-1px);
}

.btn-lg {
  padding: var(--space-4) var(--space-10);
  font-size: var(--text-lg);
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: var(--space-2) var(--space-6);
  font-size: var(--text-sm);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(11,29,51,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200,162,77,0.1);
  transition: background var(--duration-base) var(--ease-out);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.01em;
}

.nav-logo svg {
  width: 36px;
  height: 36px;
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(248,249,252,0.7);
  transition: color var(--duration-fast);
}

.nav-links a:hover {
  color: var(--white);
}

.nav-cta {
  display: none;
}

@media (min-width: 768px) {
  .nav-cta { display: inline-flex; }
}

.nav-mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--white);
}

@media (min-width: 768px) {
  .nav-mobile-toggle { display: none; }
}

.nav-mobile-toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: var(--midnight);
  padding: var(--space-8) var(--space-6);
}

.mobile-menu.is-open {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.mobile-menu a {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--white);
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(248,249,252,0.1);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(165deg, var(--midnight) 0%, #0F2847 50%, #132F54 100%);
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(200,162,77,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(200,162,77,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200,162,77,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,162,77,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: var(--space-16) 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(200,162,77,0.12);
  border: 1px solid rgba(200,162,77,0.25);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gold);
  margin-bottom: var(--space-8);
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  color: var(--white);
  margin-bottom: var(--space-6);
}

.hero .lead {
  color: rgba(248,249,252,0.7);
  margin-bottom: var(--space-10);
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(248,249,252,0.1);
}

.hero-stat-value {
  font-family: var(--font-mono);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.hero-stat-label {
  font-size: var(--text-sm);
  color: rgba(248,249,252,0.5);
  font-weight: 500;
}

/* --- Stat Counter Animation --- */
.hero-stat-value[data-count] {
  font-variant-numeric: tabular-nums;
}

/* Shield graphic */
.hero-shield {
  display: none;
}

@media (min-width: 1024px) {
  .hero-content { max-width: 600px; }

  .hero-shield {
    display: block;
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 420px;
    height: 420px;
    opacity: 0.15;
  }
}

/* --- Trust Bar --- */
.trust-bar {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-6) 0;
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-8);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--subheading);
}

.trust-item svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
  flex-shrink: 0;
}

/* --- Features / Services --- */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 640px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  position: relative;
  padding: var(--space-8);
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: all var(--duration-base) var(--ease-out);
}

.feature-card:hover {
  border-color: rgba(200,162,77,0.3);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(200,162,77,0.1);
  border-radius: var(--radius-lg);
  color: var(--gold-dark);
  margin-bottom: var(--space-6);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.feature-card p {
  font-size: var(--text-base);
  line-height: 1.7;
}

/* --- Stats Section --- */
.stats-section {
  background: var(--midnight);
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--text-sm);
  color: rgba(248,249,252,0.6);
  font-weight: 500;
}

/* --- Process / How It Works --- */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  position: relative;
}

@media (min-width: 768px) {
  .process-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
  }
}

.process-step {
  position: relative;
  text-align: center;
  padding: var(--space-8) var(--space-4);
}

.process-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--midnight);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: var(--space-6);
}

.process-step h4 {
  margin-bottom: var(--space-3);
}

.process-step p {
  font-size: var(--text-sm);
  color: var(--muted);
}

/* Connector line between steps */
@media (min-width: 768px) {
  .process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: calc(var(--space-8) + 28px);
    right: -12%;
    width: 24%;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), rgba(200,162,77,0.2));
  }
}

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

.testimonial-card {
  padding: var(--space-8);
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  position: relative;
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-4);
  color: var(--gold);
}

.testimonial-stars svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.testimonial-text {
  font-size: var(--text-base);
  line-height: 1.7;
  margin-bottom: var(--space-6);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--midnight) 0%, var(--midnight-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-weight: 700;
  font-size: var(--text-sm);
}

.testimonial-name {
  font-weight: 600;
  color: var(--heading);
  font-size: var(--text-sm);
}

.testimonial-role {
  font-size: var(--text-xs);
  color: var(--muted);
}

/* --- Risk Assessment Quiz --- */
.quiz-section {
  background: linear-gradient(165deg, var(--midnight) 0%, #0F2847 100%);
  color: var(--white);
}

.quiz-card {
  max-width: 640px;
  margin: 0 auto;
  background: rgba(248,249,252,0.05);
  border: 1px solid rgba(248,249,252,0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
}

.quiz-progress {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.quiz-progress-dot {
  flex: 1;
  height: 4px;
  border-radius: var(--radius-full);
  background: rgba(248,249,252,0.15);
  transition: background var(--duration-base);
}

.quiz-progress-dot.active {
  background: var(--gold);
}

.quiz-question {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-6);
  color: var(--white);
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  background: rgba(248,249,252,0.05);
  border: 1px solid rgba(248,249,252,0.15);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--duration-fast);
  font-size: var(--text-base);
  color: rgba(248,249,252,0.8);
  text-align: left;
  width: 100%;
}

.quiz-option:hover,
.quiz-option.selected {
  border-color: var(--gold);
  background: rgba(200,162,77,0.1);
  color: var(--white);
}

.quiz-option::before {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid rgba(248,249,252,0.3);
  border-radius: 50%;
  flex-shrink: 0;
  transition: all var(--duration-fast);
}

.quiz-option.selected::before {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: inset 0 0 0 4px var(--midnight);
}

.quiz-result {
  text-align: center;
  padding: var(--space-8) 0;
}

.quiz-score {
  font-family: var(--font-mono);
  font-size: var(--text-5xl);
  font-weight: 800;
  margin-bottom: var(--space-4);
}

.quiz-score.low { color: var(--success); }
.quiz-score.medium { color: var(--gold); }
.quiz-score.high { color: var(--alert); }

/* --- Lead Form --- */
.form-section {
  background: var(--bg-alt);
}

.form-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--heading);
  margin-bottom: var(--space-2);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  font-family: var(--font-body);
  color: var(--heading);
  background: var(--bg-body);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--duration-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,162,77,0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--muted);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23718096' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 5.646a.5.5 0 01.708 0L8 8.293l2.646-2.647a.5.5 0 01.708.708l-3 3a.5.5 0 01-.708 0l-3-3a.5.5 0 010-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-10);
}

.form-error {
  font-size: var(--text-sm);
  color: var(--alert);
  margin-top: var(--space-1);
  display: none;
}

.form-group.has-error .form-input,
.form-group.has-error .form-select,
.form-group.has-error .form-textarea {
  border-color: var(--alert);
}

.form-group.has-error .form-error {
  display: block;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: var(--space-6);
}

.form-consent input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--gold);
}

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-10) 0;
}

.form-success.is-visible {
  display: block;
}

.form-success svg {
  width: 64px;
  height: 64px;
  color: var(--success);
  margin: 0 auto var(--space-6);
}

/* --- FAQ Accordion --- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-6) 0;
  text-align: left;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--heading);
  transition: color var(--duration-fast);
}

.faq-trigger:hover {
  color: var(--gold-dark);
}

.faq-trigger svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--duration-base) var(--ease-out);
  color: var(--muted);
}

.faq-item.is-open .faq-trigger svg {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-base) var(--ease-out);
}

.faq-content-inner {
  padding-bottom: var(--space-6);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--slate);
}

/* --- Social Proof Toast --- */
.proof-toast {
  position: fixed;
  bottom: var(--space-6);
  left: var(--space-6);
  z-index: 900;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  max-width: 340px;
  padding: var(--space-4) var(--space-6);
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.5s var(--ease-out);
  pointer-events: none;
}

.proof-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.proof-toast-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--success-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--success);
}

.proof-toast-icon svg {
  width: 20px;
  height: 20px;
}

.proof-toast-text {
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--heading);
}

.proof-toast-text strong {
  color: var(--success);
}

.proof-toast-time {
  font-size: var(--text-xs);
  color: var(--muted);
  margin-top: 2px;
}

.proof-toast-close {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  border-radius: 50%;
  transition: background var(--duration-fast);
}

.proof-toast-close:hover {
  background: var(--bg-alt);
}

/* Hide toast on mobile when sticky CTA is visible */
@media (max-width: 767px) {
  .proof-toast {
    bottom: 80px;
    left: var(--space-4);
    right: var(--space-4);
    max-width: none;
  }
}

/* --- Sticky Mobile CTA --- */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 800;
  background: var(--midnight);
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid rgba(200,162,77,0.2);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-out);
}

.sticky-cta.is-visible {
  transform: translateY(0);
}

@media (max-width: 767px) {
  .sticky-cta { display: block; }
  body { padding-bottom: 0; }
  .sticky-cta.is-visible ~ .footer { padding-bottom: 72px; }
}

.sticky-cta-inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.sticky-cta-inner .btn {
  flex: 1;
}

.sticky-cta-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(200,162,77,0.15);
  border-radius: var(--radius-md);
  color: var(--gold);
  flex-shrink: 0;
}

.sticky-cta-phone svg {
  width: 22px;
  height: 22px;
}

/* --- Exit Intent Modal --- */
.exit-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(11,29,51,0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.exit-modal-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.exit-modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 480px;
  background: var(--bg-body);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-xl);
  transition: transform 0.4s var(--ease-out);
  text-align: center;
}

.exit-modal-overlay.is-visible .exit-modal {
  transform: translate(-50%, -50%) scale(1);
}

.exit-modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  border-radius: 50%;
  transition: background var(--duration-fast);
}

.exit-modal-close:hover {
  background: var(--bg-alt);
}

.exit-modal-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-6);
  background: linear-gradient(135deg, rgba(200,162,77,0.1), rgba(200,162,77,0.2));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.exit-modal-icon svg {
  width: 36px;
  height: 36px;
}

.exit-modal h3 {
  margin-bottom: var(--space-3);
}

.exit-modal p {
  color: var(--muted);
  margin-bottom: var(--space-6);
  font-size: var(--text-base);
  line-height: 1.6;
}

/* --- Results / Before-After Section --- */
.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .results-grid { grid-template-columns: repeat(3, 1fr); }
}

.result-card {
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.result-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--success));
}

.result-card-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: var(--space-6);
}

.result-before-after {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.result-value {
  font-family: var(--font-mono);
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: 1;
}

.result-value.before {
  color: var(--alert);
  text-decoration: line-through;
  opacity: 0.6;
  font-size: var(--text-2xl);
}

.result-value.after {
  color: var(--success);
}

.result-arrow {
  color: var(--gold);
}

.result-arrow svg {
  width: 24px;
  height: 24px;
}

.result-description {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.6;
}

/* --- Floating Phone Button (Desktop) --- */
.floating-phone {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  z-index: 800;
  width: 56px;
  height: 56px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--midnight);
  box-shadow: var(--shadow-gold), 0 4px 12px rgba(0,0,0,0.15);
  transition: all var(--duration-base) var(--ease-out);
  opacity: 0;
  transform: scale(0.8);
}

.floating-phone.is-visible {
  opacity: 1;
  transform: scale(1);
}

.floating-phone:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 30px rgba(200,162,77,0.5);
}

.floating-phone svg {
  width: 24px;
  height: 24px;
}

.floating-phone-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  animation: phone-pulse 2s ease-out infinite;
}

@keyframes phone-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

@media (max-width: 767px) {
  .floating-phone { display: none; }
}

/* --- Nav scroll state --- */
.nav.is-scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

/* --- CTA Banner --- */
.cta-section {
  background: linear-gradient(165deg, var(--midnight) 0%, #0F2847 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200,162,77,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: var(--space-4);
}

.cta-section .lead {
  color: rgba(248,249,252,0.7);
  margin-bottom: var(--space-8);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--gold);
  margin-top: var(--space-6);
}

.cta-phone svg {
  width: 24px;
  height: 24px;
}

/* --- Footer --- */
.footer {
  background: var(--midnight);
  color: rgba(248,249,252,0.6);
  padding: var(--space-16) 0 var(--space-8);
  border-top: 1px solid rgba(200,162,77,0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-brand p {
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-top: var(--space-4);
  max-width: 300px;
}

.footer-heading {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}

.footer-links a {
  display: block;
  font-size: var(--text-sm);
  padding: var(--space-1) 0;
  transition: color var(--duration-fast);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(248,249,252,0.1);
  font-size: var(--text-xs);
}

/* --- Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.stagger-children .fade-up:nth-child(1) { transition-delay: 0ms; }
.stagger-children .fade-up:nth-child(2) { transition-delay: 100ms; }
.stagger-children .fade-up:nth-child(3) { transition-delay: 200ms; }
.stagger-children .fade-up:nth-child(4) { transition-delay: 300ms; }
.stagger-children .fade-up:nth-child(5) { transition-delay: 400ms; }
.stagger-children .fade-up:nth-child(6) { transition-delay: 500ms; }

/* --- Utility --- */
.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;
}

.section-eyebrow {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}

.section-header {
  max-width: 600px;
  margin: 0 auto var(--space-12);
  text-align: center;
}

.section-header p {
  margin-top: var(--space-4);
  color: var(--muted);
  font-size: var(--text-lg);
}

/* ============================================
   BLOG STYLES
   ============================================ */

/* --- Blog Hero --- */
.blog-hero {
  background: linear-gradient(165deg, var(--midnight) 0%, #0F2847 50%, #132F54 100%);
  padding: calc(var(--nav-height) + var(--space-16)) 0 var(--space-16);
  color: var(--white);
}

@media (min-width: 768px) {
  .blog-hero {
    padding: calc(var(--nav-height) + var(--space-24)) 0 var(--space-20);
  }
}

.blog-hero h1 {
  color: var(--white);
  margin-bottom: var(--space-4);
  max-width: 720px;
}

.blog-hero .lead {
  color: rgba(248,249,252,0.7);
  max-width: 600px;
}

/* --- Blog Grid --- */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- Blog Card --- */
.blog-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-8);
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: all var(--duration-base) var(--ease-out);
  text-decoration: none;
}

.blog-card:hover {
  border-color: rgba(200,162,77,0.3);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.blog-card-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-dark);
  background: rgba(200,162,77,0.1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.blog-card-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--heading);
  line-height: 1.3;
  margin-bottom: var(--space-3);
}

@media (min-width: 768px) {
  .blog-card-title { font-size: var(--text-2xl); }
}

.blog-card-excerpt {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--slate);
  flex: 1;
  margin-bottom: var(--space-6);
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--muted);
  font-weight: 500;
}

.blog-card-dot {
  width: 4px;
  height: 4px;
  background: var(--muted);
  border-radius: 50%;
  flex-shrink: 0;
}

/* --- Blog Article Header --- */
.blog-article-header {
  background: linear-gradient(165deg, var(--midnight) 0%, #0F2847 50%, #132F54 100%);
  padding: calc(var(--nav-height) + var(--space-12)) 0 var(--space-12);
  color: var(--white);
}

@media (min-width: 768px) {
  .blog-article-header {
    padding: calc(var(--nav-height) + var(--space-20)) 0 var(--space-16);
  }
}

.blog-article-header-inner {
  max-width: 720px;
}

.blog-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(248,249,252,0.6);
  margin-bottom: var(--space-6);
  transition: color var(--duration-fast);
}

.blog-breadcrumb:hover {
  color: var(--white);
}

.blog-article-header h1 {
  color: var(--white);
  font-size: var(--text-3xl);
  margin-bottom: var(--space-6);
  line-height: 1.2;
}

@media (min-width: 768px) {
  .blog-article-header h1 { font-size: var(--text-4xl); }
}

@media (min-width: 1024px) {
  .blog-article-header h1 { font-size: var(--text-5xl); }
}

.blog-article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: rgba(248,249,252,0.6);
  font-weight: 500;
}

.blog-article-meta strong {
  color: var(--white);
}

/* --- Blog Prose (Article Body) --- */
.blog-prose {
  padding: var(--space-12) 0 var(--space-16);
}

@media (min-width: 768px) {
  .blog-prose {
    padding: var(--space-16) 0 var(--space-24);
  }
}

.blog-prose-inner {
  max-width: 720px;
  margin: 0 auto;
}

.blog-prose-inner > * + * {
  margin-top: var(--space-6);
}

.blog-prose-inner p {
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--slate);
}

.blog-prose-inner .lead {
  font-size: var(--text-xl);
  line-height: 1.7;
  color: var(--subheading);
  margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
  .blog-prose-inner .lead {
    font-size: var(--text-2xl);
    line-height: 1.6;
  }
}

.blog-prose-inner h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
  .blog-prose-inner h2 { font-size: var(--text-3xl); }
}

.blog-prose-inner h3 {
  font-size: var(--text-xl);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

@media (min-width: 768px) {
  .blog-prose-inner h3 { font-size: var(--text-2xl); }
}

.blog-prose-inner strong {
  color: var(--heading);
  font-weight: 600;
}

/* Blockquotes */
.blog-prose-inner blockquote {
  position: relative;
  margin: var(--space-8) 0;
  padding: var(--space-6) var(--space-8);
  background: var(--bg-alt);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.blog-prose-inner blockquote p {
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--subheading);
  line-height: 1.7;
}

/* Lists */
.blog-prose-inner ul,
.blog-prose-inner ol {
  margin: var(--space-6) 0;
  padding-left: var(--space-6);
}

.blog-prose-inner ul {
  list-style: none;
  padding-left: 0;
}

.blog-prose-inner ul li {
  position: relative;
  padding-left: var(--space-6);
  margin-bottom: var(--space-3);
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--slate);
}

.blog-prose-inner ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

.blog-prose-inner ol {
  list-style: decimal;
  padding-left: var(--space-8);
}

.blog-prose-inner ol li {
  margin-bottom: var(--space-3);
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--slate);
  padding-left: var(--space-2);
}

.blog-prose-inner ol li::marker {
  color: var(--gold-dark);
  font-weight: 700;
}

/* Links in prose */
.blog-prose-inner a:not(.btn) {
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--duration-fast);
}

.blog-prose-inner a:not(.btn):hover {
  color: var(--gold);
}

/* --- Blog CTA Box --- */
.blog-cta-box {
  margin-top: var(--space-12);
  padding: var(--space-10);
  background: linear-gradient(165deg, var(--midnight) 0%, #0F2847 100%);
  border-radius: var(--radius-xl);
  text-align: center;
}

.blog-cta-box h3 {
  color: var(--white);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}

@media (min-width: 768px) {
  .blog-cta-box h3 { font-size: var(--text-3xl); }
}

.blog-cta-box p {
  color: rgba(248,249,252,0.7) !important;
  font-style: normal !important;
  max-width: 520px;
  margin: 0 auto var(--space-8) !important;
}

.blog-cta-box .btn {
  display: inline-flex;
}
