/* TradeBasis — /compare/vauto-alternative standalone stylesheet
   Design tokens: navy #0F1B2D · accent #4D7EF7 · text #E8ECF4
   No Tailwind — plain CSS served directly by Express. */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: #0F1B2D;
  color: #E8ECF4;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #4D7EF7;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

/* ─── Layout helpers ────────────────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero,
.quick-take-section,
.differentiators,
.who-should-switch,
.faq,
.closing-cta {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.compare-table-section {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

section {
  padding: 4rem 0;
}

/* ─── Buttons ───────────────────────────────────────────────────────────────── */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: #4D7EF7;
  color: #fff;
  border: 2px solid #4D7EF7;
}
.btn-primary:hover {
  background: #3768e0;
  border-color: #3768e0;
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: #4D7EF7;
  border: 2px solid #4D7EF7;
}
.btn-secondary:hover {
  background: #4D7EF7;
  color: #fff;
  text-decoration: none;
}

/* ─── Header ────────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0a1420;
  border-bottom: 1px solid rgba(77, 126, 247, 0.15);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  gap: 1rem;
}

.logo-link {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.logo-link:hover {
  color: #4D7EF7;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  color: #9db3d4;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}
.site-nav a:hover {
  color: #E8ECF4;
  text-decoration: none;
}

.cta-nav {
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
  border-radius: 5px;
  background: #4D7EF7;
  color: #fff !important;
  font-weight: 600;
  transition: background 0.18s;
}
.cta-nav:hover {
  background: #3768e0 !important;
  color: #fff !important;
  text-decoration: none !important;
}

/* ─── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #4D7EF7;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.15rem;
  color: #9db3d4;
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.hero-meta {
  font-size: 0.8rem;
  color: #6b829e;
}

/* ─── Quick-take ────────────────────────────────────────────────────────────── */
.quick-take-section {
  padding-top: 0;
  padding-bottom: 2rem;
}

.quick-take {
  background: rgba(77, 126, 247, 0.07);
  border: 1px solid rgba(77, 126, 247, 0.18);
  border-radius: 10px;
  padding: 2.5rem 2rem;
  margin: 0 auto 1rem;
}

.quick-take h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.quick-take p {
  color: #b8c8dc;
  margin-bottom: 0.75rem;
  max-width: 760px;
}
.quick-take p:last-child {
  margin-bottom: 0;
}

/* ─── Comparison table ──────────────────────────────────────────────────────── */
.compare-table-section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 560px;
}

.compare-table thead th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #9db3d4;
}

.compare-table thead th:nth-child(2) {
  background: rgba(77, 126, 247, 0.12);
  color: #4D7EF7;
}

.compare-table tbody th {
  padding: 0.8rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #c8d8ec;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  width: 34%;
}

.compare-table tbody td {
  padding: 0.8rem 1rem;
  color: #b0c4d8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
}

.compare-table tbody td:nth-child(2) {
  background: rgba(77, 126, 247, 0.06);
  color: #cddcf8;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table tbody tr:hover th,
.compare-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.compare-table tbody tr:hover td:nth-child(2) {
  background: rgba(77, 126, 247, 0.1);
}

/* ─── Differentiators ───────────────────────────────────────────────────────── */
.differentiators h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2rem;
}

.differentiator {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.differentiator:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.differentiator h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #4D7EF7;
  margin-bottom: 0.5rem;
}

.differentiator p {
  color: #9db3d4;
  max-width: 760px;
}

/* ─── Who-should-switch ─────────────────────────────────────────────────────── */
.who-should-switch h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}
.who-should-switch h2 + h2 {
  margin-top: 2rem;
}

.who-should-switch ul {
  list-style: none;
  margin-bottom: 1rem;
}

.who-should-switch ul li {
  padding: 0.5rem 0 0.5rem 1.75rem;
  position: relative;
  color: #b0c4d8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.who-should-switch ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #4D7EF7;
  font-weight: 700;
}

.who-should-switch ul:last-of-type li::before {
  content: '✗';
  color: #e05c6a;
}

.who-should-switch > p {
  font-size: 0.9rem;
  color: #6b829e;
  margin-top: 1rem;
}

/* ─── FAQ ───────────────────────────────────────────────────────────────────── */
.faq h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
}

.faq-item {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.faq-item:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-item summary {
  list-style: none;
  padding: 1.1rem 2rem 1.1rem 0;
  position: relative;
  cursor: pointer;
  font-weight: 600;
  color: #d0dff0;
  font-size: 0.97rem;
  transition: color 0.15s;
  user-select: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: #4D7EF7;
  line-height: 1;
}
.faq-item[open] summary::after {
  content: '−';
}
.faq-item summary:hover {
  color: #fff;
}

.faq-item p {
  padding: 0 0 1.25rem;
  color: #9db3d4;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 760px;
}

/* ─── Closing CTA ───────────────────────────────────────────────────────────── */
.closing-cta {
  text-align: center;
  padding: 4.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.closing-cta h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.closing-cta p {
  color: #9db3d4;
  max-width: 540px;
  margin: 0 auto 2rem;
}

/* ─── Footer ────────────────────────────────────────────────────────────────── */
.site-footer {
  background: #07101a;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 2rem 0;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer .byline {
  font-size: 0.85rem;
  color: #4a617a;
}

.footer-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.85rem;
  color: #4a617a;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-nav a:hover {
  color: #9db3d4;
}

/* ─── Mobile ────────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero {
    text-align: left;
  }
  .hero-sub {
    margin-left: 0;
    margin-right: 0;
  }
  .hero-ctas {
    justify-content: flex-start;
  }

  .site-nav a:not(.cta-nav) {
    display: none;
  }

  .compare-table tbody th {
    width: 40%;
  }

  .site-footer .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero,
  .quick-take-section,
  .differentiators,
  .who-should-switch,
  .faq,
  .closing-cta,
  .compare-table-section {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}
