/* aiymao public site — five-page reference system (2026-11-10).
   Brand: aiymao. English only. Admin keeps site.css. */

:root {
  --header-h: 64px;
  --violet: #7020db;
  --violet-hover: #5d17ba;
  --violet-soft: #f2eafe;
  --violet-line: #e7dcfb;
  --ink: #14121c;
  --muted: #4d4a60;
  --muted-2: #5d596e;
  --surface: #ffffff;
  --canvas: #fcfbfe;
  --border: #ece7f3;
  --border-strong: #ddd4ea;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --shadow-card: 0 1px 2px rgba(24, 14, 46, 0.04), 0 10px 30px rgba(24, 14, 46, 0.035);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrapper: 1448px;
  --gutter: 72px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

[id], .prose h2, .prose h3, .guide-toc, .conditions, #suggest, #report-change {
  scroll-margin-top: calc(var(--header-h, 64px) + 16px);
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 15.5px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  /* clip keeps horizontal overflow contained without creating a scroll container,
     which is what breaks position: sticky on the header. */
  overflow-x: clip;
}
html { overflow-x: clip; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--violet); }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.03em; line-height: 1.12; }
p { margin: 0; }
ul, ol { margin: 0; padding-left: 1.2rem; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrapper); margin: 0 auto; padding: 0 var(--gutter); }

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

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 200;
  background: #fff; color: var(--violet); padding: 10px 16px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.skip:focus { top: 12px; }

/* ---------- Header ---------- */

.header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(150%) blur(6px);
}
.headinner {
  display: grid; grid-template-columns: auto minmax(170px, 250px) minmax(0, 1fr);
  align-items: center; gap: 22px;
  height: 63px; max-width: var(--wrapper); margin: 0 auto; padding: 0 var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); justify-self: start; }
.brand:hover { color: var(--ink); }
.mark { width: 30px; height: 30px; display: block; flex: none; }
.mark svg { width: 100%; height: 100%; display: block; }
.brand-word { font-size: 22px; font-weight: 800; letter-spacing: -0.04em; }

.nav { display: flex; align-items: center; gap: 2px; justify-content: flex-end; flex-wrap: nowrap; }
.nav a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 11px; white-space: nowrap;
  border-radius: 10px; font-size: 16px; color: #2c2937; font-weight: 500;
}
.nav a:hover { background: var(--violet-soft); color: var(--violet); }

.nav-search {
  display: flex; align-items: center; gap: 8px; height: 40px; min-width: 0;
  border: 1px solid var(--border); border-radius: 10px; background: #fbfaff;
  padding: 0 6px 0 11px; color: #6a657a;
}
.nav-search:focus-within { border-color: #cbb8ec; background: #fff; box-shadow: 0 0 0 3px rgba(112,32,219,.08); }
.nav-search svg { flex: none; }
.nav-search input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  font-size: 15px; color: var(--ink); height: 100%;
}
.nav-search input::placeholder { color: #6d6880; }
.nav-search-submit {
  flex: none; width: 28px; height: 28px; display: grid; place-items: center;
  border: 0; border-radius: 7px; background: var(--violet-soft); color: var(--violet);
  font-size: 13px; cursor: pointer;
}
.nav-search-submit:hover { background: #e7d9fd; }
.nav a.active { background: var(--violet-soft); color: #5d17ba; font-weight: 650; }

.actions { display: flex; align-items: center; gap: 10px; justify-self: end; }
.navsearch { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: #2c2937; }
.navsearch:hover { background: var(--violet-soft); color: var(--violet); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink);
  font-size: 16px; font-weight: 600; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { border-color: #cbb8ec; color: var(--violet); background: #faf7ff; }
.btn.solid { background: var(--violet); border-color: var(--violet); color: #fff; }
.btn.solid:hover { background: var(--violet-hover); border-color: var(--violet-hover); color: #fff; }
.btn.ghost { background: #fff; }
.btn[aria-pressed="true"] { background: var(--violet-soft); border-color: #d3bcf6; color: #5d17ba; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--violet-soft); color: #5d17ba;
  font-size: 14px; font-weight: 650; white-space: nowrap; letter-spacing: 0; line-height: 1.3;
}
.pill.neutral { background: #f4f2f8; color: #4d4a60; }
.pill--wrap { white-space: normal; line-height: 1.5; text-align: left; font-weight: 550; }
table.data col.c-provider { width: 26%; }
table.data col.c-allowance { width: 44%; }
table.data col.c-card { width: 15%; }
table.data col.c-view { width: 15%; }
.pill.green { background: #eef8ef; color: #17642f; }

.pill-btn {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 52px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--border); background: #fff; color: #2c2937;
  font-size: 16px; font-weight: 550; cursor: pointer; white-space: nowrap;
}
.pill-btn:hover { border-color: #cbb8ec; color: var(--violet); }
.pill-btn[aria-pressed="true"], .pill-btn.is-active { background: var(--violet-soft); border-color: #dcc9f8; color: #5d17ba; font-weight: 650; }
.pill-btn svg { color: var(--violet); flex: none; }
.pill-btn--select { padding-right: 12px; }
.pill-btn--select select {
  border: 0; background: transparent; font: inherit; color: inherit; font-weight: inherit;
  cursor: pointer; outline: none; padding: 0 2px;
}
.reset-btn { border: 0; background: none; color: var(--violet); font-size: 15px; font-weight: 650; cursor: pointer; padding: 8px 6px; }

.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center;
  border: 1px solid var(--border); background: #fff; border-radius: 10px;
  color: #6a657a; cursor: pointer;
}
.icon-btn:hover { border-color: #cbb8ec; color: var(--violet); }
.icon-btn[aria-pressed="true"] { background: var(--violet-soft); border-color: #dcc9f8; color: var(--violet); }
.icon-btn[aria-pressed="true"] svg { fill: currentColor; }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; padding: 56px 0 24px; }
.hero-copy { padding-left: 32px; min-width: 0; position: relative; z-index: 1; }
.hero::before {
  content: ""; position: absolute; inset: -160px -10% auto auto; width: 760px; height: 640px;
  background: radial-gradient(closest-side, rgba(150, 92, 246, .22), rgba(150, 92, 246, 0) 72%);
  pointer-events: none;
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: 40px; align-items: start;
  max-width: var(--wrapper); margin: 0 auto; padding: 0 var(--gutter);
}
.hero h1 { font-size: clamp(36px, 4.2vw, 60px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.06; }
.hero .lede { margin-top: 14px; font-size: 19px; color: #3f3b4e; max-width: 58ch; }

.hero-art { position: relative; height: 250px; perspective: 900px; z-index: 0; pointer-events: none; }
.hero-art::after {
  content: ""; position: absolute; right: -40px; bottom: -70px; width: 520px; height: 320px;
  background: radial-gradient(closest-side, rgba(140, 84, 240, .22), rgba(140, 84, 240, 0) 70%);
  pointer-events: none;
}
.plate {
  position: absolute; border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .55);
  background: linear-gradient(135deg, rgba(198, 162, 255, .72), rgba(139, 82, 240, .55));
  box-shadow: 0 26px 60px rgba(96, 40, 190, .16);
  transform: rotateX(58deg) rotateZ(-24deg) skewX(-8deg);
}
.plate-a { width: 560px; height: 300px; right: 10px; top: 6px; opacity: .92; }
.plate-b { width: 470px; height: 250px; right: 96px; top: 78px; background: linear-gradient(135deg, rgba(228, 212, 255, .8), rgba(178, 134, 246, .5)); }
.plate-c { width: 330px; height: 170px; right: 6px; top: 150px; background: linear-gradient(135deg, rgba(247, 241, 255, .8), rgba(206, 178, 250, .5)); }

/* ---------- Search ---------- */

.searchbar {
  display: flex; align-items: center; gap: 12px;
  margin-top: 26px; padding: 6px 6px 6px 20px;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: 0 3px 14px rgba(40, 18, 61, .05);
  max-width: 700px; min-height: 60px;
}
.searchbar:focus-within { border-color: #cbb8ec; box-shadow: 0 0 0 4px rgba(112, 32, 219, .09); }
.searchbar svg { color: #6a657a; flex: none; }
.searchbar input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 17px; color: var(--ink); }
.searchbar input::placeholder { color: #6d6880; }
.searchbar .btn { flex: none; min-height: 48px; }

/* ---------- Home ---------- */

.shortcut-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; min-width: 0; max-width: 100%; }
.shortcut {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--border); background: #fff; font-size: 16px; color: #2c2937;
}
.shortcut:hover { border-color: #cbb8ec; color: var(--violet); }
.shortcut svg { color: var(--violet); flex: none; }

.section { padding: 24px 0 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.section-head h2 { font-size: 28px; font-weight: 750; }
.section-head .view { color: var(--violet); font-size: 16px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }

.dest-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.dest-card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px; min-height: 96px;
  background: rgba(255,255,255,.86); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  transition: border-color .15s ease, transform .15s ease;
}
.dest-card:hover { border-color: #cbb8ec; color: inherit; transform: translateY(-2px); }
.dest-icon {
  width: 46px; height: 46px; flex: none; display: grid; place-items: center;
  border-radius: 12px; background: var(--violet-soft); color: var(--violet);
}
.dest-text { min-width: 0; flex: 1; }
.dest-text strong { display: block; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.dest-text span { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.dest-arrow { color: #6a657a; flex: none; }

.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.featured-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature-card {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; min-height: 90px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.feature-card:hover { border-color: #cbb8ec; color: inherit; }
.feature-card .logo-tile { width: 52px; height: 52px; border-radius: 12px; }
.feature-card .logo-tile svg, .feature-card .logo-tile img { width: 26px; height: 26px; }
.feature-card .feature-text strong { font-size: 17px; }
.feature-card .feature-text span { font-size: 13.5px; }
.feature-text { min-width: 0; flex: 1; }
.feature-card .feature-link { color: var(--ink); text-decoration: none; }
.feature-card .feature-link:hover { color: var(--violet); }
.feature-card .src-tag { text-decoration: none; }
.feature-card .src-tag:hover { color: var(--violet); text-decoration: underline; }
.feature-card .feature-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.feature-card .src-tag { font-size: 11px; color: var(--muted); letter-spacing: .01em; white-space: nowrap; }
.feature-text strong { display: block; font-size: 18px; font-weight: 700; line-height: 1.25; }
.feature-text span { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.guide-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.guide-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.guide-card:hover { border-color: #cbb8ec; color: inherit; }
.guide-img { width: 100%; height: 134px; object-fit: cover; object-position: center 45%; display: block; }
.guide-img--art {
  position: relative; background: linear-gradient(135deg, #f6f1ff, #ede1fd);
  display: grid; place-items: center; overflow: hidden;
}
.gi-plate { position: absolute; border-radius: 18px; background: linear-gradient(135deg, rgba(203,173,255,.95), rgba(150,95,242,.7)); }
.gi-plate-a { width: 168px; height: 96px; transform: rotate(-12deg) skewX(-6deg); top: 44px; left: 40px; }
.gi-plate-b { width: 140px; height: 80px; transform: rotate(-12deg) skewX(-6deg); bottom: 28px; right: 34px; background: linear-gradient(135deg, rgba(240,232,255,.95), rgba(198,164,250,.7)); }
.gi-glyph { position: relative; font-size: 34px; font-weight: 700; color: #5d17ba; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.guide-body { padding: 18px 20px 20px; display: flex; align-items: center; gap: 14px; }
.guide-body strong { flex: 1; font-size: 19px; font-weight: 650; line-height: 1.3; }
.guide-body .dest-arrow { color: var(--violet); }

/* ---------- Page hero (AI Tools / API / Deals) ---------- */

.page-hero { position: relative; overflow: hidden; padding: 36px 0 0; }
.page-hero--tools { padding-top: 86px; }
.page-hero--api { padding-top: 80px; }
.page-hero--deals { padding-top: 56px; }
.page-hero--tools .hero-art, .page-hero--api .hero-art { height: 136px; }
.page-hero--tools .searchbar { margin-top: 44px; min-height: 64px; }
.page-hero--api .filter-row { margin-top: 12px; }
.page-hero--api + .wrap .table-wrap { margin-top: 20px; }
.page-hero--deals .tab-row { margin-top: 14px; }
.deal-list { margin-top: 40px; }
.page-hero--deals .hero-art { height: 176px; }
.page-hero--tools .plate-a, .page-hero--api .plate-a { width: 400px; height: 210px; right: 0; top: -20px; }
.page-hero--deals .plate-a { width: 470px; height: 250px; right: 0; top: -10px; }
.page-hero--tools .plate-b, .page-hero--api .plate-b { width: 340px; height: 180px; right: 60px; top: 24px; }
.page-hero--deals .plate-b { width: 400px; height: 210px; right: 70px; top: 44px; }
.page-hero--tools .plate-c, .page-hero--api .plate-c { width: 240px; height: 120px; right: 0; top: 66px; }
.page-hero--deals .plate-c { width: 280px; height: 145px; right: 0; top: 100px; }
.page-hero::before {
  content: ""; position: absolute; inset: -140px -6% auto auto; width: 720px; height: 560px;
  background: radial-gradient(closest-side, rgba(150, 92, 246, .2), rgba(150, 92, 246, 0) 72%);
  pointer-events: none;
}
.page-hero-inner {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  gap: 32px; align-items: start; max-width: var(--wrapper); margin: 0 auto; padding: 0 var(--gutter);
}
.page-hero h1 { font-size: clamp(38px, 4.6vw, 58px); font-weight: 800; letter-spacing: -0.045em; }
.page-hero .lede { margin-top: 10px; font-size: 19px; color: #3f3b4e; max-width: 60ch; }

/* ---------- Tool cards (AI Tools) ---------- */

.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.tool-card {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 16px;
  padding: 20px 22px; min-height: 140px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.tool-card:hover { border-color: #cbb8ec; }
.tool-card > .provenance { grid-column: 1 / -1; }
.tool-card > .provenance--compact { margin-top: 0; padding-top: 2px; }
.tool-card[hidden] { display: none; }
.tool-card-main { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; }
.tool-card-main:hover { color: inherit; }
.logo-tile {
  width: 82px; height: 82px; flex: none; display: grid; place-items: center;
  border-radius: var(--radius-md); background: #f6f3fb; color: #2c2937;
}
.logo-tile svg, .logo-tile img { width: 42px; height: 42px; object-fit: contain; }
.tool-card-text { min-width: 0; }
.tool-card-name { display: block; font-size: 26px; font-weight: 750; letter-spacing: -0.03em; line-height: 1.2; }
.tool-card-desc { display: block; font-size: 16px; color: var(--muted); margin-top: 4px; }
.tool-card-aside { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: none; }
.tool-card-aside .badges { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.tool-card-actions { display: flex; gap: 8px; }

.result-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 26px 0 16px; flex-wrap: wrap; }
.result-count { font-size: 16px; color: var(--muted); }
.result-count strong { color: var(--ink); }
.load-more-row { display: flex; justify-content: center; margin-top: 26px; }

/* ---------- Dedicated offer filter page (/offers/) ---------- */

.filter-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 24px 0 20px; }
.filter-cta-note { font-size: 14.5px; color: var(--muted-2); }
.quick-filters { margin: 16px 0 6px; gap: 8px; }
.pill-btn--sm { min-height: 38px; padding: 0 14px; font-size: 14px; text-decoration: none; }
.quote-callout {
  margin: 18px 0 0; padding: 14px 18px; border-radius: 12px;
  background: #f8f5ff; border: 1px solid #dfd2fa; border-left: 4px solid var(--violet);
  color: #2c2937; font-size: 15px; line-height: 1.55;
}
.quote-callout p { margin: 0 0 6px; font-style: italic; }
.quote-callout footer { font-size: 13.5px; color: var(--muted-2); }
.quote-callout footer a { color: var(--violet); font-weight: 600; }

.offers-filters {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 26px 0 4px; padding: 14px;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: #fff; box-shadow: var(--shadow-card);
}
.offers-search {
  display: flex; align-items: center; gap: 9px; flex: 1 1 260px;
  min-height: 46px; padding: 0 16px; border: 1px solid var(--border);
  border-radius: 999px; background: #fff; color: var(--muted);
}
.offers-search:focus-within { border-color: #cbb8ec; box-shadow: 0 0 0 3px rgba(112, 32, 219, .08); }
.offers-search svg { color: var(--violet); flex: none; }
.offers-search input { border: 0; outline: none; background: transparent; width: 100%; font-size: 15.5px; color: var(--ink); }
.offers-select {
  min-height: 46px; padding: 0 36px 0 16px; border: 1px solid var(--border);
  min-width: 0; max-width: 100%; text-overflow: ellipsis;
  border-radius: 999px; background-color: #fff; font-size: 15.5px; color: #2c2937;
  cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237020db' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.offers-select:hover { border-color: #cbb8ec; color: var(--violet); }
.offers-drawer { display: contents; }
.offers-drawer-toggle { display: none; }
.offers-active-chips {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px;
}
.offers-active-chips[hidden] { display: none; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 32px; padding: 4px 12px; border-radius: 999px;
  border: 1px solid #d6c5f5; background: var(--violet-soft); color: #5d17ba;
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.filter-chip:hover { background: #eadcfd; }
.offers-filters .reset-btn { margin-left: auto; }
.offers-grid { margin-top: 4px; }
.result-hint { font-size: 14px; color: var(--muted-2); }

.pill--expiry { background: #fff4e6; color: #8a4b00; }
.detail-expiry {
  display: inline-flex; align-items: center; gap: 8px; margin: 10px 0 0;
  padding: 6px 12px; border-radius: 999px; background: #f6f3fb; color: #4d4a60;
  font-size: 14.5px;
}
.detail-expiry strong { color: #2c2937; font-weight: 650; }
.detail-expiry svg { color: var(--violet); flex: none; }
.detail-expiry--soon { background: #fff4e6; color: #8a4b00; }
.detail-expiry--soon svg, .detail-expiry--soon strong { color: #8a4b00; }

@media (max-width: 760px) {
  .offers-filters { padding: 10px; gap: 8px; }
  .offers-search { flex: 1 1 100%; min-height: 42px; }
  .offers-drawer-toggle {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    flex: 1 1 0; min-width: 0; min-height: 42px; padding: 0 12px;
    border: 1px solid var(--border); border-radius: 999px;
    background: #fff; color: var(--ink); font-size: 14.5px; font-weight: 600;
    cursor: pointer;
  }
  .offers-drawer-toggle svg { color: var(--violet); flex: none; }
  .offers-drawer-toggle[aria-expanded="true"] {
    background: var(--violet-soft); border-color: #d6c5f5; color: #5d17ba;
  }
  .drawer-count {
    display: inline-grid; place-items: center; min-width: 20px; height: 20px;
    padding: 0 6px; border-radius: 999px; background: var(--violet); color: #fff;
    font-size: 12px; font-weight: 700;
  }
  .drawer-count[hidden] { display: none; }
  .offers-select--sort { flex: 1 1 0; min-width: 0; min-height: 42px; font-size: 14.5px; padding: 0 32px 0 12px; }
  .offers-drawer {
    display: none; flex: 1 1 100%; width: 100%;
    padding-top: 8px; margin-top: 2px; border-top: 1px solid var(--border);
  }
  .offers-drawer.is-open {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
  }
  .offers-drawer .offers-select { width: 100%; min-height: 44px; font-size: 14px; padding: 0 30px 0 12px; }
  .offers-drawer .reset-btn { grid-column: 1 / -1; width: 100%; min-height: 42px; margin-left: 0; }
}

.empty {
  text-align: center; padding: 34px 24px; color: var(--muted);
  border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); background: #fff;
}
.empty h3 { font-size: 20px; color: var(--ink); margin-bottom: 8px; }
.empty p { font-size: 15px; max-width: 54ch; margin: 0 auto 16px; }
.empty[hidden] { display: none; }

.compare-dock {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-top: 22px; padding: 14px 18px; border-radius: var(--radius-md);
  border: 1px solid #d9c8fb; background: var(--violet-soft);
}
.compare-dock[hidden] { display: none; }
.compare-dock > div { display: flex; align-items: center; gap: 10px; }
.compare-dock strong { display: block; font-size: 16px; }
.compare-dock span { font-size: 14px; color: var(--muted); }

/* ---------- Tables (API + compare) ---------- */

.table-wrap {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); overflow: hidden;
}
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll:focus-visible { outline: 3px solid var(--violet); outline-offset: -3px; }
table.data {
  width: 100%; border-collapse: collapse; font-size: 16px;
}
table.data caption { text-align: left; padding: 14px 22px 0; color: var(--muted); font-size: 14px; }
table.data thead th {
  text-align: left; padding: 18px 22px; font-size: 15px; font-weight: 550; color: var(--muted);
  background: #f8f6fc; border-bottom: 1px solid var(--border); white-space: nowrap;
}
table.data td, table.data tbody th {
  padding: 16px 22px; border-bottom: 1px solid #f2eef8; vertical-align: middle;
}
table.data tbody tr:last-child td, table.data tbody tr:last-child th { border-bottom: 0; }
table.data tbody th { font-weight: 600; text-align: left; }
table.data .cell-provider { display: flex; align-items: center; gap: 14px; }
table.data .cell-provider .logo-tile { width: 46px; height: 46px; border-radius: 10px; }
table.data .cell-provider .logo-tile svg, table.data .cell-provider .logo-tile img { width: 24px; height: 24px; }
table.data .cell-provider strong { font-size: 18px; font-weight: 650; display: block; }
table.data .provider-sub { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; white-space: nowrap; }
table.data tr.limits-row td { padding: 0 22px 14px; border-bottom: 1px solid #f2eef8; font-size: 14px; color: var(--muted); background: #fdfcff; }
table.data tr.limits-row .sep { color: #b7b2c4; margin: 0 6px; }
table.data tr.limits-row a { color: var(--violet); text-decoration: underline; text-underline-offset: 2px; }
table.data tr.limits-row[hidden] { display: none; }
/* No-card toggle in the API filter row */
.pill-btn input[type="checkbox"] { appearance: none; width: 40px; height: 22px; border-radius: 999px; background: #e6e0f0; position: relative; cursor: pointer; transition: background .15s ease; flex: none; }
.pill-btn input[type="checkbox"]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(20,18,28,.25); transition: transform .15s ease; }
.pill-btn input[type="checkbox"]:checked { background: var(--violet); }
.pill-btn input[type="checkbox"]:checked::after { transform: translateX(18px); }
table.data tbody tr[hidden] { display: none; }
.nowrap { white-space: nowrap; }
.check-mark { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--violet-soft); color: var(--violet); }
.check-mark svg { width: 15px; height: 15px; }
.unknown-mark { color: var(--muted); font-size: 15px; }
.view-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border: 1px solid var(--border-strong); border-radius: 10px; background: #fff;
  font-size: 16px; font-weight: 600;
}
.view-btn:hover { border-color: #cbb8ec; color: var(--violet); }
.row-facts { margin-top: 6px; }
.row-facts summary { cursor: pointer; font-size: 13px; color: var(--violet); font-weight: 600; min-height: 24px; }
.row-facts p { font-size: 13px; color: var(--muted); margin-top: 4px; max-width: 46ch; }
.row-facts a { color: var(--violet); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Deals ---------- */

.tab-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tab {
  display: inline-flex; align-items: center; gap: 9px; min-height: 52px; padding: 0 22px;
  border-radius: 999px; border: 1px solid var(--border); background: #fff;
  font-size: 17px; color: #2c2937; cursor: pointer; white-space: nowrap;
}
.tab:hover { border-color: #cbb8ec; color: var(--violet); }
.tab[aria-pressed="true"] { background: var(--violet-soft); border-color: #dcc9f8; color: #5d17ba; font-weight: 650; }
.tab svg { color: var(--violet); flex: none; }

.deal-list, .deal-grid { margin-top: 26px; }
.deal-list { display: grid; gap: 16px; }
.deal-row {
  display: flex; align-items: center; gap: 20px; padding: 20px 24px; min-height: 104px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.deal-row:hover { border-color: #cbb8ec; }
.deal-row[hidden] { display: none; }
.deal-row-main { display: flex; align-items: center; gap: 18px; flex: 1; min-width: 0; }
.deal-row-main:hover { color: inherit; }
.deal-row-text { min-width: 0; }
.deal-row-text strong { display: block; font-size: 24px; font-weight: 700; letter-spacing: -0.03em; }
.deal-row-text span { display: block; font-size: 16px; color: var(--muted); margin-top: 3px; }
.deal-row .pill { flex: none; }
.deal-row .btn { flex: none; min-width: 132px; }

/* ---------- Guide section (shared) ---------- */

.guide-strip-head { font-size: 28px; font-weight: 750; margin: 40px 0 18px; }

/* ---------- Tool detail ---------- */

.crumb {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 16px; color: var(--muted); padding: 36px var(--gutter) 0;
  max-width: var(--wrapper); margin: 0 auto;
}
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--violet); }
.crumb .sep { color: #a9a3b8; }
.crumb .current { color: var(--violet); }

.detail-hero { padding: 30px 0 0; position: relative; overflow: hidden; }
.detail-hero .hero-art { position: absolute; right: 0; top: -20px; width: 430px; height: 200px; pointer-events: none; z-index: 0; opacity: .85; }
.detail-hero-inner { position: relative; z-index: 1; }
.detail-hero-inner {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  max-width: var(--wrapper); margin: 0 auto;
}
.detail-logo {
  width: 104px; height: 104px; flex: none; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.detail-logo svg, .detail-logo img { width: 52px; height: 52px; object-fit: contain; }
.detail-heading { min-width: 0; flex: 1; }
.detail-heading h1 { font-size: clamp(32px, 4.2vw, 58px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.06; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.detail-heading h1 .pill { font-size: 15px; letter-spacing: 0; line-height: 1.2; }
.detail-heading .lede { margin-top: 8px; font-size: 18px; color: #3f3b4e; max-width: 60ch; }
.detail-cta { flex: none; }

.tabs-bar {
  max-width: var(--wrapper); margin: 56px auto 0; display: flex; gap: 26px; flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}
.tabs-bar a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 2px;
  font-size: 17px; color: #2c2937; border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.tabs-bar a:hover { color: var(--violet); }
.tabs-bar a[aria-current="true"] { color: var(--violet); border-bottom-color: var(--violet); font-weight: 650; }

.detail-split {
  display: grid; grid-template-columns: 1.55fr 1fr; gap: 28px; align-items: start;
  max-width: var(--wrapper); margin: 0 auto; padding: 36px var(--gutter) 10px;
}
.detail-main { min-width: 0; display: grid; gap: 20px; }
.detail-side { min-width: 0; display: grid; gap: 20px; }

.panel-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-card);
}
.panel-card h2 { font-size: 26px; font-weight: 750; margin-bottom: 12px; }
.panel-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.panel-card p { font-size: 17px; color: #3f3b4e; }

.feature-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16.5px; color: #2c2937; }
.feature-list li::before {
  content: ""; flex: none; width: 24px; height: 24px; margin-top: 2px; border-radius: 7px;
  background: var(--violet-soft) center/13px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237020db' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4 10-10'/%3E%3C/svg%3E");
}

.keyinfo { list-style: none; padding: 0; display: grid; }
.keyinfo li { display: grid; grid-template-columns: 26px minmax(0, 1fr) minmax(0, 1.1fr); gap: 12px; align-items: start; padding: 16px 0; border-bottom: 1px solid #f2eef8; font-size: 16px; }
.keyinfo li:last-child { border-bottom: 0; }
.keyinfo .ki-icon { color: var(--violet); display: grid; place-items: center; }
.keyinfo .ki-label { font-weight: 650; color: #2c2937; }
.keyinfo .ki-value { color: #3f3b4e; }

.alt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.alt-card {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.alt-card:hover { border-color: #cbb8ec; color: inherit; }
.alt-card .logo-tile { width: 56px; height: 56px; border-radius: 12px; }
.alt-card .logo-tile svg, .alt-card .logo-tile img { width: 28px; height: 28px; }
.alt-text { min-width: 0; flex: 1; }
.alt-text strong { display: block; font-size: 19px; font-weight: 700; }
.alt-text span { display: block; font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alt-card .pill { letter-spacing: 0; }

.action-strip {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  max-width: var(--wrapper); margin: 0 auto; padding: 22px 0 0;
}
.action-strip .spacer { flex: 1; }

/* ---------- Forms ---------- */

.feedback-form {
  display: grid; gap: 14px; margin-top: 8px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px;
}
.feedback-form h2 { font-size: 22px; font-weight: 750; }
.feedback-form > div > p { font-size: 15px; color: var(--muted); margin-top: 6px; max-width: 64ch; }
.feedback-form label { display: grid; gap: 6px; font-size: 15px; font-weight: 600; }
.feedback-form input, .feedback-form textarea, .feedback-form select {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: #fff; font-size: 16px; font-weight: 400; color: var(--ink);
}
.feedback-form textarea { min-height: 110px; resize: vertical; }
.feedback-form .btn { justify-self: start; }
.form-status { font-size: 15px; color: #17642f; min-height: 20px; }
.form-status:empty { display: none; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--violet); }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--violet); }

/* ---------- Article reader ---------- */

.reading-layout {
  display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start;
  max-width: var(--wrapper); margin: 0 auto; padding: 26px 0 40px;
}
.article-side { position: sticky; top: calc(var(--header-h, 64px) + 14px); align-self: start; }
.article-side .toc { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px; max-height: calc(100vh - 40px); overflow-y: auto; }
.side-title { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.article-side ol { margin: 10px 0 0; padding-left: 0; list-style: none; }
.article-side a { display: block; padding: 8px 9px; border-radius: 8px; color: var(--muted); font-size: 15px; line-height: 1.4; }
.article-side a:hover { color: var(--violet); background: #faf7ff; }
.article-side a[aria-current="true"] { color: var(--violet); background: var(--violet-soft); font-weight: 650; }
.toc-mobile { display: none; }
.reading { min-width: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-card); }

.prose { margin-top: 18px; max-width: 74ch; color: #2a2733; font-size: 18px; line-height: 1.78; }
.prose h2 { font-size: 26px; line-height: 1.28; margin: 34px 0 10px; scroll-margin-top: calc(var(--header-h, 64px) + 16px); }
.prose h3 { font-size: 20px; margin: 26px 0 8px; }
.prose p { margin: 12px 0; }
.prose ul, .prose ol { margin: 12px 0; padding-left: 1.3rem; }
.prose li { margin: 6px 0; }
.prose a { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose code { background: #f4efff; border-radius: 5px; padding: 1px 6px; font-size: .92em; }
.prose pre { background: #17131d; color: #f4efff; padding: 16px; border-radius: 10px; overflow-x: auto; }
.prose pre code { background: transparent; padding: 0; color: inherit; }
.prose img { border-radius: 10px; }
.prose figure { margin: 20px 0; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.prose blockquote { margin: 18px 0; padding: 4px 16px; border-left: 3px solid var(--violet); color: #4d4a60; background: #faf7ff; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 18px 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; }

.verification-note { margin: 16px 0; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fbf9ff; font-size: 15px; color: #4d4a60; }
.verification-note strong { color: var(--ink); }
.wrap > .guide-toc { margin-top: 26px; }
.guide-toc { margin: 16px 0; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 16px; background: #fff; }
.guide-toc summary { cursor: pointer; font-weight: 650; font-size: 15px; padding: 12px 0; min-height: 44px; display: flex; align-items: center; }
.guide-toc ol { margin: 0 0 14px; }
.guide-toc a { color: var(--violet); }
.sources { margin-top: 32px; border-top: 1px solid var(--border); padding-top: 20px; }
.sources h2 { font-size: 20px; }
.sources > p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.sources ol { margin-top: 12px; display: grid; gap: 10px; }
.sources li { font-size: 15px; }
.sources a { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.sources small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.related { margin-top: 30px; border-top: 1px solid var(--border); padding-top: 18px; }
.related h2 { font-size: 20px; margin-bottom: 10px; }
.related a { color: var(--violet); font-size: 16px; display: inline-block; padding: 6px 0; }

.article-head h1 { font-size: clamp(30px, 3.8vw, 44px); font-weight: 800; }
.article-lede { margin-top: 12px; font-size: 18px; color: #3f3b4e; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.guide-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.notice { margin-top: 18px; padding: 14px 16px; border-radius: var(--radius-sm); background: #fff6ec; color: #8a4a12; font-size: 15px; border: 1px solid #f5ddc4; }
.conditions { margin-top: 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 16px; background: #fff; }
.conditions summary { cursor: pointer; font-weight: 650; font-size: 15px; padding: 12px 0; min-height: 44px; display: flex; align-items: center; }
.conditions .facts { display: grid; gap: 8px; margin: 0 0 14px; }
.conditions .facts > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; font-size: 15px; }
.conditions .facts dt { color: var(--muted); }
.conditions .facts dd { margin: 0; }

.policy-page { max-width: 820px; margin: 0 auto; padding: 28px; }
.policy-page h1 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.policy-page p { margin-top: 16px; font-size: 17px; color: #2a2733; }

/* ---------- Footer ---------- */

.footer { margin-top: 56px; border-top: 1px solid var(--border); background: #fff; padding: 40px 0 26px; }
.footgrid { display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.footbrand { font-size: 20px; font-weight: 800; letter-spacing: -0.04em; }
.footdesc { margin-top: 10px; font-size: 15px; color: var(--muted); max-width: 36ch; }
.foothead { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.footlinks { display: grid; gap: 2px; }
.footlinks a { display: inline-flex; align-items: center; min-height: 32px; font-size: 15px; color: #3f3b4e; }
.footlinks a:hover { color: var(--violet); }
.footnote { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }

/* ---------- Toast ---------- */

.catalog-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 40;
  max-width: min(92vw, 440px); padding: 12px 18px; border-radius: var(--radius-sm);
  background: #17131d; color: #fff; font-size: 15px; box-shadow: 0 12px 32px rgba(23, 19, 29, .3);
}
.catalog-toast[hidden] { display: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1199px) {
  .headinner { grid-template-columns: auto minmax(150px, 205px) minmax(0, 1fr); gap: 14px; }
  .nav a { font-size: 13.5px; padding: 0 8px; }
}

@media (max-width: 1279px) {
  :root { --gutter: 40px; }
  .hero-inner, .page-hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); }
  .hero-art { height: 300px; }
  .plate-a { width: 320px; height: 170px; }
  .plate-b { width: 280px; height: 150px; }
  .plate-c { width: 210px; height: 118px; }
  .tool-card-name { font-size: 23px; }
  .detail-split { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
}

@media (max-width: 1023px) {
  :root { --gutter: 28px; }
  body { font-size: 17px; }
  .headinner { display: flex; height: auto; min-height: 63px; flex-wrap: wrap; gap: 8px 14px; padding: 10px 28px; }
  .brand { order: 1; }
  .nav-search { order: 2; flex: 1 1 0; min-width: 0; }
  .nav { order: 3; }
  .header { height: auto; }
  .nav { order: 3; width: 100%; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; min-height: 44px; }
  .actions { order: 2; margin-left: auto; }
  .hero-inner, .page-hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-art { display: none; }
  .hero { padding-top: 34px; }
  .page-hero { padding-top: 30px; }
  .dest-grid, .feature-grid, .featured-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-split { grid-template-columns: minmax(0, 1fr); }
  .alt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reading-layout { grid-template-columns: minmax(0, 1fr); }
  .article-side { display: none; }
  .toc-mobile { display: block; }
  .footgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  :root { --gutter: 20px; }

  /* API table stacks into readable rows on phones (desktop unchanged) */
  .api-table { min-width: 0 !important; }
  table.data.api-table .provider-sub { white-space: normal; }
  table.data.api-table .cell-provider > span { min-width: 0; overflow-wrap: anywhere; }
  .api-table thead { display: none; }
  .api-table, .api-table tbody, .api-table tr, .api-table td { display: block; width: 100%; }
  .api-table tr { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .api-table tr:last-child { border-bottom: 0; }
  .api-table td { padding: 6px 0; border: 0; }
  .api-table td::before {
    content: attr(data-label);
    display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
    color: var(--muted); font-weight: 700; margin-bottom: 4px;
  }
  .api-table td[data-label=""]::before { display: none; }
  .api-table tr.limits-row { padding: 0 0 14px; }
  .api-table tr.limits-row td { padding: 0 0 4px; font-size: 13px; line-height: 1.6; }
  .api-table .cell-provider { gap: 12px; }

  /* Detail hero stacks logo + text, CTA on its own full row */
  .detail-hero-inner { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px 16px; align-items: start; }
  .detail-logo { width: 84px; height: 84px; }
  .detail-heading { min-width: 0; }
  .detail-heading h1 { font-size: 26px; }
  .detail-heading .lede { font-size: 16px; }
  .detail-cta { grid-column: 1 / -1; width: 100%; }
  .detail-cta .btn { width: 100%; }
  .detail-hero .hero-art { opacity: .5; }
  body { font-size: 16.5px; }
  .headinner { padding: 10px 20px; }
  .nav-search { flex: 1 1 0; min-width: 0; }
  .hero h1, .page-hero h1 { font-size: clamp(30px, 8.6vw, 40px); }
  .detail-heading h1 { font-size: 30px; }
  .hero .lede, .page-hero .lede { font-size: 17px; }
  .searchbar { flex-wrap: wrap; padding: 10px 12px; gap: 10px; }
  .searchbar input { flex: 1 1 100%; padding: 4px 0; }
  .searchbar .btn { width: 100%; }
  .shortcut-row, .tab-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; min-width: 0; max-width: 100%; }
  .shortcut-row::-webkit-scrollbar, .tab-row::-webkit-scrollbar { display: none; }
  .shortcut, .tab, .pill-btn { flex: 0 0 auto; white-space: nowrap; }
  .filter-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .filter-row::-webkit-scrollbar { display: none; }
  .dest-grid, .feature-grid, .featured-three, .guide-row, .alt-grid { grid-template-columns: minmax(0, 1fr); }
  .tool-card { flex-direction: column; align-items: stretch; min-height: 0; }
  .tool-card-aside { flex-direction: row; align-items: center; justify-content: space-between; }
  .logo-tile { width: 64px; height: 64px; }
  .logo-tile svg, .logo-tile img { width: 34px; height: 34px; }
  .tool-card-name { font-size: 21px; }
  .detail-logo { width: 84px; height: 84px; }
  .detail-logo svg, .detail-logo img { width: 42px; height: 42px; }
  .tabs-bar { gap: 18px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .tabs-bar::-webkit-scrollbar { display: none; }
  .tabs-bar a { white-space: nowrap; }
  .panel-card { padding: 18px; }
  .panel-card h2 { font-size: 22px; }
  .deal-row { flex-wrap: wrap; gap: 14px; padding: 16px 18px; }
  .deal-row-main { flex: 1 1 100%; }
  .deal-row .btn { width: 100%; }
  .table-wrap { border-radius: var(--radius-md); }
  table.data { min-width: 620px; }
  .reading { padding: 18px; }
  .footgrid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .keyinfo li { grid-template-columns: 24px minmax(0, 1fr); }
  .keyinfo .ki-value { grid-column: 2; }
}

@media (max-width: 389px) {
  :root { --gutter: 16px; }
  .hero h1, .page-hero h1 { font-size: 28px; }
  .btn { padding: 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---------- Compatibility layer for support pages (scoped) ---------- */

.legacy-page { max-width: var(--wrapper); margin: 0 auto; padding: 0 var(--gutter); }
.legacy-page .hero { padding: 26px 0 6px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.legacy-page .hero > div:first-child { min-width: 0; }
.legacy-page .hero .illustration { flex: none; }
.legacy-page .hero h1 { font-size: clamp(30px, 3.6vw, 46px); }
.legacy-page .hero .lede { font-size: 17px; margin-top: 10px; max-width: 68ch; }
.legacy-page .illustration {
  width: 240px; min-height: 140px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #faf8fd, #f2ebfb); border: 1px solid #eee6f6;
  display: grid; place-items: center;
}
.legacy-page .illust-glyph { font-size: 56px; color: var(--violet); }
.legacy-page .card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.legacy-page .panel { padding: 24px; }
.legacy-page .grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.legacy-page .grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.legacy-page .grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.legacy-page .guides-featured { grid-template-columns: 1.6fr 1fr; }
.legacy-page .sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.legacy-page .sec-head h2 { font-size: 26px; font-weight: 750; }
.legacy-page .sec-head p { margin-top: 4px; font-size: 15px; color: var(--muted); }
.legacy-page .banner { border: 1px solid var(--violet-line); border-radius: var(--radius-lg); background: linear-gradient(116deg, #faf7ff, #f3ecff); padding: 26px; }
.legacy-page .kicker { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--violet); }
.legacy-page .tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--violet-soft); color: #5d17ba; font-size: 13px; font-weight: 650; }
.legacy-page .tag.soft { background: #f4f2f8; color: #4d4a60; }
.legacy-page .desc-sm { font-size: 15px; line-height: 1.62; color: var(--muted); }
.legacy-page .micro { font-size: 13px; color: var(--muted); }
.legacy-page .mutt { color: var(--muted); }
.legacy-page .tiny { font-size: 13px; }
.legacy-page .note { font-size: 13px; color: var(--muted); }
.legacy-page .mini-link { color: var(--violet); font-weight: 600; }
.legacy-page .view { color: var(--violet); font-weight: 600; font-size: 15px; }
.legacy-page .between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.legacy-page .flex { display: flex; align-items: center; gap: 10px; }
.legacy-page .subdivider { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 14px; }
.legacy-page .sep { height: 1px; background: var(--border); margin: 16px 0; }
.legacy-page .symbol { width: 40px; height: 40px; flex: none; display: inline-grid; place-items: center; border-radius: 11px; background: var(--violet-soft); color: var(--violet); font-size: 18px; font-weight: 700; }
.legacy-page .symbol.alt { background: #f6f3fb; color: #2c2937; }
.legacy-page .itemcard { padding: 18px; min-height: 150px; }
.legacy-page .title-sm { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.legacy-page .tablebox { overflow: hidden; }
.legacy-page .table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legacy-page .table th { text-align: left; padding: 14px 18px; background: #f8f6fc; color: var(--muted); font-size: 14px; font-weight: 550; border-bottom: 1px solid var(--border); white-space: nowrap; }
.legacy-page .table td { padding: 14px 18px; border-bottom: 1px solid #f2eef8; vertical-align: middle; }
.legacy-page .table tr:last-child td { border-bottom: 0; }
.legacy-page .articlecard { overflow: hidden; }
.legacy-page .article-cover { width: 100%; height: 134px; object-fit: cover; }
.legacy-page .article-visual { height: 134px; background: #f4efff; display: grid; place-items: center; font-size: 34px; color: var(--violet); }
.legacy-page .article-body { padding: 18px; }
.legacy-page .seo-links { display: flex; gap: 8px; flex-wrap: wrap; }
.legacy-page .seo-links a { border: 1px solid var(--border); border-radius: 8px; padding: 9px 13px; font-size: 14px; color: #3f3b4e; background: #fff; }
.legacy-page .seo-links a:hover { border-color: #cbb8ec; color: var(--violet); }
.legacy-page .facet-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); font-size: 15px; }
.legacy-page .tnav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.legacy-page .chip { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border); background: #fff; font-size: 15px; color: #2c2937; }
.legacy-page .chip.sel { background: var(--violet-soft); border-color: #dcc9f8; color: #5d17ba; font-weight: 650; }
.legacy-page .filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.legacy-page .filter { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px; background: #fff; font-size: 14px; }
.legacy-page .filter select { border: 0; background: transparent; font: inherit; outline: none; }
.legacy-page .search { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; }
.legacy-page .search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 16px; }
.legacy-page .compare-page { padding: 22px 0; }
.legacy-page .compare-scroll { overflow-x: auto; }
.legacy-page .compare-scroll table.data { width: 100%; min-width: 700px; border-collapse: collapse; font-size: 14px; }
.legacy-page .compare-scroll table.data th, .legacy-page .compare-scroll table.data td { padding: 12px 14px; border-top: 1px solid #f2eef8; text-align: left; vertical-align: top; }
.legacy-page .compare-scroll table.data thead th { background: #f8f6fc; white-space: nowrap; }
.legacy-page .right-card { padding: 22px; }
.legacy-page .fact-list { margin: 0; display: grid; gap: 8px; }
.legacy-page .fact-list > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding-bottom: 8px; border-bottom: 1px solid #f2eef8; }
.legacy-page .fact-list dt { color: var(--muted); }
.legacy-page .fact-list dd { margin: 0; text-align: right; font-weight: 600; }
.legacy-page .guide-toc { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 16px; background: #fff; }
.legacy-page .guide-toc summary { cursor: pointer; font-weight: 650; font-size: 15px; padding: 12px 0; min-height: 44px; display: flex; align-items: center; }
.legacy-page .feedback-form { display: grid; gap: 12px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.legacy-page .feedback-form label { display: grid; gap: 6px; font-size: 15px; font-weight: 600; }
.legacy-page .feedback-form input, .legacy-page .feedback-form textarea, .legacy-page .feedback-form select { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 16px; }
.legacy-page .feed-address { display: grid; gap: 6px; font-size: 15px; font-weight: 600; margin-top: 12px; }
.legacy-page .feed-address input { min-height: 46px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 15px; }
.legacy-page .empty { text-align: center; padding: 30px 22px; }
.legacy-page .empty h3 { font-size: 20px; margin-bottom: 8px; }
.legacy-page .empty p { font-size: 15px; color: var(--muted); margin-bottom: 14px; }
.legacy-page .empty[hidden] { display: none; }
.legacy-page .pick-cell { width: 52px; text-align: center; }
.legacy-page .pick-label { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; cursor: pointer; }
.legacy-page .nowrap { white-space: nowrap; }
.legacy-page .scroll-cue { font-size: 13px; color: var(--muted); margin-top: 8px; }
.legacy-page .section { padding: 26px 0 0; }
.legacy-page .section.card.panel { padding: 24px; }
.legacy-page .policy-page { max-width: 860px; padding: 28px; }
.legacy-page .policy-page h1 { font-size: clamp(28px, 3.4vw, 40px); }
.legacy-page .policy-page p { margin-top: 14px; font-size: 17px; color: #2a2733; }
.legacy-page .related { margin-top: 26px; border-top: 1px solid var(--border); padding-top: 16px; }
.legacy-page .related h2 { font-size: 20px; margin-bottom: 8px; }
.legacy-page .related a { color: var(--violet); font-size: 16px; display: inline-block; padding: 6px 0; }
.legacy-page .reading-layout { padding: 22px 0 30px; }
.legacy-page .reading { padding: 24px; }
.legacy-page .article-side .toc { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px; }
.legacy-page .article-side a { display: block; padding: 8px 9px; border-radius: 8px; color: var(--muted); font-size: 15px; }
.legacy-page .article-side a[aria-current="true"] { color: var(--violet); background: var(--violet-soft); font-weight: 650; }

@media (max-width: 1023px) {
  .legacy-page .grid3, .legacy-page .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legacy-page .guides-featured { grid-template-columns: minmax(0, 1fr); }
  .legacy-page .reading-layout { grid-template-columns: minmax(0, 1fr); }
  .legacy-page .article-side { display: none; }
}
@media (max-width: 767px) {
  .legacy-page .grid2, .legacy-page .grid3, .legacy-page .grid4 { grid-template-columns: minmax(0, 1fr); }
  .legacy-page .hero h1 { font-size: 30px; }
  .legacy-page .hero { flex-direction: column; }
  .legacy-page .hero .illustration { display: none; }
  .legacy-page .table { min-width: 620px; }
  .legacy-page .tablebox { overflow-x: auto; }
}

/* ---------- Category discovery (2026-11-11) ---------- */

html { scroll-behavior: smooth; }
:root { --header-h: 63px; }
section[id], .group-section[id], .model-family[id] { scroll-margin-top: calc(var(--header-h) + 18px); }

/* Header: brand left, flexible space, search adjacent to the text nav. */
.headinner { grid-template-columns: auto minmax(0, 1fr) auto; }
.nav-cluster { display: flex; align-items: center; gap: 14px; justify-self: end; min-width: 0; }
.nav-cluster .nav-search { width: clamp(150px, 16vw, 210px); flex: 0 1 auto; }
.nav-cluster .nav { flex: none; }

/* Homepage statistics strip */
.stat-strip {
  list-style: none; display: flex; flex-wrap: wrap; gap: 10px 34px;
  margin: 26px 0 0; padding: 0;
}
.stat-strip li { display: flex; align-items: baseline; gap: 8px; }
.stat-strip strong { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.stat-strip a { color: #5d17ba; font-weight: 650; text-decoration: none; border-bottom: 1px solid transparent; }
.stat-strip a:hover { border-bottom-color: #cbb8ec; }

/* Homepage category links */
.cat-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cat-links a {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 999px; background: #fbfaff;
  color: #2c2937; font-weight: 550; font-size: 15px; text-decoration: none;
}
.cat-links a:hover { background: var(--violet-soft); border-color: #cbb8ec; color: #5d17ba; }

.section-note { color: var(--muted); font-size: 15px; margin: -4px 0 14px; max-width: 72ch; }
.empty-state {
  color: var(--muted); font-size: 16px; background: #fbfaff;
  border: 1px dashed var(--border); border-radius: var(--radius-md); padding: 18px 20px;
}
.dated-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dated-list li {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 16px;
}
.dated-list a { font-weight: 650; color: var(--ink); text-decoration: none; }
.dated-list a:hover { color: var(--violet); }
.dated-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.muted { color: var(--muted); font-size: 14px; }

/* Category jump menu + grouped sections */
.cat-jump {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px;
  position: sticky; top: var(--header-h); z-index: 20;
  background: rgba(255,255,255,.94); backdrop-filter: blur(6px);
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.cat-jump a {
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 13px;
  border: 1px solid var(--border); border-radius: 999px; background: #fff;
  color: #2c2937; font-size: 15px; font-weight: 550; text-decoration: none;
}
.cat-jump a:hover { border-color: #cbb8ec; background: var(--violet-soft); color: #5d17ba; }
.cat-jump .count { font-size: 13px; color: var(--muted); }
.group-section { margin-top: 30px; }
.group-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.group-head h2 { font-size: 24px; margin: 0; }
.group-count { color: var(--muted); font-size: 14px; margin: 0; }
.group-section .tool-grid { margin-top: 0; }

/* Provenance */
.provenance { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.provenance a { color: #5d17ba; }
.provenance--compact { margin-top: 8px; font-size: 12px; }
.logo-tile--dark { background: #24222c; }
.logo-tile--dark img { filter: none; }
.provider-logo--dark { background: #24222c; border-radius: 6px; padding: 2px; }
.logo-initials {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--violet-soft); color: #5d17ba; font-weight: 700; font-size: 15px; letter-spacing: .02em;
}

/* Model family routes */
.route-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.route-list li {
  display: grid; gap: 4px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 12px 16px;
}
.route-model code { font-size: 14px; color: var(--ink); }
.route-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 14px; }
.route-meta a { color: #5d17ba; }
.route-note { color: var(--muted); font-size: 13.5px; }
.route-more { margin-top: 12px; background: #fbfaff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 10px 14px; }
.route-more > summary { cursor: pointer; font-weight: 600; color: #2c2937; }
.route-more[open] > summary { margin-bottom: 10px; }

@media (max-width: 1023px) {
  .headinner { display: flex; }
  .nav-cluster { order: 2; width: 100%; flex-wrap: wrap; gap: 8px; }
  .nav-cluster .nav-search { order: 2; flex: 1 1 160px; }
  .nav-cluster .nav { order: 1; width: 100%; overflow-x: auto; }
  .cat-jump { position: static; }
}
@media (max-width: 767px) {
  .stat-strip { gap: 10px 22px; }
  .stat-strip strong { font-size: 28px; }
  .nav-cluster .nav-search { flex: 1 1 100%; }
}

/* ---------- Compact product discovery (2026-11-11) ---------- */

:root { --wrapper: 1296px; --gutter: 48px; }
body { font-size: 15.5px; line-height: 1.55; }

/* Header: brand, search trigger, nav */
.headinner { grid-template-columns: auto minmax(0, 1fr) auto; height: 58px; }
.nav-cluster { display: flex; align-items: center; gap: 12px; justify-self: end; min-width: 0; }
.nav { display: flex; align-items: center; gap: 2px; flex: none; }
.nav a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 10px; border-radius: 9px; font-size: 15px; color: #2c2937; font-weight: 500; white-space: nowrap; }
.nav a:hover { background: var(--violet-soft); color: var(--violet); }
.nav a.active { background: var(--violet-soft); color: #5d17ba; font-weight: 650; }

/* Global search widget */
.search-widget { position: relative; min-width: 0; }
.search-trigger {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 9px; background: #fbfaff; color: #5d596e;
  font-size: 14px; font-weight: 550; cursor: pointer;
}
.search-trigger:hover { border-color: #cbb8ec; color: var(--violet); }
.search-trigger kbd {
  font: 600 11px/1 var(--font); color: #6a657a; background: #f1edf8;
  border: 1px solid var(--border); border-radius: 5px; padding: 3px 5px;
}
.search-form {
  display: flex; align-items: center; gap: 8px; height: 38px; min-width: 210px;
  border: 1px solid var(--border); border-radius: 9px; background: #fbfaff;
  padding: 0 6px 0 11px; color: #6a657a; position: relative; z-index: 320;
}
.search-form:focus-within { border-color: #cbb8ec; background: #fff; box-shadow: 0 0 0 3px rgba(112,32,219,.08); }
.search-form input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 14.5px; color: var(--ink); height: 100%; }
.search-submit { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 7px; background: var(--violet-soft); color: var(--violet); font-size: 13px; cursor: pointer; }
.search-clear { flex: none; width: 24px; height: 24px; border: 0; background: none; color: #6a657a; font-size: 17px; cursor: pointer; border-radius: 6px; }
.search-clear:hover { color: var(--violet); }
.search-pop {
  position: absolute; top: calc(100% + 8px); right: 0; width: min(420px, calc(100vw - 32px));
  background: #fff; border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  box-shadow: 0 18px 48px rgba(24, 14, 46, .16); z-index: 300; overflow: hidden;
}
.search-pop-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--border); font-size: 12.5px; color: var(--muted); }
.search-close { border: 0; background: none; color: var(--violet); font-size: 12.5px; font-weight: 650; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.search-close:hover { background: var(--violet-soft); }
.search-results { list-style: none; margin: 0; padding: 6px; max-height: 380px; overflow-y: auto; display: grid; gap: 2px; }
.sr-item a { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 9px; color: var(--ink); }
.sr-item a:hover, .sr-item.active a { background: var(--violet-soft); }
.sr-tile { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 8px; background: #f6f3fb; color: #5d17ba; font-weight: 700; font-size: 12px; }
.sr-tile.logo-tile--dark { background: #24222c; }
.sr-tile img { width: 24px; height: 24px; object-fit: contain; }
.sr-text { min-width: 0; display: grid; }
.sr-name { font-size: 14px; font-weight: 650; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-line { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-empty { padding: 18px 14px; font-size: 14px; color: var(--muted); text-align: center; }
.search-pop-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 14px; border-top: 1px solid var(--border); font-size: 12.5px; }
.search-pop-foot a { color: var(--violet); font-weight: 650; }
.search-hint { color: #9c96ad; font-size: 11.5px; }

/* Homepage hero — compact */
.hero { padding: 28px 0 14px; }
.hero h1 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; }
.hero .lede { margin-top: 10px; font-size: 16px; color: #3f3b4e; max-width: 56ch; }
.hero-art { height: 150px; }
.hero-search {
  display: flex; align-items: center; gap: 8px; margin-top: 16px; max-width: 520px;
}
.hero-search .offers-search { flex: 1 1 auto; min-height: 44px; }
.hero-search .btn { min-height: 44px; padding: 0 18px; flex: none; }
.section-sub { margin-top: 4px; font-size: 14px; color: var(--muted); }
@media (max-width: 760px) {
  .hero-search { flex-wrap: nowrap; }
  .hero-search .offers-search { flex: 1 1 auto; min-width: 0; }
}

/* Full-width category bar: four equal cells */
.catbar {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
  margin-top: 26px;
}
.catbar-cell {
  display: flex; align-items: center; gap: 14px; min-height: 104px; padding: 14px 18px;
  background: linear-gradient(135deg, #fbf9ff, #f4eefc);
  border: 1px solid var(--violet-line); border-radius: var(--radius-lg);
  color: var(--ink); transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.catbar-cell:hover { border-color: #c9b3ef; transform: translateY(-2px); box-shadow: var(--shadow-card); color: inherit; }
.catbar-icon { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: #fff; color: var(--violet); box-shadow: 0 1px 2px rgba(24,14,46,.05); }
.cat-ico { width: 40px; height: 40px; }
.catbar-text { min-width: 0; display: grid; }
.catbar-text strong { font-size: 18px; font-weight: 750; letter-spacing: -0.02em; }
.catbar-text span { font-size: 13.5px; color: var(--muted); margin-top: 2px; }

/* Model-family bar: same visual language as the home category bar, 9 cells */
.catbar--families { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.catbar--vendors { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.catbar--vendors .catbar-cell { min-height: 88px; padding: 12px 16px; gap: 12px; }
.catbar--vendors .catbar-icon { width: 46px; height: 46px; border-radius: 12px; }
.catbar--vendors .catbar-icon img { width: 28px; height: 28px; object-fit: contain; }
.catbar--vendors .catbar-text strong { font-size: 15.5px; }
.catbar--vendors .catbar-text span { font-size: 12.5px; }
.vendor-model {
  display: inline-flex; align-items: center; margin-left: 8px; padding: 3px 10px;
  border-radius: 999px; background: var(--violet-soft); color: #5d17ba;
  font-size: 13.5px; font-weight: 650; letter-spacing: 0; vertical-align: middle;
}
@media (max-width: 1023px) {
  .catbar--vendors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.catbar--families .catbar-cell { min-height: 84px; padding: 12px 14px; gap: 12px; }
.catbar--families .catbar-icon { width: 48px; height: 48px; border-radius: 12px; }
.catbar--families .cat-ico { width: 34px; height: 34px; }
.catbar--families .catbar-text strong { font-size: 16px; }
.catbar--families .catbar-text span { font-size: 12.5px; }
@media (max-width: 720px) {
  .catbar--families { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Compact product cards — OpenRouter-style horizontal cards, 3col x 2row */
.p-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.p-card {
  display: flex; flex-direction: column; min-width: 0;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card); padding: 14px 16px 12px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.p-card:hover { border-color: #cbb8ec; }
.p-card[hidden] { display: none; }
.p-card-main { display: flex; align-items: flex-start; gap: 12px; min-width: 0; color: inherit; }
.p-card-main:hover { color: inherit; }
.p-card .logo-tile { width: 44px; height: 44px; border-radius: 10px; }
.p-card .logo-tile svg, .p-card .logo-tile img { width: 28px; height: 28px; object-fit: contain; }
.p-card-body { min-width: 0; flex: 1; display: grid; }
.p-card-name { font-size: 15.5px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-card-desc { font-size: 13px; color: var(--muted); line-height: 1.4; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-note { font-size: 12px; color: #8a8496; margin-top: 3px; }
.model-ids { font-size: 12.5px; color: #5d17ba; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.p-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 9px; border-top: 1px solid #f4f0f9; }
.p-badges { display: flex; gap: 6px; flex-wrap: wrap; min-width: 0; }
.p-badges .pill { font-size: 12px; padding: 3px 9px; }
.p-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.p-details { font-size: 13px; font-weight: 650; color: var(--violet); white-space: nowrap; }
.p-details:hover { text-decoration: underline; text-underline-offset: 2px; }
.p-card .icon-btn { width: 30px; height: 30px; border-radius: 8px; }
.p-card .icon-btn svg { width: 15px; height: 15px; }

/* Group sections */
.section { padding: 26px 0 0; }
.section-head h2 { font-size: 22px; font-weight: 750; }
.section-head .view { font-size: 14.5px; }
.group-section { margin-top: 34px; }
.group-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.group-head h2 { font-size: 21px; margin: 0; }
.group-count { color: var(--muted); font-size: 13.5px; margin: 0; }
.group-more { display: flex; align-items: center; gap: 14px; justify-content: center; margin-top: 14px; }
.small-btn { min-height: 40px; padding: 0 18px; font-size: 14.5px; }
.link-btn { border: 0; background: none; color: var(--violet); font-size: 14px; font-weight: 600; cursor: pointer; padding: 8px 6px; }
.link-btn[hidden] { display: none; }
.extra-records { margin-top: 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fbfaff; padding: 8px 14px; }
.extra-records > summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: #5d17ba; min-height: 36px; display: flex; align-items: center; }
.extra-records .p-grid { margin: 10px 0 12px; }

/* Inner page heroes */
.page-hero { padding: 34px 0 0; }
.page-hero--tools, .page-hero--api { padding-top: 46px; }
.page-hero h1 { font-size: clamp(28px, 3vw, 34px); font-weight: 800; letter-spacing: -0.035em; }
.page-hero .lede { margin-top: 8px; font-size: 15.5px; color: #3f3b4e; max-width: 64ch; }
.page-hero .hero-art { height: 120px; }
.page-hero .plate-a { width: 320px; height: 170px; }
.page-hero .plate-b { width: 260px; height: 140px; }
.page-hero .plate-c { width: 190px; height: 100px; }

/* Models page */
.model-family .p-grid { margin-top: 0; }
.models-note { display: grid; gap: 10px; justify-items: start; padding: 22px; }
.models-note h2 { font-size: 20px; }

/* Stat strip */
.stat-strip strong { font-size: 28px; }

/* Detail page compact type */
.detail-heading h1 { font-size: clamp(26px, 3vw, 34px); }
.panel-card h2 { font-size: 20px; }
.panel-card p { font-size: 15px; }

@media (max-width: 1023px) {
  .p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catbar { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .catbar-cell { min-height: 84px; padding: 10px 12px; gap: 10px; }
  .catbar-icon { width: 44px; height: 44px; }
  .cat-ico { width: 30px; height: 30px; }
  .catbar-text strong { font-size: 15px; }
  .catbar-text span { font-size: 12px; }
}
@media (max-width: 767px) {
  .p-grid { grid-template-columns: minmax(0, 1fr); }
  .catbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catbar-cell { min-height: 72px; }
  .nav-cluster { width: 100%; flex-wrap: wrap; gap: 8px; }
  .nav { order: 2; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; min-height: 40px; }
  .search-widget { order: 1; flex: 1 1 100%; }
  .search-form { width: 100%; min-width: 0; }
  .search-pop { left: 0; right: 0; width: auto; }
}
@media (max-width: 479px) {
  .catbar { grid-template-columns: minmax(0, 1fr); }
  .catbar--families { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobile header: the compact block above pins .headinner to 58px, but on small
   screens the brand, nav row and search wrap onto separate lines. Let the box
   grow so the sticky header never covers the page hero. */
@media (max-width: 1023px) {
  .headinner { height: auto; min-height: 58px; }
}
/* Twelve vendor cards stay two-up on phones: one column makes the list too long. */
@media (max-width: 767px) {
  .catbar--vendors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catbar--vendors .catbar-cell { min-height: 70px; padding: 10px 12px; gap: 9px; }
  .catbar--vendors .catbar-icon { width: 34px; height: 34px; border-radius: 10px; }
  .catbar--vendors .catbar-icon img { width: 22px; height: 22px; }
  .catbar--vendors .catbar-text strong { font-size: 13.5px; line-height: 1.25; }
  .catbar--vendors .catbar-text span { font-size: 11.5px; }
}

/* ---------- Product page comments (2026-11-12) ---------- */

.comments { margin-top: 26px; }
.comment-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 14px; }
.comment-item {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: #fbfaff; padding: 12px 16px;
}
.comment-meta { display: flex; align-items: baseline; gap: 10px; margin: 0 0 6px; }
.comment-meta strong { font-size: 15px; color: var(--ink); }
.comment-meta span { font-size: 13px; color: var(--muted-2); }
.comment-body { margin: 0; font-size: 15.5px; color: #3f3b4e; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-empty { color: var(--muted-2); font-size: 15px; }
.comment-form { display: grid; gap: 10px; margin-top: 18px; }
.comment-form textarea, .comment-name {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: #fff; font: inherit; color: var(--ink);
}
.comment-form textarea { min-height: 108px; resize: vertical; }
.comment-name { max-width: 320px; }
.comment-form textarea:focus, .comment-name:focus { outline: none; border-color: #cbb8ec; box-shadow: 0 0 0 3px rgba(112,32,219,.08); }
.comment-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.comment-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.comment-status { font-size: 14px; color: #5d17ba; }

/* ---------- Product detail: key facts, catch, models, actions (2026-11-12) ---------- */

.detail-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }

.catch-callout {
  margin: 18px 0 0; padding: 12px 16px; border-radius: 12px;
  background: #fff6ec; border: 1px solid #f5d9bd; color: #7a3f00; font-size: 15px;
}
.catch-callout strong { color: #8a4b00; }

.fact-strip {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px; margin-top: 20px;
}
.fact-tile {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: #fff; padding: 13px 16px; box-shadow: var(--shadow-card); min-width: 0;
}
.fact-tile--wide { grid-column: 1 / -1; }
.fact-label {
  display: block; font-size: 12px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted-2); font-weight: 700;
}
.fact-value { display: block; margin: 6px 0 0; font-size: 15.5px; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.fact-tile--wide .fact-value { font-weight: 500; font-size: 15.5px; color: #3f3b4e; }
.fact-value--soon { color: #8a4b00; }

.model-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; }
.model-chips li {
  padding: 5px 10px; border-radius: 8px; background: #f6f3fb; border: 1px solid var(--border);
  font-size: 13.5px; color: #2c2937;
}
.model-chips code { font-size: 13px; }
.model-chip-more { color: var(--muted-2); background: transparent; border-style: dashed; }

.check-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.check-list li {
  display: grid; grid-template-columns: minmax(120px, 180px) minmax(0, 1fr); gap: 12px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border); font-size: 15px;
}
.check-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.check-list span { color: var(--muted-2); }
.check-list strong { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }

.action-list { display: grid; gap: 8px; margin-top: 12px; }
.action-list .btn { width: 100%; }

@media (max-width: 1023px) {
  .fact-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact-tile--wide { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .check-list li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* ---------- Member accounts, likes and comment gate (2026-11-12) ---------- */

.like-btn {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: #fff; color: #3f3b4e;
  font-size: 15px; font-weight: 600; cursor: pointer;
}
.like-btn:hover { border-color: #cbb8ec; color: var(--violet); }
.like-btn[aria-pressed="true"] { background: var(--violet-soft); border-color: #dcc9f8; color: #5d17ba; }
.like-btn[aria-pressed="true"] svg { fill: currentColor; }
.like-btn .like-label { color: var(--muted-2); font-weight: 500; }
.like-btn[aria-pressed="true"] .like-label { color: #5d17ba; }
.like-btn--small { min-height: 30px; padding: 0 10px; font-size: 13.5px; gap: 5px; margin-left: auto; }
.comment-meta .like-btn--small { margin-left: auto; }

.comment-gate {
  margin: 16px 0 0; padding: 14px 16px; border-radius: var(--radius-md);
  border: 1px dashed var(--border-strong); background: #fbfaff; color: var(--muted);
  font-size: 15px;
}
.comment-gate a { color: var(--violet); font-weight: 600; }

.account-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 26px; }
.account-split > .panel-card:only-child { grid-column: 1 / -1; }
.account-error {
  grid-column: 1 / -1; margin: 0; padding: 12px 16px; border-radius: 12px;
  background: #fdecec; border: 1px solid #f5c6c6; color: #8a1f1f; font-size: 15px;
}
.account-form { display: grid; gap: 12px; margin-top: 14px; }
.account-form label { display: grid; gap: 6px; font-size: 14px; color: var(--muted-2); font-weight: 600; }
.account-form input {
  width: 100%; min-height: 44px; padding: 8px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: #fff; font: inherit; color: var(--ink);
}
.account-form input:focus { outline: none; border-color: #cbb8ec; box-shadow: 0 0 0 3px rgba(112,32,219,.08); }
.account-form .btn { justify-self: start; }
.account-stats { display: flex; gap: 28px; margin: 18px 0 4px; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.account-stats dt { font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; }
.account-stats dd { margin: 4px 0 0; font-size: 22px; font-weight: 750; color: var(--ink); }
.account-comments { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.account-comments li { padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fbfaff; }
.panel-card h3 { font-size: 16px; margin: 24px 0 0; }

@media (max-width: 1023px) {
  .account-split { grid-template-columns: minmax(0, 1fr); }
}
.account-signout { margin-top: 22px; }
.comment-item--pending { border-style: dashed; background: #fff; }
.comment-item--pending .comment-meta span { color: #8a4b00; }
.oauth-buttons { display: grid; gap: 10px; margin-top: 14px; }
.oauth-btn { justify-content: center; gap: 10px; width: 100%; }
.account-oauth .section-note { margin-top: 12px; }

/* Native "Show N" limit dropdown under each directory group (2026-11-12) */
.group-limit {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14.5px; color: var(--muted-2); font-weight: 550;
}
.group-limit select {
  min-height: 38px; padding: 0 34px 0 12px; border: 1px solid var(--border);
  border-radius: 999px; background-color: #fff; color: var(--ink);
  font: inherit; font-weight: 650; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237020db' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.group-limit select:hover { border-color: #cbb8ec; color: var(--violet); }
.group-more { display: flex; justify-content: center; margin-top: 18px; }

/* Sticky header: anchor jumps must clear the taller mobile header (2026-11-12) */
@media (max-width: 1023px) {
  [id], .prose h2, .prose h3, .guide-toc, .conditions, #suggest, #report-change, #comments {
    scroll-margin-top: 168px;
  }
}

/* Nav auth buttons (2026-11-12) */
.nav-auth { display: flex; align-items: center; gap: 8px; flex: none; }
.nav-signin {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 12px;
  border-radius: 9px; color: #2c2937; font-size: 15px; font-weight: 600; white-space: nowrap;
}
.nav-signin:hover { background: var(--violet-soft); color: var(--violet); }
.nav-signin--member { background: var(--violet-soft); color: #5d17ba; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.nav-signup {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px;
  border-radius: 999px; background: var(--violet); color: #fff;
  font-size: 15px; font-weight: 650; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(24,14,46,.12);
}
.nav-signup:hover { background: var(--violet-hover); color: #fff; }
@media (max-width: 1023px) {
  .nav-auth { margin-left: auto; }
  .nav-signup { padding: 0 13px; font-size: 14px; }
  .nav-signin { padding: 0 8px; font-size: 14px; }
}

/* Mobile header: brand + auth on the first row, search and nav below. */
@media (max-width: 1023px) {
  .nav-auth { order: 2; margin-left: auto; }
  .nav-cluster { order: 3; }
}

/* Sticky group headings: with "Show All" the list gets long, so the section
   title (Coding, Image, …) stays pinned under the frozen header. */
@media (min-width: 768px) {
  .group-section > .group-head {
    position: sticky; top: 59px; z-index: 30;
    margin: 0 -8px 12px; padding: 8px 8px 10px;
    background: var(--canvas);
    border-bottom: 1px solid var(--border);
    transition: box-shadow .15s ease;
  }
  .group-section > .group-head.is-stuck { box-shadow: 0 6px 16px rgba(24,14,46,.06); }
}

/* /offers/: keep the filter bar in view while scrolling the long list. */
@media (min-width: 768px) {
  .offers-filters { position: sticky; top: 59px; z-index: 25; }
  .offers-filters.is-stuck { box-shadow: 0 10px 24px rgba(24,14,46,.10); }
}
.panel-card .still-summary {
  margin: 12px 0 0; padding: 8px 12px; border-radius: 8px;
  background: var(--violet-soft); color: #4a1199;
  font-size: 13.5px; font-weight: 600; line-height: 1.4;
}
.panel-card .still-summary[data-has-reports="0"] {
  background: #f5f3fa; color: #68647a; font-weight: 500;
}
.panel-card .still-status { margin: 2px 0 0; font-size: 13.5px; color: #5d17ba; min-height: 18px; }
.panel-card .still-status:empty { display: none; }
.btn[data-still-works][aria-pressed="true"] {
  background: var(--violet-soft); border-color: #d3bcf6; color: #4a1199; opacity: 1; cursor: default;
}
.btn--guide { border-color: #d9c8fb; background: var(--violet-soft); color: #5d17ba; }
.btn--guide:hover { background: #eadcfd; color: #4a1199; }
.catbar-cell.is-active { border-color: var(--violet); box-shadow: 0 0 0 2px rgba(112, 32, 219, .14); }
.group-head-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.language-switch { color: var(--violet); font-size: .875rem; font-weight: 650; white-space: nowrap; }
.language-switch:hover { text-decoration: underline; }
@media (max-width: 1023px) {
  .nav-actions { order: 2; margin-left: auto; }
}
