:root { --bg:#f7f7f5; --fg:#1d1d1f; --muted:#5d5d63; --accent:#2557d6; --card:#ffffff; --line:#dcdce0; }
@media (prefers-color-scheme: dark) {
  :root { --bg:#141417; --fg:#f0f0f2; --muted:#a4a4ad; --accent:#7ea4ff; --card:#1d1d22; --line:#33333a; }
}
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--fg);
       font:17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
main { max-width:40rem; margin:0 auto; padding:12vh 1.25rem 4rem; }
h1 { font-size:2.2rem; line-height:1.15; margin:0 0 .4rem; letter-spacing:-.02em; }
.soon { display:inline-block; font-size:.8rem; font-weight:600; letter-spacing:.08em; text-transform:uppercase;
        color:var(--accent); border:1px solid var(--accent); border-radius:999px; padding:.15rem .7rem; margin-bottom:1.2rem; }
p { color:var(--muted); margin:.4rem 0 1.2rem; max-width:34rem; }
.btn { display:inline-block; padding:.7rem 1.3rem; border-radius:.6rem; background:var(--accent); color:#fff;
       text-decoration:none; font-weight:600; border:0; font-size:1rem; cursor:pointer; }
.btn:focus-visible, a:focus-visible, input:focus-visible { outline:3px solid var(--accent); outline-offset:2px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:.9rem; padding:1.4rem; margin-top:1.6rem; }
label { display:block; font-weight:600; margin-bottom:.4rem; }
input[type=password], input[type=text] { width:100%; padding:.65rem .8rem; border-radius:.5rem; border:1px solid var(--line);
       background:var(--bg); color:var(--fg); font-size:1rem; margin-bottom:1rem; }
.err { color:#c0392b; font-weight:600; }
footer { margin-top:3rem; font-size:.85rem; color:var(--muted); }
h2 { font-size:1.2rem; margin:0 0 .8rem; }
select { width:100%; padding:.6rem; border-radius:.5rem; border:1px solid var(--line); background:var(--bg); color:var(--fg); font-size:1rem; margin-bottom:.6rem; }
input[type=file] { width:100%; margin:.2rem 0 .6rem; color:var(--fg); }
.hint { color:var(--muted); font-size:.95rem; margin:.3rem 0 .8rem; }
.check { display:flex; gap:.5rem; align-items:flex-start; font-weight:400; margin:.8rem 0 1rem; }
progress { width:100%; height:.7rem; margin-top:1rem; }
.btn[disabled] { opacity:.5; cursor:not-allowed; }
/* Every link and link-like control is a button. Secondary = outlined, for anything that is not the page's main action. */
.btn.secondary, button.link { display:inline-block; background:transparent; color:var(--accent); border:1.5px solid var(--accent);
       border-radius:.6rem; padding:.45rem .95rem; font-weight:600; font-size:.95rem; text-decoration:none; cursor:pointer; line-height:1.3; }
.btn.secondary:hover, button.link:hover { background:color-mix(in srgb, var(--accent) 10%, transparent); }
button.link:focus-visible { outline:3px solid var(--accent); outline-offset:2px; }
.btn.secondary.small, button.link { padding:.3rem .75rem; font-size:.9rem; }
.rows .row span button.link { margin:0 .3rem .3rem 0; }
footer .btn { margin:.25rem .25rem 0 0; }
footer form.inline { display:inline; }
ul.jobs, ul.downloads { list-style:none; padding:0; margin:0; }
ul.jobs li, ul.downloads li { padding:.5rem 0; border-top:1px solid var(--line); }
ul.jobs li:first-child, ul.downloads li:first-child { border-top:0; }
ul.downloads a { font-weight:600; color:var(--accent); }
main.wide, main { max-width:46rem; }
.player { width:100%; max-height:22rem; background:#000; border-radius:.6rem; margin:.4rem 0 1rem; }
.rows .row { display:grid; grid-template-columns:5.5rem 1fr auto; gap:.5rem; align-items:start; padding:.5rem 0; border-top:1px solid var(--line); }
.rows textarea, .rows input.t { width:100%; padding:.45rem .6rem; border-radius:.4rem; border:1px solid var(--line); background:var(--bg); color:var(--fg); font:inherit; }
.rows.captions .row { grid-template-columns:5.5rem 5.5rem 1fr auto; }
@media (max-width:560px) { .rows .row, .rows.captions .row { grid-template-columns:1fr; } }
.notice { border:1px solid var(--line); border-left:4px solid var(--accent); border-radius:.5rem; padding:.7rem .9rem; margin:.4rem 0 1rem; font-size:.95rem; color:var(--muted); }
.notice a, .legal a { color:var(--accent); }
.notice.build-note { color:var(--fg); background:var(--card); border-color:var(--accent); border-width:2px 2px 2px 6px; font-size:1.02rem; margin:1.2rem 0 .8rem; }
.notice.build-note b { color:var(--accent); }
.legal h2 { font-size:1.1rem; margin:1.6rem 0 .4rem; }
.legal p, .legal li { color:var(--fg); max-width:none; }
.legal ul { padding-left:1.3rem; }
img.logo { display:block; width:64px; height:64px; margin:0 0 1rem; }
form.inline { display:inline; }
.lead { color:var(--fg); font-size:1.08rem; max-width:none; }
ol.steps { padding-left:1.4rem; margin:1.4rem 0; }
ol.steps > li { margin:0 0 2rem; padding-left:.3rem; }
ol.steps > li::marker { font-weight:700; color:var(--accent); }
ol.steps h2, ol.steps h3 { font-size:1.15rem; margin:0 0 .4rem; }
ol.steps p, ol.steps li, .notice li { max-width:none; }
ol.steps ul { color:var(--muted); padding-left:1.2rem; }
h2.way { font-size:1.45rem; margin:2.6rem 0 .4rem; padding-top:.6rem; border-top:1px solid var(--line); }
dl.modes dt { font-weight:700; margin-top:.7rem; }
dl.modes dd { margin:.1rem 0 0; color:var(--muted); }
figure.shot { margin:.8rem 0 0; }
figure.shot img { display:block; width:100%; height:auto; border:1px solid var(--line); border-radius:.7rem; }
figure.shot figcaption { font-size:.9rem; color:var(--muted); margin-top:.4rem; }
.notice ul { margin:.4rem 0 0; padding-left:1.2rem; }
code { font-size:.92em; background:var(--card); border:1px solid var(--line); border-radius:.3rem; padding:0 .3rem; }
main a { color:var(--accent); }
.big { color:var(--fg); font-size:1.15rem; font-weight:600; margin:.2rem 0 .8rem; }
table.prices { width:100%; border-collapse:collapse; margin:.2rem 0 .6rem; }
table.prices th, table.prices td { text-align:left; padding:.6rem 0; border-top:1px solid var(--line); vertical-align:top; }
table.prices tr:first-child th, table.prices tr:first-child td { border-top:0; }
table.prices th { font-weight:400; color:var(--fg); padding-right:1rem; }
table.prices td { font-weight:700; text-align:right; }
ol.steps.short > li { margin:0 0 .6rem; color:var(--muted); }
h2.gap { margin-top:2.2rem; }
details.demo { margin:.4rem 0 .6rem; }
details.demo summary { display:inline-block; cursor:pointer; color:var(--accent); font-weight:600; padding:.3rem .75rem;
       border:1.5px solid var(--accent); border-radius:.6rem; font-size:.9rem; list-style:none; }
details.demo summary::-webkit-details-marker { display:none; }
details.demo summary:focus-visible { outline:3px solid var(--accent); outline-offset:2px; }
details.demo video { display:block; width:100%; height:auto; margin-top:.4rem; border-radius:.6rem; background:#000; }
div.hint p { margin:0 0 .3rem; }
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.conspicuous { border:2px solid var(--fg); border-radius:.6rem; padding:.8rem 1rem; margin:.6rem 0 1.2rem; }
.conspicuous p, .conspicuous li { color:var(--fg); }
.conspicuous ol { margin:.2rem 0 .6rem; padding-left:1.4rem; }
.btn-row { display:flex; flex-wrap:wrap; gap:.6rem; max-width:none; }
.btn-row .btn { text-align:center; }
.btn-row.center { justify-content:center; }
.btn.large { padding:.95rem 2.4rem; font-size:1.2rem; }
p.center { text-align:center; margin-left:auto; margin-right:auto; }
h2.faq-section { font-size:1.45rem; margin:2.4rem 0 .4rem; padding-bottom:.3rem; border-bottom:2px solid var(--accent); }
.faq h3 { font-size:1.05rem; margin:1.4rem 0 .3rem; }
.faq p, .faq ul, .faq ol { margin-top:.3rem; }
details.options { margin:.4rem 0 1rem; border:1px solid var(--line); border-radius:.6rem; padding:.6rem .9rem; }
details.options summary { cursor:pointer; font-weight:600; color:var(--accent); }
.opt { margin:.8rem 0; }
.opt label { font-weight:600; margin-bottom:.2rem; }
.opt input[type=range] { width:100%; accent-color:var(--accent); }
.opt output { font-weight:400; color:var(--muted); }
ul.downloads li { margin:.5rem 0; }
.file-help { display:block; margin:.1rem 0 0; font-size:.88rem; }
textarea { width:100%; padding:.6rem .8rem; border-radius:.5rem; border:1px solid var(--line); background:var(--bg); color:var(--fg); font:inherit; margin-bottom:.6rem; }
.row-note { font-size:.88rem; color:var(--muted); margin:.2rem 0 0; flex-basis:100%; }
.row-note.too-long { color:#c0392b; font-weight:600; }
details.skip { margin-top:1.4rem; }
details.skip summary { cursor:pointer; color:var(--muted); }
#reviewer { margin-top:.2rem; }
ol.stepper { display:flex; flex-wrap:wrap; gap:.4rem; list-style:none; padding:0; margin:1rem 0; counter-reset:step; }
ol.stepper li { counter-increment:step; font-size:.85rem; color:var(--muted); border:1px solid var(--line); border-radius:999px; padding:.2rem .7rem; }
ol.stepper li::before { content:counter(step) " "; font-weight:700; }
ol.stepper li.done { color:var(--fg); }
ol.stepper li.done::before { content:"✓ "; }
ol.stepper li.now { color:#fff; background:var(--accent); border-color:var(--accent); font-weight:600; }
figure.player-box { margin:1rem 0; }
figure.player-box figcaption { font-size:.9rem; color:var(--muted); margin-top:.3rem; font-weight:600; }
table.batch { width:100%; border-collapse:collapse; margin:1rem 0; font-size:.95rem; }
table.batch th, table.batch td { text-align:left; padding:.55rem .5rem; border-bottom:1px solid var(--line); vertical-align:middle; }
table.batch thead th { font-size:.8rem; color:var(--muted); font-weight:600; }
table.batch tbody th { font-weight:600; word-break:break-word; }
table.batch tr.needs-you { background:color-mix(in srgb, var(--accent) 8%, transparent); }
.btn.small { padding:.35rem .8rem; font-size:.9rem; white-space:nowrap; }
ul.filelist { margin:.2rem 0 .8rem; padding-left:1.2rem; color:var(--muted); font-size:.92rem; }
@media (max-width:600px) { table.batch thead { display:none; } table.batch tr { display:grid; grid-template-columns:1fr auto; padding:.4rem 0; border-bottom:1px solid var(--line); } table.batch th, table.batch td { border:0; padding:.15rem .3rem; } }
[hidden] { display:none !important; }   /* .btn and friends set display, which would otherwise win */
button.link.danger { color:#c0392b; border-color:#c0392b; }
.btn.danger { background:#c0392b; }
button.link[disabled] { color:var(--muted); border-color:var(--line); cursor:not-allowed; opacity:.6; }
ul.jobs li button.link { margin-left:.4rem; }
/* Home icon at the top left of every page but the home page, beside the page's back button when it has one. */
nav.top { float:left; margin:.4rem .45rem 0 0; }
nav.top .home { display:inline-flex; align-items:center; padding:.3rem .55rem; }
nav.top .home svg { display:block; height:1.17rem; width:1.17rem; }
main h1 { clear:left; }
ul.facts { color:var(--fg); padding-left:1.2rem; margin:.4rem 0 1.4rem; }
ul.facts li { margin:.2rem 0; }
/* Home page: the three help buttons side by side, stacked on phones. */
.btn-row.three { display:grid; grid-template-columns:repeat(3, 1fr); }
.btn-row.three .btn { padding:.7rem .8rem; font-size:.95rem; line-height:1.3; display:flex; align-items:center; justify-content:center; }
@media (max-width:600px) { .btn-row.three { grid-template-columns:1fr; } }
/* Articles (topics.py): the price comparison and the /learn list */
.table-wrap { overflow-x:auto; max-width:100%; }
table.compare { width:100%; border-collapse:collapse; margin:.4rem 0 .4rem; font-size:.95rem; }
table.compare th, table.compare td { text-align:right; padding:.5rem .5rem; border-bottom:1px solid var(--line); white-space:nowrap; }
table.compare th[scope="row"], table.compare thead th:first-child { text-align:left; white-space:normal; font-weight:400; }
table.compare tr.ours th, table.compare tr.ours td { font-weight:700; border-bottom:0; }
dl.learn dt { margin-top:1rem; }
dl.learn dd { margin:.3rem 0 0; color:var(--muted); }
