:root {
  --bg: #fbfaf7;
  --paper: #fffefb;
  --ink: #151515;
  --muted: #62605a;
  --line: #ded9ce;
  --soft-line: #ece7dc;
  --accent-soft: #f2eee6;
  --link: #174ea6;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg) !important;
  color: var(--ink) !important;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  line-height: 1.56;
}
.hidden { display: none !important; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--link) !important; }

/* Editorial header shared by all aipicker pages. */
.site-header,
.home-header {
  border-bottom: 1px solid var(--line) !important;
  background: rgba(251, 250, 247, 0.94) !important;
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: none !important;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ink) !important;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--ink);
  display: inline-block;
  transform: translateY(-1px);
}
.editorial-nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}
.editorial-menu-button { display: none; }

/* Page shell normalization for old generated pages. */
main,
.compare-shell,
.max-w-6xl,
.max-w-5xl,
.max-w-4xl,
.at-compare-page,
.at-tool-page {
  max-width: var(--max) !important;
}
main,
.compare-shell,
.at-compare-page,
.at-tool-page {
  margin-left: auto !important;
  margin-right: auto !important;
}
main {
  padding-left: 24px !important;
  padding-right: 24px !important;
}
.compare-shell,
.at-compare-page,
.at-tool-page {
  padding-top: 34px !important;
  padding-bottom: 42px !important;
}
article,
section,
.bg-white,
.bg-gray-50,
.bg-slate-50,
.bg-blue-50,
.bg-indigo-50,
.bg-green-50,
.bg-yellow-50,
.bg-red-50,
.bg-purple-50,
.bg-amber-50 {
  background-color: transparent !important;
}

h1,
.text-3xl,
.text-4xl,
.text-5xl {
  color: var(--ink) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  letter-spacing: -0.04em !important;
  line-height: 1.02 !important;
}
h1 {
  font-size: clamp(38px, 5vw, 68px) !important;
  font-weight: 600 !important;
  margin-top: 18px !important;
  margin-bottom: 16px !important;
}
h2,
.text-2xl {
  color: var(--ink) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  letter-spacing: -0.025em !important;
  font-weight: 600 !important;
}
h3,
.font-semibold,
.font-bold { color: var(--ink) !important; }
p,
.text-gray-500,
.text-gray-600,
.text-gray-700,
.text-slate-500,
.text-slate-600,
.text-slate-700 { color: var(--muted) !important; }
.text-brand,
.hover\:text-brand:hover { color: var(--link) !important; }

/* Breadcrumbs and page intros. */
.breadcrumbs,
nav.text-sm,
.stage2-pricing-hub-links {
  color: var(--muted) !important;
  font-size: 14px !important;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px !important;
}

/* Cards and panels. */
.rounded-lg,
.rounded-xl,
.rounded-2xl,
.tool-detail-section,
.at-card,
.shadow,
.shadow-sm,
.hover\:shadow-sm:hover {
  border-radius: 0 !important;
  box-shadow: none !important;
}
.border,
.border-gray-100,
.border-gray-200,
.border-slate-200,
.border-blue-100,
.border-green-100,
.border-indigo-100,
.tool-detail-section {
  border-color: var(--line) !important;
}
.tool-detail-section,
.at-card,
.grid > a,
.grid > div,
section[class*="rounded"],
div[class*="rounded"] {
  background-color: rgba(255, 254, 251, 0.52) !important;
}
.tool-detail-section,
.at-compare-page > section,
.at-tool-page > section {
  border: 1px solid var(--line) !important;
  padding: 24px !important;
  margin-bottom: 24px !important;
}

/* Tables. */
.overflow-x-auto {
  border: 1px solid var(--line);
  background: var(--paper);
}
table {
  width: 100%;
  border-collapse: collapse !important;
  background: var(--paper) !important;
  border: 0 !important;
}
th,
td {
  border-color: var(--soft-line) !important;
  color: var(--ink) !important;
}
th {
  background: var(--accent-soft) !important;
  color: var(--muted) !important;
  font-size: 12px !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
tr:hover,
.hover\:bg-gray-50:hover {
  background: #f6f1e8 !important;
}

/* Buttons and CTAs. */
.bg-brand,
.bg-blue-600,
.bg-indigo-600,
.bg-green-600,
a[class*="bg-brand"],
a[class*="bg-blue"],
button[class*="bg-brand"],
button[class*="bg-blue"] {
  background: var(--ink) !important;
  color: #fff !important;
  border: 1px solid var(--ink) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.bg-brand:hover,
.bg-blue-600:hover,
.bg-indigo-600:hover,
.bg-green-600:hover,
a[class*="bg-brand"]:hover,
a[class*="bg-blue"]:hover {
  background: #303030 !important;
  color: #fff !important;
}
button,
input,
select,
textarea {
  border-radius: 0 !important;
}

/* Remove loud directory-era decorations where possible. */
.text-2xl:not(.keep-emoji),
.text-3xl:not(h1):not(.keep-emoji) {
  letter-spacing: -0.02em;
}
.emoji,
[aria-hidden="true"] { filter: grayscale(0.35); }

/* Footer shared by all pages. */
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 24px 40px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
}
.site-footer .footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Homepage editorial blocks. */
.wrap { max-width: var(--max); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.hero { border-bottom: 1px solid var(--line); }

@media (max-width: 880px) {
  .editorial-nav { display: none; }
  .editorial-menu-button { display: inline-flex; }
  .header-inner { padding: 16px 18px; }
  main { padding-left: 18px !important; padding-right: 18px !important; }
}

/* Research Notes v2: cleaner editorial layout */
.note-shell,
.note-index-shell {
  max-width: var(--max) !important;
  margin: 0 auto;
  padding: 0 24px 56px !important;
}
.note-hero,
.note-index-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 56px;
  padding: 48px 0 38px;
  border-bottom: 1px solid var(--line);
}
.note-index-hero {
  grid-template-columns: minmax(0, 0.98fr) minmax(280px, 0.52fr);
  padding-top: 54px;
}
.note-kicker,
.note-label {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 700;
}
.note-hero h1,
.note-index-hero h1 {
  max-width: 760px;
  margin: 14px 0 18px !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(42px, 6vw, 76px) !important;
  line-height: 0.96 !important;
  letter-spacing: -0.055em !important;
  font-weight: 600 !important;
}
.note-index-hero h1 { max-width: 820px; }
.note-deck {
  max-width: 760px;
  margin: 0 !important;
  color: var(--muted) !important;
  font-size: clamp(18px, 2vw, 21px) !important;
  line-height: 1.58 !important;
}
.note-hero-aside,
.note-index-aside {
  border-left: 1px solid var(--line);
  padding-left: 24px;
  align-self: end;
  color: var(--muted);
  font-size: 14px;
}
.note-hero-aside strong,
.note-index-aside strong { color: var(--ink); }
.note-aside-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.note-aside-list li {
  color: var(--muted) !important;
}
.note-aside-list li::before {
  content: "—";
  color: var(--ink);
  margin-right: 8px;
}
.note-layout {
  display: grid;
  grid-template-columns: minmax(0, 720px) 240px;
  gap: 64px;
  padding-top: 42px;
  align-items: start;
}
.note-prose {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.78;
}
.note-prose > *:first-child { margin-top: 0 !important; }
.note-prose p,
.note-prose li {
  color: var(--muted) !important;
}
.note-prose p {
  margin: 0 0 18px;
}
.note-prose h2 {
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(27px, 3vw, 38px) !important;
  line-height: 1.1 !important;
  letter-spacing: -0.04em !important;
  margin: 48px 0 16px !important;
  padding-top: 10px;
  color: var(--ink) !important;
}
.note-prose h3 {
  font-size: 18px !important;
  margin: 30px 0 10px !important;
  letter-spacing: -0.02em;
  color: var(--ink) !important;
}
.note-prose ul,
.note-prose ol {
  margin: 0 0 24px;
  padding-left: 22px;
}
.note-prose li { margin: 8px 0; }
.note-summary,
.note-callout,
.note-question {
  border-left: 3px solid var(--ink) !important;
  border-top: 1px solid var(--line) !important;
  border-right: 1px solid var(--line) !important;
  border-bottom: 1px solid var(--line) !important;
  background: #fffdf8 !important;
  padding: 20px 22px !important;
  margin: 26px 0 30px !important;
  color: var(--muted) !important;
}
.note-summary strong,
.note-callout strong,
.note-question strong { color: var(--ink); }
.note-rule { display: none; }
.note-table-wrap {
  overflow-x: auto;
  margin: 24px 0 32px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.note-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse !important;
  margin: 0 !important;
  border: 0 !important;
  font-size: 14.5px;
  background: var(--paper) !important;
}
.note-table th,
.note-table td {
  text-align: left;
  vertical-align: top;
  padding: 14px 15px;
  border-bottom: 1px solid var(--soft-line) !important;
}
.note-table th {
  background: var(--accent-soft) !important;
  color: var(--muted) !important;
  font-size: 11px !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.note-table td {
  color: var(--muted) !important;
}
.note-table tr:last-child td { border-bottom: 0 !important; }
.note-table td strong { color: var(--ink); }
.note-side-nav {
  position: sticky;
  top: 92px;
  border-left: 1px solid var(--line);
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
}
.note-side-nav strong {
  display: block;
  color: var(--ink);
  margin-bottom: 12px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.note-side-nav a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
}
.note-side-nav a:hover { color: var(--link) !important; }
.note-index-list {
  display: grid;
  border-top: 1px solid var(--line);
  margin-top: 34px;
}
.note-list-item {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 150px;
  gap: 24px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.note-list-number {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  letter-spacing: -0.04em;
}
.note-list-item h2 {
  margin: 0 0 8px !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(26px, 3vw, 38px) !important;
  line-height: 1.06 !important;
  letter-spacing: -0.045em !important;
}
.note-list-item p {
  color: var(--muted) !important;
  margin: 0;
  max-width: 620px;
}
.note-list-tag {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: right;
}
.note-index-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  gap: 56px;
  padding-top: 46px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 44px;
}
.note-index-bottom h2 {
  margin-top: 0 !important;
}
.note-related-block,
.note-more-block {
  border-top: 1px solid var(--line);
  margin-top: 44px;
  padding-top: 24px;
}

.note-prose .link-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
}
.note-prose .link-list a {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 254, 251, 0.48);
  color: var(--ink);
  text-decoration: none;
}
.note-prose .link-list a:hover {
  background: var(--paper);
  color: var(--link) !important;
}

.note-more-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.note-more-grid a {
  display: block;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 251, 0.42);
  color: var(--ink);
}
.note-more-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.note-next {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  margin-top: 42px;
  padding-top: 22px;
  color: var(--muted);
}
.note-next a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 900px) {
  .note-hero,
  .note-index-hero,
  .note-layout,
  .note-index-bottom {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .note-hero-aside,
  .note-index-aside {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 20px;
  }
  .note-side-nav { display: none; }
  .note-list-item {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 16px;
  }
  .note-list-tag {
    grid-column: 2;
    text-align: left;
  }
}
@media (max-width: 620px) {
  .note-shell,
  .note-index-shell { padding-left: 18px !important; padding-right: 18px !important; }
  .note-list-item { grid-template-columns: 1fr; gap: 8px; }
  .note-list-tag { grid-column: 1; }
  
.note-prose .link-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
}
.note-prose .link-list a {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 254, 251, 0.48);
  color: var(--ink);
  text-decoration: none;
}
.note-prose .link-list a:hover {
  background: var(--paper);
  color: var(--link) !important;
}

.note-more-grid { grid-template-columns: 1fr; }
  .note-next { display: grid; }
}

