/* Shared stylesheet for the secondary pages (pricing, download, changelog,
   legal). index.html keeps its own inline CSS; the tokens here are the same
   so the pages read as one site. No fonts, no remote assets. */
:root {
  --bg: #ffffff; --bg-sunken: #f4f6f8; --surface: #ffffff; --surface-quiet: #f7f9fb;
  --text: #14171a; --text-muted: #55606d; --border: #d8dee6; --border-strong: #b9c3ce;
  --accent: #1f4d7a; --accent-text: #ffffff; --accent-quiet: #eaf1f8; --good: #1c6b46;
  --warn-bg: #fdf6e6; --warn-border: #d9c58a; --warn-text: #6b5312; --danger: #a3261f;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08); --radius: 10px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1116; --bg-sunken: #0a0d11; --surface: #161a21; --surface-quiet: #1b2029;
    --text: #e9ecf1; --text-muted: #a3adba; --border: #2a313b; --border-strong: #3c4552;
    --accent: #8fbce8; --accent-text: #0e1116; --accent-quiet: #172533; --good: #6fcf9a;
    --warn-bg: #262008; --warn-border: #5c4d18; --warn-text: #e0cd8e; --danger: #f2938c; --shadow: none;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .5em; font-weight: 650; }
h1 { font-size: clamp(2rem, 5.2vw, 3.1rem); letter-spacing: -0.028em; }
h2 { font-size: clamp(1.4rem, 3.2vw, 1.9rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); }
code, kbd { font-family: var(--mono); font-size: .92em; background: var(--surface-quiet); padding: .08em .35em; border-radius: 4px; border: 1px solid var(--border); }
.shell { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.prose { max-width: 62ch; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--accent-text); padding: 10px 16px; z-index: 20; border-radius: 0 0 var(--radius) 0; }
.skip:focus { left: 0; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.site-header { border-bottom: 1px solid var(--border); padding: 18px 0; }
.site-header .shell { display: flex; align-items: baseline; gap: 14px 22px; flex-wrap: wrap; }
.wordmark { font-weight: 680; letter-spacing: -0.02em; font-size: 1.05rem; color: var(--text); text-decoration: none; }
.site-nav { display: flex; gap: 16px; flex-wrap: wrap; margin-left: auto; font-size: .95rem; }
.site-nav a[aria-current="page"] { font-weight: 650; text-decoration: none; color: var(--text); }
section { padding: 56px 0; border-bottom: 1px solid var(--border); }
section:last-of-type { border-bottom: 0; }
.section-sunken { background: var(--bg-sunken); }
.eyebrow { text-transform: uppercase; letter-spacing: .09em; font-size: .74rem; font-weight: 680; color: var(--text-muted); margin: 0 0 12px; }
.btn { display: inline-block; padding: 12px 18px; border-radius: var(--radius); font-weight: 650; text-decoration: none; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); }
.btn-primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0; }
.notice { background: var(--warn-bg); border: 1px solid var(--warn-border); color: var(--warn-text); padding: 12px 16px; border-radius: var(--radius); }
.placeholder { background: var(--warn-bg); border: 1px dashed var(--warn-border); color: var(--warn-text); padding: 2px 8px; border-radius: 6px; font-family: var(--mono); font-size: .9em; }
/* pricing */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 24px; }
.tier { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.tier.featured { border-color: var(--accent); }
.tier .amount { font-size: 2.1rem; font-weight: 700; letter-spacing: -0.03em; }
.tier .terms { color: var(--text-muted); font-size: .9rem; display: block; margin-bottom: 14px; }
.tier ul { padding-left: 1.2em; margin: 0 0 18px; }
.tier li { margin: 6px 0; }
.tier .btn { margin-top: auto; text-align: center; }
.caps { color: var(--text-muted); font-size: .92rem; }
/* download */
.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 24px; }
.download-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.checksums { width: 100%; border-collapse: collapse; font-size: .9rem; margin-top: 12px; }
.checksums th, .checksums td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border); vertical-align: top; }
.checksums code { word-break: break-all; }
.steps { padding-left: 1.3em; }
.steps li { margin: 8px 0; }
/* changelog */
.release { border-left: 3px solid var(--accent); padding-left: 18px; margin: 26px 0; }
.release time { color: var(--text-muted); font-size: .9rem; }
/* legal */
.legal h2 { margin-top: 36px; font-size: 1.25rem; }
.legal dl div { margin: 10px 0; }
.legal dt { font-weight: 650; }
.legal dd { margin: 0; }
.site-footer { border-top: 1px solid var(--border); padding: 32px 0 44px; color: var(--text-muted); font-size: .9rem; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
