:root {
  --ink: #172235;
  --muted: #607087;
  --blue: #1c5d94;
  --blue-dark: #12385c;
  --line: #d8e0ea;
  --paper: #ffffff;
  --wash: #f3f6fa;
  --accent: #e9f3fb;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--wash);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.75;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.site-header {
  color: #fff;
  background: linear-gradient(120deg, var(--blue-dark), #2073a5);
}

.site-header-inner,
.page-shell,
.site-footer {
  width: calc(100% - 32px);
  max-width: 980px;
  margin: 0 auto;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 12px 0;
}

.brand-lockup {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}

.brand-mark {
  display: block;
  flex: 0 0 auto;
  width: 48px;
  height: 40px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand-name {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 750;
  letter-spacing: .01em;
  line-height: 1.2;
}

.tagline {
  color: #d8ebf7;
  font-size: .88rem;
  line-height: 1.25;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 5px 14px;
}

.site-nav a {
  padding: 4px 0;
  color: #eaf5fd;
  font-size: .92rem;
  text-underline-offset: 4px;
}

.site-nav a[aria-current="page"] {
  color: #fff;
  font-weight: 800;
}

.page-shell { padding: 38px 0 56px; }

article {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 58px);
  background: var(--paper);
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(28, 52, 79, .08);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: .83rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1, h2 { color: var(--blue-dark); line-height: 1.2; }
h1 { max-width: 780px; margin: 0 0 22px; font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.035em; }
h2 { margin: 2.4rem 0 12px; font-size: clamp(1.35rem, 3vw, 1.8rem); }
p { margin: 0 0 1.15rem; }
.lead { font-size: clamp(1.08rem, 2vw, 1.22rem); color: #263a51; }

.decision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 1.7rem 0 2.2rem;
}

.decision-card {
  padding: 16px 18px;
  background: #f8fbfe;
  border: 1px solid #dbeaf5;
  border-radius: 12px;
}

.decision-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--blue-dark);
}

.decision-card p { margin: 0; }

.evidence {
  margin: 1.4rem 0;
  padding: 15px 18px;
  background: #f7f9fc;
  border-left: 4px solid #7aa8c8;
  border-radius: 0 10px 10px 0;
}

.evidence p:last-child { margin-bottom: 0; }

.inference {
  color: #29455f;
  font-style: italic;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  margin: 1.2rem 0;
}

.filter-grid label {
  display: grid;
  gap: 5px;
  color: var(--blue-dark);
  font-size: .9rem;
  font-weight: 750;
}

.filter-grid select,
.filter-grid input[type="number"] {
  width: 100%;
  min-height: 40px;
  padding: 7px 9px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #bccbd9;
  border-radius: 7px;
  font: inherit;
}

.filter-check {
  display: flex !important;
  grid-template-columns: auto 1fr;
  grid-template-rows: 40px;
  align-items: center;
  gap: 8px !important;
}

.filter-check input { width: 17px; height: 17px; }

.filter-status {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

.comparison table .is-hidden { display: none; }

.comparison td:first-child,
.comparison th:first-child { white-space: nowrap; }

.comparison .source-cell { min-width: 108px; }

.script-note {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: .93rem;
}

.unique-intro {
  margin-bottom: 1rem;
  color: #5f4b1e;
  font-size: .94rem;
}

.unique li { overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .decision-grid,
  .filter-grid { grid-template-columns: 1fr 1fr; }
}

.comparison,
.unique {
  margin: 2.6rem 0;
  padding: 22px;
  background: #f8fbfe;
  border: 1px solid #dbeaf5;
  border-radius: 14px;
}

.comparison h2,
.unique h2 { margin-top: 0; }

.table-wrap {
  margin: 18px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  font-size: .9rem;
  line-height: 1.5;
}

.homepage-comparison-table {
  min-width: 0;
  table-layout: fixed;
}

.homepage-comparison-table th,
.homepage-comparison-table td { overflow-wrap: anywhere; }
.homepage-comparison-table th:first-child { width: 21%; }
.homepage-comparison-table th:nth-child(2) { width: 49%; }
.homepage-comparison-table th:nth-child(3) { width: 17%; }
.homepage-comparison-table th:nth-child(4) { width: 13%; }

.homepage-comparison-table .model-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.homepage-comparison-table .table-buy-link {
  display: inline-block;
  padding: 4px 7px;
  color: #fff;
  background: var(--blue);
  border-radius: 6px;
  text-decoration: none;
  font-size: .85rem;
  line-height: 1.3;
}

.homepage-comparison-table .table-buy-link:hover { background: var(--blue-dark); }
.homepage-comparison-table small { color: var(--muted); }

th, td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

th:last-child, td:last-child { border-right: 0; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

thead th {
  color: #fff;
  background: var(--blue-dark);
  font-weight: 750;
}

tbody th {
  min-width: 150px;
  color: var(--blue-dark);
  background: #f6f9fc;
  font-weight: 750;
}

.download-note {
  margin-bottom: 0;
  padding: 12px 14px;
  color: #29455f;
  background: var(--accent);
  border-radius: 9px;
}

.unique {
  background: #fffaf1;
  border-color: #f0dfb9;
}

.unique h2 { color: #795a18; }
.unique ul { margin: 0; padding-left: 1.4rem; }
.unique li { margin: .5rem 0; }

.site-footer {
  padding: 0 0 30px;
  color: var(--muted);
  font-size: .86rem;
  text-align: center;
}

.footer-wordmark {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 18px;
}

.site-footer p { margin: 0; }
.copyright { font-weight: 750; }
.affiliate-disclosure {
  max-width: 760px;
  margin: 5px auto 0 !important;
}

@media (max-width: 640px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  body { font-size: 16px; }
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-height: 60px;
    width: 100vw;
    max-width: 100vw;
    padding: 11px 16px 13px;
  }
  .brand-lockup {
    width: 100%;
    justify-content: space-between;
  }
  .tagline { display: none; }
  .site-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 3px 14px;
  }
  .page-shell {
    width: 100vw;
    max-width: 100vw;
    padding: 18px 9px 40px;
  }
  article { width: 100%; max-width: none; padding: 22px 17px; border-radius: 12px; }
  .comparison, .unique { margin-right: -2px; margin-left: -2px; padding: 15px; border-radius: 10px; }
  .decision-grid,
  .filter-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2.05rem; }
  .homepage-comparison-table { font-size: .78rem; }
  .homepage-comparison-table th,
  .homepage-comparison-table td { padding: 9px 6px; }
  .homepage-comparison-table th:first-child { width: 22%; }
  .homepage-comparison-table th:nth-child(2) { width: 43%; }
  .homepage-comparison-table th:nth-child(3) { width: 19%; }
  .homepage-comparison-table th:nth-child(4) { width: 16%; }
  .site-footer { width: 100vw; max-width: 100vw; padding-right: 9px; padding-left: 9px; }
  .affiliate-disclosure { padding: 0 4px; }
}
