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

:root {
  --teal-900: #0d4f4f;
  --teal-700: #0f766e;
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --teal-100: #ccfbf1;
  --teal-50: #f0fdfa;
  --blue-900: #1e3a5f;
  --blue-700: #1d4ed8;
  --blue-100: #dbeafe;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --green-600: #16a34a;
  --green-100: #dcfce7;
  --red-600: #dc2626;
  --red-100: #fee2e2;
  --amber-600: #d97706;
  --amber-100: #fef3c7;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  --radius: 8px;
  --max-w: 1100px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--gray-700);
  line-height: 1.7;
  background: var(--white);
}

img, svg { max-width: 100%; display: block; }
a { color: var(--teal-700); text-decoration: none; }
a:hover { text-decoration: underline; }

/* === Sticky Header === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-300);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--teal-700);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.site-logo svg { flex-shrink: 0; }

.header-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.header-nav a {
  font-size: .85rem;
  font-weight: 500;
  color: var(--gray-700);
  white-space: nowrap;
}
.header-nav a:hover { color: var(--teal-700); text-decoration: none; }

/* === Layout === */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
section { padding: 48px 0; }
section:nth-child(even) { background: var(--gray-50); }

/* === Typography === */
h1, h2, h3, h4 { color: var(--gray-900); line-height: 1.3; }
h1 { font-size: 2rem; margin-bottom: 16px; }
h2 { font-size: 1.6rem; margin-bottom: 14px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }
p { margin-bottom: 14px; }

/* === Hero === */
.hero {
  background: linear-gradient(135deg, var(--teal-900) 0%, var(--blue-900) 100%);
  color: var(--white);
  padding: 60px 0 50px;
  text-align: center;
}
.hero h1 { color: var(--white); font-size: 2rem; max-width: 700px; margin: 0 auto 16px; }
.hero p { color: rgba(255,255,255,.85); font-size: 1.1rem; max-width: 620px; margin: 0 auto 24px; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 16px;
}
.hero-update {
  font-size: .85rem;
  color: rgba(255,255,255,.65);
}

/* === Quick Stats === */
.quick-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: -30px auto 0;
  position: relative;
  z-index: 2;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.stat-card .num { font-size: 1.8rem; font-weight: 800; color: var(--teal-700); }
.stat-card .label { font-size: .85rem; color: var(--gray-500); margin-top: 4px; }

/* === Comparison Table === */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  margin: 24px 0;
}
.cmp-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  font-size: .9rem;
}
.cmp-table thead { background: var(--teal-900); color: var(--white); }
.cmp-table th {
  padding: 14px 12px;
  text-align: left;
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.cmp-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: top;
}
.cmp-table tbody tr:hover { background: var(--teal-50); }
.cmp-table .best-value {
  background: var(--green-100);
  font-weight: 600;
}
.cmp-table .best-value td:first-child { position: relative; }
.cmp-table .best-value td:first-child::before {
  content: "Best Value";
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--green-600);
  color: var(--white);
  font-size: .65rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
}
.price-main { font-size: 1.15rem; font-weight: 700; color: var(--teal-700); }
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: .75rem;
  font-weight: 600;
}
.tag-green { background: var(--green-100); color: var(--green-600); }
.tag-red { background: var(--red-100); color: var(--red-600); }
.tag-amber { background: var(--amber-100); color: var(--amber-600); }

/* === Calculator === */
.calc-section { background: var(--teal-50); }
.calc-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 30px;
  max-width: 600px;
  margin: 24px auto;
}
.calc-box label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 6px;
  color: var(--gray-900);
}
.calc-box select, .calc-box input[type="range"] {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: .95rem;
  margin-bottom: 16px;
  background: var(--white);
}
.calc-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.calc-result-card {
  background: var(--teal-50);
  border-radius: 6px;
  padding: 16px;
  text-align: center;
}
.calc-result-card .val { font-size: 1.6rem; font-weight: 800; color: var(--teal-700); }
.calc-result-card .lbl { font-size: .8rem; color: var(--gray-500); margin-top: 4px; }
.calc-savings {
  background: var(--green-100);
  border-radius: 6px;
  padding: 14px;
  text-align: center;
  margin-top: 12px;
  font-weight: 600;
  color: var(--green-600);
}

/* === Provider Cards === */
.provider-grid {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}
.provider-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--gray-100);
}
.provider-card.featured {
  border: 2px solid var(--teal-500);
}
.provider-card-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
}
.provider-card.featured .provider-card-header {
  background: var(--teal-50);
  border-bottom-color: var(--teal-100);
}
.provider-name { font-size: 1.2rem; font-weight: 700; }
.provider-price { font-size: 1.3rem; font-weight: 800; color: var(--teal-700); }
.provider-card-body { padding: 24px; }
.provider-card-body p { font-size: .92rem; }
.provider-card-body h4 { font-size: 1rem; margin: 16px 0 8px; }
.provider-card-body ul {
  list-style: none;
  padding: 0;
  margin-bottom: 14px;
}
.provider-card-body ul li {
  padding: 4px 0 4px 22px;
  position: relative;
  font-size: .9rem;
}
.provider-card-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal-500);
}
.provider-cta {
  display: inline-block;
  padding: 10px 24px;
  background: var(--teal-700);
  color: var(--white);
  border-radius: 6px;
  font-weight: 600;
  font-size: .9rem;
  margin-top: 8px;
  transition: background .2s;
}
.provider-cta:hover { background: var(--teal-900); text-decoration: none; }

/* === Factors / Educational === */
.factors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.factor-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}
.factor-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--teal-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.factor-card h3 { font-size: 1.05rem; }
.factor-card p { font-size: .88rem; color: var(--gray-500); margin-bottom: 0; }

/* === Budget Section === */
.budget-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.budget-card {
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--gray-300);
}
.budget-card.recommended {
  border: 2px solid var(--teal-500);
  background: var(--teal-50);
}
.budget-card .tier-label {
  font-size: .75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--gray-500);
  margin-bottom: 6px;
}
.budget-card.recommended .tier-label { color: var(--teal-700); }
.budget-card h3 { margin-bottom: 8px; }
.budget-card p { font-size: .88rem; margin-bottom: 0; }

/* === FAQ === */
.faq-list { margin-top: 24px; }
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-q {
  padding: 16px 48px 16px 20px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  position: relative;
  color: var(--gray-900);
  background: var(--white);
  border: none;
  width: 100%;
  text-align: left;
  line-height: 1.5;
  font-family: inherit;
}
.faq-q::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--teal-600);
  transition: transform .2s;
}
.faq-item.open .faq-q::after { content: "\2212"; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  padding: 0 20px;
  font-size: .9rem;
  line-height: 1.7;
  background: var(--gray-50);
}
.faq-item.open .faq-a {
  max-height: 600px;
  padding: 16px 20px;
}

/* === Disclosure === */
.disclosure {
  background: var(--amber-100);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 32px 0;
  font-size: .85rem;
  color: var(--amber-600);
  line-height: 1.6;
}
.disclosure strong { color: var(--gray-900); }

/* === Footer === */
.site-footer {
  background: var(--gray-900);
  color: rgba(255,255,255,.7);
  padding: 40px 0 24px;
  font-size: .85rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 20px;
}
.footer-links a { color: rgba(255,255,255,.7); }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}
.footer-disclaimer { font-size: .78rem; color: rgba(255,255,255,.4); max-width: 600px; margin-top: 12px; }

/* === Responsive === */
@media (min-width: 640px) {
  h1 { font-size: 2.4rem; }
  .hero { padding: 80px 0 60px; }
  .hero h1 { font-size: 2.4rem; }
}

@media (min-width: 768px) {
  section { padding: 60px 0; }
  .provider-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .header-nav { display: none; }
  .calc-results { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.6rem; }
}
