:root {
  --ink: #111827;
  --muted: #5f6b7a;
  --line: #d9e2ec;
  --soft: #f5f8fb;
  --panel: #ffffff;
  --night: #08111f;
  --blue: #1769e0;
  --teal: #00a88f;
  --gold: #b5812d;
  --shadow: 0 18px 50px rgba(12, 25, 44, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #ffffff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(217, 226, 236, 0.85);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--night), var(--blue));
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #223044;
  font-size: 14px;
  font-weight: 700;
}

.nav-action {
  padding: 10px 14px;
  color: #ffffff;
  background: var(--ink);
  border-radius: 8px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 8px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #ffffff;
  background: var(--night);
}

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

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

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(8, 17, 31, 0.96), rgba(8, 17, 31, 0.62), rgba(8, 17, 31, 0.18)),
    linear-gradient(0deg, rgba(8, 17, 31, 0.86), rgba(8, 17, 31, 0.05) 48%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  padding: 120px clamp(20px, 6vw, 80px) 72px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 720px;
  margin: 24px 0 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
}

.search-panel {
  width: min(760px, 100%);
  padding: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  backdrop-filter: blur(18px);
}

.search-panel label {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 700;
}

.search-panel div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

textarea {
  resize: vertical;
}

button {
  min-height: 48px;
  padding: 0 18px;
  color: #ffffff;
  background: var(--blue);
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-strip div {
  padding: 24px clamp(18px, 4vw, 48px);
  background: #ffffff;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip span {
  margin-top: 4px;
  color: var(--muted);
}

.section {
  padding: 72px clamp(18px, 4vw, 56px);
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}

.section-heading p:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.category-card {
  min-height: 148px;
  padding: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: rgba(23, 105, 224, 0.35);
  box-shadow: var(--shadow);
}

.category-card span {
  display: block;
  margin-bottom: 20px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.category-card strong {
  display: block;
  font-size: 16px;
  line-height: 1.35;
}

.featured {
  background: linear-gradient(180deg, #f7fbff, #ffffff);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter-button {
  min-height: 40px;
  padding: 0 14px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
}

.filter-button.active {
  color: #ffffff;
  background: var(--ink);
  border-color: var(--ink);
}

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

.review-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 32px rgba(12, 25, 44, 0.08);
}

.review-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.review-card div {
  padding: 18px;
}

.pill {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 8px;
  color: #075c50;
  background: #dff8f3;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.review-card h3,
.deal-board h3,
.process-grid h3 {
  margin: 0;
  line-height: 1.2;
}

.review-card p,
.deal-board p,
.process-grid p {
  color: var(--muted);
}

.score-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 0;
}

.score-row strong {
  color: var(--blue);
  font-size: 28px;
}

.score-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.page-hero,
.article-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 36px;
  align-items: center;
  padding: 72px clamp(18px, 4vw, 56px);
  background: linear-gradient(180deg, #f8fbff, #ffffff);
  border-bottom: 1px solid var(--line);
}

.page-hero.slim {
  grid-template-columns: 1fr;
  background: var(--night);
  color: #ffffff;
}

.page-hero h1,
.article-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1;
  letter-spacing: 0;
}

.page-hero p:not(.eyebrow),
.article-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 19px;
}

.page-hero.slim p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.page-hero img,
.article-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.article-meta span {
  padding: 7px 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.affiliate-note {
  margin: 0;
  padding: 14px clamp(18px, 4vw, 56px);
  color: #594116;
  background: #fff4d9;
  border-bottom: 1px solid #efd8a4;
  font-size: 14px;
  font-weight: 750;
}

.compact-section {
  padding-top: 42px;
}

.content-layout,
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

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

.topic-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.topic-row a,
.sidebar a,
.buy-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 13px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 850;
}

.topic-row a {
  color: var(--blue);
  background: #eef5ff;
  border: 1px solid #cfe1ff;
}

.sidebar {
  padding: 20px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.sidebar.sticky {
  position: sticky;
  top: 92px;
}

.sidebar h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.sidebar a {
  width: 100%;
  justify-content: flex-start;
  margin-top: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.article-body {
  max-width: 900px;
}

.article-body h2 {
  margin: 34px 0 12px;
  font-size: 30px;
  line-height: 1.15;
}

.article-body p,
.article-body details {
  color: #334155;
  font-size: 18px;
}

.quick-verdict {
  padding: 22px;
  background: #f6fbff;
  border: 1px solid #cfe1ff;
  border-radius: 8px;
}

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

.table-row {
  display: grid;
  grid-template-columns: 1.1fr 1.5fr 0.7fr 0.7fr 1.2fr 0.8fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-top: 1px solid var(--line);
}

.table-row:first-child {
  border-top: 0;
}

.table-head {
  color: #ffffff;
  background: var(--night);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.table-row a,
.buy-button {
  color: #ffffff;
  background: var(--blue);
}

details {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

summary {
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 14px 0;
}

.price-row strong {
  color: var(--ink);
  font-size: 28px;
}

.price-row s {
  color: var(--muted);
}

.inline-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  max-width: 780px;
  margin-bottom: 28px;
}

.publish-form.operational {
  max-width: none;
}

.secondary-button {
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
}

.draft-panel {
  margin-top: 28px;
  max-width: 980px;
}

.draft-panel article {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.draft-panel span {
  color: var(--muted);
}

.guide-band {
  color: #ffffff;
  background: var(--night);
}

.guide-band .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.guide-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.guide-list a {
  min-height: 150px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  font-size: 20px;
  font-weight: 850;
}

.guide-list span {
  display: block;
  margin-bottom: 30px;
  color: var(--teal);
  font-size: 12px;
  text-transform: uppercase;
}

.deals {
  background: #fffaf0;
}

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

.deal-board article {
  padding: 22px;
  background: #ffffff;
  border: 1px solid #ecd9b9;
  border-radius: 8px;
}

.deal-board span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.deal-board strong {
  color: #6f4818;
}

.test-process {
  background: #ffffff;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.process-grid div {
  padding: 22px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.process-grid strong {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  place-items: center;
  color: #ffffff;
  background: var(--blue);
  border-radius: 8px;
}

.publisher {
  background: #f6f9fc;
}

.publish-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 980px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.publish-form label {
  color: #26354a;
  font-size: 13px;
  font-weight: 850;
}

.publish-form label > * {
  margin-top: 8px;
}

.publish-form .wide {
  grid-column: 1 / -1;
}

.publish-form button {
  width: fit-content;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 420px) 1fr;
  gap: 36px;
  padding: 44px clamp(18px, 4vw, 56px);
  color: rgba(255, 255, 255, 0.82);
  background: var(--night);
}

.site-footer strong {
  color: #ffffff;
  font-size: 20px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

@media (max-width: 1100px) {
  .category-grid,
  .guide-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .review-grid,
  .process-grid,
  .page-hero,
  .article-hero,
  .content-layout,
  .article-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-layout,
  .article-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 73px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .hero {
    min-height: 620px;
  }

  .hero-content {
    padding-top: 96px;
  }

  .search-panel div {
    grid-template-columns: 1fr;
  }

  .trust-strip,
  .deal-board,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .category-grid,
  .guide-list,
  .review-grid,
  .process-grid,
  .publish-form,
  .page-hero,
  .article-hero,
  .review-grid.two-col,
  .table-row,
  .inline-search {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}
