:root {
  --page: #ffffff;
  --surface: #f7f7f8;
  --ink: #17181c;
  --ink-secondary: #4b4d55;
  --ink-muted: #85878f;
  --hairline: #e7e7ea;
  --border: #dcdce1;

  --criteria: #2a78d6;
  --option: #4a3aa7;

  --accent: #1baf7a;
  --accent-ink: #0e7a54;
  --accent-tint: #e6f5ef;

  --web: #2a78d6;
  --multiagent: #4a3aa7;
  --muted-bar: #e3e2e6;

  --radius: 12px;
  --max-w: 840px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 480px at 50% -120px, var(--accent-tint), transparent),
    var(--page);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent-ink);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

em {
  color: var(--ink);
}

.tag {
  color: var(--criteria);
  font-weight: 700;
}

.tag.option {
  color: var(--option);
}

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

.hero {
  padding-top: 72px;
  padding-bottom: 28px;
  text-align: center;
}

.badge-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  background: var(--surface);
}

.badge.honor {
  color: #8a5a00;
  background: #fdf3dc;
  border-color: #f2dfa8;
}

.hero h1 {
  font-size: clamp(34px, 6vw, 52px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--accent-ink);
  margin: 0 0 14px;
}

.hero .subtitle {
  font-size: clamp(19px, 2.6vw, 24px);
  font-weight: 700;
  color: var(--ink);
  max-width: 640px;
  margin: 0 auto 26px;
  line-height: 1.4;
}

.author-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto 32px;
}

.author {
  width: 110px;
}

.author img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 10px;
  border: 1px solid var(--hairline);
}

.author-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.author-name a {
  color: var(--accent-ink);
}

.author-affil {
  font-size: 11.5px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
}

.btn:hover {
  text-decoration: none;
  opacity: 0.85;
}

.btn.accent {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
}

.btn svg {
  width: 14px;
  height: 14px;
}

/* ---------- tldr ---------- */

.tldr-box {
  display: flex;
  gap: 16px;
  border: 1px solid var(--border);
  background: var(--accent-tint);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.tldr-tag {
  flex: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--accent-ink);
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 3px 9px;
  height: fit-content;
}

.tldr-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tldr-box li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-secondary);
  padding-left: 16px;
  position: relative;
}

.tldr-box li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--accent-ink);
  font-weight: 800;
}

.tldr-box strong {
  color: var(--ink);
}

.tldr-box a {
  font-weight: 700;
}

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

section {
  padding: 44px 0;
  border-top: 1px solid var(--hairline);
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin: 0 0 8px;
}

h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
}

.lede,
.prose {
  font-size: 16px;
  color: var(--ink-secondary);
}

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

/* ---------- comparison (today vs choicemates) ---------- */

.compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: start;
  margin: 24px 0;
}

.compare .col {
  font-size: 14px;
}

.compare .col .label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.compare .col.today {
  color: var(--ink-muted);
}

.compare .rule {
  width: 1px;
  background: var(--hairline);
  align-self: stretch;
}

.compare ul {
  margin: 0;
  padding-left: 18px;
}

.compare li {
  margin-bottom: 4px;
}

.thesis-line {
  font-size: 16px;
  margin-top: 20px;
}

.thesis-line b {
  font-weight: 800;
}

.thesis-line .automate {
  color: var(--multiagent);
}

.thesis-line .orchestrate {
  color: var(--accent-ink);
}

/* ---------- design goals ---------- */

.dg-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dg-list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 15px;
  color: var(--ink-secondary);
}

.dg-id {
  flex: none;
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-ink);
  background: var(--accent-tint);
  border-radius: 5px;
  padding: 2px 7px;
}


/* ---------- system walkthrough (figure blocks) ---------- */

.figure-block {
  padding: 36px 0;
}

.figure-block .dg-id {
  display: inline-block;
  margin-bottom: 8px;
}

.figure-block h3 {
  font-size: 18px;
}

.region-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--page);
  font-size: 11px;
  font-weight: 800;
  margin-right: 8px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.figure-block .fig-img {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  margin: 16px 0;
}

.prose + .figure-block {
  padding-top: 4px;
}

.figure-block .fig-img.narrow {
  max-width: 520px;
}

.fig-img-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
}

.fig-img-pair .fig-img {
  margin: 0;
}

.figure-block .fig-img img {
  width: 100%;
  display: block;
}

.figure-block p {
  font-size: 15px;
  color: var(--ink-secondary);
  margin: 0;
  max-width: 720px;
}

.figure-block p strong {
  color: var(--ink);
}

.stack-note {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 32px;
}

/* ---------- comparison bar chart ---------- */

.chart-block {
  margin-bottom: 36px;
}

.chart-block h3 {
  font-size: 16px;
}

.chart-sub {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 18px;
}

.bar-group {
  margin-bottom: 16px;
}

.bar-group .metric-name {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.bar-group .ns {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
}

.bar-row {
  display: grid;
  grid-template-columns: 92px 1fr 52px;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.bar-row .series-name {
  font-size: 12.5px;
  color: var(--ink-secondary);
  text-align: right;
}

.bar-track {
  background: var(--surface);
  border-radius: 4px;
  height: 12px;
  position: relative;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 4px 3px 3px 4px;
  min-width: 3px;
}

.bar-row .value {
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.chart-legend {
  display: flex;
  gap: 16px;
  font-size: 12.5px;
  color: var(--ink-secondary);
  margin-top: 10px;
  flex-wrap: wrap;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chart-legend .swatch {
  width: 9px;
  height: 9px;
  border-radius: 2px;
}

/* ---------- quotes ---------- */

blockquote.quote {
  margin: 16px 0 0;
  padding: 16px 18px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 14px;
  color: var(--ink-secondary);
  font-style: italic;
}

blockquote.quote cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-muted);
}


/* ---------- discussion ---------- */

.takeaways {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.takeaways li {
  font-size: 15px;
  color: var(--ink-secondary);
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
}

.takeaways li:first-child {
  padding-top: 0;
  border-top: none;
}

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

/* ---------- bibtex ---------- */

.bibtex-box {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.bibtex-box pre {
  margin: 0;
  font-size: 12.5px;
  overflow-x: auto;
  color: var(--ink-secondary);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  line-height: 1.6;
}

.copy-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--page);
  color: var(--ink);
  cursor: pointer;
}

.copy-btn:hover {
  border-color: var(--ink-muted);
}

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

footer {
  padding: 32px 0 48px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-muted);
}

footer a {
  color: var(--ink-secondary);
}

footer .foot-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}

/* ---------- responsive ---------- */

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

  .compare .rule {
    display: none;
  }

  .bar-row {
    grid-template-columns: 72px 1fr 46px;
  }

  .fig-img-pair {
    grid-template-columns: 1fr;
  }
}
