:root {
  font-family: "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  scroll-padding-top: 24px;
}

* { box-sizing: border-box; }
body { min-width: 0; margin: 0; background: var(--page); color: var(--ink); }
body.directory {
  color-scheme: dark;
  --page: #0b131b;
  --surface: #121e28;
  --ink: #effaf8;
  --muted: #a9bdc6;
  --line: #30434c;
  --accent: #8af0ca;
  --button-ink: #0b2720;
  --focus: #aff6e2;
}
body.comparison {
  color-scheme: light;
  --page: #f4f7ff;
  --surface: #e7eeff;
  --ink: #112347;
  --muted: #425573;
  --line: #cad6eb;
  --accent: #244ca8;
  --button-ink: #fff;
  --focus: #244ca8;
}

[hidden] { display: none !important; }
.wrap { width: min(1160px, 100% - 64px); margin-inline: auto; }
.bar { border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 74px; }
.nav nav { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 24px; }
.nav a { color: var(--ink); text-decoration: none; }
.nav nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.92rem; }
.nav nav a:hover { text-decoration: underline; text-underline-offset: 0.24em; }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; gap: 10px; font-weight: 700; }
.brand-mark {
  width: 27px;
  height: 24px;
  flex: 0 0 auto;
  background: var(--accent);
  clip-path: polygon(0 58%, 34% 58%, 51% 14%, 67% 77%, 82% 38%, 100% 38%, 100% 56%, 93% 56%, 62% 100%, 47% 48%, 43% 76%, 0 76%);
}
.comparison .brand-mark {
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: repeating-linear-gradient(140deg, transparent 0 4px, var(--accent) 4px 6px);
  clip-path: none;
  width: 22px;
  height: 22px;
}
.skip { position: absolute; inset: 6px auto auto 10px; padding: 10px; background: var(--page); color: var(--ink); transform: translateY(-160%); }
.skip:focus { transform: none; z-index: 2; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
a { color: var(--accent); }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1 { font-size: clamp(3rem, 6.7vw, 5.9rem); letter-spacing: -0.075em; line-height: 0.99; }
h1 em { display: block; color: var(--accent); font-style: normal; }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.6rem); line-height: 1.05; letter-spacing: -0.04em; }
h3 { font-size: 1.26rem; line-height: 1.17; letter-spacing: -0.025em; overflow-wrap: anywhere; }
p { line-height: 1.55; }
.intro { max-width: 48ch; font-size: clamp(1.05rem, 2vw, 1.26rem); color: var(--muted); margin-top: 22px; }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0.65rem 1.1rem;
  margin-top: 26px;
  background: var(--accent);
  color: var(--button-ink);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 650;
}
.button:hover { filter: brightness(1.11); }
.free-hero, .best-hero { display: grid; align-items: center; gap: clamp(24px, 6vw, 94px); padding-block: 70px; }
.free-hero { grid-template-columns: 1.1fr minmax(0, 1fr); }
.chart {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: radial-gradient(ellipse at right top, #162f33, var(--surface) 61%);
  box-shadow: 0 20px 45px #060a1055;
}
.chart-header, figcaption { padding: 12px 16px; color: var(--muted); font-size: 0.89rem; }
.chart-header { border-bottom: 1px solid var(--line); }
.chart-key { display: inline-block; width: 13px; height: 3px; background: var(--accent); vertical-align: middle; margin-right: 6px; }
.chart canvas { display: block; width: 100%; height: auto; }
.directory-section { padding-block: 24px 52px; border-top: 1px solid var(--line); }
.section-title { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 18px; }
.section-title p, .byline { color: var(--muted); }
.filters { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; margin-bottom: 24px; }
.filters label { display: grid; gap: 6px; min-width: 0; font-size: 0.9rem; color: var(--muted); }
input, select, button { font: inherit; }
.filters input, .filters select, .filters button {
  width: 100%;
  min-height: 46px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
  font-size: 1rem;
}
input::placeholder { color: var(--muted); opacity: 1; }
.filters button { cursor: pointer; }
.filters button:hover { border-color: var(--accent); }
.empty { border: 1px solid var(--line); padding: 22px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 19px; display: flex; flex-direction: column; gap: 9px; }
.card-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 14px; color: var(--accent); font-size: 0.83rem; }
.card p, .note-grid p { color: var(--muted); }
.card .byline, .review .byline { font-size: 0.9rem; }
.card details { margin-top: auto; }
.card summary { cursor: pointer; display: list-item; padding-block: 12px; min-height: 44px; }
.text-link { display: inline-flex; align-items: center; width: fit-content; min-height: 44px; text-underline-offset: 0.22em; }
.text-link:hover { text-decoration-thickness: 2px; }
.notes, .method { border-top: 1px solid var(--line); padding-block: 36px 60px; }
.note-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.note-grid p { margin-top: 6px; }
.best-hero { grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr); }
.comparison h1, .comparison h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.comparison h1 { letter-spacing: -0.07em; }
.comparison h1 em { font-style: italic; }
.disclosure { color: var(--muted); font-size: 0.9rem; max-width: 58ch; margin-top: 22px; border-left: 2px solid var(--accent); padding-left: 12px; }
.method-preview { background: var(--surface); border: 1px solid var(--line); padding: clamp(18px, 3vw, 30px); border-radius: 4px; }
.method-preview h2 { font-size: 1.7rem; }
.method-preview dl { margin-top: 19px; display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; }
.method-preview dt { font-weight: 650; }
.method-preview dd { color: var(--muted); }
.quick, .picks { padding-block: 28px 44px; border-top: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; table-layout: fixed; margin-top: 18px; }
thead { background: var(--surface); }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: 12px; overflow-wrap: anywhere; }
th:last-child, td:last-child { width: 19%; }
table a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 0.2em; }
.picks { padding-bottom: 24px; }
.picks > h2 { margin-bottom: 15px; }
.review { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 14px 28px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.review .eyebrow { color: var(--accent); font-size: 0.91rem; margin-bottom: 4px; }
.review h3 { margin: 3px 0; }
.review p + p { margin-top: 6px; }
.review-links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.method p { max-width: 75ch; margin-top: 12px; }
.footer { border-top: 1px solid var(--line); color: var(--muted); padding-block: 23px 32px; }
.footer p { font-size: 0.87rem; margin-top: 4px; }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 40px); }
  .free-hero, .best-hero { gap: 28px; padding-block: 48px; }
  .cards, .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .nav { flex-wrap: wrap; gap: 0 12px; padding-block: 6px; }
  .nav nav { gap: 0 16px; }
  .free-hero, .best-hero, .cards, .note-grid, .review { grid-template-columns: minmax(0, 1fr); }
  .free-hero, .best-hero { padding-block: 37px; }
  .filters label:first-child, .filters button { grid-column: 1 / -1; }
  th, td { padding: 8px 6px; font-size: 0.92rem; }
  th:last-child, td:last-child { width: 23%; }
}
