:root {
  --ink: #12130f;
  --ink-soft: #20211b;
  --paper: #ece9df;
  --paper-warm: #f7f4eb;
  --lime: #d8ff4f;
  --orange: #ff7b4f;
  --blue: #65c8ff;
  --violet: #d79cff;
  --muted: #77786e;
  --line: #c9c7bc;
  --dark-line: #35362f;
  --sans: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  --display: "Arial Black", "Microsoft YaHei", "PingFang SC", sans-serif;
  --mono: "Cascadia Mono", Consolas, "SFMono-Regular", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 4vw;
  border-bottom: 1px solid var(--line);
  background: rgba(236, 233, 223, 0.92);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 44px;
  height: 44px;
  padding: 7px 8px;
  border: 1px solid var(--ink);
  background: var(--lime);
  color: var(--ink);
  font: 900 18px/1 var(--display);
  letter-spacing: -0.12em;
  place-items: center;
  transform: rotate(-2deg);
}

.brand-mark span {
  border-left: 1px solid var(--ink);
  padding-left: 3px;
}

.brand strong {
  display: block;
  font-size: 18px;
  letter-spacing: 0.12em;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font: 700 7px var(--mono);
  letter-spacing: 0.16em;
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 13px;
}

.verified-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font: 700 9px var(--mono);
}

.verified-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #39ae6d;
  box-shadow: 0 0 0 5px rgba(57, 174, 109, 0.1);
}

.ghost-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--ink);
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
  transition: 150ms ease;
}

.ghost-button {
  height: 36px;
  padding: 0 13px;
  font-size: 10px;
}

.ghost-button:hover,
.secondary-button:hover {
  background: var(--ink);
  color: var(--paper);
}

.shell {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: 0 4vw;
}

.sidebar {
  position: sticky;
  top: 76px;
  align-self: start;
  height: calc(100vh - 76px);
  padding: 35px 24px 30px 0;
  border-right: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font: 700 9px var(--mono);
  letter-spacing: 0.16em;
}

.nav-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 43px;
  gap: 10px;
  margin-bottom: 3px;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #55564e;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.nav-item:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.35);
}

.nav-item.active {
  border-color: var(--ink);
  background: var(--paper-warm);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 700;
}

.nav-dot {
  width: 9px;
  height: 9px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--category-color, var(--ink));
}

.nav-dot.all {
  background: var(--lime);
}

.hk-nav {
  margin-top: 15px;
  border: 1px dashed #aaa99f;
  background: rgba(216, 255, 79, 0.16);
}

.hk-nav b {
  color: #4e6500;
}

.hk-dot {
  display: grid;
  width: 23px;
  height: 18px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: var(--lime);
  font: 800 6px var(--mono);
  place-items: center;
}

.nav-item b {
  margin-left: auto;
  color: var(--muted);
  font: 600 9px var(--mono);
}

.sidebar-rule {
  height: 1px;
  margin: 25px 8px;
  background: var(--line);
}

.principle-card {
  position: relative;
  margin-top: 28px;
  padding: 18px;
  overflow: hidden;
  border-radius: 9px;
  background: var(--ink);
  color: var(--paper);
}

.principle-card::after {
  position: absolute;
  right: -28px;
  bottom: -37px;
  width: 100px;
  height: 100px;
  border: 1px solid var(--lime);
  border-radius: 50%;
  content: "";
}

.principle-card > span {
  color: var(--lime);
  font: 700 8px var(--mono);
  letter-spacing: 0.12em;
}

.principle-card strong {
  display: block;
  margin: 12px 0 9px;
  font-size: 13px;
  line-height: 1.55;
}

.principle-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #a6a79f;
  font-size: 9px;
  line-height: 1.7;
}

.sidebar-foot {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 0;
}

.sidebar-foot span {
  display: block;
  color: var(--ink);
  font: 700 9px var(--mono);
}

.sidebar-foot small {
  color: var(--muted);
  font-size: 8px;
}

main {
  min-width: 0;
  padding-left: clamp(28px, 4.2vw, 66px);
}

.hero {
  padding: 53px 0 38px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(235px, 0.55fr);
  gap: 46px;
  align-items: center;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  font: 700 9px var(--mono);
  letter-spacing: 0.12em;
}

.hero-kicker span {
  display: grid;
  width: 24px;
  height: 24px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  font-size: 8px;
  place-items: center;
}

.hero h1 {
  margin: 20px 0 17px;
  font: 900 clamp(44px, 5vw, 78px)/1.08 var(--display);
  letter-spacing: -0.065em;
}

.hero h1 em {
  position: relative;
  color: var(--ink);
  font-style: normal;
  z-index: 1;
}

.hero h1 em::after {
  position: absolute;
  right: -3px;
  bottom: 4px;
  left: -2px;
  z-index: -1;
  height: 18px;
  background: var(--lime);
  content: "";
  transform: rotate(-1deg);
}

.hero-intro {
  max-width: 620px;
  margin: 0;
  color: #67685f;
  font-size: 13px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 25px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 45px;
  padding: 0 17px;
  border: 1px solid var(--ink);
  border-radius: 7px;
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: 150ms ease;
}

.primary-button:hover {
  color: var(--ink);
  background: var(--lime);
  box-shadow: 4px 4px 0 var(--ink);
  transform: translate(-2px, -2px);
}

.text-link {
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-poster {
  justify-self: end;
  width: min(100%, 270px);
  transform: rotate(1.5deg);
}

.poster-frame {
  position: relative;
  aspect-ratio: 0.77;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--orange);
  box-shadow: 8px 8px 0 var(--ink);
}

.poster-label,
.poster-index {
  position: absolute;
  z-index: 3;
  font: 700 8px var(--mono);
  letter-spacing: 0.08em;
}

.poster-label {
  top: 14px;
  left: 14px;
}

.poster-index {
  top: 12px;
  right: 14px;
  font-size: 10px;
}

.poster-disc {
  position: absolute;
  top: 20%;
  left: 11%;
  width: 74%;
  aspect-ratio: 1;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--violet);
}

.poster-disc::after {
  position: absolute;
  inset: 21%;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--orange);
  content: "";
}

.poster-square {
  position: absolute;
  top: 31%;
  left: 32%;
  width: 39%;
  aspect-ratio: 1;
  border: 1px solid var(--ink);
  background: var(--ink);
  transform: rotate(17deg);
}

.poster-lines {
  position: absolute;
  right: -10%;
  bottom: 20%;
  width: 70%;
  height: 25%;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  transform: rotate(-13deg);
}

.poster-frame p {
  position: absolute;
  bottom: 15px;
  left: 14px;
  z-index: 3;
  margin: 0;
  font: 900 24px/0.92 var(--display);
  letter-spacing: -0.06em;
}

.poster-caption {
  display: block;
  margin-top: 15px;
  color: var(--muted);
  font: 600 8px var(--mono);
  text-align: right;
  letter-spacing: 0.12em;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}

.stats > div {
  display: flex;
  align-items: baseline;
  min-height: 83px;
  gap: 11px;
  padding: 21px 20px;
  border-right: 1px solid var(--line);
}

.stats > div:first-child {
  padding-left: 0;
}

.stats > div:last-child {
  border-right: 0;
}

.stats strong {
  font: 900 27px var(--display);
  letter-spacing: -0.05em;
}

.stats span {
  color: var(--muted);
  font-size: 9px;
}

.hk-section {
  margin-top: 42px;
  padding: 30px;
  border: 1px solid var(--ink);
  background:
    linear-gradient(rgba(247, 244, 235, 0.94), rgba(247, 244, 235, 0.94)),
    repeating-linear-gradient(90deg, transparent 0, transparent 47px, rgba(18,19,15,.04) 48px);
  box-shadow: 7px 7px 0 var(--ink);
  scroll-margin-top: 95px;
}

.hk-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 25px;
}

.hk-header .eyebrow {
  color: #505b19;
}

.hk-header h2 {
  max-width: 760px;
  margin: 0;
  font: 900 29px/1.27 var(--display);
  letter-spacing: -0.045em;
}

.hk-badge {
  flex: 0 0 auto;
  padding: 7px 9px;
  border: 1px solid var(--ink);
  background: var(--lime);
  font: 700 7px var(--mono);
  letter-spacing: 0.08em;
  transform: rotate(1.5deg);
}

.hk-intro {
  max-width: 850px;
  margin: 15px 0 23px;
  color: #5b5c54;
  font-size: 10px;
  line-height: 1.85;
}

.hk-tax-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.hk-tax-card {
  min-height: 240px;
  padding: 15px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: rgba(255,255,255,.35);
}

.hk-tax-card > span {
  color: #566200;
  font: 800 9px var(--mono);
}

.hk-tax-card h3 {
  margin: 31px 0 9px;
  font-size: 13px;
  line-height: 1.45;
}

.hk-tax-card p {
  margin: 0;
  color: #62635a;
  font-size: 8px;
  line-height: 1.8;
}

.hk-tax-card .hk-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 12px;
}

.hk-tags i {
  padding: 3px 5px;
  border: 1px solid #d0cbbb;
  border-radius: 99px;
  color: #73736a;
  font-size: 7px;
  font-style: normal;
}

.withholding-alert {
  display: grid;
  grid-template-columns: 185px 1fr;
  gap: 18px;
  margin-top: 15px;
  padding: 15px;
  background: var(--ink);
  color: var(--paper);
}

.withholding-alert strong {
  color: var(--lime);
  font: 700 8px/1.6 var(--mono);
  letter-spacing: .06em;
}

.withholding-alert p {
  margin: 0;
  color: #b7b8b0;
  font-size: 9px;
  line-height: 1.75;
}

.product-route-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 28px 0 13px;
}

.product-route-heading .eyebrow {
  margin-bottom: 5px;
}

.product-route-heading h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.025em;
}

.product-route-heading > span {
  color: var(--muted);
  font-size: 8px;
}

.product-routes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.product-route {
  position: relative;
  min-height: 285px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--paper-warm);
}

.product-route::after {
  position: absolute;
  right: -29px;
  bottom: -35px;
  width: 108px;
  height: 108px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--route-color);
  content: "";
}

.route-label {
  color: var(--muted);
  font: 700 7px var(--mono);
  letter-spacing: .08em;
}

.product-route h4 {
  margin: 22px 0 8px;
  font-size: 15px;
  line-height: 1.35;
}

.product-route > p {
  position: relative;
  z-index: 1;
  min-height: 59px;
  margin: 0;
  color: #606159;
  font-size: 8px;
  line-height: 1.8;
}

.route-primary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 11px;
  padding: 5px 7px;
  border: 1px solid var(--ink);
  background: var(--route-color);
  font-size: 7px;
  font-weight: 700;
}

.route-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 10px 0;
}

.route-stack span,
.route-stack button {
  padding: 3px 5px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: transparent;
  color: var(--muted);
  font-size: 7px;
}

.route-stack button {
  cursor: pointer;
}

.route-stack button:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.route-focus {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}

.route-focus li {
  position: relative;
  padding-left: 9px;
  color: #77786f;
  font-size: 7px;
  line-height: 1.8;
}

.route-focus li::before {
  position: absolute;
  top: 6px;
  left: 0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ink);
  content: "";
}

.hk-evidence {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 28px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.hk-evidence-copy h3 {
  margin: 0 0 9px;
  font-size: 17px;
  line-height: 1.4;
}

.hk-evidence-copy > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.75;
}

.evidence-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.evidence-card {
  padding: 11px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.45);
}

.evidence-card > span {
  display: grid;
  width: 19px;
  height: 19px;
  margin-bottom: 7px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font: 700 8px var(--mono);
  place-items: center;
}

.evidence-card strong {
  display: block;
  font-size: 9px;
}

.evidence-card ul {
  margin: 6px 0 0;
  padding-left: 13px;
  color: var(--muted);
  font-size: 7px;
  line-height: 1.8;
}

.hk-sources {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.hk-sources > span {
  flex: 0 0 auto;
  color: var(--muted);
  font: 700 7px var(--mono);
}

.hk-sources > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.hk-sources a {
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255,255,255,.4);
  font-size: 7px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hk-disclaimer {
  margin: 14px 0 0;
  color: #77786f;
  font-size: 7px;
  line-height: 1.7;
}

.market-map,
.platforms,
.matrix-section,
.rules {
  padding-top: 53px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 20px;
}

.section-heading .eyebrow {
  margin-bottom: 7px;
}

.section-heading h2,
.payment-copy h2 {
  margin: 0;
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.section-heading > p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
}

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

.mode-card {
  position: relative;
  min-height: 210px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--paper-warm);
  cursor: pointer;
  transition: 160ms ease;
}

.mode-card:hover {
  box-shadow: 4px 4px 0 var(--ink);
  transform: translate(-2px, -2px);
}

.mode-card::after {
  position: absolute;
  right: -24px;
  bottom: -31px;
  width: 105px;
  height: 105px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--mode-color);
  content: "";
}

.mode-number {
  color: var(--muted);
  font: 700 8px var(--mono);
}

.mode-card h3 {
  margin: 38px 0 9px;
  font-size: 17px;
  letter-spacing: -0.03em;
}

.mode-card p {
  position: relative;
  z-index: 1;
  max-width: 85%;
  margin: 0;
  color: #62635a;
  font-size: 9px;
  line-height: 1.8;
}

.mode-card small {
  position: absolute;
  bottom: 14px;
  left: 16px;
  color: var(--muted);
  font: 700 8px var(--mono);
}

.toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.search-box {
  display: flex;
  flex: 1;
  align-items: center;
  height: 46px;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255,255,255,.35);
}

.search-box:focus-within {
  border-color: var(--ink);
  background: var(--paper-warm);
  box-shadow: 0 0 0 3px rgba(18,19,15,.06);
}

.search-box svg {
  width: 17px;
  color: var(--muted);
}

.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 11px;
}

.search-box kbd {
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font: 600 8px var(--mono);
}

.segmented {
  display: flex;
  padding: 3px;
  border: 1px solid var(--ink);
  border-radius: 7px;
}

.segmented button {
  min-width: 62px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  cursor: pointer;
}

.segmented button.active {
  background: var(--ink);
  color: var(--paper);
}

#resultCount {
  color: var(--muted);
  font: 600 9px var(--mono);
}

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

.platform-card {
  position: relative;
  display: flex;
  min-height: 330px;
  flex-direction: column;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper-warm);
  cursor: pointer;
  transition: 160ms ease;
}

.platform-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: 160ms ease;
}

.platform-card:hover {
  border-color: var(--ink);
  box-shadow: 4px 5px 0 var(--ink);
  transform: translate(-2px, -2px);
}

.platform-card:hover::before {
  transform: scaleX(1);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.platform-logo {
  display: grid;
  width: 43px;
  height: 43px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--accent);
  color: var(--ink);
  font: 900 13px var(--display);
  place-items: center;
  transform: rotate(-2deg);
}

.fit-score {
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font: 600 8px var(--mono);
}

.fit-score b {
  margin-left: 3px;
  color: var(--ink);
  font-size: 12px;
}

.platform-card h3 {
  margin: 18px 0 2px;
  font: 800 19px var(--display);
  letter-spacing: -0.035em;
}

.platform-type {
  color: var(--muted);
  font: 600 8px var(--mono);
}

.platform-tagline {
  display: -webkit-box;
  margin: 13px 0;
  overflow: hidden;
  color: #5f6057;
  font-size: 10px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.card-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}

.card-metric {
  min-width: 0;
  padding: 8px;
  border: 1px solid #ddd8ca;
  border-radius: 5px;
  background: rgba(255,255,255,.45);
}

.card-metric small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font: 600 7px var(--mono);
  letter-spacing: .04em;
}

.card-metric strong {
  display: block;
  overflow: hidden;
  font-size: 9px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-bottom {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid #e2ded3;
}

.evidence-tag {
  padding: 4px 6px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--accent) 18%, white);
  color: #55564f;
  font-size: 7px;
}

.card-bottom .details-cue {
  margin-left: auto;
  color: var(--muted);
  font-size: 8px;
}

.compare-button {
  display: grid;
  width: 27px;
  height: 27px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
  place-items: center;
}

.compare-button:hover,
.compare-button.selected {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--lime);
}

.empty-state {
  padding: 65px 20px;
  border: 1px dashed var(--line);
  text-align: center;
}

.empty-state strong {
  font-size: 16px;
}

.empty-state p {
  color: var(--muted);
  font-size: 10px;
}

.secondary-button {
  min-height: 38px;
  padding: 0 14px;
  font-size: 9px;
}

.compare-placeholder {
  display: flex;
  align-items: center;
  min-height: 105px;
  gap: 15px;
  padding: 20px;
  border: 1px dashed #aaa99f;
}

.compare-placeholder > span {
  display: grid;
  width: 39px;
  height: 39px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 24px;
  place-items: center;
}

.compare-placeholder strong {
  display: block;
  font-size: 12px;
}

.compare-placeholder p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--paper-warm);
}

.compare-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  padding: 13px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 9px;
  line-height: 1.65;
  text-align: left;
  vertical-align: top;
}

.compare-table tr:last-child th,
.compare-table tr:last-child td {
  border-bottom: 0;
}

.compare-table th {
  width: 14%;
  background: #e4e0d5;
  font: 700 8px var(--mono);
  letter-spacing: .04em;
}

.compare-table thead th {
  color: var(--ink);
  font: 800 12px var(--display);
}

.compare-table button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
}

.rule-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.rule-card {
  min-height: 220px;
  padding: 22px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper-warm);
}

.rule-card:nth-child(2),
.rule-card:nth-child(3) {
  background: #e8e3d6;
}

.rule-card > span {
  color: var(--muted);
  font: 700 9px var(--mono);
}

.rule-card h3 {
  margin: 33px 0 10px;
  font-size: 17px;
  letter-spacing: -0.035em;
}

.rule-card p {
  margin: 0;
  color: #606159;
  font-size: 10px;
  line-height: 1.8;
}

.rule-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 16px;
}

.rule-checks span {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  font-size: 8px;
}

.payment-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 55px;
  margin-top: 66px;
  padding: 42px;
  background: var(--ink);
  color: var(--paper);
}

.payment-copy .eyebrow {
  color: var(--lime);
}

.payment-copy h2 {
  margin-top: 14px;
  font-size: 30px;
}

.payment-copy > p:last-child {
  max-width: 410px;
  margin: 17px 0 0;
  color: #9fa198;
  font-size: 10px;
  line-height: 1.85;
}

.payment-list {
  border-top: 1px solid var(--dark-line);
}

.payment-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--dark-line);
}

.payment-item > span {
  color: var(--lime);
  font: 700 8px var(--mono);
}

.payment-item strong {
  display: block;
  font-size: 10px;
}

.payment-item p {
  margin: 4px 0 0;
  color: #9c9e95;
  font-size: 8px;
  line-height: 1.7;
}

.decision-strip {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 87px;
  margin-top: 45px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.decision-strip span {
  margin-right: auto;
  color: var(--muted);
  font: 700 8px var(--mono);
  letter-spacing: 0.12em;
}

.decision-strip p {
  margin: 0;
  font-size: 9px;
}

footer {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 110px;
  padding: 25px 4vw;
  border-top: 1px solid var(--line);
  background: #e4e0d5;
}

footer p {
  margin: 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.6;
}

footer p:first-of-type {
  margin-left: auto;
}

.footer-brand .brand-mark {
  width: 35px;
  height: 35px;
  font-size: 13px;
}

dialog {
  padding: 0;
  border: 0;
  background: transparent;
}

dialog::backdrop {
  background: rgba(10, 11, 8, 0.67);
  backdrop-filter: blur(6px);
}

.detail-dialog {
  width: min(850px, calc(100vw - 32px));
  max-height: min(860px, calc(100vh - 30px));
  color: var(--ink);
}

#detailContent {
  position: relative;
  overflow: auto;
  max-height: min(860px, calc(100vh - 30px));
  border: 1px solid var(--ink);
  background: var(--paper-warm);
  box-shadow: 12px 12px 0 rgba(0,0,0,.28);
}

.close-button {
  position: absolute;
  top: 17px;
  right: 17px;
  z-index: 4;
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0 0 2px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper-warm);
  font-size: 20px;
  cursor: pointer;
  place-items: center;
}

.close-button:hover {
  background: var(--ink);
  color: var(--paper);
}

.detail-banner {
  position: relative;
  height: 165px;
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
  background: var(--accent);
}

.detail-banner::before {
  position: absolute;
  top: 21px;
  left: 35px;
  width: 121px;
  height: 121px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 52%, white);
  content: "";
}

.detail-banner::after {
  position: absolute;
  top: -41px;
  right: 80px;
  width: 200px;
  height: 200px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  content: "";
}

.detail-banner strong {
  position: absolute;
  right: 28px;
  bottom: 20px;
  font: 900 54px/0.9 var(--display);
  letter-spacing: -0.07em;
}

.detail-body {
  padding: 28px 33px 34px;
}

.detail-type-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-category {
  padding: 5px 8px;
  border: 1px solid var(--ink);
  border-radius: 99px;
  font-size: 8px;
  font-weight: 700;
}

.detail-score {
  color: var(--muted);
  font: 600 8px var(--mono);
}

.detail-body h2 {
  margin: 16px 0 2px;
  font: 900 34px var(--display);
  letter-spacing: -0.055em;
}

.detail-domain {
  color: var(--muted);
  font: 600 9px var(--mono);
}

.detail-summary {
  margin: 19px 0 20px;
  padding: 16px;
  border-left: 3px solid var(--accent);
  background: #eeeadf;
  font-size: 11px;
  line-height: 1.8;
}

.hk-platform-note {
  margin: -7px 0 18px;
  padding: 12px 14px;
  border: 1px dashed #b4a558;
  border-radius: 5px;
  background: #f3edc9;
}

.hk-platform-note span {
  color: #756226;
  font: 700 8px var(--mono);
  letter-spacing: .04em;
}

.hk-platform-note p {
  margin: 6px 0 0;
  color: #655f47;
  font-size: 9px;
  line-height: 1.75;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.fact {
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.5);
}

.fact small {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font: 600 7px var(--mono);
  letter-spacing: .08em;
}

.fact strong {
  display: block;
  font-size: 10px;
  line-height: 1.55;
}

.detail-block {
  margin-top: 25px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.detail-block h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 13px;
  font-size: 13px;
}

.detail-block h3 span {
  display: grid;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--lime);
  font: 700 7px var(--mono);
  place-items: center;
}

.detail-block > p {
  margin: 0;
  color: #55564e;
  font-size: 10px;
  line-height: 1.85;
}

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

.detail-list li {
  position: relative;
  padding-left: 16px;
  color: #55564e;
  font-size: 10px;
  line-height: 1.8;
}

.detail-list li::before {
  position: absolute;
  top: 8px;
  left: 1px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  content: "";
}

.detail-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.tip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.tip-box {
  padding: 13px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.45);
}

.tip-box strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 10px;
}

.tip-box ul {
  margin: 0;
  padding-left: 15px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.8;
}

.detail-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.detail-sources a {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255,255,255,.55);
  color: #54554c;
  font-size: 8px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.detail-sources a:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.detail-footer {
  display: flex;
  gap: 9px;
  margin-top: 24px;
}

.detail-footer a,
.detail-footer button {
  flex: 1;
}

.method-dialog {
  width: min(570px, calc(100vw - 30px));
  padding: 31px;
  border: 1px solid var(--ink);
  border-radius: 9px;
  background: var(--paper-warm);
  color: var(--ink);
  box-shadow: 10px 10px 0 rgba(0,0,0,.25);
}

.method-dialog h2 {
  max-width: 90%;
  margin: 9px 0 12px;
  font: 900 25px/1.25 var(--display);
  letter-spacing: -.045em;
}

.method-lead {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
}

.method-list {
  margin: 23px 0;
  border-top: 1px solid var(--line);
}

.method-list > div {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.method-list span {
  color: var(--muted);
  font: 700 8px var(--mono);
}

.method-list p {
  margin: 0;
  color: #5c5d54;
  font-size: 9px;
  line-height: 1.7;
}

.method-list strong {
  color: var(--ink);
}

.wide-button {
  width: 100%;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  max-width: 340px;
  padding: 12px 15px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 3px 4px 0 var(--lime);
  font-size: 9px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(7px);
  transition: 160ms ease;
}

.toast.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1180px) {
  .mode-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .hero-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(200px, .6fr);
    gap: 25px;
  }

  .payment-section {
    gap: 35px;
    padding: 32px;
  }

  .hk-tax-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 850px) {
  .topbar {
    height: 68px;
  }

  .verified-pill {
    display: none;
  }

  .shell {
    display: block;
    padding: 0 18px;
  }

  .sidebar {
    position: static;
    display: flex;
    height: auto;
    padding: 14px 0;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar > .eyebrow,
  .sidebar-rule,
  .principle-card,
  .sidebar-foot {
    display: none;
  }

  #categoryNav {
    display: flex;
    gap: 4px;
  }

  .nav-item {
    width: auto;
    min-height: 37px;
    margin: 0;
    padding: 7px 10px;
    white-space: nowrap;
  }

  .nav-item b {
    display: none;
  }

  main {
    padding-left: 0;
  }

  .hero {
    padding-top: 42px;
  }

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

  .hero-poster {
    position: absolute;
    top: 145px;
    right: -70px;
    width: 210px;
    opacity: .24;
  }

  .hero-copy {
    position: relative;
    z-index: 2;
  }

  .hero h1 {
    font-size: clamp(45px, 10vw, 70px);
  }

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

  .stats > div:nth-child(2) {
    border-right: 0;
  }

  .stats > div:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .section-heading {
    align-items: flex-start;
  }

  .section-heading > p {
    display: none;
  }

  .payment-section {
    grid-template-columns: 1fr;
  }

  .hk-section {
    padding: 24px 20px;
  }

  .hk-header h2 {
    font-size: 25px;
  }

  .product-routes {
    grid-template-columns: 1fr;
  }

  .product-route {
    min-height: 255px;
  }

  .hk-evidence {
    grid-template-columns: 1fr;
  }

  footer {
    flex-wrap: wrap;
  }

  footer p:first-of-type {
    margin-left: 0;
  }
}

@media (max-width: 620px) {
  .topbar {
    padding: 0 14px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    font-size: 15px;
  }

  .ghost-button {
    height: 33px;
    padding: 0 9px;
    font-size: 8px;
  }

  .shell {
    padding: 0 14px;
  }

  .hero {
    padding: 34px 0 30px;
  }

  .hero h1 {
    margin-top: 17px;
    font-size: 42px;
    line-height: 1.13;
  }

  .hero-intro {
    max-width: 93%;
    font-size: 11px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .hero-poster {
    top: 190px;
    right: -90px;
    opacity: .15;
  }

  .stats > div {
    min-height: 69px;
    padding: 15px 11px;
  }

  .stats > div:first-child {
    padding-left: 11px;
  }

  .stats strong {
    font-size: 22px;
  }

  .stats span {
    font-size: 8px;
  }

  .market-map,
  .platforms,
  .matrix-section,
  .rules {
    padding-top: 42px;
  }

  .section-heading h2,
  .payment-copy h2 {
    font-size: 23px;
  }

  .mode-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .hk-section {
    margin: 32px 0 0;
    padding: 20px 15px;
    box-shadow: 4px 4px 0 var(--ink);
  }

  .hk-header {
    display: block;
  }

  .hk-header h2 {
    font-size: 22px;
  }

  .hk-badge {
    display: inline-block;
    margin-top: 13px;
  }

  .hk-tax-grid {
    grid-template-columns: 1fr;
  }

  .withholding-alert {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .product-route-heading {
    align-items: flex-start;
  }

  .product-route-heading > span {
    display: none;
  }

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

  .mode-card {
    min-height: 180px;
    padding: 13px;
  }

  .mode-card h3 {
    margin-top: 29px;
    font-size: 14px;
  }

  .mode-card p {
    font-size: 8px;
  }

  .mode-card small {
    left: 13px;
    font-size: 7px;
  }

  .toolbar {
    flex-wrap: wrap;
  }

  .search-box {
    flex-basis: 100%;
  }

  .search-box kbd {
    display: none;
  }

  .segmented {
    width: 100%;
  }

  .segmented button {
    flex: 1;
    height: 34px;
  }

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

  .platform-card {
    min-height: 310px;
  }

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

  .rule-card {
    min-height: 200px;
  }

  .payment-section {
    margin-top: 48px;
    padding: 25px 19px;
  }

  .payment-copy h2 {
    font-size: 25px;
  }

  .decision-strip {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px 17px;
  }

  .decision-strip span {
    flex-basis: 100%;
  }

  footer {
    display: block;
    padding: 24px 16px;
  }

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

  footer p {
    margin-top: 8px;
  }

  .detail-dialog {
    width: calc(100vw - 18px);
  }

  .detail-body {
    padding: 23px 20px 28px;
  }

  .detail-banner {
    height: 135px;
  }

  .detail-banner strong {
    right: 18px;
    font-size: 42px;
  }

  .detail-body h2 {
    font-size: 29px;
  }

  .detail-facts,
  .detail-two-col {
    grid-template-columns: 1fr;
  }

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

  .detail-footer {
    flex-direction: column;
  }

  .method-dialog {
    padding: 25px 20px;
  }

  .method-dialog h2 {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
