@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #16181b;
  --ink-2: #444a52;
  --ink-3: #6b727c;
  --line: #e3e6ea;
  --line-2: #d2d6dc;
  --bg: #ffffff;
  --bg-soft: #f5f6f7;
  --bg-dark: #121417;
  --accent: #c4520b;       /* text-safe orange on white (AA) */
  --brand: #ef6c1a;
  --green: #18794e;
  --radius: 8px;
  --container: 1160px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 Inter, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: #9c3f05; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 650; letter-spacing: -0.015em; }
h1 { font-size: clamp(34px, 4.6vw, 52px); letter-spacing: -0.025em; font-weight: 700; }
h2 { font-size: clamp(26px, 3vw, 34px); }
h3 { font-size: 19px; }
h4 { font-size: 16px; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
code, kbd { font: 0.88em/1.4 ui-monospace, 'Cascadia Mono', Consolas, Menlo, monospace; }
code { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
kbd { display: inline-block; min-width: 1.8em; text-align: center; background: #fff; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; color: var(--ink); }
hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
.container { width: min(var(--container), 100% - 40px); margin: 0 auto; }
.narrow { width: min(760px, 100% - 40px); margin: 0 auto; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }
.todo { background: #fff3c4; color: #7a5a00; border-radius: 3px; padding: 0 4px; font-weight: 600; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 6px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; font-family: inherit; }
.button-dark { background: var(--ink); color: #fff; }
.button-dark:hover { background: #2b2f35; color: #fff; }
.button-outline { background: #fff; color: var(--ink); border-color: var(--line-2); }
.button-outline:hover { border-color: #a8aeb6; color: var(--ink); }
.button-small { height: 36px; padding: 0 14px; font-size: 14px; }
.button-block { display: flex; width: 100%; }
.text-link { color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.text-link:hover { color: var(--ink); }
.arrow-link { font-weight: 600; text-decoration: none; }
.arrow-link::after { content: ' →'; }

/* header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; height: 64px; gap: 36px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.logo svg { width: 24px; height: 24px; }
.logo:hover { color: var(--ink); }
.primary-nav { display: flex; gap: 26px; }
.primary-nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; padding: 21px 0 19px; border-bottom: 2px solid transparent; }
.primary-nav a:hover { color: var(--ink); }
.primary-nav a[aria-current] { color: var(--ink); border-bottom-color: var(--ink); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.nav-toggle { display: none; margin-left: auto; width: 40px; height: 40px; background: none; border: 1px solid var(--line-2); border-radius: 6px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; padding: 0 10px; }
.nav-toggle span { height: 2px; background: var(--ink); border-radius: 1px; }
.mobile-nav { border-top: 1px solid var(--line); background: #fff; }
.mobile-nav a { display: block; padding: 13px 20px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); font-weight: 500; }

/* page sections */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section-dark { background: var(--bg-dark); color: #e9ebee; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: #b7bdc6; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 640px; }
.kicker { font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 10px; display: block; }
.page-head { padding: 64px 0 40px; border-bottom: 1px solid var(--line); }
.page-head p { font-size: 18.5px; color: var(--ink-2); max-width: 720px; margin: 0; }

/* home hero */
.hero { padding: 72px 0 0; }
.hero h1 { max-width: 760px; }
.hero .lead { margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-meta { margin-top: 16px; font-size: 14px; color: var(--ink-3); }
.hero-shot { margin-top: 56px; }
.screenshot { border-radius: 10px; border: 1px solid #1f2329; box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 24px 48px -12px rgba(16, 24, 40, .25); background: #14171c; }
.screenshot-light { border-color: var(--line-2); }
figure { margin: 0; }
figcaption { font-size: 14px; color: var(--ink-3); margin-top: 12px; }

/* columns */
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.cols-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.feature-text h3 { margin-bottom: 6px; }
.feature-text p { color: var(--ink-2); font-size: 15.5px; margin-bottom: 8px; }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.split.reverse { grid-template-columns: 7fr 5fr; }
.split.reverse > :first-child { order: 2; }
.split p { color: var(--ink-2); }
.checklist { list-style: none; padding: 0; margin: 18px 0 0; }
.checklist li { position: relative; padding: 0 0 10px 26px; color: var(--ink-2); }
.checklist li::before { content: ''; position: absolute; left: 2px; top: 8px; width: 12px; height: 7px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-row div { padding: 26px 24px; border-left: 1px solid var(--line); }
.stat-row div:first-child { border-left: 0; padding-left: 0; }
.stat-row b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.stat-row span { color: var(--ink-3); font-size: 14.5px; }

/* tables */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; }
table.data th, table.data td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th { font-size: 13px; font-weight: 600; color: var(--ink-3); border-bottom-color: var(--line-2); }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data tr.highlight td { background: #fff8f2; font-weight: 600; }
table.data .yes { color: var(--green); font-weight: 600; }
table.data .no { color: var(--ink-3); }
table.specs th { width: 34%; color: var(--ink-2); font-weight: 500; }

/* pricing */
.billing-toggle { display: inline-flex; border: 1px solid var(--line-2); border-radius: 7px; padding: 3px; margin-top: 24px; background: #fff; }
.billing-toggle button { font: inherit; font-size: 14.5px; font-weight: 600; border: 0; background: none; padding: 7px 16px; border-radius: 5px; cursor: pointer; color: var(--ink-2); }
.billing-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-top: 40px; }
.plan { padding: 28px 24px; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.plan:first-child { border-left: 0; }
.plan.recommended { background: #fffaf6; box-shadow: inset 0 3px 0 var(--brand); }
.plan h3 { margin: 0; }
.plan .plan-for { color: var(--ink-3); font-size: 14.5px; margin: 4px 0 18px; min-height: 44px; }
.plan .amount { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.plan .period { color: var(--ink-3); font-size: 14.5px; margin-left: 4px; }
.plan .billing-note { font-size: 13.5px; color: var(--ink-3); margin: 8px 0 22px; min-height: 20px; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 0; font-size: 14.5px; color: var(--ink-2); }
.plan li { padding: 6px 0 6px 22px; position: relative; border-top: 1px solid var(--line); }
.plan li:first-child { border-top: 0; }
.plan li::before { content: ''; position: absolute; left: 2px; top: 13px; width: 10px; height: 6px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.plan .tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent); margin-left: 8px; vertical-align: 3px; }

/* download */
.release-box { border: 1px solid var(--line); border-radius: 10px; padding: 28px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.release-box h2 { margin: 0 0 4px; font-size: 24px; }
.checksum { font: 13px/1.5 ui-monospace, Consolas, monospace; color: var(--ink-3); word-break: break-all; margin: 10px 0 0; }
.os-steps { counter-reset: step; list-style: none; padding: 0; }
.os-steps li { counter-increment: step; position: relative; padding: 0 0 14px 38px; color: var(--ink-2); }
.os-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--bg-soft); border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; display: grid; place-items: center; color: var(--ink); }
.os-card { border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
.os-card.detected { border-color: var(--ink); }
.os-card h3 { display: flex; align-items: center; gap: 10px; }
.packages { margin-top: 20px; }
.package { border: 1px solid var(--line); border-radius: 10px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.package h3 { margin: 0; display: flex; align-items: center; gap: 10px; }
.package p { margin: 0; }
.package.detected { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.package .badge { font-size: 12px; font-weight: 600; background: var(--ink); color: #fff; border-radius: 4px; padding: 1px 7px; display: none; }
.package.detected .badge { display: inline-block; }
.package.detected .button-outline { background: var(--ink); color: #fff; border-color: var(--ink); }
code.hash { word-break: break-all; font-size: 12px; }
.os-card .badge { font-size: 12px; font-weight: 600; background: var(--ink); color: #fff; border-radius: 4px; padding: 1px 7px; display: none; }
.os-card.detected .badge { display: inline-block; }

/* docs + legal */
.doc-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; padding: 48px 0 96px; }
.doc-nav { position: sticky; top: 88px; align-self: start; font-size: 14.5px; }
.doc-nav h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin: 22px 0 8px; }
.doc-nav h4:first-child { margin-top: 0; }
.doc-nav a { display: block; color: var(--ink-2); text-decoration: none; padding: 4px 0 4px 12px; border-left: 2px solid var(--line); }
.doc-nav a:hover { color: var(--ink); border-left-color: var(--line-2); }
.doc-nav a[aria-current] { color: var(--ink); border-left-color: var(--brand); font-weight: 600; }
.prose { max-width: 760px; }
.prose h1 { font-size: 38px; }
.prose h2 { font-size: 25px; margin-top: 2.2em; padding-top: .2em; }
.prose h3 { font-size: 18.5px; margin-top: 1.8em; }
.prose p, .prose li { color: var(--ink-2); }
.prose li { margin-bottom: .4em; }
.prose .updated { color: var(--ink-3); font-size: 14.5px; }
.prose table { margin: 1em 0 1.5em; }
.prose img { margin: 1.2em 0; }
.note { border-left: 3px solid var(--line-2); background: var(--bg-soft); padding: 12px 16px; margin: 1.2em 0; color: var(--ink-2); font-size: 15px; }
.note strong { color: var(--ink); }
.shortcut-table td:first-child { width: 160px; white-space: nowrap; }

/* changelog */
.release { display: grid; grid-template-columns: 200px 1fr; gap: 40px; padding: 40px 0; border-top: 1px solid var(--line); }
.release-meta b { display: block; font-size: 22px; }
.release-meta span { color: var(--ink-3); font-size: 14.5px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 10px; }
.contact-grid > div { padding: 28px; border-left: 1px solid var(--line); }
.contact-grid > div:first-child { border-left: 0; }
.contact-grid h3 { font-size: 17px; }
.contact-grid p { color: var(--ink-2); font-size: 15px; }

/* faq */
.faq-list details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; font-weight: 600; padding: 16px 32px 16px 0; list-style: none; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; right: 4px; top: 13px; font-size: 22px; font-weight: 400; color: var(--ink-3); }
.faq-list details[open] summary::after { content: '–'; }
.faq-list details p { color: var(--ink-2); margin: 0 0 18px; }

/* cta band */
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 4px; }
.cta-band p { margin: 0; }

/* footer */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.footer-brand p { color: var(--ink-3); margin: 12px 0 0; max-width: 260px; }
.footer-version { font-size: 13.5px; }
.site-footer h2 { font-size: 13.5px; font-weight: 600; color: var(--ink); margin: 4px 0 12px; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer li a { color: var(--ink-2); text-decoration: none; }
.site-footer li a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; color: var(--ink-3); font-size: 13px; }
.footer-bottom p { margin: 0; }

/* responsive */
@media (max-width: 1020px) {
  .plans { grid-template-columns: 1fr 1fr; }
  .plan:nth-child(3) { border-left: 0; }
  .plan:nth-child(n+3) { border-top: 1px solid var(--line); }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse > :first-child { order: 0; }
  .cols-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .primary-nav, .header-actions { display: none; }
  .nav-toggle { display: flex; }
  .cols-3, .cols-2, .contact-grid { grid-template-columns: 1fr; }
  .contact-grid > div { border-left: 0; border-top: 1px solid var(--line); }
  .contact-grid > div:first-child { border-top: 0; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat-row div:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat-row div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .doc-layout { grid-template-columns: 1fr; gap: 24px; }
  .doc-nav { position: static; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
  .release { grid-template-columns: 1fr; gap: 8px; }
  .release-box { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .plans { grid-template-columns: 1fr; }
  .plan { border-left: 0 !important; border-top: 1px solid var(--line); }
  .plan:first-child { border-top: 0; }
  .cols-4, .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 48px; }
}

/* donate */
.donate-grid { gap: 24px; }
.donate-card { align-items: center; text-align: center; }
.donate-card h3 { justify-content: center; }
.donate-qr { width: 200px; height: 200px; padding: 10px; background: #fff; border-radius: 10px; border: 1px solid var(--line); }
.donate-qr svg { width: 100%; height: 100%; display: block; }
.donate-addr { display: block; width: 100%; padding: 10px 12px; border-radius: 8px; background: var(--bg-2, rgba(127,127,127,.08)); font: 13.5px/1.5 ui-monospace, Consolas, monospace; word-break: break-all; user-select: all; }
.donate-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.header-actions .donate-link { display: inline-flex; align-items: center; gap: 6px; }
.header-actions .donate-link svg { width: 15px; height: 15px; fill: #e5484d; }
