:root {
  --ink: #172033;
  --muted: #5c6878;
  --line: #dbe3ed;
  --paper: #f7f9fc;
  --panel: #ffffff;
  --blue: #0a64d6;
  --blue-dark: #084ea8;
  --teal: #0b8f7a;
  --teal-soft: #e8f7f4;
  --gold: #f2b84b;
  --shadow: 0 12px 28px rgba(23, 32, 51, 0.08);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

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

button,
input {
  font: inherit;
}

.wrap {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.top-line {
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
}

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

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 850;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--blue);
}

.brand-mark.small {
  width: 30px;
  height: 30px;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.mark-bg {
  fill: currentColor;
}

.mark-check,
.mark-spark {
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mark-check {
  stroke-width: 4;
}

.mark-spark {
  stroke: var(--teal);
  stroke-width: 3;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.nav-links a {
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: #edf3fb;
  color: var(--blue-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(310px, 0.78fr);
  gap: 34px;
  align-items: center;
}

.hero {
  padding: 56px 0 38px;
}

.home-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.9), transparent 28%),
    radial-gradient(circle at 82% 24%, rgba(217, 249, 239, 0.8), transparent 34%),
    linear-gradient(135deg, #edf7ff, #e8f7f4 52%, #f7fbff);
}

.home-hero-inner {
  display: grid;
  justify-items: center;
  padding: 52px 0 62px;
  text-align: center;
}

.home-hero h1 {
  max-width: 860px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(38px, 5.4vw, 66px);
  line-height: 1.06;
  letter-spacing: 0;
}

.home-hero p {
  max-width: 680px;
  margin: 18px 0 0;
  color: #4b5563;
  font-size: 20px;
}

.home-hero .search-panel {
  width: min(620px, 100%);
  margin-top: 30px;
}

.home-tile-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  width: min(980px, 100%);
  margin-top: 28px;
}

.home-tile {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  flex: 1 1 300px;
  max-width: 540px;
  min-height: 96px;
  border-radius: 8px;
  padding: 16px 18px;
  border: 1px solid rgba(163, 184, 206, 0.42);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  box-shadow: 0 16px 36px rgba(23, 32, 51, 0.1);
}

.home-tile.is-primary {
  flex-basis: 430px;
}

.home-tile-media {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background: linear-gradient(145deg, #eff9f6, #eef6ff);
  color: var(--brand);
}

.home-tile-media svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-tile-body {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding-left: 16px;
  border-left: 1px solid #d8e4ee;
}

.home-tile strong {
  overflow-wrap: anywhere;
  font-size: 19px;
  line-height: 1.14;
}

.home-tile em {
  color: #334155;
  font-size: 15px;
  font-style: normal;
}

.ranking-hero {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(115deg, transparent 0 18%, rgba(255, 255, 255, 0.42) 18% 34%, transparent 34%),
    #e7e7e7;
}

.ranking-hero-inner {
  display: grid;
  justify-items: center;
  padding: 34px 0 46px;
  text-align: center;
}

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

.ranking-hero h1 {
  max-width: 1040px;
  font-size: clamp(32px, 4.1vw, 50px);
}

.hero p,
.page-hero p,
.ranking-hero p {
  max-width: 860px;
  margin: 16px 0 0;
  color: #4b5563;
  font-size: 17px;
}

.ranking-update-bar {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.46);
  color: #1f2937;
  font-size: 17px;
  font-weight: 800;
  text-align: center;
}

.ranking-update-bar .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-block: 9px;
}

.flag {
  font-size: 26px;
  line-height: 1;
}

.trust-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 24px;
  margin-top: 22px;
  color: #242a35;
  font-size: 17px;
  font-weight: 800;
}

.trust-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
}

.trust-metrics span::before {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  content: "✓";
  font-size: 16px;
  font-weight: 900;
}

.trust-metrics span:nth-child(2)::before {
  background: #fff5db;
  color: #ff9800;
  content: "★";
  font-size: 19px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.pill-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  padding: 7px 15px;
  background: rgba(255, 255, 255, 0.76);
  color: #5a6272;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.pill-button::before {
  content: "◉";
  color: currentColor;
  font-size: 15px;
}

.pill-button.is-green {
  background: #e8f7f0;
  color: #147957;
}

.pill-button:hover {
  background: #fff;
}

.hero p,
.page-hero p {
  max-width: 740px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.eyebrow,
.meta,
.product-kicker {
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-panel {
  position: relative;
  max-width: 640px;
  margin-top: 24px;
}

.search-panel input,
.newsletter-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
}

.search-results {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 10;
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.search-results:empty,
.search-results[hidden] {
  display: none;
}

.search-results a,
.search-results p {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 12px 14px;
  color: var(--ink);
  text-decoration: none;
}

.search-results a + a {
  border-top: 1px solid var(--line);
}

.search-results span {
  color: var(--muted);
  font-size: 13px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  padding: 10px 16px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--blue-dark);
}

.button.secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.button.full {
  width: 100%;
}

.text-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.hero-product {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-product img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 22px;
  background: #f8fafc;
}

.hero-product-body {
  padding: 18px;
}

.hero-product-body span {
  color: var(--teal);
  font-weight: 850;
}

.hero-product-body h2 {
  margin: 6px 0 10px;
  font-size: 22px;
  line-height: 1.2;
}

.rank-chip {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  border-radius: 999px;
  padding: 7px 11px;
  background: var(--ink);
  color: #fff;
  font-weight: 850;
}

.score-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.score-row strong {
  font-size: 32px;
}

.stars {
  position: relative;
  display: inline-block;
  width: max-content;
  color: #d1d5db;
  letter-spacing: 0;
  line-height: 1;
}

.stars::before {
  position: absolute;
  inset: 0;
  width: var(--rating, 0%);
  overflow: hidden;
  color: #f5a400;
  content: "★★★★★";
  white-space: nowrap;
}

.stars span {
  color: inherit;
}

.section {
  padding: 34px 0;
}

.section-header {
  margin-bottom: 18px;
}

.section-header h2,
.trust-grid h2,
.newsletter h2,
.content-panel h2,
.info-strip h2,
.faq-section h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

.section-header p,
.trust-grid p,
.newsletter p,
.content-panel p,
.info-strip p,
.faq-section p,
.footer-inner p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

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

.ranking-card,
.category-tile,
.content-panel,
.sidebar-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.05);
}

.ranking-card {
  overflow: hidden;
}

.ranking-card a,
.category-tile a {
  color: inherit;
  text-decoration: none;
}

.ranking-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  padding: 16px;
  background: #f8fafc;
}

.card-body,
.content-panel,
.sidebar-box {
  padding: 18px;
}

.ranking-card h3,
.category-tile h3 {
  margin: 8px 0;
  font-size: 20px;
  line-height: 1.24;
}

.ranking-card p,
.category-tile p {
  margin: 0;
  color: var(--muted);
}

.category-tile a {
  display: grid;
  min-height: 220px;
  padding: 18px;
}

.category-tile span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.category-tile img {
  align-self: end;
  justify-self: end;
  width: 54%;
  max-height: 110px;
  object-fit: contain;
}

.trust-band {
  border-block: 1px solid var(--line);
  background: #fff;
}

.trust-grid {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: 24px;
  align-items: center;
}

.newsletter {
  background: var(--teal-soft);
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 460px);
  gap: 24px;
  align-items: center;
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.page-hero {
  padding: 42px 0 20px;
}

.breadcrumb {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--blue);
  text-decoration: none;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
}

.disclosure-strip {
  border-bottom: 1px solid var(--line);
  background: #f0f7ff;
  color: #2d405a;
  font-size: 14px;
  font-weight: 650;
}

.disclosure-strip .wrap {
  padding-block: 11px;
}

.disclosure-strip a {
  color: var(--blue);
}

.ranking-layout {
  display: block;
}

.ranking-list {
  display: grid;
  gap: 18px;
}

.product-card {
  position: relative;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 170px;
  gap: 28px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 44px 22px 22px;
  box-shadow: 0 12px 30px rgba(23, 32, 51, 0.06);
  cursor: pointer;
}

.product-card:focus-visible {
  outline: 3px solid rgba(10, 100, 214, 0.35);
  outline-offset: 3px;
}

.product-card.is-first {
  border-color: var(--teal);
  box-shadow: 0 16px 36px rgba(11, 143, 122, 0.13);
}

.rank-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 850;
}

.rank-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  overflow: hidden;
  border-radius: 7px 0 8px 0;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.rank-ribbon span {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 36px;
  background: #050505;
  font-size: 20px;
}

.rank-ribbon strong {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 15px;
  background: #075e4f;
  letter-spacing: 0.02em;
}

.rank-ribbon strong::after {
  margin-left: 8px;
  color: #b8f7df;
  content: "✓";
  font-size: 14px;
}

.rank-ribbon.rank-only {
  border-radius: 7px 0 7px 0;
}

.product-image-wrap img {
  width: 164px;
  height: 164px;
  object-fit: contain;
  margin: 0 auto;
}

.product-main h2 {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 12px;
  align-items: center;
  margin: 8px 0 14px;
  font-size: 21px;
  line-height: 1.2;
}

.product-main p {
  margin: 0 0 12px;
  color: var(--muted);
}

.product-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  border-radius: 0 8px 8px 0;
  padding: 4px 12px;
  background: linear-gradient(90deg, #a7f3d0, #5eead4);
  color: #075e4f;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 4px 11px;
  background: #111827;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.amazon-title {
  display: -webkit-box;
  max-width: 980px;
  overflow: hidden;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.amazon-title a {
  color: #111;
  font-weight: 700;
  text-decoration: underline;
  white-space: nowrap;
}

.amazon-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.amazon-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 900;
}

.review-count {
  background: #f3f8ff;
  color: var(--blue);
}

.bought-badge {
  background: #fff3cd;
  color: #7a4d00;
}

.discount-badge {
  background: #ff2f3b;
  color: #fff;
  font-size: 14px !important;
}

.clean-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.clean-list li {
  position: relative;
  padding-left: 18px;
  color: #334155;
}

.clean-list li::before {
  position: absolute;
  left: 0;
  color: var(--teal);
  content: "✓";
  font-weight: 900;
}

.consideration {
  margin-top: 12px;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f8fafc;
  color: #475569;
  font-size: 14px;
}

.product-score {
  display: grid;
  justify-items: stretch;
  gap: 14px;
  text-align: center;
}

.product-score strong {
  font-size: 46px;
  line-height: 1;
}

.product-score .stars {
  justify-self: center;
  font-size: 24px;
}

.product-score .button {
  min-height: 42px;
  padding: 8px 14px;
  font-size: 15px;
}

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

.info-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 44px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.info-strip article {
  padding: 6px 0;
}

.faq-section {
  max-width: 900px;
}

.faq-item {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 16px;
}

.faq-item h3 {
  margin: 0;
  font-size: 18px;
}

.prose {
  max-width: 820px;
}

.prose p {
  margin: 0 0 16px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
}

.page-link {
  display: grid;
  place-items: center;
  min-width: 38px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
}

.page-link.current {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.54);
}

.modal-dialog {
  position: relative;
  width: min(560px, 100%);
  border-radius: 8px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.modal-dialog h2 {
  margin: 0 34px 10px 0;
}

.modal-dialog p {
  margin: 0;
  color: var(--muted);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 28px 0;
}

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

.footer-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 900px) {
  .hero,
  .trust-grid,
  .newsletter-inner,
  .footer-inner,
  .info-strip {
    grid-template-columns: 1fr;
  }

  .ranking-grid,
  .category-grid,
  .two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card {
    grid-template-columns: 130px minmax(0, 1fr);
  }

  .product-score {
    grid-column: 1 / -1;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    text-align: left;
  }

  .trust-metrics {
    gap: 12px 18px;
    font-size: 17px;
  }

  .home-tile-grid {
    justify-content: stretch;
  }

  .home-tile.is-primary {
    flex-basis: 300px;
  }
}

@media (max-width: 640px) {
  .wrap,
  .nav {
    width: min(100% - 24px, 1160px);
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero,
  .ranking-hero-inner {
    padding-block: 30px;
  }

  .hero h1,
  .page-hero h1,
  .ranking-hero h1 {
    font-size: 36px;
  }

  .home-hero h1 {
    font-size: 34px;
  }

  .home-hero p {
    font-size: 17px;
  }

  .ranking-grid,
  .category-grid,
  .two-column,
  .info-strip,
  .newsletter-form,
  .product-card,
  .product-score {
    grid-template-columns: 1fr;
  }

  .home-tile-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .home-tile {
    grid-template-columns: 62px 1fr;
    max-width: none;
  }

  .ranking-update-bar {
    font-size: 15px;
  }

  .trust-metrics {
    display: grid;
    justify-content: center;
  }

  .pill-button {
    width: 100%;
    justify-content: center;
    font-size: 16px;
  }

  .product-card {
    padding: 18px;
  }

  .rank-badge {
    top: 10px;
    left: 10px;
  }

  .product-image-wrap img {
    width: 170px;
    height: 170px;
  }

  .product-score {
    text-align: center;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
