:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --paper: #fff;
  --ink: #0f172a;
  --muted: #475569;
  --line: #dce4ef;
  --blue: #2563eb;
  --blue-dark: #194ebd;
  --blue-pale: #edf4ff;
  --teal: #14b8a6;
  --radius: 14px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
a { color: var(--blue-dark); text-underline-offset: 3px; }
a:hover { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
button, select { font: inherit; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { line-height: 1.14; margin: 0 0 16px; letter-spacing: -.035em; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }
.wrap { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -60px; padding: 8px 12px; background: var(--paper); z-index: 4; }
.skip:focus { top: 8px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.header { background: var(--paper); border-bottom: 1px solid var(--line); }
.topbar, .footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topbar { min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 800; letter-spacing: -.05em; text-decoration: none; white-space: nowrap; }
.brand-ai { color: var(--blue-dark); }
.brand-mark { display: flex; align-items: end; justify-content: center; gap: 2px; width: 32px; height: 32px; padding: 8px; border-radius: 9px; background: var(--ink); transform: rotate(-5deg); }
.brand-mark i { width: 4px; border-radius: 2px; height: 7px; background: var(--blue-pale); }
.brand-mark i:nth-child(2) { height: 11px; background: var(--paper); }
.brand-mark i:nth-child(3) { height: 16px; background: var(--teal); }
.topbar nav, .footer nav { display: flex; align-items: center; gap: 24px; }
.topbar nav a, .footer nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.topbar nav a:hover, .footer nav a:hover { color: var(--blue-dark); }
.hero {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 88% 4%, var(--blue-pale) 0, transparent 42%), var(--bg);
}
.hero-intro { max-width: 740px; margin-bottom: 32px; }
.hero-intro h1, .article h1 { font-size: clamp(34px, 5vw, 58px); letter-spacing: -.065em; }
.hero-intro h1 span { color: var(--blue-dark); }
.hero-intro p { font-size: 18px; color: var(--muted); max-width: 62ch; }
.finder-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: start; gap: 16px; }
.panel { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 1px 2px rgb(15 23 42 / .05); }
.panel h2 { font-size: 24px; }
.picker fieldset { padding: 0; border: 0; margin: 0 0 24px; min-width: 0; }
.picker legend, .picker label[for] { display: block; margin-bottom: 8px; font-weight: 700; }
.task-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.task { position: relative; cursor: pointer; min-width: 0; }
.task input { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; }
.task span {
  min-height: 52px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  font-size: 14px;
  font-weight: 600;
}
.task span::before { content: ""; width: 12px; height: 12px; flex: 0 0 12px; border: 1px solid var(--muted); border-radius: 50%; }
.task:hover span { border-color: var(--blue); }
.task input:checked + span { color: var(--blue-dark); border-color: var(--blue); background: var(--blue-pale); }
.task input:checked + span::before { border: 4px solid var(--blue); background: var(--paper); }
.task input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.picker select { min-height: 46px; width: 100%; padding: 8px 12px; border: 1px solid var(--muted); border-radius: 10px; background: var(--paper); color: var(--ink); }
.picker textarea {
  width: 100%; min-height: 88px; resize: vertical; padding: 10px 12px;
  border: 1px solid var(--muted); border-radius: 10px; color: var(--ink);
  font: inherit; background: var(--paper); display: block;
}
.query-examples { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.query-examples button {
  padding: 6px 10px; min-height: 36px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--paper); color: var(--blue-dark);
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.query-examples button:hover { background: var(--blue-pale); }
.finder-submit { margin-top: 12px; border: 0; cursor: pointer; }
.browse-tasks { margin-top: 16px; }
.browse-tasks summary { font-size: 14px; color: var(--blue-dark); font-weight: 600; cursor: pointer; }
.browse-tasks fieldset { margin: 8px 0 0; }
.match-status { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.match-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.evidence { font-size: 13px; }
.tradeoff { border-top: 1px solid var(--line); padding-top: 8px; }
.match-lead { background: var(--blue-pale); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.match-name { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.match-name h3 { margin: 0; }
.lead-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.match-lead p, .example p { font-size: 14px; line-height: 1.55; color: var(--muted); }
.primary-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 9px; padding: 8px 16px; background: var(--blue); color: white; text-decoration: none; font-weight: 700; font-size: 14px; }
.primary-link:hover { background: var(--blue-dark); color: white; }
.alternatives { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.alt { display: block; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-weight: 700; text-decoration: none; font-size: 14px; }
.alt small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; line-height: 1.35; }
.example { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.example strong { display: block; margin-bottom: 4px; font-size: 14px; }
.guides, .editorial, .article { padding-block: 48px; }
.guide-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guide-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); text-decoration: none; }
.guide-link strong, .guide-link small { display: block; }
.guide-link strong { color: var(--ink); }
.guide-link small { color: var(--muted); margin-top: 4px; }
.guide-link:hover { border-color: var(--blue); }
.editorial { border-top: 1px solid var(--line); }
.editorial > *, .prose { max-width: 70ch; }
.article { min-height: 56vh; }
.article h1 { max-width: 19ch; margin-top: 16px; }
.back { font-size: 14px; font-weight: 600; }
.prose h2, .editorial h2:not(:first-child) { margin-top: 32px; }
.editorial h3 { margin-top: 24px; }
.prose ol, .prose ul, .editorial ul { padding-left: 24px; }
.footer { border-top: 1px solid var(--line); background: var(--paper); padding: 16px 0; }
@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .topbar { gap: 12px; }
  .topbar nav, .footer nav { gap: 12px; }
  .brand-mark { display: none; }
  .hero, .guides, .editorial, .article { padding-block: 32px; }
  .hero-intro { margin-bottom: 24px; }
  .finder-grid, .guide-list { grid-template-columns: minmax(0, 1fr); }
  .panel { padding: 16px; }
}
@media (max-width: 360px) {
  .topbar nav a { font-size: 12px; }
  .task span { font-size: 13px; padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
