:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-subtle: #f1f5f9;
  --surface-dark: #0f172a;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #eff6ff;
  --accent-border: #bfdbfe;
  --emerald: #059669;
  --emerald-soft: #ecfdf5;
  --amber: #d97706;
  --amber-soft: #fffbeb;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px -10px rgba(15, 23, 42, 0.08), 0 4px 10px -4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 40px -15px rgba(15, 23, 42, 0.12);
  --max-w: 1160px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 16px;
}

.disclosure-banner {
  background: #0f172a;
  color: #cbd5e1;
  font-size: 12.5px;
  padding: 8px 16px;
  text-align: center;
  border-bottom: 1px solid #1e293b;
}

.disclosure-banner a {
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2563eb, #0f172a);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s ease;
}

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

.nav-cta {
  background: var(--surface-dark);
  color: #fff !important;
  padding: 8px 15px;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  font-size: 13.5px !important;
}

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  padding: 64px 0 48px;
  background: radial-gradient(circle at 50% 0%, #eff6ff 0%, #f8fafc 65%);
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.13;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  line-height: 1.24;
  letter-spacing: -0.025em;
  font-weight: 750;
  margin-bottom: 14px;
}

h3 {
  font-size: 1.18rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin-bottom: 8px;
}

.lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 760px;
}

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text-muted);
}

.trust-bar strong {
  color: var(--text-primary);
}

.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 22px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.pill {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-subtle);
  color: var(--text-secondary);
}

.pill-green {
  background: var(--emerald-soft);
  color: var(--emerald);
}

.pill-blue {
  background: var(--accent-soft);
  color: var(--accent);
}

.pill-amber {
  background: var(--amber-soft);
  color: var(--amber);
}

.card p {
  color: var(--text-secondary);
  font-size: 14.5px;
  margin-bottom: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  font-weight: 650;
  font-size: 14.5px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-dark {
  background: var(--surface-dark);
  color: #fff;
}

.btn-dark:hover {
  background: #1e293b;
}

.btn-outline {
  background: var(--surface);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Interactive Calculator Shell */
.calc-shell {
  display: grid;
  grid-template-columns: 1.05fr 1.25fr;
  gap: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  margin: 28px 0 44px;
}

.calc-controls {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-right: 16px;
  border-right: 1px solid var(--border);
}

.control-group label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 650;
  font-size: 14.5px;
  margin-bottom: 8px;
}

.control-val {
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  font-weight: 800;
  font-size: 16px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  height: 6px;
  cursor: pointer;
}

select.calc-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  background: var(--surface);
  color: var(--text-primary);
}

.calc-results {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.result-highlight {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  padding: 24px;
  border-radius: var(--radius-md);
}

.result-highlight .label {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #93c5fd;
  font-weight: 700;
}

.result-highlight .big-number {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin: 6px 0 6px;
}

.result-highlight .sub {
  color: #cbd5e1;
  font-size: 14px;
  margin-bottom: 16px;
}

.vendor-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vendor-row {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
}

.vendor-row.recommended {
  background: var(--accent-soft);
  border-color: var(--accent-border);
}

.vendor-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 650;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.bar-track {
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.2s ease;
}

/* Tables & Editorial Content */
.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin: 24px 0 36px;
}

table.comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.comp-table th,
.comp-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comp-table th {
  background: var(--surface-subtle);
  font-weight: 700;
  color: var(--text-primary);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.comp-table tr:last-child td {
  border-bottom: none;
}

.verdict-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 26px 0 36px;
}

.verdict-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.verdict-box.secondary {
  border-top-color: #64748b;
}

.verdict-box ul {
  margin: 14px 0 20px 18px;
  color: var(--text-secondary);
  font-size: 14.5px;
}

.verdict-box li {
  margin-bottom: 7px;
}

.prose {
  max-width: 820px;
}

.prose h2 {
  margin-top: 38px;
}

.prose h3 {
  margin-top: 24px;
}

.prose p,
.prose li {
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.prose ul {
  padding-left: 22px;
  margin-bottom: 18px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
}

.faq-item h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.faq-item p {
  color: var(--text-secondary);
  font-size: 14.5px;
  margin: 0;
}

.breadcrumbs {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.site-footer {
  background: var(--surface-dark);
  color: #94a3b8;
  padding: 56px 0 40px;
  margin-top: 64px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid #1e293b;
}

.site-footer h4 {
  color: #f8fafc;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.site-footer ul {
  list-style: none;
}

.site-footer li {
  margin-bottom: 9px;
}

.site-footer a {
  color: #94a3b8;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

@media (max-width: 860px) {
  .calc-shell {
    grid-template-columns: 1fr;
    padding: 22px;
  }
  .calc-controls {
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
