/* Shop site for the Offline Resilience Drive, in the app's own voice (app/static/style.css):
 * one serif for reading, the system sans for small UI text, paper and ink, hairlines instead of boxes. */
:root {
  --paper: #f9f8f5; --ink: #191917; --ink-soft: #3b3a36; --muted: #6b6963; --rule: #dddbd4;
  --link: #1f3f9a; --link-hover: #142a6b; --mark: #fff1a8; --urgent: #b3261e; --raised: #ffffff;
  --ours: #1f3f9a; --ours-soft: #c9d3f0; --yours: #2f6b3a; --yours-soft: #cfe5d3;
  --shadow: 0 10px 40px rgba(20, 20, 15, .14);
  --serif: Charter, "Bitstream Charter", "Sitka Text", "Iowan Old Style", Cambria, "Noto Serif", "DejaVu Serif", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "DejaVu Sans", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #151514; --ink: #ecebe6; --ink-soft: #cfcdc6; --muted: #9a988f; --rule: #2e2d2a;
    --link: #9fb4ff; --link-hover: #c6d2ff; --mark: #4a4220; --urgent: #ff8a80; --raised: #1f1f1d;
    --ours: #9fb4ff; --ours-soft: #2b3556; --yours: #8fd19e; --yours-soft: #24402b;
    --shadow: 0 10px 40px rgba(0, 0, 0, .55); color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { font-size: 17px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); line-height: 1.55; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
code { font-family: var(--mono); font-size: .86em; }
.skip { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--ink); color: var(--paper); padding: .4rem .8rem; }
.skip:focus { top: .5rem; }
.note { font-family: var(--sans); font-size: .86rem; color: var(--muted); }
.ours { color: var(--ours); }
.yours { color: var(--yours); }

/* Placeholders in this mock: a dotted underline, explained in the bar at the top. */
.stub { text-decoration: underline dotted var(--urgent); text-decoration-thickness: 2px; text-underline-offset: .25em; }
.mockbar { font-family: var(--sans); font-size: .8rem; color: var(--ink-soft); background: var(--mark); padding: .4rem 1rem; text-align: center; }

/* ------------------------------------------------------------------ masthead */
.masthead { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 2.2rem; padding: 1.1rem 2rem .9rem; border-bottom: 1px solid var(--rule); }
.wordmark { font-size: 1.2rem; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.masthead nav { display: flex; flex-wrap: wrap; gap: .3rem 1.6rem; flex: 1; }
.masthead nav a { font-family: var(--sans); font-size: .95rem; color: var(--ink-soft); text-decoration: none; padding: .2rem 0; border-bottom: 2px solid transparent; }
.masthead nav a:hover { color: var(--ink); }
.masthead nav a[aria-current="page"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
.masthead .account { font-family: var(--sans); font-size: .92rem; }

main { max-width: 1120px; margin: 0 auto; padding: 0 2rem 4rem; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.01em; line-height: 1.15; text-wrap: balance; }
p { text-wrap: pretty; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin: 0 0 .8rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 .6rem; }
h3 { font-size: 1.15rem; margin: 0 0 .3rem; }
p { max-width: 38rem; margin: 0 0 1rem; }
.lede { font-size: 1.25rem; color: var(--ink-soft); }
.page-head { padding: 3.2rem 0 2rem; }

.button { display: inline-block; font-family: var(--sans); font-size: 1rem; font-weight: 600; padding: .7rem 1.4rem;
  background: var(--ink); color: var(--paper); text-decoration: none; border: 1px solid var(--ink); cursor: pointer; }
.button:hover { color: var(--paper); background: var(--ink-soft); }
.button:disabled { background: var(--rule); border-color: var(--rule); color: var(--muted); cursor: not-allowed; }
.cta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 1rem 1.6rem; margin-top: 1.6rem; font-family: var(--sans); }

/* ------------------------------------------------------------------ screenshots in a plain browser frame */
.frame { background: var(--raised); box-shadow: var(--shadow); border: 1px solid var(--rule); overflow: hidden; }
.frame .bar { font-family: var(--sans); font-size: .72rem; color: var(--muted); padding: .45rem .8rem; border-bottom: 1px solid var(--rule); background: var(--paper); }
.frame .bar::before { content: "🔒︎ "; opacity: .6; }

/* ------------------------------------------------------------------ home */
.hero { text-align: center; padding: 4rem 0 2.6rem; }
.hero h1, .hero p { margin-left: auto; margin-right: auto; }
.hero h1 { max-width: 15ch; }
.hero .cta { justify-content: center; }
.hero-shot { max-width: 1000px; margin: 0 auto 5rem; }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 3rem; align-items: center; margin: 0 0 6rem; }
.feature.flip { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.feature.flip .text { order: 2; }
.feature .text p { color: var(--ink-soft); font-size: 1.1rem; }
.feature .stack { position: relative; }
.feature .stack .over { width: 58%; margin: -.6rem 0 0 auto; position: relative; }

.band { border-top: 1px solid var(--rule); padding: 4rem 0 1rem; }
.band.center { text-align: center; }
.band.center p { margin-left: auto; margin-right: auto; }

/* The three shelves, drawn as one stick. */
.stick { display: flex; height: 4.2rem; max-width: 760px; margin: 2rem auto 1rem; border: 2px solid var(--ink); border-radius: .4rem 1.6rem 1.6rem .4rem; overflow: hidden; position: relative; }
.stick::after { content: ""; position: absolute; right: -1.4rem; top: 1.1rem; width: 1.2rem; height: 1.8rem; border: 2px solid var(--ink); border-left: 0; }
.stick span { display: flex; align-items: center; justify-content: center; font-family: var(--sans); font-size: .9rem; font-weight: 600; }
.stick .lib { flex: 6; background: var(--ours-soft); color: var(--ours); }
.stick .reg { flex: 1.3; background: var(--ours-soft); color: var(--ours); border-left: 2px dashed var(--paper); }
.stick .arc { flex: 2.5; background: var(--yours-soft); color: var(--yours); border-left: 2px solid var(--ink); }
.shelves { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; max-width: 900px; margin: 2rem auto 0; text-align: left; }
.shelves p { color: var(--ink-soft); font-size: .98rem; }

.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); margin-top: 2rem; }
.tier { padding: 1.6rem 1.6rem 1.2rem 0; }
.tier + .tier { border-left: 1px solid var(--rule); padding-left: 1.6rem; }
.tier .size { font-size: 2.4rem; font-weight: 700; line-height: 1; margin: .4rem 0 .6rem; }
.tier .size small { font-family: var(--sans); font-size: .9rem; font-weight: 400; color: var(--muted); }
.tier p { color: var(--ink-soft); font-size: .98rem; }

/* ------------------------------------------------------------------ editorial lead: photo beside a modest headline */
.lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 3rem; align-items: center; padding: 2.6rem 0 3.4rem; }
.lead figure { margin: 0; }
.lead-photo { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; }
figcaption { font-family: var(--sans); font-size: .8rem; color: var(--muted); margin-top: .5rem; }
.lead h1 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); max-width: 22ch; }
img.photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
img.photo.wide { aspect-ratio: 21 / 8; margin: 0 0 3rem; }
img.thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.split.flip-split { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.facts { list-style: none; padding: 0; margin: 1rem 0; max-width: 34rem; }
.facts li { padding: .5rem 0; border-top: 1px solid var(--rule); color: var(--ink-soft); }
.links { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; font-family: var(--sans); font-size: .9rem; }
.uses figure { margin: 0; }
.uses h3 { margin-top: .8rem; }
.credits { list-style: none; padding: 0; }
.credits li { display: flex; gap: 1rem; align-items: center; padding: .7rem 0; border-top: 1px solid var(--rule); font-size: .9rem; }
.credits img { flex: none; aspect-ratio: 4 / 3; object-fit: cover; }

/* ------------------------------------------------------------------ resources, news, community */
.filters { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; align-items: baseline; margin: 0 0 1.4rem; }
.filters input[type="search"] { font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 2px solid var(--ink); padding: .3rem 0; min-width: 14rem; }
.filters select { width: auto; max-width: 14rem; }
table.res td { font-size: .92rem; }
table.res td:first-child { min-width: 12rem; font-weight: 600; }
table.res td:nth-child(5) { white-space: nowrap; }
.boards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.board { border-top: 2px solid var(--ink); padding-top: 1rem; }
.board h2 { font-size: 1.3rem; }
.board p { color: var(--ink-soft); }

/* ------------------------------------------------------------------ news cards, split bands, uses */
h2.center, .center { text-align: center; }
svg.thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--raised); border: 1px solid var(--rule); color: var(--ink); }
svg.thumb .hot { fill: var(--urgent); stroke: var(--urgent); }
svg.thumb .hotline { stroke: var(--urgent); }
svg.thumb .night { fill: var(--ink); stroke: none; }
svg.thumb .moon { fill: var(--paper); stroke: none; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 3rem; align-items: center; }
.uses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem; margin-top: 1.6rem; }
.uses p { color: var(--ink-soft); }
svg.icon { width: 44px; height: 44px; color: var(--ours); margin-bottom: .6rem; }

/* ------------------------------------------------------------------ get it: two paths, then three setup questions */
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; margin: 0 0 3.4rem; }
.path { display: flex; flex-direction: column; gap: .3rem; padding: 0 0 1.3rem; border: 1px solid var(--rule); background: var(--raised);
  color: var(--ink); text-decoration: none; }
.path img { flex: none; display: block; width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; margin: 0 0 .8rem; }
.path > span, .path-link > span { padding: 0 1.4rem; }
.paths.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.path-link { display: flex; flex: 1; flex-direction: column; gap: .3rem; color: inherit; text-decoration: none; }
.path-link svg.box-pic { flex: none; display: block; width: 100%; height: auto; aspect-ratio: 16 / 7; margin: 0 0 .8rem; background: var(--paper); }
.path:has(.path-link:hover) .path-cta { text-decoration: underline; }
.page-head .price { font-size: 1.6rem; font-weight: 700; margin-top: .8rem; }
.path.chosen { border: 2px solid var(--ink); }
.path-name { font-size: 1.5rem; font-weight: 700; }
.path-price { font-size: 1.3rem; }
.path-what { color: var(--ink-soft); }
.path-cta { font-family: var(--sans); font-size: .92rem; color: var(--link); margin-top: .4rem; }
.path:hover .path-cta { text-decoration: underline; }
.questions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 2.6rem; margin-top: 1rem; }
.questions legend { font-size: 1.12rem; }
.questions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.maps { margin-top: 2rem; }
.maps legend { font-size: 1.12rem; }
.maps-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 3rem; margin-top: .8rem; }
.maps-label { font-family: var(--sans); font-weight: 600; font-size: .92rem; margin: 0 0 .5rem; display: block; }
#extras .check { margin: .5rem 0; }
.questions .option { grid-template-columns: 1.3rem 1fr; }
.questions .option .size { grid-column: 2; white-space: normal; }
.usb-help { background: var(--mark); padding: .8rem 1rem; max-width: none; margin: 0 0 2rem; font-family: var(--sans); font-size: .95rem; }
.checkout .edition { font-size: 1.2rem; margin: .4rem 0 .2rem; }
.upgrade-note { background: var(--mark); padding: .55rem .8rem; font-family: var(--sans); font-size: .9rem; }
.too-small { border-left: 3px solid var(--ink); padding: .4rem 0 .4rem 1.4rem; margin: 0 0 2rem; }
.guides { padding-left: 1.4rem; margin: 0; }
.guides li { padding: .55rem 0; border-bottom: 1px solid var(--rule); font-size: 1.05rem; }
.guides .note { display: block; font-size: .82rem; }
.models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem; }
.model .price { font-size: 1.6rem; font-weight: 700; margin: .2rem 0 .6rem; }
.model h2, .model h3 { margin-top: 1rem; }
/* Ready-made computers: each part as a ladder, from the simplest to the toughest */
.parts { margin-bottom: 1rem; }
.part h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.ladder { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.ladder li { position: relative; padding: .6rem 0 .6rem 2.2rem; border-top: 1px solid var(--rule); counter-increment: step; }
.ladder li::before { content: counter(step); position: absolute; left: 0; top: .6rem; width: 1.5rem; height: 1.5rem;
  border-radius: 50%; background: var(--ours-soft); font-family: var(--sans); font-size: .8rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center; }
.ladder li:nth-child(2)::before { background: var(--ink-soft); color: var(--paper); }
.ladder li:nth-child(3)::before { background: var(--ink); color: var(--paper); }
.ladder strong { display: block; }
.ladder span { display: block; font-size: .92rem; color: var(--ink-soft); }

/* ------------------------------------------------------------------ chooser: tier cards, then region/add-on, then checkout */
.tier-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin-top: .6rem; }
.tier-card { position: relative; display: flex; flex-direction: column; padding: 1.3rem 1.3rem 1rem; border: 1px solid var(--rule);
  background: var(--raised); cursor: pointer; }
.tier-card:has(input:checked) { border: 2px solid var(--ink); padding: calc(1.3rem - 1px) calc(1.3rem - 1px) calc(1rem - 1px); }
.tier-card:has(input:focus-visible) { outline: 2px solid var(--link); outline-offset: 2px; }
.tier-card input { position: absolute; opacity: 0; pointer-events: none; }
.tier-card .name { font-size: 1.3rem; font-weight: 700; }
.tier-card .size { font-family: var(--sans); font-size: .9rem; color: var(--muted); margin: .1rem 0 .6rem; }
.tier-card .desc { color: var(--ink-soft); font-size: .98rem; min-height: 3em; }
.tier-card ul { list-style: none; padding: 0; margin: 1rem 0 0; border-top: 1px solid var(--rule); }
.tier-card li { padding: .5rem 0 .5rem 1.4rem; border-bottom: 1px solid var(--rule); position: relative; font-size: .92rem; min-height: 3.3em; }
.tier-card li::before { position: absolute; left: 0; font-family: var(--sans); font-weight: 700; }
.tier-card li.has::before { content: "✓"; color: var(--yours); }
.tier-card li.not { color: var(--muted); }
.tier-card li.not::before { content: "–"; }
.tier-card li .f { display: block; }
.tier-card li .d { display: block; font-family: var(--sans); font-size: .82rem; color: var(--muted); }
.choose-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 3rem; margin-top: 2.4rem; }
.checkout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1rem 3rem; background: var(--raised);
  box-shadow: var(--shadow); padding: 1.6rem 1.8rem; margin: .4rem 0 1rem; }
.checkout h2 { font-size: 1.25rem; }
.checkout .price, .split .price { font-size: 2rem; font-weight: 700; margin: 0 0 .8rem; }
.checkout ol { list-style: none; padding: 0; margin: .4rem 0 .6rem; }
.checkout li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--rule); }
.checkout li span:last-child { font-family: var(--sans); font-size: .9rem; color: var(--ink-soft); white-space: nowrap; }

/* ------------------------------------------------------------------ chooser */
.chooser { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2.4rem 3.2rem; align-items: start; }
fieldset { border: 0; padding: 0; margin: 0 0 2.2rem; }
legend { font-size: 1.25rem; font-weight: 700; padding: 0; margin-bottom: .6rem; }
legend .n { font-family: var(--sans); font-size: .9rem; color: var(--muted); font-weight: 400; margin-right: .4rem; }
.option { display: grid; grid-template-columns: 1.3rem 1fr auto; gap: .1rem .6rem; align-items: baseline; padding: .8rem 0; border-bottom: 1px solid var(--rule); cursor: pointer; }
.option:first-of-type { border-top: 1px solid var(--rule); }
.option input { margin: 0; accent-color: var(--ink); }
.option .size { font-family: var(--sans); font-size: .9rem; color: var(--ink-soft); white-space: nowrap; }
.option .desc { grid-column: 2 / 4; color: var(--ink-soft); font-size: .95rem; }
.option.disabled { color: var(--muted); cursor: not-allowed; }
.option.disabled .desc, .option.disabled .size { color: var(--muted); }
.option:has(input:checked) strong { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
select { font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 2px solid var(--ink); padding: .3rem 0; border-radius: 0; width: 100%; max-width: 24rem; }
input[type="email"] { font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 2px solid var(--ink); padding: .3rem 0; width: 100%; max-width: 24rem; }
.check { display: grid; grid-template-columns: 1.3rem 1fr; gap: .6rem; align-items: baseline; margin: .9rem 0; font-size: .95rem; }
.check input { accent-color: var(--ink); }
.summary { position: sticky; top: 1.5rem; background: var(--raised); box-shadow: var(--shadow); padding: 1.5rem 1.6rem; }
.summary ol { list-style: none; padding: 0; margin: .6rem 0 1rem; }
.summary li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--rule); }
.summary li span:last-child { font-family: var(--sans); font-size: .9rem; color: var(--ink-soft); white-space: nowrap; }
.summary .total { display: flex; justify-content: space-between; font-weight: 700; }
.summary .price { font-size: 2rem; font-weight: 700; margin: .8rem 0 .2rem; }
.fits { font-family: var(--sans); font-size: .86rem; color: var(--ink-soft); }
.result-note { font-family: var(--sans); font-size: .86rem; background: var(--mark); padding: .6rem .8rem; margin-top: 1rem; overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ steps with pictures */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.6rem; margin: 1rem 0 3rem; }
.step .visual { height: 190px; display: flex; align-items: center; margin-bottom: 1rem; }
.step .visual > * { width: 100%; max-height: 190px; }
.step h3 .n { color: var(--muted); font-family: var(--sans); font-weight: 400; margin-right: .3rem; }
.step p { color: var(--ink-soft); font-size: .98rem; }
svg.pic { color: var(--ink); }
svg.pic .soft { fill: var(--ours-soft); }
svg.pic .mine { fill: var(--yours-soft); }

/* ------------------------------------------------------------------ lists and tables */
.places { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 3rem; }
.places code { display: inline-block; color: var(--yours); margin-bottom: .2rem; }
.places p { font-size: .98rem; color: var(--ink-soft); margin: .2rem 0 0; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: .6rem 1rem .6rem 0; border-bottom: 1px solid var(--rule); }
thead th { font-family: var(--sans); font-size: .85rem; font-weight: 600; color: var(--muted); }
tbody th { font-family: var(--sans); font-weight: 600; font-size: .88rem; }
.table-wrap { overflow-x: auto; }
details { border-bottom: 1px solid var(--rule); padding: 1rem 0; max-width: 46rem; }
details:first-of-type { border-top: 1px solid var(--rule); }
summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; }
details p { margin: .6rem 0 0; color: var(--ink-soft); }

/* ------------------------------------------------------------------ footer */
footer { border-top: 1px solid var(--rule); padding: 2.4rem 2rem 3rem; font-family: var(--sans); font-size: .9rem; }
footer .cols { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1.6rem; }
footer h2 { font-family: var(--sans); font-size: .9rem; font-weight: 600; margin: 0 0 .5rem; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin: .35rem 0; }
footer .fine { max-width: 1120px; margin: 2rem auto 0; font-size: .8rem; color: var(--muted); }

/* ------------------------------------------------------------------ inner text pages */
.doc { max-width: 44rem; margin: 0 auto; padding: 3rem 1rem 4rem; }

@media (max-width: 860px) {
  .masthead { padding: .9rem 16px .7rem; }
  .masthead nav { order: 3; flex-basis: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 1.2rem; padding-bottom: .2rem; }
  .masthead nav a { white-space: nowrap; }
  .masthead nav { scrollbar-width: none; }
  .masthead nav::-webkit-scrollbar { display: none; }
  main { padding: 0 16px 3rem; }
  footer { padding: 2rem 16px; }
  .hero { padding-top: 2.4rem; }
  .feature, .feature.flip, .chooser, .steps, .shelves, .tiers, .places, .split, .split.flip-split, .uses, .lead { grid-template-columns: minmax(0, 1fr); }
  .lead { padding-top: 1.4rem; gap: 1.4rem; }
  .boards, .tier-cards, .choose-row, .checkout, .paths, .paths.three, .questions, .models, .maps-grid { grid-template-columns: minmax(0, 1fr); }
  .lead-photo { aspect-ratio: 4 / 3; }
  .feature.flip .text { order: 0; }
  .feature { gap: 1.4rem; margin-bottom: 4rem; }
  .feature .stack .over { width: 80%; }
  .tier + .tier { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); }
  .summary { position: static; }
  .stick { height: 3.4rem; margin-right: 1.6rem; }
  .stick span { font-size: .78rem; }
}

/* Choose your pack: steps on the left, the pack with its running total on the right */
.builder { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 2rem 3.5rem; align-items: start; margin-top: 2.5rem; }
.builder-steps > .note { margin: 0 0 1.8rem; max-width: 36rem; }
.builder fieldset { margin-bottom: 2.4rem; }
.builder .maps-more { margin-top: 1.4rem; }
.builder select { font: inherit; font-family: var(--sans); font-size: .95rem; padding: .4rem .5rem; background: var(--paper); color: var(--ink); border: 1px solid var(--rule); }
.pack { position: sticky; top: 1rem; background: var(--raised); border: 1px solid var(--rule); padding: 1.4rem 1.5rem 1.2rem; }
.pack h2 { font-size: 1.25rem; margin: 0 0 .6rem; }
.pack-lines { list-style: none; padding: 0; margin: 0; }
.pack-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--rule); font-size: .95rem; }
.pack-lines li span:first-child { flex: 1; }
.pack-lines li span:last-child { font-family: var(--sans); font-size: .9rem; color: var(--ink-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sw { display: inline-block; width: .7rem; height: .7rem; margin-right: .5rem; vertical-align: baseline; }
.pack-bar { display: flex; height: .9rem; margin: 1rem 0 .3rem; border: 1px solid var(--ink-soft); background: var(--paper); overflow: hidden; }
.pack-bar i { display: block; height: 100%; transition: width .25s ease; }
/* four clearly different colours, in light and dark */
.seg-app { background: #9b988f; }
.seg-library { background: var(--ink); }
.seg-addon { background: #c08a2c; }
.seg-maps { background: #2f7d5b; }
.pack-bar i + i { border-left: 2px solid var(--paper); }
.pack-total { display: flex; justify-content: space-between; align-items: baseline; margin: .6rem 0 .2rem; }
.pack-total strong { font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.pack .price { font-size: 2rem; font-weight: 700; margin: 1.1rem 0 .2rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
@media (max-width: 52rem) { .builder { grid-template-columns: 1fr; } .pack { position: static; } }
.split figure { margin: 0; }
.how-add .lede { max-width: 40rem; }
.how-steps { list-style: none; padding: 0; margin: 1.8rem 0 2.4rem; display: grid; gap: 2.4rem; }
.how-steps li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.4rem 2.6rem; align-items: start; }
.how-steps img { width: 100%; height: auto; border: 1px solid var(--rule); background: #efede7; }
.how-steps .step { font-family: var(--sans); font-size: .88rem; font-weight: 700; color: #2f7d5b; margin: .2rem 0 .3rem; }
.how-steps h3 { font-size: 1.3rem; margin: 0 0 .6rem; }
.how-steps p { margin: 0 0 .7rem; max-width: 34rem; }
.kinds { border-collapse: collapse; font-size: .9rem; margin-top: .8rem; max-width: 34rem; }
.kinds th, .kinds td { text-align: left; vertical-align: top; padding: .4rem .8rem .4rem 0; border-top: 1px solid var(--rule); }
.kinds th { font-family: var(--sans); font-size: .82rem; white-space: nowrap; color: var(--ink-soft); }
.good-to-know { font-size: 1.12rem; margin: 0 0 .4rem; }
@media (max-width: 52rem) { .how-steps li { grid-template-columns: minmax(0, 1fr); } }
.map-add { display: flex; gap: .6rem; max-width: 30rem; }
.map-add input { flex: 1; font: inherit; font-family: var(--sans); font-size: .95rem; padding: .45rem .6rem; background: var(--paper); color: var(--ink); border: 1px solid var(--ink-soft); }
.map-chosen { list-style: none; padding: 0; margin: 1rem 0; max-width: 30rem; border-top: 1px solid var(--rule); }
.map-chosen li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--rule); }
button.link { background: none; border: 0; padding: 0; font: inherit; font-family: var(--sans); font-size: .88rem; color: var(--link); text-decoration: underline; cursor: pointer; }

/* the world map in "Choose your pack" */
.maps-intro { margin: .2rem 0 .8rem; }
.map-pick { position: relative; border: 1px solid var(--rule); background: #e9eef0; touch-action: none; user-select: none; overflow: hidden; }
#map-svg { display: block; width: 100%; height: auto; aspect-ratio: 1000 / 490; cursor: grab; }
#map-svg:active { cursor: grabbing; }
#map-svg .land { stroke: #fff; stroke-width: .7px; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill .15s; }
#map-svg .d-street { fill: #c4bfb0; }
#map-svg .d-road { fill: #ebe8e0; }
#map-svg .land:hover, #map-svg .dot:hover { fill: #8fbfa6; }
#map-svg .on, #map-svg .on:hover { fill: #2f7d5b; }
#map-svg .dot { fill: #a9a597; stroke: #fff; stroke-width: 1px; vector-effect: non-scaling-stroke; cursor: pointer; }
#map-svg .dot.city { fill: #7a766b; display: none; }
#map-svg.zoomed .dot.city, #map-svg .dot.city.on { display: inline; }
#map-svg .dot.on { fill: #2f7d5b; }
.map-zoom { position: absolute; right: .6rem; top: .6rem; display: flex; flex-direction: column; border: 1px solid var(--ink-soft); background: var(--paper); }
.map-zoom button { font: 600 1.15rem/1 var(--sans); width: 2.1rem; height: 2.1rem; border: 0; background: none; color: var(--ink); cursor: pointer; }
.map-zoom button + button { border-top: 1px solid var(--rule); }
.map-zoom button:disabled { color: var(--rule); cursor: default; }
.map-tip { position: absolute; pointer-events: none; background: var(--raised); color: var(--ink); border: 1px solid var(--ink-soft);
  padding: .35rem .6rem; font-family: var(--sans); font-size: .82rem; line-height: 1.35; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.map-tip strong, .map-tip span, .map-tip em { display: block; }
.map-tip span { color: var(--ink-soft); }
.map-tip em { font-style: normal; color: #2f7d5b; font-weight: 600; }
.map-hint { position: absolute; left: 50%; bottom: .6rem; transform: translateX(-50%); margin: 0; background: rgba(25,25,23,.82); color: #fff;
  font-family: var(--sans); font-size: .82rem; padding: .35rem .7rem; pointer-events: none; }
.map-views { font-family: var(--sans); font-size: .85rem; color: var(--muted); margin: .5rem 0 1rem; line-height: 1.8; }
.map-views button.link { margin-right: .35rem; }
.map-key { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 1.4rem; margin: 0 0 1rem; }
.map-key dt { font-family: var(--sans); font-weight: 600; font-size: .88rem; display: flex; align-items: center; gap: .45rem; }
.map-key dd { margin: .2rem 0 0; font-size: .88rem; color: var(--ink-soft); line-height: 1.45; }
.map-key i { display: inline-block; width: .95rem; height: .95rem; border: 1px solid var(--rule); }
.k-street { background: #c4bfb0; } .k-road { background: #ebe8e0; } .k-on { background: #2f7d5b; }
@media (max-width: 40rem) { .map-key { grid-template-columns: 1fr; } }
@media (prefers-color-scheme: dark) {
  .map-pick { background: #1c2427; }
  #map-svg .land, #map-svg .dot { stroke: #151514; }
  #map-svg .d-street, .k-street { fill: #6d695f; background: #6d695f; }
  #map-svg .d-road, .k-road { fill: #45423c; background: #45423c; }
}
#map-count { margin-top: .5rem; }

/* Waiting list (pre-launch site, site/prelaunch.py) */
.waitlist { margin-top: .6rem; }
/* The sign-up field: a clear box to type in, with room before the button */
.waitlist input[type="email"] { display: block; font-family: var(--sans); font-size: 1rem; background: var(--raised, var(--paper));
  border: 1px solid var(--ink-soft); border-radius: 0; padding: .65rem .75rem; margin: .1rem 0 1rem; max-width: 26rem; }
.waitlist input[type="email"]:focus { outline: 2px solid var(--link); outline-offset: 1px; border-color: var(--ink); }
.waitlist .wl-updates { margin: -.3rem 0 1.1rem; }
.wl-label, .pack .wl-label { display: block; font-family: var(--sans); font-size: .9rem; color: var(--muted); margin-bottom: .2rem; }
.wl-head { margin: 1.4rem 0 .3rem; font-size: 1.1rem; }
.wl-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.waitlist .note, .pack .note { margin-top: .6rem; }
/* What people want: first choice, other interests, optional questions per product (shown with :has, no JavaScript) */
.interest { max-width: 44rem; }
.interest fieldset { margin: 0 0 1.6rem; }
.interest legend { font-size: 1.1rem; }
.interest legend .note { font-weight: 400; margin-left: .3rem; }
.interest .check { margin: .45rem 0; }
.interest textarea { font: inherit; font-size: .95rem; color: var(--ink); background: var(--raised); border: 1px solid var(--rule);
  padding: .5rem .6rem; width: 100%; max-width: 32rem; min-height: 5rem; }
.wl-more { display: none; padding-left: 1rem; border-left: 3px solid var(--rule); }
.interest:has(input[value="download"]:checked) .wl-more[data-for="download"],
.interest:has(input[value="box"]:checked) .wl-more[data-for="box"],
.interest:has(input[value="computer"]:checked) .wl-more[data-for="computer"] { display: block; }
/* A follow-up, shown only after one answer: "only at a lower price" asks which price */
.wl-follow { display: none; }
.interest:has(input[name="download_buy"][value="lower"]:checked) .wl-follow[data-after="download_buy=lower"] { display: block; }
/* The "I'm interested" button on each product card: a plain form; the Worker sends the page back to #voted-<product> */
.vote { margin: .9rem 1.4rem 0; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; }
.vote-button { font-family: var(--sans); font-size: .92rem; font-weight: 600; padding: .5rem 1rem; background: transparent;
  color: var(--ink); border: 1px solid var(--ink); cursor: pointer; }
.vote-button:hover, .vote:has(.voted:target) .vote-button { background: var(--ink); color: var(--paper); }
.voted { display: none; font-family: var(--sans); font-size: .86rem; color: var(--ink-soft); }
.voted:target { display: inline; }
/* Pre-launch: the news tick under every sign-up form, the suggestion form, the share and manage blocks on waitlist.html */
.wl-updates { max-width: 32rem; font-size: .9rem; color: var(--ink-soft); margin: .6rem 0 0; }
.suggest { max-width: 36rem; }
.suggest fieldset { border: 0; padding: 0; margin: 0 0 .8rem; }
.suggest textarea { font: inherit; font-size: .95rem; color: var(--ink); background: var(--raised); border: 1px solid var(--rule);
  padding: .5rem .6rem; width: 100%; min-height: 6rem; }
.suggested { display: none; font-family: var(--sans); font-weight: 600; }
.suggested:target { display: block; }
.wl-share { margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--rule); }
.wl-own { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.wl-own input { font: inherit; font-size: .95rem; color: var(--ink); background: var(--raised); border: 1px solid var(--rule);
  padding: .5rem .6rem; flex: 1 1 18rem; max-width: 28rem; }
.button.quiet { background: transparent; color: var(--ink); }
.button.quiet:hover { background: var(--ink); color: var(--paper); }
#manage p { margin: .6rem 0; }

/* Legal pages rendered from legal/*.md */
.doc.legal .table { overflow-x: auto; margin: 1rem 0 1.4rem; }
.doc.legal table { border-collapse: collapse; font-size: .92rem; }
.doc.legal th, .doc.legal td { border-top: 1px solid var(--rule); padding: .5rem .7rem .5rem 0; text-align: left; vertical-align: top; }
.doc.legal th { font-family: var(--sans); font-weight: 600; }
.doc.legal h2 { font-size: 1.35rem; margin-top: 2.2rem; }

/* Home: what you need */
.features { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2.4rem; margin-top: 1.6rem; }
.features .tile { grid-column: span 2; color: var(--ink); text-decoration: none; display: block; }
.features .tile:hover h3 { text-decoration: underline; text-underline-offset: .18em; }
.features .more { display: inline-block; margin-top: .4rem; font-family: var(--sans); font-size: .9rem; color: var(--link, #1a4fa0); }
.features .more::after { content: " →"; }
.features .tile:nth-child(4) { grid-column: 2 / span 2; }
.features h3 { margin: .8rem 0 .2rem; }
.features p { margin: 0; color: var(--ink-soft); }
img.shot { object-position: left top; border: 1px solid var(--rule); background: var(--raised); }
@media (max-width: 900px) { .features { grid-template-columns: minmax(0, 1fr); } .features .tile, .features .tile:nth-child(4) { grid-column: auto; } }
.contents { margin: 1rem 0; }
.contents div { border-top: 1px solid var(--rule); padding: .55rem 0; }
.contents dt { font-weight: 600; color: var(--ink); }
.contents dd { margin: .15rem 0 0; color: var(--ink-soft); font-size: .95rem; }

/* Home: news as headlines (no photos) */
.headlines { list-style: none; padding: 0; margin: 1.6rem 0 1rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; }
.headlines li { border-top: 1px solid var(--rule); }
.headlines a { display: block; padding: 1.1rem 0 1.3rem; color: var(--ink); text-decoration: none; }
.headlines strong { display: block; font-size: 1.45rem; line-height: 1.25; font-weight: 600; }
.headlines a:hover strong { text-decoration: underline; text-underline-offset: .18em; }
.headlines .src { display: block; margin-top: .5rem; font-family: var(--sans); font-size: .85rem; color: var(--muted); }
.news-list { grid-template-columns: minmax(0, 1fr); max-width: 46rem; }

/* Home: a dark, full-width band for "runs on your computer" */
.band.dark { background: var(--ink); color: var(--paper); border: 0; box-shadow: 0 0 0 100vmax var(--ink); clip-path: inset(0 -100vmax);
  padding: 4.5rem 0; margin: 4rem 0; }
.band.dark .lede, .band.dark .facts li, .band.dark .note { color: var(--paper); opacity: .85; }
.band.dark .facts li { border-color: color-mix(in srgb, var(--paper) 25%, transparent); }
.band.dark strong { color: var(--paper); }

/* Home: the note, set like a letter */
.band.note { max-width: 38rem; margin: 0 auto; border: 0; padding: 4rem 0; }
.band.note p { font-size: 1.2rem; line-height: 1.65; }
.band.note .sig { font-style: italic; margin-top: 1.6rem; }

/* Home: ordinary days, one picture and a short list */
.band.days { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 3rem; align-items: center; }
.band.days img { aspect-ratio: 4 / 5; object-fit: cover; }
.plain { list-style: none; padding: 0; margin: 1rem 0 0; }
.plain li { padding: .7rem 0; color: var(--ink-soft); font-size: 1.1rem; }
.plain strong { color: var(--ink); }

/* What's inside: the editions table */
table.editions { border-collapse: collapse; width: 100%; margin-top: 1.4rem; font-size: .98rem; }
table.editions th, table.editions td { padding: .45rem .7rem; border-bottom: 1px solid var(--rule); text-align: center; }
table.editions td:first-child, table.editions th:first-child { text-align: left; }
table.editions thead th { font-family: var(--sans); font-size: .9rem; position: sticky; top: 0; background: var(--paper); }
table.editions tr.group th { text-align: left; padding-top: 1.4rem; font-size: 1.05rem; border-bottom: 2px solid var(--ink); }
table.editions td:not(:first-child) { color: var(--accent, #2f7d5b); font-weight: 700; width: 7.5rem; }

@media (max-width: 900px) {
  .headlines, .band.days { grid-template-columns: minmax(0, 1fr); }
  .band.days img { aspect-ratio: 16 / 9; }
}
.feature#library { margin-bottom: 2rem; }
.contents-band { margin: 0 0 6rem; }
.contents.wide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2.4rem; }
.page-head + .news-list { margin-top: 0; }
@media (max-width: 900px) { .contents.wide { grid-template-columns: minmax(0, 1fr); } }
/* The questions after signing up (waitlist.html) */
#quiz { margin-top: 2.6rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
