:root {
  color-scheme: dark;
  --bg: #0c0d0d;
  --surface: #141615;
  --raised: #1c1f1e;
  --line: #2b2f2d;
  --line-strong: #737b77;
  --text: #eceeed;
  --muted: #a5aca8;
  --accent: #6cc494;
  --accent-hover: #86d5aa;
  --accent-dim: #1b2c23;
  --radius: 10px;
  --font: "Avenir Next", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.6 var(--font); }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); font-weight: 600; letter-spacing: -.03em; }
h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2.125rem); font-weight: 600; letter-spacing: -.02em; }
h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2.5rem); }
.section { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.lead { max-width: 60ch; color: var(--muted); font-size: 1.125rem; text-wrap: pretty; }
h1 + .lead { margin-top: 1.25rem; }
h2 + .lead { margin-top: .625rem; font-size: 1rem; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 5; padding: .5rem 1rem; background: var(--accent); color: var(--bg); }
.skip:focus { top: 1rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 1rem 2rem; min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: .625rem; color: var(--text); font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.brand svg { width: 28px; height: 28px; }
.brand svg, .search-link svg { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.site-header ul { display: flex; gap: 1.5rem; }
.site-header nav { margin-left: auto; }
.site-header nav a { display: block; padding-block: .625rem; color: var(--muted); font-size: .9375rem; text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.site-header nav a:hover { color: var(--text); }
.site-header nav a[aria-current] { color: var(--text); border-color: var(--accent); }
.search-link { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; color: var(--text); font-size: .9375rem; text-decoration: none; }
.search-link svg { width: 18px; height: 18px; }
.narrow { display: none; }

.disclosure-bar { background: var(--surface); border-bottom: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.disclosure-bar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .125rem 2rem; padding-block: .625rem; }
.setup strong { color: var(--text); font-weight: 600; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .5rem 1.25rem; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--accent); color: #0b1510; font-weight: 600; line-height: 1.25; text-align: center; text-decoration: none; transition: background-color .15s, border-color .15s; }
.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #0b1510; }
.button.quiet { background: transparent; border-color: var(--line-strong); color: var(--text); }
.button.quiet:hover { border-color: var(--accent); }
.button.pending, .button.pending:hover { background: transparent; border: 1px dashed var(--line-strong); color: var(--muted); font-weight: 400; cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* Homepage desk */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.hero-map p { margin-top: .75rem; color: var(--muted); font-size: .875rem; }
.deskmap { display: block; width: 100%; height: auto; }
.deskmap .desk { fill: var(--surface); stroke: var(--line); stroke-width: 2; }
.deskmap .screen { fill: #3a403d; }
.deskmap .shape { fill: var(--raised); stroke: #4d5551; stroke-width: 2; transition: stroke .15s, fill .15s; }
.deskmap .raised { fill: #282c2a; }
.deskmap .line { fill: none; stroke: #69726d; stroke-width: 2; stroke-linecap: round; }
.deskmap .thick { stroke-width: 7; }
.deskmap .key { fill: #2d3230; }
.deskmap .hit { fill: transparent; }
.deskmap .lit { fill: var(--accent); stroke: var(--accent); }
.deskmap .glow { fill: var(--accent); opacity: .08; transition: opacity .15s; }
.deskmap text { fill: var(--muted); font: 500 17px var(--font); }
.deskmap a { text-decoration: none; }
.deskmap a:hover .shape, .deskmap a:focus-visible .shape { stroke: var(--accent); }
.deskmap a:hover .glow, .deskmap a:focus-visible .glow { opacity: .2; }
.deskmap a:hover text, .deskmap a:focus-visible text { fill: var(--text); text-decoration: underline; }

/* Search and filters */
.toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; margin-top: 1.5rem; }
html:not(.js) :is(.toolbar, .count, .pick, [data-compare-hint]) { display: none; }
.field { flex: 1 1 10rem; min-width: 0; }
.field.grow { flex: 2 1 16rem; }
.toolbar label { display: block; margin-bottom: .375rem; font-size: .875rem; color: var(--muted); }
.toolbar :is(input, select) { width: 100%; min-height: 2.75rem; padding: .5rem .875rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background-color: var(--surface); color: var(--text); font: inherit; }
.toolbar select { appearance: none; padding-right: 2.25rem; text-overflow: ellipsis; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23a5aca8' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .875rem center; background-size: 11px; }
.toolbar select:disabled { border-style: dashed; color: var(--muted); opacity: 1; }
.toolbar input::placeholder { color: var(--muted); opacity: 1; }
.count { min-height: 1.5rem; margin-block: 1.25rem .75rem; color: var(--muted); font-size: .875rem; }
.affiliate-note { margin-top: .5rem; color: var(--muted); font-size: .875rem; }

/* Product cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1.25rem; }
.card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); scroll-margin-top: 1.5rem; }
.card:target { border-color: var(--accent); }
.media { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; background: var(--raised); color: #8b948f; }
.media svg { width: 62%; margin-bottom: 1rem; }
.media .hi { stroke: var(--accent); }
.media span { position: absolute; left: 1.25rem; bottom: .625rem; color: var(--muted); font-size: .8125rem; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 1.125rem 1.25rem 1.25rem; }
.card-body > p:not(.kicker, .button-note) { margin-top: .5rem; color: var(--muted); font-size: .9375rem; }
.card-body > .audience strong { color: var(--text); font-weight: 600; }
.proscons { display: grid; gap: .875rem; margin-top: 1rem; font-size: .875rem; line-height: 1.45; }
h4 { margin: 0 0 .25rem; font-size: .875rem; font-weight: 600; }
:is(.pros, .cons) li { position: relative; padding-left: 1.25rem; }
:is(.pros, .cons) li + li { margin-top: .25rem; }
:is(.pros, .cons) li::before { position: absolute; left: 0; font-weight: 600; }
.pros li::before { content: "+" / ""; color: var(--accent); }
.cons li::before { content: "\2212" / ""; color: var(--muted); }
.pick { display: flex; align-items: center; justify-content: center; gap: .625rem; min-height: 2.75rem; margin: .5rem 0 -.5rem; color: var(--muted); font-size: .9375rem; cursor: pointer; }
.pick:hover { color: var(--text); }
.pick input { width: 1.125rem; height: 1.125rem; accent-color: var(--accent); }
.pick:has(:disabled) { opacity: .5; cursor: default; }
.compare-bar { position: fixed; inset: auto 0 0; z-index: 4; border-top: 1px solid var(--line-strong); background: var(--raised); }
.compare-bar .wrap { display: flex; align-items: center; gap: .75rem; padding-block: .75rem; }
.compare-bar p { margin-right: auto; }
.comparing { padding-bottom: 4.5rem; }
.kicker { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .5rem; color: var(--muted); font-size: .8125rem; }
.tag { padding: .0625rem .5rem; border: 1px dashed var(--line-strong); border-radius: 4px; color: var(--muted); font-size: .8125rem; }
.card dl { margin-block: 1rem 1.25rem; font-size: .875rem; }
.card dl div { display: grid; grid-template-columns: 5.5rem 1fr; gap: .75rem; padding-block: .5rem; border-top: 1px solid var(--line); }
.card dt { color: var(--muted); }
.card .button { margin-top: auto; }
.button-note { margin-top: .5rem; color: var(--muted); font-size: .8125rem; text-align: center; }
.empty { padding: 2rem; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.empty .button { margin-top: 1rem; }

/* Tables */
.table-scroll { margin-top: 1.5rem; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; min-width: 70rem; border-collapse: separate; border-spacing: 0; font-size: .875rem; line-height: 1.45; }
th, td { padding: .875rem .75rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
tbody tr:last-child > * { border-bottom: 0; }
thead th { background: var(--raised); color: var(--muted); font-size: .875rem; font-weight: 500; }
tbody th { width: 10rem; font-weight: 600; }
tbody th a { color: var(--text); }
th:first-child { position: sticky; left: 0; background: var(--surface); }
thead th:first-child { background: var(--raised); }
td small { display: block; color: var(--muted); }

table.small { min-width: 0; }
.table-link { font-weight: 600; }

/* Head-to-head comparisons */
.versus { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1.5rem clamp(1.5rem, 4vw, 3.5rem); padding-block: 2.5rem; scroll-margin-top: 1rem; }
.versus + .versus { border-top: 1px solid var(--line); }
.versus h3 { font-size: 1.375rem; }
.versus p { margin-top: .75rem; color: var(--muted); }
.versus p strong { color: var(--text); font-weight: 600; }
.versus .table-scroll { margin-top: 0; }
.versus table { min-width: 0; table-layout: fixed; }
.versus :is(thead td, tbody th) { width: 8rem; min-width: 0; }
.versus thead td { background: var(--raised); }
.versus thead th { position: static; color: var(--text); font-weight: 600; }
.versus tbody th { color: var(--muted); font-weight: 500; }
.jump { display: flex; flex-wrap: wrap; gap: .25rem 2rem; margin-top: 1.25rem; }
.jump a { display: inline-block; padding-block: .375rem; }

/* Homepage sections */
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; }
.tiles, .pairs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-top: 1.75rem; }
.tiles a { display: flex; align-items: center; gap: 1.125rem; height: 100%; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--muted); font-size: .9375rem; line-height: 1.4; text-decoration: none; }
.tiles svg { flex: none; width: 5rem; color: #8b948f; }
.tiles strong { display: block; color: var(--text); font-size: 1.0625rem; font-weight: 600; }
:is(.tiles, .pairs) .hi { stroke: var(--accent); }
:is(.tiles, .pairs) a:hover { border-color: var(--accent); }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-top: 1.75rem; }
.features + .tiles { margin-top: .75rem; }
.features li { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.features li:hover { border-color: var(--line-strong); }
.feature-link { flex: 1; padding-bottom: .75rem; color: var(--muted); line-height: 1.5; text-decoration: none; }
.feature-link svg { display: block; width: 100%; height: 12rem; padding: 1.5rem; background: var(--raised); color: #8b948f; }
.feature-link .hi { stroke: var(--accent); }
.feature-link h3 { margin: 1.25rem 1.25rem .375rem; color: var(--text); font-size: 1.25rem; }
.feature-link:hover h3 { text-decoration: underline; text-underline-offset: .2em; }
.feature-link span { display: block; margin-inline: 1.25rem; }
.feature-guide { padding: .625rem 1.25rem 1.125rem; font-size: .9375rem; }
:is(.feature-link, .feature-guide):focus-visible { outline-offset: -3px; }
.pairs a { display: flex; flex-direction: column; gap: 1rem; height: 100%; padding: 1.5rem 1.25rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); line-height: 1.35; text-decoration: none; }
.pairs strong { font-weight: 600; }
.pair { display: flex; align-items: center; justify-content: space-between; gap: .75rem; color: #8b948f; }
.pair svg { width: 40%; max-width: 8rem; }
.pair i { color: var(--muted); font-size: .875rem; font-style: normal; }
.band { border-block: 1px solid var(--line); background: var(--surface); }
.budget-home { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem clamp(2rem, 6vw, 5rem); align-items: center; }
.limits li { display: flex; justify-content: space-between; gap: 1rem; padding-block: .625rem; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.limits li:last-child { border: 0; }
.limits a { color: var(--text); }

/* Guides and text pages */
.guide-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 4vw, 3.5rem); margin-top: 1.5rem; }
.guide-list li { padding-block: 1.5rem; border-top: 1px solid var(--line-strong); }
.guide-list :is(h2, h3) { font-size: 1.375rem; letter-spacing: -.01em; }
.guide-list a { color: var(--text); text-decoration: none; }
.guide-list a:hover { text-decoration: underline; }
.guide-list p:last-child { margin-top: .5rem; color: var(--muted); }
.byline { margin-top: 1rem; color: var(--muted); font-size: .9375rem; }
.article { display: grid; grid-template-columns: minmax(0, 44rem) minmax(0, 17rem); justify-content: space-between; gap: 0 3rem; }
.article .page-head { grid-column: 1 / -1; }
.article h1 { max-width: 20ch; }
.toc { grid-column: 2; grid-row: 2; align-self: start; position: sticky; top: 1.5rem; margin-top: 2rem; font-size: .9375rem; line-height: 1.4; }
.toc p { font-weight: 600; }
.toc a { display: block; padding-block: .375rem; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--text); text-decoration: underline; }
.article .prose { grid-column: 1; grid-row: 2; padding: 1rem 0 1rem; }
.guide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem clamp(1.5rem, 4vw, 3.5rem); margin-top: 1.75rem; }
.guide div { padding-top: 1.125rem; border-top: 1px solid var(--line-strong); }
.guide p { margin-top: .5rem; color: var(--muted); }
.page-head { padding-block: 2rem 1rem; }
.crumbs { display: flex; gap: .625rem; margin-bottom: 1.75rem; color: var(--muted); font-size: .875rem; }
.page-head + .section { padding-top: 2rem; }
.prose { padding-bottom: 4rem; }
.prose > h2 { margin-top: 2.5rem; font-size: 1.5rem; scroll-margin-top: 1.5rem; }
.prose > :is(p, ul, ol):not(.grid) { max-width: 66ch; }
.prose > p { margin-top: .875rem; }
.prose > :is(ul:not(.grid), ol) { margin: .875rem 0 0; padding-left: 1.25rem; }
.prose > ul:not(.grid) { list-style: disc; }
.prose > :is(ul:not(.grid), ol) li { padding-left: .25rem; }
.prose > :is(ul:not(.grid), ol) li + li { margin-top: .375rem; }
.prose li::marker { color: var(--accent); }
.prose > .grid { margin-top: 1.25rem; }

/* Budget planner */
.planner { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); margin-top: 1.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.planner ul { padding: .5rem 1.5rem; }
.planner li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; border-bottom: 1px solid var(--line); }
.planner li:last-child { border-bottom: 0; }
.own { display: flex; align-items: center; gap: .75rem; min-height: 2.75rem; cursor: pointer; }
.own input { flex: none; width: 1.25rem; height: 1.25rem; accent-color: var(--accent); }
.off .own span { color: var(--muted); text-decoration: line-through; }
.amount { display: flex; align-items: center; gap: .375rem; color: var(--muted); }
.amount input { width: 5rem; min-height: 2.75rem; padding: .25rem .625rem; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--bg); color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.amount input:disabled { opacity: .45; }
.planner-total { display: flex; flex-direction: column; justify-content: center; padding: 1.75rem; background: var(--raised); }
.total { font-size: 3.5rem; font-weight: 600; line-height: 1.2; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.meter { height: 6px; margin-block: .75rem; border-radius: 3px; background: var(--line); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--accent); transition: width .2s; }
.over .meter span { background: #e8a25c; }
.over [data-left] { color: #f0b57a; }
.planner-total .button { margin-top: 1.5rem; }
html:not(.js) .planner-total .button { display: none; }

/* Footer */
.site-footer { margin-top: 2rem; border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .9375rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 2rem; padding-block: 2.5rem; }
.footer-name { color: var(--text); font-weight: 600; }
.site-footer nav { display: flex; gap: 0 4rem; }
.site-footer nav a { display: inline-block; padding-block: .375rem; color: var(--muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--text); text-decoration: underline; }
.copyright { grid-column: 1 / -1; font-size: .875rem; }

@media (max-width: 1120px) {
  .wide { display: none; }
  .narrow { display: inline; }
}
@media (max-width: 800px) {
  .hero, .planner, .guide, .guide-list, .versus, .budget-home, .article { grid-template-columns: minmax(0, 1fr); }
  .header-row { flex-wrap: wrap; justify-content: space-between; gap: 0 1rem; padding-top: .5rem; }
  .site-header nav { order: 3; width: 100%; margin: 0; }
  .site-header ul { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 0 1rem; }
  .tiles, .features { grid-template-columns: minmax(0, 1fr); }
  .feature-link svg { height: 9rem; padding: 1rem; }
  .site-footer nav { flex-wrap: wrap; gap: 1rem 2.5rem; }
  .pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pairs a { padding: 1rem; }
  .toc { position: static; grid-area: auto; }
  .article .prose { grid-area: auto; }
  .versus :is(th, td) { padding: .75rem .625rem; font-size: .875rem; overflow-wrap: break-word; hyphens: auto; }
  .versus :is(thead td, tbody th) { width: 7rem; padding-right: 0; font-size: .8125rem; }
  .field { flex-basis: calc(50% - .5rem); }
  .deskmap text { font-size: 22px; }
  .field.grow { flex-basis: 100%; }
  th:first-child { width: 9rem; min-width: 9rem; }
  table { min-width: 68rem; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
