:root {
  --ink: #132238;
  --muted: #5a697a;
  --soft: #f5f7fa;
  --line: #d9e1ea;
  --header: #0f2747;
  --header-2: #173d66;
  --accent: #f39a2f;
  --accent-dark: #c56d12;
  --cream: #fff7e8;
  --white: #ffffff;
  --success: #1e6b56;
  --shadow: 0 18px 45px rgba(15, 39, 71, 0.13);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  max-width: 780px;
}

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 999;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  color: var(--ink);
  background: var(--accent);
}

.topbar {
  background: #08203b;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
}

.topbar-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
}

.topbar p {
  margin: 0;
}

.topbar a {
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 22px rgba(6, 20, 38, 0.18);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--white);
  white-space: nowrap;
}

.brand:hover {
  color: var(--white);
}

.brand-logo {
  width: 230px;
  height: auto;
  display: block;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
}

.nav-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.88);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.nav-group {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  left: 0;
  top: 44px;
  min-width: 210px;
  padding: 8px;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.18s ease;
}

.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--ink);
}

.nav-dropdown a:hover {
  color: var(--ink);
  background: var(--soft);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 10px;
}

.menu-button span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
}

.mobile-nav {
  display: none;
}

.hero {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--header);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 21, 40, 0.94) 0%, rgba(6, 21, 40, 0.82) 48%, rgba(6, 21, 40, 0.4) 100%);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 78px 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow,
.page-hero .eyebrow,
.article-header .eyebrow {
  color: #ffd38e;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(42px, 6vw, 72px);
}

h2 {
  font-size: clamp(28px, 3vw, 42px);
}

h3 {
  font-size: 21px;
}

p {
  margin: 0;
}

.hero p:not(.eyebrow) {
  max-width: 620px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 800;
  line-height: 1.2;
}

.button-primary,
.button-amazon {
  color: #231400;
  background: var(--accent);
  box-shadow: 0 10px 24px rgba(243, 154, 47, 0.28);
}

.button-primary:hover,
.button-amazon:hover {
  color: #231400;
  background: #ffad45;
}

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

.button-secondary:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.section {
  padding: 78px 0;
}

.section-muted {
  background: var(--soft);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin-bottom: 12px;
}

.section-heading.split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.text-link {
  color: var(--header-2);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.niche-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.niche-card {
  min-height: 275px;
  display: grid;
  grid-template-rows: 150px auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(19, 34, 56, 0.06);
}

.niche-card:hover {
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.niche-card img,
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.niche-card span,
.niche-card p {
  padding: 0 16px;
}

.niche-card span {
  margin-top: 14px;
  font-size: 19px;
  font-weight: 850;
}

.niche-card p {
  margin: 8px 0 18px;
  color: var(--muted);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.featured-grid .article-card-featured {
  grid-column: span 2;
}

.article-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(19, 34, 56, 0.06);
}

.article-card:hover {
  box-shadow: var(--shadow);
}

.card-image {
  display: block;
  height: 168px;
  background: var(--soft);
}

.article-card-featured .card-image {
  height: 260px;
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin-bottom: 10px;
}

.card-body h3 a:hover {
  color: var(--accent-dark);
}

.card-body p:not(.eyebrow) {
  color: var(--muted);
}

.card-meta {
  margin-top: 14px;
  font-size: 13px;
}

.trust-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
}

.trust-band h2 {
  margin-bottom: 14px;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin: 12px 0;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.75);
}

.page-hero,
.article-header {
  color: var(--white);
  background:
    radial-gradient(circle at 12% 10%, rgba(243, 154, 47, 0.28), transparent 26%),
    linear-gradient(135deg, var(--header), #122f53 58%, #183d66);
}

.page-hero {
  padding: 70px 0;
}

.page-hero.compact {
  padding: 58px 0;
}

.page-hero-grid,
.article-header-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.75fr);
  gap: 36px;
  align-items: center;
}

.page-hero p:not(.eyebrow),
.article-header p:not(.eyebrow) {
  max-width: 760px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
}

.page-hero-image,
.article-hero-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.09);
  font-weight: 750;
  font-size: 14px;
}

.section .chip {
  color: var(--header-2);
  border-color: var(--line);
  background: var(--white);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 42px;
}

.prose {
  color: var(--ink);
}

.prose h2 {
  margin-top: 32px;
  margin-bottom: 10px;
  font-size: 30px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin-bottom: 16px;
  color: var(--muted);
}

.side-note,
.disclosure-box,
.summary-box,
.scenario-block,
.editor-note,
.cta-panel {
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
}

.side-note {
  align-self: start;
  padding: 22px;
  box-shadow: 0 12px 32px rgba(19, 34, 56, 0.08);
}

.side-note p:last-child {
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 850;
}

details p {
  padding: 0 20px 20px;
  color: var(--muted);
}

.article-header {
  padding: 66px 0;
}

.article-meta {
  font-size: 14px;
}

.article-body-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 780px);
  gap: 44px;
  align-items: start;
  padding-top: 48px;
  padding-bottom: 80px;
}

.toc {
  position: sticky;
  top: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.toc-title {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
  color: var(--muted);
}

.toc a {
  display: block;
  padding: 8px 0;
  color: var(--header-2);
  font-weight: 760;
}

.article-content {
  min-width: 0;
}

.article-content > * + * {
  margin-top: 26px;
}

.article-content h2 {
  margin-bottom: 14px;
  font-size: 31px;
}

.article-content p,
.article-content li {
  color: var(--muted);
  font-size: 18px;
}

.article-deep-dive p + p {
  margin-top: 14px;
}

.article-inline-figure {
  margin: 30px 0;
}

.article-inline-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
}

.lead {
  color: var(--ink) !important;
  font-size: 21px !important;
}

.disclosure-box,
.summary-box,
.scenario-block,
.editor-note {
  padding: 22px;
}

.disclosure-box {
  background: #fff3db;
  border-color: #f1cf9b;
}

.summary-box {
  background: var(--soft);
}

.summary-box ul {
  margin: 0;
  padding-left: 20px;
}

.scenario-block {
  background: #eef8fa;
}

.cta-panel {
  display: grid;
  gap: 18px;
  padding: 24px;
  background: linear-gradient(135deg, var(--header), #173f67);
  color: var(--white);
}

.cta-panel h2 {
  color: var(--white);
}

.cta-panel p {
  color: rgba(255, 255, 255, 0.82);
}

.cta-panel .button {
  justify-self: start;
}

.cta-note {
  font-size: 14px !important;
}

.faq-mini {
  display: grid;
  gap: 10px;
}

.compact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.editor-note {
  color: var(--muted);
  background: var(--cream);
}

.comparison-preview-note,
.comparison-disclosure,
.comparison-method,
.comparison-model-block,
.comparison-sources,
.comparison-preview-cta {
  border: 1px solid var(--line);
  border-radius: 8px;
}

.comparison-preview-note {
  padding: 12px 14px;
  color: var(--muted);
  background: var(--soft);
  font-size: 14px;
}

.comparison-intro {
  display: grid;
  gap: 16px;
}

.comparison-disclosure {
  padding: 18px;
  background: #fff3db;
  border-color: #f1cf9b;
}

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

.comparison-method {
  padding: 22px;
  background: var(--white);
}

.comparison-table-section {
  display: grid;
  gap: 14px;
}

.comparison-table-wrap {
  overflow: visible;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}

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

.comparison-table th {
  color: var(--ink);
  background: var(--soft);
  font-size: 14px;
}

.comparison-table td {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.comparison-table th:last-child,
.comparison-table td:last-child {
  border-right: 0;
}

.comparison-table tr:last-child td {
  border-bottom: 0;
}

.comparison-models {
  display: grid;
  gap: 22px;
}

.comparison-section-heading h2 {
  margin-bottom: 0;
}

.comparison-model-block {
  padding: 24px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(19, 34, 56, 0.07);
}

.comparison-model-scenario {
  display: grid;
  gap: 4px;
  margin: 0 0 16px;
  color: var(--ink) !important;
  font-size: 17px !important;
}

.comparison-model-scenario span,
.comparison-sources p {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.comparison-model-copy {
  display: grid;
  gap: 14px;
}

.comparison-inline-figure {
  margin: 22px 0 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--soft);
}

.comparison-inline-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.comparison-sources {
  margin-top: 18px;
  padding: 16px;
  background: var(--soft);
}

.comparison-sources p {
  margin: 0 0 8px;
}

.comparison-sources div,
.comparison-sources a {
  color: var(--header-2);
  font-weight: 720;
}

.comparison-preview-cta {
  margin-top: 18px;
  border: 0;
  padding: 0;
  background: transparent;
}

.comparison-preview-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 7px;
  color: #081d35;
  background: var(--accent);
  font-size: 15px;
  font-weight: 820;
  line-height: 1.2;
  text-align: center;
}

.site-footer {
  color: rgba(255, 255, 255, 0.82);
  background: #081d35;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(150px, 0.7fr));
  gap: 32px;
  padding: 52px 0 34px;
}

.brand-footer {
  margin-bottom: 14px;
}

.footer-brand p {
  max-width: 420px;
}

.footer-disclosure {
  max-width: 460px;
  margin-top: 18px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

.footer-title {
  margin-bottom: 12px;
  color: var(--white);
  font-weight: 850;
}

.footer-column a {
  display: block;
  padding: 5px 0;
}

.footer-column a:hover,
.footer-bottom a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: inline-block;
  }

  .mobile-nav {
    display: none;
    padding: 8px 20px 18px;
    background: #0b223d;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .mobile-nav[data-open] {
    display: grid;
    gap: 4px;
  }

  .mobile-nav a {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 760;
  }

  .mobile-nav a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
  }

  .niche-grid,
  .article-grid,
  .page-hero-grid,
  .article-header-grid,
  .content-grid,
  .article-body-grid,
  .trust-band,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

  .compact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .topbar {
    font-size: 12px;
  }

  .header-inner {
    min-height: 64px;
  }

  .brand-logo {
    width: 196px;
  }

  .hero {
    min-height: 520px;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(6, 21, 40, 0.92) 0%, rgba(6, 21, 40, 0.76) 100%);
  }

  .hero-content {
    padding: 58px 0;
  }

  h1 {
    font-size: 41px;
  }

  h2 {
    font-size: 29px;
  }

  .hero p:not(.eyebrow),
  .page-hero p:not(.eyebrow),
  .article-header p:not(.eyebrow) {
    font-size: 17px;
  }

  .button-row,
  .section-heading.split,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 54px 0;
  }

  .page-hero,
  .article-header {
    padding: 46px 0;
  }

  .card-image,
  .article-card-featured .card-image {
    height: 170px;
  }

  .article-body-grid {
    padding-top: 30px;
    padding-bottom: 56px;
  }

  .article-content p,
  .article-content li {
    font-size: 16px;
  }

  .lead {
    font-size: 18px !important;
  }

  .disclosure-box,
  .summary-box,
  .scenario-block,
  .editor-note,
  .cta-panel,
  .comparison-method,
  .comparison-model-block,
  .trust-band {
    padding: 18px;
  }

  .comparison-table,
  .comparison-table thead,
  .comparison-table tbody,
  .comparison-table tr,
  .comparison-table th,
  .comparison-table td {
    display: block;
  }

  .comparison-table {
    border: 0;
    background: transparent;
  }

  .comparison-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .comparison-table tr {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    overflow: hidden;
  }

  .comparison-table tr + tr {
    margin-top: 12px;
  }

  .comparison-table td {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    border-right: 0;
    font-size: 15px;
  }

  .comparison-table td::before {
    content: attr(data-label);
    color: var(--ink);
    font-weight: 850;
  }
}
