:root {
  --ink: #14151a;
  --muted: #5d6676;
  --line: #dde3ec;
  --soft: #f5f7fb;
  --paper: #ffffff;
  --dark: #10131a;
  --dark-2: #1b2130;
  --green: #14a17a;
  --blue: #3a7bd5;
  --coral: #ff6b4a;
  --amber: #f0a202;
  --pink: #ef476f;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.1);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: #f7f8fb;
  line-height: 1.6;
  letter-spacing: 0;
}

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

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

button,
input,
select {
  font: inherit;
}

svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  border-radius: 6px;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(221, 227, 236, 0.78);
}

.topbar {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--dark);
  border-radius: 8px;
  font-weight: 900;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 8px;
  background: white;
  box-shadow: 0 0 0 1px var(--line);
}

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

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a,
.nav-menu-trigger {
  padding: 10px 12px;
  color: #293140;
  border-radius: 8px;
}

.nav-links a:hover,
.nav-menu-trigger:hover {
  background: var(--soft);
}

.nav-item {
  position: relative;
}

.nav-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-menu-trigger::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.58;
}

.nav-item.is-open .nav-menu-trigger::after {
  transform: rotate(225deg) translateY(-1px);
}

.nav-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 30;
  display: none;
  min-width: 260px;
  max-height: min(70vh, 540px);
  overflow: auto;
  padding: 8px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.nav-item.is-open .nav-menu {
  display: grid;
}

.nav-menu a {
  display: block;
  padding: 9px 10px;
  color: #334155;
  white-space: nowrap;
}

.nav-menu-primary {
  color: var(--ink) !important;
  font-weight: 900;
  background: #f7f9fc;
}

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

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

.hero-band {
  color: white;
  background:
    linear-gradient(135deg, rgba(20, 161, 122, 0.18), rgba(255, 107, 74, 0.16)),
    linear-gradient(180deg, #111722, #171c25 68%, #222734);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-grid {
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  justify-items: center;
  gap: 34px;
  padding: 64px 0 56px;
}

.hero-copy {
  width: min(980px, 100%);
  text-align: center;
}

.hero-copy .eyebrow {
  justify-content: center;
}

.hero-copy h1,
.page-title-band h1,
.compare-hero h1,
.review-hero h1 {
  max-width: 920px;
  margin: 8px 0 18px;
  font-size: clamp(40px, 7vw, 82px);
  line-height: 1;
}

.hero-copy h1 {
  margin-left: auto;
  margin-right: auto;
}

.lead {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-copy .lead {
  margin-left: auto;
  margin-right: auto;
}

.lead.narrow {
  max-width: 700px;
}

.page-title-band .lead,
.review-hero .lead {
  color: #465063;
}

.eyebrow {
  margin: 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-actions,
.card-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}

.hero-copy .hero-actions {
  justify-content: center;
}

.kakox-search-form {
  max-width: 780px;
  margin-top: 24px;
  padding: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(17, 24, 39, 0.08);
}

.hero-search {
  margin-left: auto;
  margin-right: auto;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.kakox-search-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 900;
}

.hero-search label {
  color: white;
}

.kakox-search-form div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.kakox-search-form input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  color: var(--ink);
  background: white;
  border: 1px solid #cfd7e4;
  border-radius: 8px;
}

.kakox-search-form p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.hero-search p {
  justify-content: center;
  color: rgba(255, 255, 255, 0.76);
}

.kakox-search-form p a {
  padding: 4px 8px;
  color: var(--blue);
  background: #eef5ff;
  border-radius: 999px;
  font-weight: 800;
}

.hero-search p a {
  color: white;
  background: rgba(255, 255, 255, 0.15);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: white;
  background: var(--ink);
}

.hero-band .btn-primary,
.compare-hero .btn-primary,
.cta-strip .btn-primary {
  color: var(--ink);
  background: white;
}

.btn-primary span {
  opacity: 0.7;
  font-size: 12px;
}

.btn-secondary {
  color: var(--ink);
  background: white;
  border-color: var(--line);
}

.btn-ghost {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-table {
  color: white;
  background: linear-gradient(135deg, #14a17a, #3a7bd5);
  border-color: transparent;
}

.hero-table {
  box-shadow: 0 12px 30px rgba(20, 161, 122, 0.24);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-weight: 800;
}

.band,
.page-title-band,
.compare-hero,
.review-hero {
  padding: 74px 0;
}

.compact-band {
  padding: 26px 0;
}

.muted,
.page-title-band {
  background: var(--soft);
}

.band-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.band-inner.wide {
  width: min(1320px, calc(100% - 32px));
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2,
.compare-section h2,
.tool-panel h2,
.prose h2,
.review-sidebar h2 {
  margin: 6px 0 0;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.12;
}

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

.notice {
  display: flex;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  color: #283044;
  background: #fff8df;
  border: 1px solid #f0da91;
  border-radius: 8px;
}

.notice strong {
  color: #916f00;
  flex: 0 0 auto;
}

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

.agent-card,
.comparison-tile,
.review-index-card,
.review-card,
.tool-panel,
.category-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.05);
}

.agent-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
}

.agent-card::before,
.review-index-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--agent-color);
}

.agent-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.agent-card h3,
.agent-card h2,
.review-index-card h2 {
  margin: 0;
  font-size: 19px;
}

.agent-card p,
.review-index-card p {
  margin: 0;
  color: var(--muted);
}

.logo-chip {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--agent-color, var(--ink));
  border-radius: 8px;
  font-weight: 900;
}

.score-pill {
  display: inline-grid;
  place-items: center;
  min-width: 46px;
  min-height: 34px;
  padding: 5px 9px;
  color: var(--ink);
  background: color-mix(in srgb, var(--agent-color, #14a17a) 18%, white);
  border: 1px solid color-mix(in srgb, var(--agent-color, #14a17a) 35%, white);
  border-radius: 8px;
  font-weight: 900;
}

.card-copy {
  margin-top: 14px !important;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-row span {
  padding: 5px 8px;
  background: var(--soft);
  border-radius: 999px;
  color: #3d4657;
  font-size: 12px;
}

.category-card {
  padding: 18px;
}

.category-card > span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--green);
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
}

.category-card h2,
.category-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.14;
}

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

.deep-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
}

.deep-card .card-actions {
  margin-top: auto;
}

.table-wrap {
  overflow-x: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 840px;
}

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

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

th {
  color: #252c39;
  background: #fbfcfe;
}

td {
  color: #465063;
}

.compare-matrix .btn {
  min-height: 34px;
  padding: 7px 10px;
}

.mini-meter {
  display: inline-block;
  width: 52px;
  height: 6px;
  margin-right: 8px;
  vertical-align: middle;
  background: #e7ebf2;
  border-radius: 999px;
  overflow: hidden;
}

.mini-meter::before {
  content: "";
  display: block;
  width: var(--value);
  height: 100%;
  background: var(--agent-color);
}

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

.pair-card {
  min-height: 144px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--pair-a) 78%, #0f172a), color-mix(in srgb, var(--pair-b) 72%, #111827));
  border-radius: 8px;
}

.pair-card span,
.pair-card small {
  opacity: 0.82;
}

.pair-card strong {
  font-size: 18px;
  line-height: 1.2;
}

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

.promo-directory a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.product-card {
  position: relative;
  overflow: hidden;
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
  border-top: 5px solid var(--product-accent, var(--green));
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.05);
}

.product-card > span {
  display: inline-flex;
  margin-top: 12px;
  color: var(--product-accent, var(--green));
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-card h2,
.product-card h3 {
  margin: 6px 0 8px;
  font-size: 22px;
  line-height: 1.14;
}

.product-card p {
  margin: 0;
  color: var(--muted);
}

.deep-product-card {
  min-height: 420px;
  display: flex;
  flex-direction: column;
}

.deep-product-card .card-actions {
  margin-top: auto;
}

.product-thumb-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.product-thumb-stack img,
.product-image-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #eef2f7;
  border-radius: 8px;
}

.product-hero {
  padding: 72px 0;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--product-accent) 18%, white), #f7f8fb);
}

.product-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.8fr);
  gap: 34px;
  align-items: center;
}

.product-hero h1 {
  max-width: 900px;
  margin: 8px 0 18px;
  font-size: clamp(38px, 7vw, 74px);
  line-height: 1;
}

.product-hero .lead {
  color: #465063;
}

.product-hero-media {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.product-image-card {
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
}

.product-image-card div {
  padding: 10px;
}

.product-image-card strong,
.product-image-card span {
  display: block;
}

.product-image-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.product-score-grid {
  margin-bottom: 12px;
}

.mini-agent-card .card-actions {
  align-items: stretch;
}

.related-searches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.related-searches a {
  padding: 6px 10px;
  color: white;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-weight: 800;
}

.fineprint {
  color: var(--muted);
  font-size: 13px;
}

.comparison-tile {
  position: relative;
  min-height: 250px;
  padding: 18px;
  overflow: hidden;
}

.comparison-tile::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--pair-a), var(--pair-b));
}

.comparison-tile h2 {
  margin: 32px 0 8px;
  font-size: 22px;
  line-height: 1.18;
}

.comparison-tile p {
  color: var(--muted);
}

.tile-number {
  position: absolute;
  right: 16px;
  top: 14px;
  color: #c1c9d6;
  font-weight: 900;
}

.duel-mini {
  display: grid;
  gap: 7px;
  margin: 18px 0;
}

.duel-mini span {
  color: #3f4858;
  font-size: 13px;
}

.duel-mini i {
  display: block;
  width: 100%;
  height: 8px;
  background: #e8edf4;
  border-radius: 999px;
  overflow: hidden;
}

.duel-mini i::before {
  content: "";
  display: block;
  width: max(18%, var(--delta));
  height: 100%;
  background: linear-gradient(90deg, var(--pair-a), var(--pair-b));
}

.compare-hero {
  color: white;
  background:
    linear-gradient(115deg, color-mix(in srgb, var(--pair-a) 46%, #10131a), color-mix(in srgb, var(--pair-b) 42%, #10131a)),
    #111722;
}

.compare-hero .lead,
.compare-hero .notice {
  color: rgba(255, 255, 255, 0.82);
}

.compare-hero .notice {
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.compare-hero .notice strong {
  color: white;
}

.compare-hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.compare-layout {
  padding: 48px 0 84px;
}

.compare-section {
  margin-top: 18px;
  padding: 26px;
  background: var(--variant-bg, white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.compare-section:first-child {
  margin-top: 0;
}

.verdict-panel,
.cta-strip,
.logistics-lanes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.52fr);
  gap: 24px;
  align-items: center;
}

.verdict-score {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.verdict-score span,
.lane-grid span,
.decision-grid p {
  padding: 18px;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.verdict-score strong {
  display: block;
  font-size: 48px;
  line-height: 1;
}

.dimension-table .is-strong {
  color: var(--ink);
  background: #eaf8f2;
  font-weight: 900;
}

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

.advantage-list,
.warning-columns article,
.source-grid article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.advantage-list {
  border-top: 4px solid var(--agent-color);
}

.advantage-list p,
.warning-columns p {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
}

.advantage-list svg {
  color: var(--agent-color);
}

.warning-columns svg {
  color: #c44536;
}

.cost-bars {
  display: grid;
  gap: 12px;
}

.cost-bars div {
  position: relative;
  min-height: 74px;
  padding: 14px;
  overflow: hidden;
  background: #f3f6fb;
  border-radius: 8px;
}

.cost-bars i {
  position: absolute;
  inset: auto 0 0;
  height: 7px;
  background: linear-gradient(90deg, var(--pair-a), var(--pair-b));
}

.cost-bars span,
.cost-bars strong {
  position: relative;
  z-index: 1;
  display: block;
}

.cost-bars strong {
  font-size: 28px;
}

.lane-grid,
.decision-grid,
.source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.lane-grid strong,
.lane-grid small,
.decision-grid strong,
.decision-grid span {
  display: block;
}

.lane-grid small,
.decision-grid span {
  margin-top: 6px;
  color: var(--muted);
}

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

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

.source-grid h3 {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin: 0 0 8px;
}

.source-grid h3 span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.source-grid a,
.source-box a {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  margin: 8px 8px 0 0;
  color: var(--blue);
  font-weight: 800;
}

.cta-strip {
  color: white;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--pair-a) 70%, #111827), color-mix(in srgb, var(--pair-b) 65%, #111827));
  border: 0;
}

.cta-strip h2,
.cta-strip p {
  color: white;
}

.compare-variant-1 { --variant-bg: #ffffff; }
.compare-variant-2 { --variant-bg: #fbfff8; }
.compare-variant-3 { --variant-bg: #fbfdff; }
.compare-variant-4 { --variant-bg: #fffafa; }
.compare-variant-5 { --variant-bg: #fffdf6; }
.compare-variant-6 { --variant-bg: #f8fbff; }
.compare-variant-7 { --variant-bg: #fff7fb; }
.compare-variant-8 { --variant-bg: #f9fff8; }
.compare-variant-9 { --variant-bg: #fbfbff; }
.compare-variant-10 { --variant-bg: #fffaf4; }
.compare-variant-11 { --variant-bg: #f7fffb; }
.compare-variant-12 { --variant-bg: #fff9f9; }
.compare-variant-13 { --variant-bg: #f9fbff; }
.compare-variant-14 { --variant-bg: #fcfff7; }
.compare-variant-15 { --variant-bg: #fdfbff; }
.compare-variant-16 { --variant-bg: #fff8f3; }
.compare-variant-17 { --variant-bg: #f8fffd; }
.compare-variant-18 { --variant-bg: #fff9fc; }
.compare-variant-19 { --variant-bg: #f8faff; }
.compare-variant-20 { --variant-bg: #fffdf8; }
.compare-variant-21 { --variant-bg: #f7fcff; }
.compare-variant-22 { --variant-bg: #fbfff7; }
.compare-variant-23 { --variant-bg: #fff8f8; }
.compare-variant-24 { --variant-bg: #f7fffb; }
.compare-variant-25 { --variant-bg: #fffdf5; }

.review-hero {
  background: linear-gradient(180deg, color-mix(in srgb, var(--agent-color) 10%, white), #f7f8fb);
}

.review-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: center;
}

.rating-panel {
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-top: 5px solid var(--agent-color);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.rating-panel span,
.rating-panel small {
  display: block;
  color: var(--muted);
}

.rating-panel strong {
  display: block;
  font-size: 68px;
  line-height: 1;
}

.stars {
  color: #d99100;
  font-size: 15px;
}

.review-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.review-sidebar {
  position: sticky;
  top: 96px;
}

.histogram,
.source-box {
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.histogram {
  display: grid;
  gap: 10px;
}

.histogram div {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 28px;
  gap: 9px;
  align-items: center;
  font-size: 13px;
}

.histogram i {
  height: 8px;
  background: var(--agent-color, var(--green));
  border-radius: 999px;
}

.source-box {
  margin-top: 14px;
}

.review-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.review-controls label,
.tool-panel label {
  display: grid;
  gap: 6px;
  color: #313949;
  font-weight: 800;
}

.review-controls select,
.tool-panel input,
.tool-panel select {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  color: var(--ink);
  background: white;
  border: 1px solid #cfd7e4;
  border-radius: 8px;
}

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

.review-card {
  padding: 18px;
}

.review-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.review-head small {
  display: block;
  color: var(--muted);
}

.review-card h3 {
  margin: 12px 0 6px;
}

.review-card p {
  margin: 0;
  color: #465063;
}

.review-index-card {
  position: relative;
  padding: 18px;
}

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

.tool-panel {
  padding: 22px;
}

.wide-tool {
  grid-column: 1 / -1;
}

.tool-panel h2 {
  margin-bottom: 16px;
}

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

.tool-panel .btn {
  margin-top: 16px;
}

.tool-result {
  min-height: 58px;
  margin-top: 16px;
  padding: 14px;
  background: #f6f8fb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.result-pill {
  padding: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.result-pill strong,
.result-pill span {
  display: block;
}

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

.link-result {
  display: grid;
  gap: 8px;
}

.link-result a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-weight: 800;
}

.hot-seed-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.hot-seed {
  display: grid;
  gap: 4px;
  padding: 12px;
  text-align: left;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.hot-seed:hover {
  border-color: var(--green);
}

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

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

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

.process-steps span {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  padding: 14px;
  background: #f6f8fb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.process-steps strong {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--ink);
  border-radius: 8px;
}

.process-steps b,
.process-steps em {
  display: block;
  font-style: normal;
}

.process-steps em {
  color: var(--muted);
}

.category-hero {
  padding: 72px 0;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--category-color) 16%, white), #f7f8fb);
}

.category-hero h1 {
  max-width: 920px;
  margin: 8px 0 18px;
  font-size: clamp(38px, 7vw, 74px);
  line-height: 1;
}

.category-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
}

.list-table {
  width: 100%;
  min-width: 0;
}

.list-table th,
.list-table td {
  padding: 9px;
}

.list-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
}

.list-actions button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}

.prose {
  max-width: 820px;
  font-size: 17px;
}

.prose h2 {
  margin-top: 34px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  color: #dce3ee;
}

.site-footer strong {
  color: white;
}

.site-footer p {
  margin: 6px 0 0;
  color: #aeb8c8;
}

body::after {
  content: "";
  display: block;
  background: var(--dark);
}

.site-footer,
body::after {
  background: var(--dark);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: white;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.back-to-top svg {
  transform: rotate(-90deg);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--green);
}

@media (max-width: 1080px) {
  .hero-grid,
  .compare-hero-grid,
  .review-hero-grid,
  .product-hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    max-height: none;
  }

  .agent-grid,
  .review-index-grid,
  .category-grid,
  .product-grid,
  .pair-grid,
  .comparison-grid,
  .promo-directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .decision-grid,
  .lane-grid,
  .result-grid,
  .process-steps,
  .category-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .topbar {
    min-height: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-item {
    width: 100%;
  }

  .nav-menu-trigger,
  .nav-links > a {
    width: 100%;
    justify-content: space-between;
  }

  .nav-menu {
    position: static;
    min-width: 0;
    max-height: 280px;
    margin: 4px 0 8px;
    box-shadow: none;
    background: #f8fafc;
  }

  .nav-menu a {
    white-space: normal;
  }

  .hero-copy h1,
  .page-title-band h1,
  .compare-hero h1,
  .review-hero h1,
  .product-hero h1 {
    font-size: clamp(36px, 13vw, 58px);
  }

  .agent-grid,
  .review-index-grid,
  .category-grid,
  .product-grid,
  .pair-grid,
  .comparison-grid,
  .promo-directory,
  .two-column,
  .tools-grid,
  .review-layout,
  .review-controls,
  .form-grid,
  .verdict-panel,
  .cta-strip,
  .logistics-lanes,
  .evidence-panel .source-grid,
  .decision-grid,
  .lane-grid,
  .result-grid,
  .process-steps,
  .category-detail-grid,
  .hot-seed-grid {
    grid-template-columns: 1fr;
  }

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

  .band,
  .page-title-band,
  .compare-hero,
  .review-hero,
  .product-hero {
    padding: 48px 0;
  }

  .hero-grid {
    min-height: auto;
    padding: 42px 0;
  }

  .compare-section,
  .tool-panel {
    padding: 18px;
  }

  .review-sidebar {
    position: static;
  }

  .section-heading.split,
  .site-footer,
  .review-head,
  .list-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .card-actions .btn,
  .cta-actions .btn,
  .hero-actions .btn {
    width: auto;
  }
}

@media (max-width: 520px) {
  .agent-grid,
  .review-index-grid,
  .category-grid,
  .product-grid,
  .pair-grid,
  .comparison-grid,
  .promo-directory {
    grid-template-columns: 1fr;
  }

  .brand small {
    display: none;
  }

  .hero-actions,
  .card-actions,
  .cta-actions {
    align-items: stretch;
  }

  .hero-actions .btn,
  .card-actions .btn,
  .cta-actions .btn,
  .kakox-search-form .btn {
    width: 100%;
  }

  .product-hero-media,
  .product-thumb-stack {
    grid-template-columns: 1fr;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
  }
}
