/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand-600:      #2563eb;
  --brand-700:      #1d4ed8;
  --brand-50:       #eff6ff;
  --brand-100:      #dbeafe;
  --brand-200:      #bfdbfe;
  --amber-400:      #fbbf24;
  --amber-500:      #f59e0b;
  --amber-600:      #d97706;
  --success:        #10b981;
  --success-bg:     #d1fae5;
  --success-text:   #065f46;
  --danger:         #ef4444;
  --danger-bg:      #fee2e2;
  --danger-text:    #991b1b;
  --warning-bg:     #fef3c7;
  --warning-text:   #78350f;
  --gray-950:       #09090b;
  --gray-900:       #18181b;
  --gray-800:       #27272a;
  --gray-700:       #3f3f46;
  --gray-600:       #52525b;
  --gray-500:       #71717a;
  --gray-400:       #a1a1aa;
  --gray-300:       #d4d4d8;
  --gray-200:       #e4e4e7;
  --gray-100:       #f4f4f5;
  --gray-50:        #fafafa;
  --white:          #ffffff;

  --primary:        var(--brand-600);
  --primary-light:  var(--brand-600);
  --primary-dark:   #1e3a8a;
  --accent:         var(--amber-500);
  --bg:             var(--gray-50);
  --bg-card:        var(--white);
  --text:           var(--gray-900);
  --text-muted:     var(--gray-500);
  --border:         var(--gray-200);

  --shadow-xs:  0 1px 2px 0 rgba(0,0,0,.05);
  --shadow-sm:  0 1px 3px 0 rgba(0,0,0,.08), 0 1px 2px -1px rgba(0,0,0,.06);
  --shadow:     0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-md:  0 6px 16px -2px rgba(0,0,0,.09), 0 3px 6px -3px rgba(0,0,0,.06);
  --shadow-lg:  0 12px 28px -4px rgba(0,0,0,.11), 0 5px 10px -5px rgba(0,0,0,.07);
  --shadow-xl:  0 20px 48px -6px rgba(0,0,0,.14), 0 8px 16px -6px rgba(0,0,0,.08);

  --radius-sm:   6px;
  --radius:      10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --transition:    0.18s var(--ease-out);
  --transition-md: 0.26s var(--ease-out);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--gray-50);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== NAV ===== */
nav {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--gray-900);
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-brand .logo-icon { font-size: 1.4rem; line-height: 1; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-links a {
  color: var(--gray-600);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover { background: var(--gray-100); color: var(--gray-900); }

.nav-links a.active { color: var(--brand-600); background: var(--brand-50); }

.nav-cta {
  background: var(--gray-900) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  padding: 7px 16px !important;
  border-radius: var(--radius-sm) !important;
}

.nav-cta:hover { background: var(--gray-700) !important; }

/* ===== HERO ===== */
.hero {
  background: #0f172a;
  color: #fff;
  padding: 104px 2rem 128px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--gray-700) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.45;
  pointer-events: none;
}

.hero-bg-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center,
    rgba(37, 99, 235, 0.35) 0%,
    rgba(37, 99, 235, 0.12) 40%,
    transparent 70%
  );
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--gray-50));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  padding: 6px 18px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 28px;
}

.hero-badge::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber-400);
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 22px;
  letter-spacing: -0.03em;
  color: #fff;
}

.hero h1 span {
  color: transparent;
  background: linear-gradient(90deg, var(--amber-400), #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 500px;
  margin: 0 auto 44px;
  line-height: 1.75;
  font-weight: 400;
}

.hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: var(--transition);
  font-family: inherit;
  letter-spacing: -0.01em;
}

.btn-primary { background: var(--amber-500); color: #1a0f00; }
.btn-primary:hover {
  background: var(--amber-600);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.13); color: #fff; }

.hero-stats {
  display: flex;
  gap: 0;
  justify-content: center;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat {
  text-align: center;
  padding: 0 40px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-stat:last-child { border-right: none; }
.hero-stat:first-child { padding-left: 0; }

.hero-stat strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 4px;
}
.hero-stat span {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 500;
}

/* ===== SECTION ===== */
section { padding: 88px 2rem; }

.section-header { text-align: center; margin-bottom: 56px; }

.section-tag {
  display: inline-block;
  background: var(--brand-50);
  color: var(--brand-600);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  border: 1px solid var(--brand-200);
}

.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.025em;
  color: var(--gray-900);
}

.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== PLANS ===== */
#plans { background: var(--white); }

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  max-width: 1300px;
  margin: 0 auto;
}

.plan-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 22px 22px;
  position: relative;
  transition: transform var(--transition-md), box-shadow var(--transition-md), border-color var(--transition-md);
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), var(--shadow-xs);
}

.plan-card:hover {
  transform: translateY(-5px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), var(--shadow-lg);
  border-color: var(--plan-color, var(--brand-600));
  border-top-width: 2.5px;
}

.plan-card.recommended {
  border-color: var(--plan-color, var(--brand-600));
  border-top-width: 3px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9),
              0 0 0 4px color-mix(in srgb, var(--plan-color, var(--brand-600)) 12%, transparent),
              var(--shadow-lg);
  transform: translateY(-6px) scale(1.01);
}

.plan-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--plan-color, var(--brand-600));
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.plan-icon { font-size: 1.6rem; margin-bottom: 14px; display: block; }

.plan-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.015em;
  color: var(--gray-900);
}

.plan-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.6;
}

.plan-price {
  margin-bottom: 18px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.plan-price strong {
  font-size: 2rem;
  font-weight: 900;
  color: var(--plan-color, var(--brand-600));
  letter-spacing: -0.04em;
  line-height: 1;
}

.plan-price span { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }

.plan-features {
  list-style: none;
  margin-bottom: 20px;
  flex: 1;
  border-top: 1px solid var(--gray-100);
  padding-top: 14px;
}

.plan-features li {
  font-size: 0.8rem;
  padding: 4px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--gray-700);
  line-height: 1.5;
}

.plan-features li.missing { color: var(--gray-400); }

.plan-features li::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 1px;
  background-color: #d1fae5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%2310b981' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 10px;
  background-repeat: no-repeat;
  background-position: center;
}

.plan-features li.missing::before {
  background-color: var(--gray-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 3l6 6M9 3l-6 6' stroke='%23a1a1aa' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

.plan-btn {
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-200);
  background: transparent;
  color: var(--gray-700);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  letter-spacing: -0.01em;
}

.plan-btn:hover,
.plan-btn.selected {
  background: var(--plan-color, var(--brand-600));
  color: #fff;
  border-color: var(--plan-color, var(--brand-600));
  box-shadow: var(--shadow-sm);
}

/* ===== GET QUOTE ===== */
#get-quote { background: var(--gray-50); }

.quote-container {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.quote-progress {
  background: var(--gray-900);
  padding: 22px 36px;
  display: flex;
  align-items: center;
}

.progress-step {
  display: flex;
  align-items: center;
  flex: 1;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,.4);
  flex-shrink: 0;
  transition: var(--transition-md);
  font-family: inherit;
}

.step-circle.active {
  background: var(--amber-500);
  border-color: var(--amber-500);
  color: #1a0f00;
  box-shadow: 0 0 0 4px rgba(245,158,11,.25);
}

.step-circle.done {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.step-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,.4);
  margin-left: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
}
.step-label.active { color: rgba(255,255,255,.9); }

.step-line {
  flex: 1;
  height: 1.5px;
  background: rgba(255,255,255,.12);
  margin: 0 8px;
  border-radius: 2px;
}
.step-line.done { background: var(--success); }

.quote-body { padding: 40px 44px; }

.step-panel { display: none; }
.step-panel.active { display: block; }

.step-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 5px;
  letter-spacing: -0.02em;
  color: var(--gray-900);
}

.step-subtitle {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 28px;
  line-height: 1.6;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-row.single { grid-template-columns: 1fr; }
.form-row.triple { grid-template-columns: 1fr 1fr 1fr; }

.form-group { display: flex; flex-direction: column; gap: 5px; }

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-700);
  letter-spacing: 0.01em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 13px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  font-family: inherit;
  line-height: 1.5;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-400); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

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

.radio-group { display: flex; gap: 9px; flex-wrap: wrap; }
.radio-option { flex: 1; min-width: 110px; }
.radio-option input[type="radio"] { display: none; }

.radio-option label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 10px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  transition: var(--transition);
  text-align: center;
  color: var(--gray-600);
  background: var(--white);
}

.radio-option label:hover { border-color: var(--gray-300); background: var(--gray-50); }

.radio-option input[type="radio"]:checked + label {
  border-color: var(--brand-600);
  background: var(--brand-50);
  color: var(--brand-600);
  font-weight: 700;
  box-shadow: 0 0 0 1px var(--brand-600);
}

.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-100);
}

.btn-form-prev {
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--gray-200);
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  font-size: 0.875rem;
}
.btn-form-prev:hover { background: var(--gray-50); color: var(--gray-700); border-color: var(--gray-300); }

.btn-form-next {
  background: var(--gray-900);
  color: #fff;
  border: none;
  padding: 10px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.875rem;
  font-family: inherit;
  letter-spacing: -0.01em;
}
.btn-form-next:hover { background: var(--gray-700); transform: translateY(-1px); }

.btn-submit {
  background: var(--success);
  color: #fff;
  border: none;
  padding: 11px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
  font-family: inherit;
}
.btn-submit:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16,185,129,.35);
}

.disclaimer-box {
  background: var(--warning-bg);
  border: 1.5px solid #fcd34d;
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 0.82rem;
  color: var(--warning-text);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* ===== RESULT PANEL ===== */
#result-panel { display: none; padding: 40px 44px; }

.result-header { text-align: center; margin-bottom: 32px; }

.result-score {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.result-header h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.02em; }
.result-header p { color: var(--text-muted); font-size: 0.875rem; }

.result-plan-card {
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
  border: 2px solid;
  position: relative;
}

.recommended-tag {
  position: absolute;
  top: -11px;
  left: 24px;
  background: var(--brand-600);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}

.result-plan-name { font-size: 1.3rem; font-weight: 800; margin-bottom: 4px; letter-spacing: -0.02em; }
.result-plan-price { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 16px; }

.result-reasons { margin-top: 18px; }
.result-reasons h4 {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.reason-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.85rem;
  padding: 7px 0;
  border-bottom: 1px solid rgba(0,0,0,.05);
  color: var(--gray-700);
}

.reason-item::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-600);
  flex-shrink: 0;
  margin-top: 6px;
}

.result-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
}

.cov-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
}
.cov-badge.yes { background: var(--success-bg); color: var(--success-text); }
.cov-badge.no  { background: var(--gray-100);   color: var(--gray-400); }

.result-all-plans { margin-top: 24px; }
.result-all-plans h4 {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mini-plans-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.mini-plan {
  text-align: center;
  padding: 12px 8px;
  border-radius: var(--radius);
  border: 1.5px solid var(--gray-200);
  transition: var(--transition);
}

.mini-plan-icon { font-size: 1.3rem; display: block; margin-bottom: 4px; }
.mini-plan-name { font-size: 0.67rem; font-weight: 700; display: block; }
.mini-plan-price { font-size: 0.72rem; color: var(--text-muted); }

.result-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.btn-enroll {
  flex: 1;
  background: var(--gray-900);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
  font-family: inherit;
  letter-spacing: -0.01em;
}
.btn-enroll:hover { background: var(--gray-700); transform: translateY(-1px); }

.btn-back {
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--gray-200);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.btn-back:hover { background: var(--gray-50); color: var(--gray-700); }

/* ===== WHY US ===== */
#why-us { background: var(--gray-50); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.why-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1px solid var(--gray-200);
  transition: transform var(--transition-md), box-shadow var(--transition-md);
  text-align: left;
  box-shadow: var(--shadow-xs);
}
.why-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.why-icon {
  font-size: 1.4rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--brand-50);
  border-radius: var(--radius-sm);
  border: 1px solid var(--brand-100);
}

.why-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; color: var(--gray-900); }
.why-card p  { font-size: 0.83rem; color: var(--text-muted); line-height: 1.65; }

/* ===== CRM ===== */
#crm { background: var(--white); }

.crm-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  max-width: 1300px;
  margin: 0 auto 28px;
}

.crm-stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--transition);
}
.crm-stat-card:hover { box-shadow: var(--shadow-sm); }

.crm-stat-card .stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 8px;
}
.crm-stat-card .stat-value {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.03em;
  line-height: 1;
}
.crm-stat-card .stat-sub { font-size: 0.72rem; color: var(--text-muted); margin-top: 5px; }

.crm-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
}

.crm-search {
  flex: 1;
  min-width: 220px;
  padding: 9px 13px 9px 38px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  outline: none;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") no-repeat 12px center;
  transition: var(--transition);
  font-family: inherit;
  color: var(--gray-900);
}
.crm-search:focus { border-color: var(--brand-600); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }

.crm-filter {
  padding: 9px 13px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  outline: none;
  background: var(--white);
  cursor: pointer;
  font-family: inherit;
  color: var(--gray-700);
  transition: var(--transition);
}
.crm-filter:focus { border-color: var(--brand-600); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }

.crm-table-wrap {
  max-width: 1300px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.crm-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }

.crm-table thead tr {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.crm-table th {
  padding: 11px 16px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.crm-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
  color: var(--gray-700);
}

.crm-table tr:last-child td { border-bottom: none; }
.crm-table tbody tr:hover td { background: var(--gray-50); }

.risk-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.risk-low    { background: var(--success-bg); color: var(--success-text); }
.risk-medium { background: var(--warning-bg); color: var(--warning-text); }
.risk-high   { background: var(--danger-bg);  color: var(--danger-text); }

.plan-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--brand-50);
  color: var(--brand-600);
}

.empty-state { text-align: center; padding: 72px 20px; color: var(--text-muted); }
.empty-state .empty-icon { font-size: 2.5rem; margin-bottom: 14px; opacity: 0.5; display: block; }
.empty-state p { font-size: 0.875rem; }

/* ===== FOOTER ===== */
footer {
  background: var(--gray-900);
  color: rgba(255,255,255,.45);
  text-align: center;
  padding: 36px 2rem;
  font-size: 0.82rem;
}

footer strong { color: var(--white); font-size: 0.95rem; letter-spacing: -0.01em; }

footer .footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 14px;
  flex-wrap: wrap;
}

footer .footer-links a {
  color: rgba(255,255,255,.4);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  transition: color var(--transition);
}
footer .footer-links a:hover { color: rgba(255,255,255,.85); }
footer p { margin-top: 20px; font-size: 0.72rem; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 11, 0.6);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 36px;
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  transform: scale(0.96) translateY(8px);
  transition: transform 0.22s var(--ease-out);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.modal-header h3 { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; }

.modal-close {
  background: var(--gray-100);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: var(--transition);
}
.modal-close:hover { background: var(--gray-200); color: var(--gray-900); }

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--gray-900);
  color: #fff;
  padding: 11px 18px;
  border-radius: var(--radius);
  font-size: 0.84rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 9px;
  animation: slideIn 0.22s var(--ease-out);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.1);
  pointer-events: all;
  max-width: 340px;
}

.toast.success { background: #064e3b; border-color: rgba(16,185,129,.3); }
.toast.error   { background: #7f1d1d; border-color: rgba(239,68,68,.3); }

@keyframes slideIn {
  from { transform: translateX(48px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  nav { padding: 0 1.25rem; }
  .nav-links { display: none; }

  .hero { padding: 64px 1.25rem 80px; }
  .hero-stats { gap: 0; flex-wrap: wrap; }
  .hero-stat { padding: 12px 0; width: 50%; border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); text-align: center; }
  .hero-stat:nth-child(3),
  .hero-stat:nth-child(4) { border-bottom: none; }

  section { padding: 56px 1.25rem; }

  .quote-body { padding: 24px 20px; }
  .quote-progress { padding: 16px 20px; }
  .step-label { display: none; }
  #result-panel { padding: 24px 20px; }

  .form-row { grid-template-columns: 1fr; }
  .form-row.triple { grid-template-columns: 1fr 1fr; }

  .result-features-grid { grid-template-columns: 1fr; }
  .mini-plans-grid { grid-template-columns: repeat(3, 1fr); }
  .result-actions { flex-direction: column; }

  .crm-stats { grid-template-columns: 1fr 1fr; }
}
