/* Knocking Web, "Vibrant modern" (docs/templates.md): < 36,000 bytes, AA. */

:root {
  --bg: #f4f4fa;
  --card: #fff;
  --ink: #10111a;
  --muted: #4a4e66;
  --line: #e1e1ee;
  --soft: #eef0fa;
  --link: #4338ca;
  --link-h: #a21caf;
  --a: #4338ca;
  --b: #c2410c;
  --yes: #166534;
  --no: #be123c;
  --partial: #92400e;
  --gold: #b45309;
  --band: linear-gradient(90deg, #4338ca, #7e22ce 34%, #a21caf 64%, #c2410c);
  --grad: linear-gradient(90deg, #6366f1, #d946ef 60%, #f97316);
  --gg: linear-gradient(180deg, #fde68a, #fbbf24);
  --dots: radial-gradient(circle at 1px 1px, rgb(255 255 255 / 0.1) 1px, transparent 0) 0 0 / 22px 22px;
  --shadow: 0 1px 2px rgb(16 17 26 / 0.05), 0 12px 32px -14px rgb(67 56 202 / 0.28);
  --lift: 0 1px 2px rgb(16 17 26 / 0.05), 0 22px 40px -16px rgb(67 56 202 / 0.45);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --w: 58rem;
  --hw: 72rem;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0b14;
    --card: #141628;
    --ink: #eceefb;
    --muted: #a9adca;
    --line: #2a2d4a;
    --soft: #1c1f38;
    --link: #a5b4fc;
    --link-h: #f0abfc;
    --a: #a5b4fc;
    --b: #fdba74;
    --yes: #4ade80;
    --no: #fb7185;
    --partial: #fbbf24;
    --gold: #fbbf24;
    --band: linear-gradient(90deg, #3730a3, #6b21a8 34%, #86198f 64%, #9a3412);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 14px 34px -14px rgb(0 0 0 / 0.7);
    --lift: 0 0 0 1px #6366f1, 0 22px 44px -14px rgb(139 92 246 / 0.5);
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: #0d0e1a; }
body {
  margin: 0;
  font: 400 1.0625rem/1.65 var(--sans);
  color: var(--ink);
  background: var(--bg);
  overflow-wrap: break-word;
}
main { display: block; padding: 0 0 3rem; }
#main > * { margin-inline: max(16px, (100% - var(--w)) / 2); }
/* Prose: 46rem lines */
#main > :is(p, ul, ol) { max-width: none; margin-right: max(16px, 100% - 46rem - max(16px, (100% - var(--w)) / 2)); }
#main > .cta { margin-right: max(16px, (100% - var(--w)) / 2); }
h1, h2, h3, h4, h5, h6 { font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.125rem, 1.4rem + 3vw, 3.75rem); line-height: 1.04; letter-spacing: -0.04em; margin: 0.5rem 0 1rem; }
h2 { font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.125rem); letter-spacing: -0.035em; margin: 3.5rem 0 1rem; }
section > h2::before {
  content: "";
  display: block;
  width: 44px;
  height: 6px;
  margin-bottom: 14px;
  border-radius: 9px;
  background: var(--grad);
}
h3 { font-size: 1.25rem; margin: 1.75rem 0 0.5rem; }
h4, h5, h6 { font-size: 1.0625rem; margin: 1.5rem 0 0.5rem; }
p, ul, ol { margin: 0 0 1.125rem; }
p { text-wrap: pretty; max-width: 46rem; }
ul, ol { padding-left: 1.375rem; }
li + li { margin-top: 0.375rem; }
li::marker { color: var(--a); }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--link-h); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #c026d3; outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; }
strong { font-weight: 700; }
code {
  font: 0.875em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--soft);
  padding: 0.1em 0.35em;
  border-radius: 5px;
  overflow-wrap: anywhere;
}
small, .note, .feature-desc, .plan-note, .disclosure, .checked, .updated, .meta { font-size: 0.875rem; }
.note, .feature-desc, .plan-note, .disclosure, .checked, .meta { color: var(--muted); }
.feature-desc, .plan-note { display: block; font-weight: 400; line-height: 1.45; margin-top: 2px; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: 8px;
  top: -64px;
  z-index: 9;
  padding: 10px 14px;
  background: var(--card);
  border-radius: 10px;
  font-weight: 700;
}
.skip:focus { top: 8px; }
[id] { scroll-margin-top: 84px; }

/* Preview banner */
.draft-banner { background: #ffd60a; color: #111; padding: 8px 16px; font-weight: 600; }
.draft-banner p, .draft-banner ul { margin: 0; }
.draft-banner ul { font-weight: 400; padding-left: 1.25rem; }
.draft-banner a, .draft-banner a:visited { color: #111; text-decoration: underline; }
.draft-banner :focus-visible { outline-color: #111; }
.draft-banner code { background: transparent; color: inherit; padding: 0; }

/* The band */
.site-header, #main > nav:first-child:not(.jump), #main > .hero {
  width: auto;
  margin: 0;
  padding-inline: max(16px, (100% - var(--hw)) / 2);
  background: var(--dots), var(--band);
  color: #fff;
}
.site-header { padding-block: 6px 1px; }
/* The logo: the all-white lockup, the only form allowed on the band (brand/README.md). */
.brand { display: inline-flex; align-items: center; min-height: 58px; color: #fff; }
.brand img { display: block; width: auto; height: 30px; }
.site-footer .brand img { height: 24px; }
/* Category bar: text tabs between hairlines; when narrow it scrolls into the gutter with faded ends. */
.site-header nav {
  overflow-x: auto;
  margin: 0 -16px;
  padding: 0 16px;
  scroll-padding-inline: 40%;
  scrollbar-width: none;
  mask: linear-gradient(90deg, #0000, #000 16px calc(100% - 16px), #0000);
}
.site-header ul, .site-footer ul, .crumbs, .links, .ranked, .cards, .stats, .latest, .jump ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-header ul { display: flex; gap: 24px; width: max-content; min-width: 100%; border-block: 1px solid #fff3; white-space: nowrap; }
.site-header li, .site-header li + li { margin: 0; }
.site-header nav a, .site-header nav a:visited {
  display: block;
  padding: 12px 0 9px;
  border-bottom: 3px solid transparent;
  font-size: 0.875rem;
  font-weight: 650;
  color: #fff;
  text-decoration: none;
}
.site-header nav a:hover { border-color: rgb(255 255 255 / 0.45); }
.site-header a[aria-current="page"] { border-color: #fff; scroll-initial-target: nearest; }
.site-header nav a:focus-visible { outline-offset: -3px; padding-inline: 4px; margin-inline: -4px; }
.skip:focus-visible { outline-color: #fff; }
/* Contrast themes: the logo follows the theme; only the current tab is underlined. */
@media (forced-colors: active) {
  .brand img { mix-blend-mode: difference; }
  .site-header nav a { border-color: Canvas; }
}
.jump a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 99px;
  font-size: 0.875rem;
  font-weight: 650;
  text-decoration: none;
}
.site-header :focus-visible, .hero :focus-visible, .crumbs :focus-visible, .cta :focus-visible { outline-color: #fff; }

.crumbs { padding: 12px 0 4px; font-size: 0.8125rem; line-height: 20px; font-weight: 600; }
.crumbs li { display: inline; }
.crumbs li + li::before { content: "/" / ""; margin: 0 8px; opacity: 0.6; }
.crumbs a, .crumbs a:visited { color: #fff; text-decoration-color: rgb(255 255 255 / 0.5); }
.crumbs a:hover { color: #fff; }
.crumbs a, .links a, .compare a, .more a, h3 a, .stats a, .results th a, .site-footer nav a {
  display: inline-block;
  max-width: 100%;
  min-height: 24px;
  padding: 2px 0;
}

/* Heros */
#main > .hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: -1px;
  padding-top: 1.75rem;
  padding-bottom: 4.5rem;
  margin-bottom: 1rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2.5rem), 0 100%);
}
.hero h1 { color: #fff; max-width: 22ch; margin: 0.25rem auto 0.75rem; }
.hero p { max-width: 44rem; margin-inline: auto; }
.hero a, .hero a:visited { color: #fff; }
.hero a:hover { color: #fff; text-decoration-thickness: 2px; }
.hero .disclosure { color: #fff; font-size: 0.8125rem; margin: 0.5rem auto 0; max-width: 40rem; }
#main > .home-hero { padding-block: 3.5rem 6.5rem; overflow: hidden; }
#main > .home-hero:not(:has(p)) { padding-block: 0 2.75rem; }
.home-hero:not(:has(p))::before, .home-hero:not(:has(p))::after { content: none; }
.home-hero p { font-size: 1.25rem; font-weight: 500; max-width: 40rem; }
/* 2+ pitch paragraphs: the first is the headline */
.home-hero p:first-of-type:not(:only-of-type) {
  font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.04em;
  max-width: 16ch;
}
.home-hero::before, .home-hero::after {
  content: "";
  position: absolute;
  width: 14rem;
  height: 14rem;
  border-radius: 48px;
  border: 1px solid rgb(255 255 255 / 0.3);
  background: rgb(255 255 255 / 0.06);
  transform: rotate(18deg);
}
.home-hero::before { left: -7rem; top: 2rem; }
.home-hero::after { right: -6rem; bottom: 1.5rem; transform: rotate(-12deg); border-radius: 50%; }

.ribbon, h4 .win, .measure, .level, .vs-mini, .badge, .cards .meta, .ranked .price, .ranked .score { display: inline-flex; align-items: center; gap: 6px; border-radius: 99px; }
/* Centred boxes */
.disc, .vs, .tile-icon, .rank, summary::after, .links > li::before { display: inline-grid; place-items: center; flex: none; }
.disc {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #fff;
  color: #4338ca;
  box-shadow: 0 0 0 6px rgb(255 255 255 / 0.2), 0 18px 36px -14px rgb(0 0 0 / 0.6);
}
.disc .logo { width: 56px; height: 56px; }
.disc .i { width: 40px; height: 40px; stroke-width: 1.6; }
.initial { font-size: 2.25rem; font-weight: 900; color: #4338ca; }
.logo { object-fit: contain; flex: none; vertical-align: middle; }

/* Face-off */
.faceoff {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 10px 14px;
  width: 100%;
  max-width: 38rem;
  margin: 0.5rem auto 1.25rem;
}
.side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.side-name { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; margin-top: 8px; }
.side-score { font-size: 0.875rem; font-weight: 650; }
.vs {
  width: 58px;
  height: 58px;
  margin-top: 15px;
  border-radius: 50%;
  background: #fff;
  color: #a21caf;
  font-size: 1.125rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  box-shadow: 0 0 0 6px rgb(255 255 255 / 0.18), 0 10px 26px -8px rgb(0 0 0 / 0.55);
}
.ribbon, h4 .win {
  padding: 3px 12px;
  background: var(--gg);
  color: #451a03;
  font-size: 0.8125rem;
  font-weight: 800;
}
.ribbon { margin-top: 4px; box-shadow: 0 6px 16px -6px rgb(0 0 0 / 0.5); }
.lead .disc { box-shadow: 0 0 0 6px #fbbf24, 0 18px 36px -14px rgb(0 0 0 / 0.6); }
/* Hero chips: dark glass, white text AA over the whole band (white glass fails at the orange end) */
.level, .tested, .stats li {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 16px;
  background: rgb(16 17 26 / 0.2);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.3);
  font-size: 0.9375rem;
  line-height: 1.45;
  text-align: left;
}
.level {
  grid-column: 1 / -1;
  justify-self: center;
  margin: 4px 0 0;
  font-weight: 700;
  align-items: center;
}
.tested { display: block; width: fit-content; margin: 0 auto 0.5rem; text-align: center; }
.tested a { white-space: nowrap; }
.tested > .i { margin-right: 6px; }
/* Home figures */
.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 1.5rem 0 0; }
.stats li { margin: 0; align-items: baseline; }
.verdict-line { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.45; margin: 0 auto 1.25rem; }
.verdict-line strong { font-weight: 650; }

/* Bars */
.bar {
  display: block;
  width: 100%;
  max-width: 8.5rem;
  height: 8px;
  margin: 6px 0 0;
  border: 0;
  border-radius: 99px;
  background: var(--soft);
}
.bar::-webkit-meter-bar { height: 8px; border: 0; border-radius: 99px; background: var(--soft); }
.bar::-webkit-meter-optimum-value { border-radius: 99px; background: var(--grad); }
.bar::-moz-meter-bar { border-radius: 99px; background: var(--grad); }
.hero .bar, .hero .bar::-webkit-meter-bar { background: rgb(255 255 255 / 0.25); }
.hero .bar::-webkit-meter-optimum-value { background: #fff; }
.hero .bar::-moz-meter-bar { background: #fff; }
.hero .lead .bar::-webkit-meter-optimum-value { background: #fbbf24; }
.hero .lead .bar::-moz-meter-bar { background: #fbbf24; }

.title-row { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.title-row h1 { margin: 0.5rem 0 0; }
.tagline { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.45; font-weight: 500; margin: 0.5rem 0 0.75rem; }
.facts { font-size: 0.9375rem; margin: 0 0 0.75rem; }
.facts strong, .stats strong { font-size: 1.375rem; font-weight: 800; }
.cat-head .disc { margin-top: 0.5rem; }
.intro > p:first-child { font-size: 1.1875rem; line-height: 1.6; font-weight: 500; }
.disclosure { line-height: 1.5; margin: 0 0 1rem; }

/* On this page: sticky */
#main > .jump {
  position: sticky;
  top: 0;
  z-index: 5;
  width: auto;
  margin: -1rem 0 0;
  padding-inline: max(16px, (100% - var(--w)) / 2);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.8) blur(14px);
  backdrop-filter: saturate(1.8) blur(14px);
  border-bottom: 1px solid var(--line);
}
.jump ul {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 4px;
  margin: 0 -4px;
  white-space: nowrap;
  scrollbar-width: thin;
}
.jump li { margin: 0; }
.jump a, .jump a:visited { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.jump a:hover { color: #fff; background: var(--band); box-shadow: none; }

/* Cards */
.quick,
.verdict,
.pick,
.test,
details,
.cards > li,
.ranked > li,
.latest > li,
.links > li,
.pros-cons > div,
.best-for,
.table-wrap,
.setup > div { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.quick > h2, .verdict > h2, .test-n {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 4px 12px;
  border-radius: 99px;
  background: var(--band);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.quick > h2::before, .verdict > h2::before, .pick h2::before, .best-for h2::before { content: none; }

.quick { padding: 22px 18px 18px; margin-block: 1.5rem 2rem; }
.quick ul {
  display: grid;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.quick li {
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--soft);
  line-height: 1.55;
}
.quick strong { display: block; font-size: 1.0625rem; font-weight: 800; color: var(--a); }
.quick li:nth-child(2):not(.q-price) strong { color: var(--b); }
.quick .q-price { background: transparent; box-shadow: inset 0 0 0 2px var(--soft); }
.quick .q-price strong { color: var(--ink); }

.verdict { margin-top: 3.5rem; padding: 26px 22px 10px; border: 2px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, var(--band) border-box; }
.verdict p, .verdict li { font-size: 1.125rem; line-height: 1.65; }
.picks { display: grid; gap: 16px; margin-top: 1.25rem; }
.pick { --s: var(--a); min-width: 0; padding: 18px 20px 4px; }
.pick-b { --s: var(--b); }
.pick, .pros-cons > div { background: linear-gradient(var(--s), var(--s)) top / 100% 6px no-repeat, var(--card); }
.pick h2 { font-size: 1.375rem; margin: 0.5rem 0; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 0 1rem; background: linear-gradient(to left, var(--card) 20px, transparent) right / 40px 100% no-repeat local, radial-gradient(farthest-side at 100% 50%, rgb(16 17 26 / 0.18), transparent) right / 16px 100% no-repeat scroll, var(--card); }
.table-wrap:focus-visible { outline-offset: 1px; }
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9375rem;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
caption {
  text-align: left;
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--muted);
  padding: 14px 16px 10px;
}
caption > span { display: inline-block; position: sticky; left: 16px; max-width: calc(100vw - 64px); }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
tbody tr:last-child > *, tfoot tr:last-child > * { border-bottom: 0; }
thead th, .setup dt { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
thead th { background: var(--soft); vertical-align: bottom; }
thead th span { font-weight: 500; letter-spacing: 0; text-transform: none; white-space: nowrap; }
tbody th { font-weight: 700; }
tr.is-free { background: color-mix(in srgb, var(--yes) 9%, var(--card)); }
tr.group th { font-size: 1.0625rem; font-weight: 800; padding-top: 16px; background: color-mix(in srgb, var(--a) 7%, var(--card)); }
tr.group .logo { margin-right: 6px; }
.pricing td { font-weight: 750; }
.pricing td small { display: block; color: var(--muted); font-size: 0.8125rem; font-weight: 400; }
.badge {
  margin-left: 6px;
  padding: 1px 9px;
  background: var(--yes);
  color: var(--card);
  font-size: 0.75rem;
  font-weight: 800;
  vertical-align: 1px;
}
.checked { margin: -0.25rem 0 0; }

.matrix th[scope="row"], .matrix thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 8.5rem;
  max-width: 15rem;
  background: var(--card);
  box-shadow: inset -1px 0 0 var(--line);
}
.matrix thead th:first-child { background: var(--soft); }
.matrix td, .matrix thead th + th { min-width: 6.5rem; }
.matrix thead th + th { font-size: 1rem; letter-spacing: -0.01em; text-transform: none; color: var(--ink); }

/* Marks */
.c-yes, .t-yes { --c: var(--yes); }
.c-no, .t-no { --c: var(--no); }
.c-partial { --c: var(--partial); }
.c-addon { --c: var(--a); }
:is(.c-yes, .c-no, .c-partial, .c-addon) { color: var(--c); font-weight: 700; }
:is(.c-yes, .c-no, .c-partial, .c-addon) > [aria-hidden="true"], .ticks [aria-hidden="true"] {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.375rem;
  height: 1.375rem;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--c);
  color: var(--card);
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1;
  vertical-align: middle;
}
.c-none { color: var(--muted); }
.matrix .note { font-weight: 400; }
.mark { display: inline-flex; align-items: center; font-weight: 750; white-space: nowrap; }

.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 3.5rem;
  padding: 28px 20px;
  border-radius: 24px;
  background: var(--dots), var(--band);
  box-shadow: 0 24px 48px -24px rgb(124 34 206 / 0.7);
}
.button, .button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1 1 13rem;
  min-height: 52px;
  max-width: 100%;
  padding: 12px 24px;
  border-radius: 99px;
  background: #fff;
  color: #3730a3;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
  overflow-wrap: anywhere;
  box-shadow: 0 10px 24px -10px rgb(0 0 0 / 0.55);
}
.button:hover { color: #86198f; text-decoration: underline; box-shadow: 0 0 0 4px rgb(255 255 255 / 0.3), 0 14px 30px -10px rgb(0 0 0 / 0.6); }

.pros-cons { display: grid; gap: 16px; margin-top: 1rem; }
.pros-cons > div { min-width: 0; padding: 4px 20px 6px; }
.pros-cons h2 { font-size: 1.375rem; margin: 1rem 0 0.75rem; }
.pros-cons > div:first-child { --s: var(--yes); }
.pros-cons > div:last-child:not(:first-child) { --s: var(--no); }
.ticks { list-style: none; padding: 0; }
.ticks li { display: flex; gap: 10px; }
.ticks [aria-hidden="true"] { margin-top: 0.2em; }
.best-for { padding: 2px 22px 4px; margin-top: 2.5rem; }
.best-for h2 { font-size: 1.375rem; margin-top: 1.25rem; }

/* Ranking */
:is(.cards, .ranked, .latest, .links) > li { position: relative; margin: 0; }
.ranked { display: grid; gap: 14px; }
.ranked > li { padding: 18px 18px 18px 74px; }
.rank {
  position: absolute;
  left: 18px;
  top: 18px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--band);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
}
.ranked > li:first-child { border: 2px solid #fbbf24; }
.ranked > li:first-child .rank { background: linear-gradient(180deg, #fde68a, #f59e0b); color: #451a03; }
.rank-head { display: flex; align-items: center; gap: 12px; min-height: 42px; }
.rank-head .logo { width: 40px; height: 40px; }
.rank-head .logo, .latest .logo, .glance thead .logo, tr.group .logo { border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.rank-head h3 { font-size: 1.375rem; margin: 0; min-width: 0; }
.rank-head h3 a, .cards h3 a, .links a, .latest a { color: var(--ink); text-decoration: none; }
.rank-head h3 a:hover, .links a:hover, .latest a:hover { color: var(--link); text-decoration: underline; }
.ranked .tagline { font-size: 1.0625rem; margin: 0.5rem 0 0.25rem; font-weight: 400; }
.ranked p { margin: 0.25rem 0 0; }
.ranked .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 0.625rem; }
.ranked .price, .ranked .score { padding: 2px 10px; background: color-mix(in srgb, var(--a) 10%, var(--card)); color: var(--a); font-weight: 700; }
.compare { font-size: 0.875rem; color: var(--muted); }
.compare a, .more a {
  margin: 2px 0;
  padding: 2px 10px;
  border-radius: 99px;
  background: var(--soft);
  font-weight: 700;
  text-decoration: none;
}
.cards .compare { margin-top: 12px; font-size: 0.875rem; }
.cards .compare a { position: relative; color: var(--ht); }
.compare a:hover, .more a:hover { background: var(--band); color: #fff; }

/* Home tiles */
.home-hero ~ * { --w: 72rem; }
.cards { display: grid; gap: 16px; }
.cards > li { --ht: var(--hc); min-width: 0; padding: 22px 22px 18px; overflow: hidden; }
.cards > li::before {
  content: "";
  position: absolute;
  right: -48px;
  top: -48px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--hl) 30%, transparent), transparent);
}
.cards > li:hover { box-shadow: 0 0 0 1px var(--ht), 0 22px 40px -18px color-mix(in srgb, var(--ht) 60%, transparent); }
.tile-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--hl), var(--hc));
  color: #fff;
  box-shadow: 0 10px 20px -10px var(--hc);
}
.tile-icon .i { width: 26px; height: 26px; stroke-width: 1.75; }
.cards h3 { font-size: 1.3125rem; margin: 14px 0 6px; }
.cards h3 a::after, .latest h3 a::after {
  content: "→" / "";
  position: absolute;
  inset: 0;
  padding: 22px;
  text-align: right;
  color: var(--ht);
  font-size: 1.375rem;
}
.cards h3 a:hover { color: var(--ht); }
.cards p, .gist { margin: 0; color: var(--muted); font-size: 0.9375rem; line-height: 1.55; }
.cards .meta {
  justify-self: start;
  margin-top: 14px;
  padding: 2px 10px;
  background: color-mix(in srgb, var(--ht) 8%, var(--card));
  color: var(--ht);
  font-size: 0.8125rem;
  font-weight: 800;
}
.hue-0 { --hc: #4338ca; --hl: #818cf8; }
.hue-1 { --hc: #0369a1; --hl: #38bdf8; }
.hue-2 { --hc: #a21caf; --hl: #e879f9; }
.hue-3 { --hc: #047857; --hl: #34d399; }
.hue-4 { --hc: #c2410c; --hl: #fb923c; }
.hue-5 { --hc: #be123c; --hl: #fb7185; }
.hue-6 { --hc: #6d28d9; --hl: #a78bfa; }
.hue-7 { --hc: #0e7490; --hl: #22d3ee; }
@media (prefers-color-scheme: dark) {
  .cards > li { --ht: var(--hl); }
}

/* Link cards */
.latest { --ht: var(--a); display: flex; flex-wrap: wrap; gap: 16px; }
.latest > li { flex: 1 1 19rem; min-width: 0; padding: 18px 20px; }
.latest > .newest { flex-basis: 100%; }
.latest > li:hover { box-shadow: var(--lift); }
.duo { display: flex; align-items: center; margin-bottom: 10px; }
.duo .logo { width: 48px; height: 48px; box-shadow: 0 0 0 3px var(--card), 0 0 0 4px var(--line); }
.vs-mini {
  z-index: 1;
  margin: 0 -8px;
  padding: 2px 7px;
  background: var(--band);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 900;
  text-transform: uppercase;
}
.latest h3 { margin: 0; padding-right: 24px; }
.newest h3 { font-size: clamp(1.375rem, 1rem + 1.5vw, 2rem); }
.latest p { margin: 6px 0 0; }
.newest .gist { color: var(--ink); font-size: 1.0625rem; }
.links a::after { content: ""; position: absolute; inset: 0; border-radius: 20px; }
.links { display: grid; gap: 10px; }
.links > li { padding: 12px 52px 12px 18px; }
.links > li::before {
  content: "→" / "";
  position: absolute;
  right: 14px;
  top: 50%;
  translate: 0 -50%;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--a);
  font-weight: 800;
}
.links a { font-size: 1.0625rem; font-weight: 800; }
.links .meta { display: block; }
.links .bar { margin-bottom: 4px; }
.more { font-size: 0.9375rem; margin: 1rem 0 0; }

details { margin: 0 0 10px; padding: 0 18px; box-shadow: none; }
summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 0;
  font-size: 1.0625rem;
  font-weight: 750;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+" / "";
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--a);
  font-size: 1.25rem;
  font-weight: 700;
}
details[open] summary::after { rotate: 45deg; background: var(--band); color: #fff; }
summary:hover { color: var(--link); }
.answer { padding: 0 0 4px; }

.site-footer {
  margin-top: 1rem;
  padding: 36px max(16px, (100% - var(--hw)) / 2) 28px;
  border-top: 5px solid #a21caf;
  border-image: var(--band) 1;
  background: #0d0e1a;
  color: #c9cbe0;
  font-size: 0.875rem;
  line-height: 1.6;
}
/* Footer: logo and disclosure | site pages | social profiles (a column each, only when present); then the copyright. */
.foot { display: grid; gap: 8px 64px; }
.site-footer .brand { min-height: 0; margin-bottom: 14px; }
.site-footer p { margin: 0 0 0.75rem; max-width: 40rem; }
.site-footer .disclosure { color: #c9cbe0; }
.site-footer a, .site-footer a:visited { color: #fff; }
.site-footer a:hover { color: #f0abfc; }
.site-footer :focus-visible { outline-color: #f0abfc; }
.site-footer nav::before {
  content: "This site" / "";
  display: block;
  margin: 4px 0 8px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a9adca;
}
.site-footer nav.social::before { content: "Follow us" / ""; }
.site-footer nav.social a { overflow-wrap: anywhere; }
.site-footer li + li { margin-top: 2px; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 24px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  color: #a9adca;
}
.site-footer .foot-base p { margin: 0; }

.sprite { position: absolute; }
.i {
  width: 1.125em;
  height: 1.125em;
  flex: none;
  vertical-align: -0.2em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.glance table { table-layout: fixed; }
.glance thead td, .glance tbody th { width: 32%; }
.glance thead td { background: var(--soft); }
.glance thead th { font-size: 1.0625rem; letter-spacing: -0.01em; text-transform: none; color: var(--ink); }
.glance thead .logo { display: block; width: 40px; height: 40px; margin-bottom: 8px; }
.glance + p { margin-top: 2rem; }
.glance tbody th { font-size: 0.875rem; font-weight: 700; color: var(--muted); }
.glance tbody th .i {
  color: #fff;
  background: var(--band);
  border-radius: 7px;
  padding: 4px;
  width: 24px;
  height: 24px;
  margin-right: 4px;
  vertical-align: -0.45em;
  stroke-width: 2.2;
}
.lead { font-weight: 800; }
strong.lead .i, .win .i { color: var(--gold); }
.ties { display: block; font-weight: 400; color: var(--muted); }

/* How we tested */
.tests > p { max-width: 46rem; }
.setup { display: grid; gap: 12px; margin: 0 0 1.5rem; }
.setup > div { padding: 14px 16px; box-shadow: none; }
.setup dt .i {
  width: 30px;
  height: 30px;
  padding: 6px;
  margin-right: 6px;
  border-radius: 9px;
  vertical-align: middle;
  color: #fff;
  background: linear-gradient(135deg, #818cf8, #4338ca);
}
.setup div:nth-child(2) dt .i { background: linear-gradient(135deg, #e879f9, #a21caf); }
.setup div:nth-child(3) dt .i { background: linear-gradient(135deg, #fb923c, #c2410c); }
.setup div:nth-child(4) dt .i { background: linear-gradient(135deg, #34d399, #047857); }
.setup dd { margin: 8px 0 0; font-weight: 650; line-height: 1.5; }
.results th[scope="row"] { min-width: 9rem; }
.results td { font-weight: 700; }
.results .note { display: block; font-weight: 400; }
.results td.win { color: var(--gold); font-weight: 800; }
.results tfoot :is(th, td) { background: var(--soft); font-weight: 800; font-size: 1rem; }
@media (max-width: 29.99rem) {
  .results, .results :is(caption, tbody, tfoot, tr, th, td) { display: block; }
  .results thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .results tr { padding: 10px 16px; border-bottom: 1px solid var(--line); }
  .results tfoot tr { border: 0; background: var(--soft); }
  .results :is(th, td) { padding: 3px 0; border: 0; }
  .results td::before {
    content: attr(data-label);
    display: inline-block;
    min-width: 6.5rem;
    padding-right: 8px;
    font-weight: 500;
    color: var(--muted);
  }
  .results .note { display: inline; margin-left: 8px; }
}
.test { margin-top: 2rem; padding: 22px 18px 6px; }
.test h3 { font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem); letter-spacing: -0.03em; margin: 0 0 0.375rem; }
.test-n { display: table; margin: 0 0 0.625rem; }
.test > .meta .i, .latest .i { color: var(--a); }
.test > p:not(.meta) { max-width: 46rem; }
.task { margin: 0 0 1.25rem; padding: 6px 18px 4px; border-radius: 16px; background: var(--grad) left / 5px 100% no-repeat, var(--soft); }
.task h4 {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0.875rem 0 0.25rem;
}
.task p { margin-bottom: 0.5rem; max-width: 46rem; }
.task code { background: var(--card); }
.runs { display: grid; gap: 14px; margin-bottom: 1rem; }
.run {
  --tint: var(--soft);
  min-width: 0;
  padding: 4px 16px 4px;
  border-radius: 18px;
  background: var(--tint);
}
.run:has(.result .c-yes) { --tint: color-mix(in srgb, var(--yes) 9%, var(--card)); }
.run:has(.result .c-no) { --tint: color-mix(in srgb, var(--no) 8%, var(--card)); }
.run:has(.result .c-partial) { --tint: color-mix(in srgb, var(--partial) 10%, var(--card)); }
.run.won { box-shadow: 0 0 0 3px #fbbf24, 0 16px 30px -18px #b45309; }
.run h4 {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px 12px;
  margin: 0.875rem 0 0.5rem;
  font-size: 1.25rem;
}
.run .win .i { color: #451a03; }
.result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 0 0 0.5rem;
}
.result .mark { font-size: 1.375rem; font-weight: 850; }
.result .mark > [aria-hidden="true"] {
  width: 2.5rem;
  height: 2.5rem;
  margin-right: 8px;
  font-size: 1.25rem;
  box-shadow: 0 8px 18px -8px var(--c);
}
.measure { padding: 3px 11px; background: var(--card); font-weight: 750; }
.measure .i { color: var(--a); }
.run .meta { font-weight: 600; }

/* Screenshots: never cropped */
.shot { margin: 0 0 1rem; }
.shot > a {
  display: block;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 12px 26px -16px rgb(16 17 26 / 0.45);
}
.shot img { display: block; width: 100%; height: auto; }
.tall { max-width: 18rem; margin-inline: auto; }
.shot > a::after {
  content: "Full size";
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgb(16 17 26 / 0.82);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 750;
}
figcaption { margin-top: 8px; font-size: 0.875rem; line-height: 1.45; color: var(--muted); }
.gallery { columns: 2 16rem; column-gap: 16px; margin-top: 1rem; }
.gallery .shot {
  break-inside: avoid;
  padding: 10px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
}
.gallery figcaption { font-size: 0.8125rem; }
.md-table .al-c { text-align: center; }
.md-table .al-r { text-align: right; }

/* Phones */
@media (max-width: 39.99rem) {
  .pricing th[scope="row"] { width: 50%; }
  .pricing thead span { white-space: normal; }
  :is(.pricing, .matrix) :is(th, td) { padding: 10px; }
  .matrix th[scope="row"], .matrix thead th:first-child { min-width: 6.5rem; }
  .matrix td, .matrix thead th + th { min-width: 0; }
  .glance tbody th .i { display: block; margin: 0 0 4px; }
  #main > .home-hero { padding-block: 2rem 4.5rem; }
  .cards .tile-icon { float: left; width: 44px; height: 44px; margin: 0 14px 10px 0; }
  .cards h3 { display: flow-root; margin-top: 8px; padding-right: 24px; }
  .cards p { clear: left; }
}

@media (min-width: 40rem) {
  .foot { grid-auto-flow: column; grid-template-columns: minmax(11rem, 1fr); grid-auto-columns: auto fit-content(12rem); }
  .pros-cons, .picks { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards > li { display: grid; grid-template-rows: auto auto 1fr auto; }
  .latest > .newest { display: flex; align-items: center; gap: 28px; padding: 24px; }
  .newest .duo { flex: none; margin: 0; padding: 24px; border-radius: 16px; background: var(--dots), var(--band); }
  .newest .vs-mini { background: #fff; color: #a21caf; }
  .quick { padding: 26px 26px 22px; }
  .quick ul { grid-template-columns: 1fr 1fr; }
  .quick .q-price, .quick li:first-child:nth-last-child(2) { grid-column: 1 / -1; }
  .verdict { padding: 30px 32px 14px; }
  .setup { grid-template-columns: 1fr 1fr; }
  .test { padding: 28px 28px 8px; }
  .runs { grid-template-columns: 1fr 1fr; }
  .run { display: grid; grid-template-rows: subgrid; grid-row: span 2; padding: 4px 18px 6px; }
  .glance thead td, .glance tbody th { width: 26%; }
  .disc { width: 104px; height: 104px; }
  .disc .logo { width: 64px; height: 64px; }
  .vs { width: 64px; height: 64px; margin-top: 20px; font-size: 1.25rem; }
  .side-name { font-size: 1.5rem; }
  .button, .button:visited { flex: 0 1 auto; min-width: 15rem; }
  .cta { padding: 36px; }
}
@media (min-width: 64rem) {
  .cards, .setup { grid-template-columns: repeat(4, 1fr); }
}
/* Justified prose from 44rem (docs/templates.md) */
@media (min-width: 44rem) {
  main p:not([class]):not(:is(.hero, .cards, .test, .pick, .answer, .best-for) p) {
    text-align: justify;
    -webkit-hyphens: auto;
    hyphens: auto;
    hyphenate-limit-chars: 6 2 3;
    -webkit-hyphenate-limit-before: 3;
    -webkit-hyphenate-limit-after: 3;
    text-wrap: wrap;
  }
  main p :is(a, code) { -webkit-hyphens: manual; hyphens: manual; }
  .verdict { padding-inline: max(32px, (min(100% - 32px, var(--w)) - 46rem - 4px) / 2); }
}
/* Motion: only here */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .cards > li, .latest > li, .links > li, .ranked > li, .button, .jump a, .site-header nav a, .compare a, .more a, .shot > a {
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  }
  summary::after { transition: rotate 0.2s ease; }
  :is(.cards, .latest, .links, .ranked) > li:hover, .button:hover { transform: translateY(-3px); }
  .shot > a:hover { transform: translateY(-2px); }
}
