:root { --ink: #111; --muted: #666; --line: #e5e5e5; --good: #1a7f37; --bg: #fff; --tint: #f2f7f3; --page: #0d0e10; --zebra: #fafafa; --amber: #b45309; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); padding: 2rem 1.5rem; font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; color: var(--ink); }
.shell { max-width: 74rem; margin: 0 auto; background: var(--bg); border-radius: 1rem; box-shadow: 0 20px 55px rgba(0,0,0,.38); overflow: hidden; }
header.site { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1rem 1.5rem; border-bottom: 1px solid var(--line); }
.logo { font-size: 1.4rem; font-weight: 700; text-decoration: none; color: var(--ink); }
.logo span { color: var(--good); }
main { padding: 2.5rem 2.5rem 3.5rem; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; margin: .5rem 0 .75rem; }
.badge { color: var(--good); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .8rem; margin: 0; }
.lede { color: var(--muted); margin: .25rem 0 1.5rem; }
table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; }
th, td { text-align: left; padding: .75rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
tr.free { color: var(--muted); }
.tradeoff { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 2rem 0; }
.tradeoff > div { border: 1px solid var(--line); border-radius: .5rem; padding: 1.25rem; }
.tradeoff h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 .75rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
.tradeoff p { margin: 0; }
.gain { border-color: var(--good); }
.derived { color: var(--muted); font-size: .9rem; margin-top: .4rem !important; }
@media (max-width: 40rem) { .tradeoff { grid-template-columns: 1fr; } }
.freeblock { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 2px solid var(--line); }
.rejected { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 2px solid var(--line); }
.rejected li { margin-bottom: .6rem; }
.date { color: var(--muted); font-size: .85rem; }
footer { border-top: 1px solid var(--line); padding: 1.5rem; color: var(--muted); font-size: .9rem; }
@media (max-width: 40rem) { table, thead, tbody, tr, th, td { display: block; } thead { display: none; } tr { border-bottom: 2px solid var(--line); padding: .5rem 0; } th, td { border: 0; padding: .2rem 0; } td::before { content: attr(data-label) ": "; color: var(--muted); font-weight: 600; } }

/* FTC 16 CFR 255.0(f): the disclosure has to be hard to miss, so it does not
   get --muted like the rest of the small print. It sits with the Buy links. */
.disclosure { margin: 1.5rem 0 0; padding: .7rem .9rem; border-left: 3px solid var(--good); background: var(--tint); color: var(--ink); font-size: .9rem; }
.disclosure + table { margin-top: .75rem; }
.prose { max-width: 44rem; }
.prose h2 { font-size: 1.15rem; margin: 2rem 0 .5rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.legal-links { margin: .6rem 0 0; }

/* CSS-only OS filter: a radio group drives sibling selectors. No script.
   --row exists so the six show-rules do not have to be written twice; the
   mobile breakpoint turns rows into blocks and an id-specificity rule would
   otherwise win over it and break the card layout. */
:root { --row: table-row; }
.osfilter input[name="os"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.oschips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.5rem 0 .25rem; }
.oschips label { border: 1px solid var(--line); border-radius: 999px; padding: .3rem .85rem; font-size: .85rem; cursor: pointer; user-select: none; }
.oschips label:hover { border-color: var(--muted); }
.osfilter input[name="os"]:focus-visible ~ .oschips label { outline: 2px solid var(--good); outline-offset: 2px; }

/* Scoped to .filtering: a page with fewer than two operating systems draws no
   radios at all, and an unscoped hide rule would then hide every row forever. */
.osfilter.filtering tbody tr { display: none; }
#os-all:checked ~ * tbody tr,
#os-mac:checked ~ * tbody tr[data-os~="mac"],
#os-windows:checked ~ * tbody tr[data-os~="windows"],
#os-linux:checked ~ * tbody tr[data-os~="linux"],
#os-ios:checked ~ * tbody tr[data-os~="ios"],
#os-android:checked ~ * tbody tr[data-os~="android"],
#os-web:checked ~ * tbody tr[data-os~="web"] { display: var(--row); }

#os-all:checked ~ .oschips label[for="os-all"],
#os-mac:checked ~ .oschips label[for="os-mac"],
#os-windows:checked ~ .oschips label[for="os-windows"],
#os-linux:checked ~ .oschips label[for="os-linux"],
#os-ios:checked ~ .oschips label[for="os-ios"],
#os-android:checked ~ .oschips label[for="os-android"],
#os-web:checked ~ .oschips label[for="os-web"] { border-color: var(--good); color: var(--good); font-weight: 600; }

@media (max-width: 40rem) { :root { --row: block; } }

/* Reference design: the saving is the loudest element, not a grey line. */
.hero { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 2rem; align-items: start; margin-bottom: .5rem; }
.hero h1 { margin-top: .35rem; }
.savingscard { display: flex; align-items: center; gap: 1rem; border: 1px solid var(--good); background: var(--tint); border-radius: .9rem; padding: 1.4rem 1.5rem; }
.trend { flex: none; width: 3.4rem; height: 3.4rem; border-radius: 999px; border: 2px solid var(--good); color: var(--good); display: grid; place-items: center; }
.amount { display: block; font-size: clamp(1.6rem, 3.4vw, 2.2rem); line-height: 1.1; color: var(--good); }
.period { color: var(--muted); }
.priceline { color: var(--muted); margin: 0 0 1.5rem; }

.ico { vertical-align: -.22em; }
.ico-check { color: var(--good); }
.ico-minus { color: var(--amber); }
.badge .ico { margin-right: .15rem; }
.tradeoff h2 .ico { margin-right: .3rem; }
.give-up h2 { color: var(--amber); }

table { border: 1px solid var(--line); }
thead { background: var(--zebra); }
tbody tr:nth-child(even) { background: var(--zebra); }
th, td { border-right: 1px solid var(--line); }
tr > *:last-child { border-right: 0; }

@media (max-width: 52rem) { .hero { grid-template-columns: 1fr; } }
@media (max-width: 40rem) {
  body { padding: 0; }
  .shell { border-radius: 0; box-shadow: none; }
  main { padding: 1.5rem 1.25rem 3rem; }
  table { border: 0; }
  th, td { border-right: 0; }
  tbody tr:nth-child(even) { background: transparent; }
}

/* Links. Nothing set one, so every link fell back to browser blue against a
   palette that has no blue in it. Body links stay ink and carry a quiet rule;
   the accent is spent on hover, where it means "you are about to leave". Links
   that are an action -- Buy, Source -- read as the action instead. */
main a, footer a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
main a:hover, footer a:hover { color: var(--good); text-decoration-color: currentColor; }
main a:focus-visible, header.site a:focus-visible { outline: 2px solid var(--good); outline-offset: 2px; border-radius: .2rem; }
header.site nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
header.site nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
header.site nav a:hover { color: var(--good); }
@media (max-width: 40rem) { header.site { flex-direction: column; align-items: flex-start; gap: .75rem; } header.site nav { gap: .9rem; } }
td a { color: var(--good); font-weight: 600; text-decoration: none; white-space: nowrap; }
td a:hover { color: var(--good); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.search { position: relative; flex: 1 1 16rem; max-width: 24rem; }
.search input { width: 100%; padding: .55rem .9rem; font: inherit; font-size: .95rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink); }
.search input:focus-visible { outline: 2px solid var(--good); outline-offset: 1px; border-color: var(--good); }
.results { position: absolute; z-index: 10; left: 0; right: 0; top: calc(100% + .35rem); margin: 0; padding: .3rem; list-style: none; background: var(--bg); border: 1px solid var(--line); border-radius: .6rem; box-shadow: 0 12px 30px rgba(0,0,0,.14); }
.results a { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem .6rem; border-radius: .4rem; text-decoration: none; color: var(--ink); }
.results a:hover, .results a:focus-visible { background: var(--tint); color: var(--good); }
.results span { color: var(--muted); font-size: .85rem; white-space: nowrap; }
@media (max-width: 40rem) { .search { flex: 0 0 auto; max-width: none; width: 100%; } }
.scroller { overflow-x: auto; position: relative; }
/* position: relative is load-bearing: the .sr-only product names on Buy/Source
   links are position:absolute, so without a positioned ancestor their containing
   block is the page itself. On a table wider than the shell, eleven of them land
   past the viewport and the whole page scrolls sideways -- overflow cannot clip
   what it does not contain. */
.scroller:focus-visible { outline: 2px solid var(--good); outline-offset: 2px; }
/* macOS overlay scrollbars are painted only while scrolling, so between 640px
   and ~1100px the Buy/Source column sat off-screen with nothing on the page to
   say it was there -- the link the site earns from, at zero visible pixels at
   rest. Styling the scrollbar turns off overlay: it becomes a classic bar that
   takes 10px of layout height, so it is painted whenever the table overflows,
   and nowhere else. Do not add `scrollbar-width` or `scrollbar-color` to
   `.scroller`: Chrome ignores every `::-webkit-scrollbar` rule on an element
   that sets either, which silently restores the invisible overlay bar.
   ponytail: WebKit/Blink only; Firefox on macOS keeps its overlay bar. */
.scroller::-webkit-scrollbar { height: 10px; }
.scroller::-webkit-scrollbar-track { background: var(--line); border-radius: 5px; }
.scroller::-webkit-scrollbar-thumb { background: var(--muted); border-radius: 5px; }
.scroller::-webkit-scrollbar-thumb:hover { background: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.rejections { list-style: none; padding: 0; }
.rejections li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.rejections .for { color: var(--muted); font-size: .9rem; }
.rejections p { margin: .4rem 0 0; }

.working { margin: 0 0 1.5rem; font-size: .9rem; color: var(--muted); }
.working summary { cursor: pointer; color: var(--ink); }
.working p { margin: .6rem 0 0; }

/* The change note rides under the row it belongs to, so it carries no border of
   its own and no top padding -- the two are one visual unit. `td a` already
   sets white-space: nowrap for the table's Buy links; the Source link here sits
   in a sentence and must be allowed to wrap with it. */
tr.changed td { font-size: .85rem; color: var(--muted); border-top: 0; padding-top: 0; }
tr.changed td a { white-space: normal; }
.changelog { list-style: none; padding: 0; }
.changelog li { padding: .75rem 0; border-bottom: 1px solid var(--line); }
.changelog .date { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: .5rem; }
