/* ============================================================
   AI Nooblet — yellow & ink, inspired by the classic
   "...for Dummies" book covers. No purple gradients allowed.
   ============================================================ */

:root {
  --yellow: #ffd335;
  --yellow-soft: #fff3c4;
  --ink: #16161a;
  --ink-soft: #3b3b45;
  --paper: #fffdf6;
  --paper-alt: #faf4e3;
  --white: #ffffff;
  --accent: #d8432f;       /* dummies-red for small pops */
  --line: #e8e0c9;
  --radius: 14px;
  --shadow: 0 2px 0 var(--ink);
  --shadow-lg: 6px 6px 0 var(--ink);
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Spline Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

a { color: inherit; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--yellow);
  border-bottom: 3px solid var(--ink);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--ink);
  color: var(--yellow);
  border-radius: 10px;
  font-size: 1.05rem;
}

.logo-text em { font-style: italic; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.site-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 12px;
  border-radius: 8px;
}

.site-nav a:hover { background: rgba(0, 0, 0, 0.08); }

/* ---------- hero ---------- */

.hero {
  background: var(--yellow);
  border-bottom: 3px solid var(--ink);
  padding: 46px 0 54px;
  scroll-margin-top: 84px;
}

.kicker {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  margin: 0 0 16px;
  color: var(--ink-soft);
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  margin: 0 0 20px;
}

.hl {
  background: var(--ink);
  color: var(--yellow);
  padding: 0 0.18em;
  border-radius: 6px;
}

.hero-sub {
  max-width: 620px;
  font-size: 1.15rem;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 3px solid var(--ink);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--yellow);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}

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

/* ---------- sections ---------- */

.section { padding: 50px 0; scroll-margin-top: 84px; }

.section-alt {
  background: var(--paper-alt);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}

.section h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  font-weight: 900;
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.step {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 50%;
  font-size: 1.2rem;
  box-shadow: 3px 3px 0 var(--ink);
}

.lede {
  max-width: 700px;
  font-size: 1.08rem;
  margin: 0 0 18px;
}

.callout {
  margin-top: 28px;
  background: var(--yellow-soft);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-lg);
  max-width: 760px;
}

/* ---------- tabs (Learn: basics / quiz / glossary) ---------- */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 24px;
  border-bottom: 3px solid var(--ink);
}
.tab {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--white);
  border: 3px solid var(--ink);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  padding: 10px 18px;
  margin-bottom: -3px;
  cursor: pointer;
}
.tab:hover { background: var(--yellow-soft); }
.tab[aria-selected="true"] { background: var(--yellow); }
.tab-panel { scroll-margin-top: 96px; }
.tab-panel[hidden] { display: none; }

.try-inline {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 2px dashed var(--line);
}
.try-inline .try-lede { margin: 0 0 12px; font-size: 0.98rem; }

#tier-legend { scroll-margin-top: 90px; }

.fineprint {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------- card grids ---------- */

.card-grid {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.card-grid.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.info-card {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-lg);
}

.info-card .icon { font-size: 1.7rem; }

.info-card h3 {
  margin: 8px 0 6px;
  font-size: 1.12rem;
  font-weight: 700;
}

.info-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ---------- quiz ---------- */

.quiz-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.quiz-btn {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 16px 18px;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.08s ease;
}

.quiz-btn .icon { font-size: 1.4rem; }

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

.quiz-btn.active {
  background: var(--yellow);
}

.quiz-result {
  margin-top: 28px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.25);
}

.quiz-result .rec-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--yellow);
  margin: 0 0 6px;
}

.quiz-result h3 {
  font-size: 1.7rem;
  font-weight: 900;
  margin: 0 0 4px;
  color: var(--yellow);
}

.quiz-result .rec-provider {
  margin: 0 0 14px;
  color: #cfcfd8;
  font-size: 0.95rem;
}

.quiz-result p { margin: 0 0 12px; }

.quiz-result .alt {
  font-size: 0.9rem;
  color: #b9b9c4;
}

.quiz-result a.go {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  background: var(--yellow);
  color: var(--ink);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 10px;
}

/* ---------- providers ---------- */

.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.provider-card {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.provider-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.provider-card h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 900;
}

.provider-card h3 .product {
  font-weight: 500;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.badge {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

.provider-card .tagline {
  margin: 0;
  font-weight: 600;
  color: var(--accent);
  font-size: 0.95rem;
}

.provider-card .blurb {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
  flex-grow: 1;
}

.provider-meta {
  border-top: 2px dashed var(--line);
  padding-top: 10px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.provider-meta strong { color: var(--ink); }

.provider-card a.visit {
  font-weight: 700;
  font-size: 0.9rem;
}

/* ---------- model table ---------- */

.model-table-wrap {
  margin-top: 30px;
  overflow-x: auto;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.model-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.model-table th,
.model-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 2px solid var(--line);
  vertical-align: top;
}

.model-table thead th {
  background: var(--yellow);
  border-bottom: 3px solid var(--ink);
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.model-table tbody tr:last-child td { border-bottom: none; }

.model-table td.model-name {
  font-weight: 700;
  white-space: nowrap;
}

.model-table td.company { white-space: nowrap; }

.model-table td.note {
  color: var(--ink-soft);
  font-size: 0.93rem;
}

/* ---------- glossary ---------- */

.glossary {
  margin: 30px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.glossary > div {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: 4px 4px 0 var(--ink);
}

.glossary dt {
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 4px;
}

.glossary dd {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ---------- dark CTA ---------- */

.section-dark {
  background: var(--ink);
  color: var(--paper);
}

.section-dark h2 { color: var(--yellow); }

.try-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.try-links a {
  text-decoration: none;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  border: 3px solid var(--yellow);
  padding: 12px 18px;
  font-weight: 700;
  font-family: var(--font-display);
  transition: transform 0.08s ease;
}

.try-links a:hover { transform: translateY(-2px); }

.try-links a span {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: #b9b9c4;
  border-top: 3px solid var(--yellow);
  padding: 44px 0 28px;
  font-size: 0.88rem;
}

.site-footer strong { color: var(--yellow); }

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 36px 48px;
  justify-content: space-between;
}

.footer-about { flex: 1 1 320px; max-width: 440px; }

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 14px;
}
.footer-logo .logo-mark { background: var(--yellow); color: var(--ink); }
.footer-logo .logo-text { color: var(--white); }

.footer-blurb { margin: 0 0 14px; line-height: 1.55; }

.footer-stats {
  margin: 12px 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--yellow);
  font-variant-numeric: tabular-nums;
}

.footer-verify {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.9;
  color: #9a9aa6;
}
.footer-verify .badge { vertical-align: middle; }
.footer-verify a { color: var(--yellow); text-decoration: none; white-space: nowrap; }
.footer-verify a:hover { text-decoration: underline; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 48px;
}
.footer-col { min-width: 150px; }
.footer-heading {
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin: 0 0 12px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-col a {
  color: #cfcfd8;
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-col a:hover { color: var(--yellow); text-decoration: underline; }

.footer-bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  justify-content: space-between;
}
.footer-attr,
.footer-copy { margin: 0; font-size: 0.78rem; color: #8c8c98; max-width: 640px; }
.footer-attr a { color: var(--yellow); text-decoration: none; }
.footer-attr a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .footer-bottom { flex-direction: column; }
}

/* ---------- hero stats bar ---------- */

.stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 30px;
}

.stat {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 10px 18px;
  display: flex;
  flex-direction: column;
  min-width: 110px;
}

.stat strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.1;
}

.stat span {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* ---------- badges ---------- */

.badge-check,
.badge-docs {
  background: #d3f3d8;
  font-size: 0.68rem;
  padding: 2px 8px;
  cursor: help;
}

.badge-live {
  background: var(--yellow);
  font-size: 0.68rem;
  padding: 2px 8px;
  cursor: help;
}

.badge-usage {
  background: #d9e9ff;
  font-size: 0.68rem;
  padding: 2px 8px;
  cursor: help;
}

.badge-revenue {
  background: #ffe0d6;
  font-size: 0.68rem;
  padding: 2px 8px;
  cursor: help;
}

.badge-open {
  background: #d9e9ff;
  font-size: 0.68rem;
  padding: 2px 8px;
}

/* ---------- verification tier legend ---------- */

.tier-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin: 24px 0 6px;
}

.tier {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: 3px 3px 0 var(--ink);
}

.tier .badge { flex: 0 0 auto; margin-top: 2px; }

.tier strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.tier p {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

/* ---------- leaderboard controls ---------- */

.board-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 26px 0 16px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  transition: background 0.08s ease, transform 0.08s ease;
}

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

.chip.active {
  background: var(--ink);
  color: var(--yellow);
}

.board-search {
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 10px 16px;
  min-width: 240px;
  background: var(--white);
  box-shadow: 3px 3px 0 var(--ink);
}

.board-search:focus {
  outline: 3px solid var(--yellow);
  outline-offset: 1px;
}

/* ---------- leaderboard table ---------- */

.board-wrap {
  overflow-x: auto;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.board {
  width: 100%;
  border-collapse: collapse;
  min-width: 880px;
}

.board th,
.board td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 2px solid var(--line);
  vertical-align: middle;
}

.board thead th {
  background: var(--yellow);
  border-bottom: 3px solid var(--ink);
  font-family: var(--font-display);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  user-select: none;
}

.board th.sortable { cursor: pointer; }

.board th.sortable:hover { background: #f3c41f; }

.board th.sortable::after {
  content: "↕";
  opacity: 0.35;
  margin-left: 6px;
  font-size: 0.8em;
}

.board th.sort-asc::after { content: "↑"; opacity: 1; }
.board th.sort-desc::after { content: "↓"; opacity: 1; }

.board th.num, .board td.num { text-align: center; }

.board-row { cursor: pointer; }

.board-row:hover { background: var(--yellow-soft); }

.board-row.open { background: var(--yellow-soft); }

.board tbody tr:last-child td { border-bottom: none; }

.rank-cell { width: 56px; }

.rank {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
  background: var(--white);
}

.rank.gold { background: var(--yellow); box-shadow: 2px 2px 0 var(--ink); }
.rank.silver { background: #e8e8ee; }
.rank.bronze { background: #f3d4b4; }

.model-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
}

.mark {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 2px solid var(--ink);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
  background: var(--yellow);
}

.mark-g { background: #d9e9ff; }
.mark-l { background: #d3f3d8; }
.mark-x { background: #e8e8ee; }
.mark-d { background: #e3dcff; }
.mark-m { background: #ffe0d6; }

.model-name {
  display: block;
  font-weight: 700;
}

/* badges get their own row and stay on one line (the board scrolls
   horizontally on narrow screens) so rows keep an even height */
.badges {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 5px;
  margin: 3px 0;
  white-space: nowrap;
}

.model-tagline {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.company-cell { white-space: nowrap; font-weight: 600; }

.bestfor-cell {
  font-size: 0.9rem;
  color: var(--ink-soft);
  max-width: 240px;
}

td.price {
  font-family: var(--font-display);
  font-weight: 700;
  white-space: nowrap;
}

.board-detail td {
  background: var(--paper-alt);
  border-top: 2px dashed var(--line);
  padding: 18px 22px 20px;
}

.board-detail p { margin: 0 0 10px; max-width: 720px; }

.board-detail .detail-meta {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.board-detail .detail-verify {
  font-size: 0.88rem;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 8px 12px;
  max-width: 720px;
}
.board-detail .detail-verify code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.85em;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
}
.board-detail .detail-verify .verify-when { color: var(--ink-soft); }

.go-small {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--ink);
  color: var(--yellow);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 10px;
}

.board-empty {
  padding: 26px 22px;
  margin: 0;
  color: var(--ink-soft);
}

/* ---------- showcase / get listed ---------- */

.showcase-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  margin-top: 32px;
  align-items: start;
}

.showcase-how h3,
.showcase-form h3 {
  margin: 0 0 14px;
  font-size: 1.25rem;
  font-weight: 900;
}

.how-list {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.how-list li { padding-left: 6px; }

.showcase-how code {
  background: var(--yellow-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.85em;
}

.showcase-form {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.showcase-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}

.showcase-form input {
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 10px 14px;
  background: var(--paper);
}

.showcase-form input:focus {
  outline: 3px solid var(--yellow);
  outline-offset: 1px;
}

.showcase-form .btn { align-self: flex-start; cursor: pointer; }

.form-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

/* ---------- small screens ---------- */

@media (max-width: 900px) {
  .showcase-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; gap: 8px 12px; }
  .site-nav { gap: 2px; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .site-nav a { padding: 6px 9px; font-size: 0.82rem; white-space: nowrap; }
  .hero { padding: 36px 0 44px; }
  .section { padding: 38px 0; }
  .board-controls { flex-direction: column; align-items: stretch; }
  .board-search { min-width: 0; width: 100%; }
  .calc-inputs { flex-direction: column; align-items: stretch; }
}

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

/* ---------- accessibility ---------- */

.skip-link {
  position: absolute;
  left: 10px;
  top: -52px;
  z-index: 1000;
  background: var(--ink);
  color: var(--yellow);
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 0 0 10px 10px;
  transition: top 0.12s ease;
}
.skip-link:focus { top: 0; }

.board th.sortable { cursor: pointer; }

/* visible keyboard focus, without changing mouse-click styling */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
.board-row:focus-visible,
.board th.sortable:focus-visible,
.chip:focus-visible,
.quiz-btn:focus-visible,
.cmp input:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}
.section-dark a:focus-visible,
.site-footer a:focus-visible { outline-color: var(--yellow); }

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

/* ---------- compare checkbox + panel ---------- */

.cmp {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  user-select: none;
}
.cmp input { width: 14px; height: 14px; accent-color: var(--ink); cursor: pointer; }
.cmp input:disabled { cursor: not-allowed; }
.cmp input:disabled + span { opacity: 0.45; }

.compare-panel {
  margin: 18px 0 4px;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 14px 18px 18px;
}
.compare-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.compare-head h3 { font-family: var(--font-display); margin: 0; }
.compare-count {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-left: 6px;
}
.compare-wrap { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.compare-table th[scope="col"] {
  text-align: left;
  font-family: var(--font-display);
  background: var(--yellow);
  border: 2px solid var(--ink);
  padding: 8px 12px;
}
.compare-table th[scope="row"] {
  text-align: left;
  font-weight: 700;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  padding: 8px 12px;
  white-space: nowrap;
}
.compare-table td {
  border: 1px solid var(--line);
  padding: 8px 12px;
  vertical-align: top;
}

/* ---------- leaderboard facets ---------- */

.facets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin: -4px 0 18px;
  padding: 12px 16px;
  background: var(--paper-alt);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
}
.facet { display: flex; align-items: center; gap: 8px; }
.facet-check { gap: 6px; }
.facet select,
.facet input[type="range"] {
  font-family: var(--font-body);
  font-size: 0.85rem;
}
.facet select {
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 5px 10px;
  background: var(--white);
  font-weight: 600;
}
.facet input[type="range"] { accent-color: var(--ink); cursor: pointer; }
.facet input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--ink); cursor: pointer; }
.facet output { font-variant-numeric: tabular-nums; color: var(--accent); min-width: 4ch; }
.facet-reset {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  margin-left: auto;
}
.facet-reset:hover { background: var(--yellow); }

@media (max-width: 640px) {
  .facets { flex-direction: column; align-items: stretch; }
  .facet-reset { margin-left: 0; }
}

/* ---------- real prices ---------- */

.price-val {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-weight: 600;
}
.price-sep { color: var(--ink-soft); margin: 0 2px; }

/* ranked badge is a link; keep it looking like a badge */
a.badge-usage { text-decoration: none; color: var(--ink); cursor: pointer; }
a.badge-usage:hover { background: #c4dcff; }

/* ---------- live-history sparkline ---------- */

.sparkline {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin: 4px 0 12px;
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.spark-label { font-weight: 700; color: var(--ink); }
.spark-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
}
.spark-bar {
  width: 5px;
  height: 5px;
  background: var(--line);
  border: 1px solid var(--ink);
  border-radius: 1px;
}
.spark-bar.up { height: 16px; background: var(--yellow); }

/* ---------- cost calculator ---------- */

.cost-calc {
  margin: 18px 0 4px;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--ink);
  overflow: hidden;
}
.cost-calc > summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 18px;
  font-family: var(--font-display);
  font-weight: 700;
  background: var(--yellow);
  border-bottom: 3px solid transparent;
}
.cost-calc[open] > summary { border-bottom-color: var(--ink); }
.cost-calc > summary::-webkit-details-marker { display: none; }
.calc-hint { font-family: var(--font-body); font-weight: 600; font-size: 0.78rem; color: var(--ink-soft); }
.calc-body { padding: 16px 18px; }
.calc-intro { margin: 0 0 12px; font-size: 0.9rem; color: var(--ink-soft); }
.calc-inputs { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.calc-inputs label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 600;
  font-size: 0.85rem;
}
.calc-inputs input {
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 8px 12px;
  width: 180px;
  background: var(--white);
}
.calc-results { list-style: none; margin: 0; padding: 0; }
.calc-results li {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 2fr auto;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}
.calc-results li:last-child { border-bottom: none; }
.calc-model { font-weight: 600; font-size: 0.9rem; }
.calc-tag {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--ink);
  color: var(--yellow);
  border-radius: 999px;
  padding: 1px 7px;
  vertical-align: middle;
}
.calc-track { height: 12px; background: var(--paper-alt); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.calc-bar { display: block; height: 100%; width: 0; background: var(--yellow); border-right: 1px solid var(--ink); transition: width 0.15s ease; }
.cheapest .calc-bar { background: var(--accent); }
.calc-cost { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.calc-empty { color: var(--ink-soft); font-size: 0.9rem; }

@media (prefers-reduced-motion: reduce) {
  .calc-bar { transition: none; }
}

/* ============================================================
   MATCHMAKER (hero search + results + tool cards)
   ============================================================ */

.mm-search {
  margin-top: 28px;
  max-width: 760px;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.mm-search:focus-within { outline: 3px solid var(--ink); outline-offset: 3px; }
.mm-search textarea {
  width: 100%;
  height: 88px;            /* comfortable fixed size */
  border: none;
  background: transparent;
  resize: none;            /* no manual resize handle */
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ink);
  padding: 16px 18px 6px;
}
.mm-search textarea::placeholder { color: var(--ink-soft); }
.mm-search textarea:focus { outline: none; }
.mm-search-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 12px 12px; }
.mm-count { font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.mm-count.is-max { color: var(--accent); }

.mm-pills {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.mm-pills-label { font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); }

.mm-results { margin-top: 30px; }
.mm-results-inner { max-width: 820px; animation: fade-up 0.35s ease both; }
.mm-results-head {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.35rem;
  margin: 0 0 16px;
}
.mm-results-q { font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; color: var(--ink-soft); }
.mm-cards { display: flex; flex-direction: column; gap: 16px; }
.mm-results-foot { margin: 16px 0 0; font-size: 0.92rem; color: var(--ink-soft); }

/* secondary "other options" — same cards, quieter and a touch smaller */
.mm-alts {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px dashed var(--line);
}
.mm-alts-head {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.mm-alts .tool-card {
  box-shadow: var(--shadow);
  padding: 16px 18px;
}
.mm-alts .tool-name { font-size: 1.05rem; }

.linklike {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
}

/* ---------- tool card (results + browse grid) ---------- */

.tool-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 20px 22px;
}
.tool-card-feature { background: var(--yellow-soft); }
.tool-top { display: flex; align-items: center; gap: 12px; }
.tool-card .mark { background: var(--white); font-size: 1.2rem; }
.tool-head { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.tool-name { font-family: var(--font-display); font-weight: 900; font-size: 1.2rem; }
.tool-cat { font-size: 0.85rem; font-weight: 600; color: var(--accent); }
.score-badge { background: #d3f3d8; white-space: nowrap; }
.tool-desc { margin: 12px 0 0; color: var(--ink-soft); line-height: 1.5; }
.tool-cta { margin-top: 16px; align-self: flex-start; font-size: 0.92rem; padding: 10px 18px; }

/* ---------- loading skeleton ---------- */

.tool-skeleton { gap: 0; }
.sk { display: block; background: var(--line); border-radius: 6px; }
.tool-skeleton .sk { animation: sk-pulse 1.2s ease-in-out infinite; }
.sk-mark { width: 38px; height: 38px; border-radius: 10px; flex: 0 0 auto; }
.sk-pill { width: 92px; height: 24px; border-radius: 999px; flex: 0 0 auto; }
.sk-line { height: 12px; margin: 7px 0; }
.sk-w40 { width: 40%; } .sk-w24 { width: 24%; } .sk-w100 { width: 100%; } .sk-w90 { width: 90%; }
.sk-btn { width: 180px; height: 42px; border-radius: 12px; margin-top: 16px; }
@keyframes sk-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

@media (max-width: 640px) {
  .mm-results-q { display: block; margin-top: 2px; }
  .tool-cta { align-self: stretch; text-align: center; }
}

/* ---------- centered matchmaker landing ---------- */

.hero { text-align: center; }
.hero .kicker { margin-left: auto; margin-right: auto; }
.hero-sub { margin-left: auto; margin-right: auto; }
.mm-search { margin-left: auto; margin-right: auto; }
.mm-search textarea { text-align: left; }   /* keep typed text left-aligned */
.mm-pills { justify-content: center; }
.mm-results-inner { margin-left: auto; margin-right: auto; text-align: left; } /* center the block, left-align its contents */

/* hero social-proof stats line (truthful; hidden until there's data) */
.hero-stats {
  margin: 18px auto 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.hero-stats[hidden] { display: none; }

/* the LLM's friendly intro line + per-tool tailored reason */
.mm-intro {
  margin: 0 0 18px;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ink);
}

/* "this is a big project" callout — distinct ink box above the picks */
.mm-caveat {
  background: var(--ink);
  color: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 16px 20px;
  margin: 0 0 18px;
}
.mm-caveat-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--yellow);
}
.mm-caveat-body { margin: 0; line-height: 1.55; color: var(--paper); }
.mm-results-head-soft {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.5;
}

/* ---------- footer: "get featured" application ---------- */

.footer-featured {
  margin: 0 0 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.featured-cta > summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--yellow);
  line-height: 1.4;
}
.featured-cta > summary::-webkit-details-marker { display: none; }
.featured-cta > summary strong { text-decoration: underline; }
.apply-form { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; max-width: 640px; }
.apply-row { display: flex; gap: 8px; flex-wrap: wrap; }
.apply-row > input { flex: 1 1 200px; }
.apply-form input,
.apply-form textarea {
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 8px 10px;
}
.apply-form textarea { resize: vertical; }
.apply-form .ap-submit {
  flex: 0 0 auto;
  background: var(--yellow);
  color: var(--ink);
  box-shadow: none;
  padding: 8px 22px;
  font-size: 0.9rem;
}
.apply-form .ap-submit:hover { background: #ffdf5e; box-shadow: none; transform: translate(2px, 2px); }
.ap-note { margin: 2px 0 0; min-height: 1em; font-size: 0.82rem; font-weight: 600; color: var(--yellow); }
.ap-fine { margin: 4px 0 0; font-size: 0.76rem; color: #8c8c98; }

/* ---------- footer feedback form ---------- */

.footer-feedback { flex: 1 1 300px; max-width: 360px; }
.feedback-form { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }
.feedback-form select,
.feedback-form textarea,
.feedback-form input {
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 8px 10px;
}
.feedback-form textarea { resize: vertical; min-height: 56px; }
.feedback-form .fb-submit {
  align-self: flex-start;
  background: var(--yellow);
  color: var(--ink);
  box-shadow: none;
  padding: 8px 18px;
  font-size: 0.9rem;
}
.feedback-form .fb-submit:hover { background: #ffdf5e; transform: translate(2px, 2px); box-shadow: none; }
.fb-note { margin: 2px 0 0; min-height: 1em; font-size: 0.82rem; font-weight: 600; color: var(--yellow); }
.tool-why {
  margin: 10px 0 0;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
}
