/* ---------- Tokens ---------- */
:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --text: #141414;
  --muted: #5e5e5b;
  --faint: #8a8a86;
  --line: #e5e5e1;
  --line-strong: #d4d4cf;
  --accent: #157f3f;
  --accent-text: #ffffff;
  --code-bg: #f0f0ed;

  /* macOS system colours used by the app */
  --sys-green: #28b04f;
  --sys-orange: #f08a00;
  --sys-yellow: #e6b800;
  --sys-cyan: #2fa7d9;
  --sys-red: #ff3b30;

  --radius: 10px;
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f0f;
    --surface: #171717;
    --text: #ececea;
    --muted: #a3a39f;
    --faint: #75756f;
    --line: #262626;
    --line-strong: #363636;
    --accent: #3ccf72;
    --accent-text: #0b1a10;
    --code-bg: #1f1f1f;
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; }
button { font: inherit; color: inherit; }
code { font-family: var(--mono); font-size: .9em; background: var(--code-bg); padding: .1em .35em; border-radius: 5px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.i { width: 1em; height: 1em; flex: none; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.wordmark { font-weight: 650; letter-spacing: -0.02em; text-decoration: none; font-size: 17px; white-space: nowrap; }
.wordmark-sep { margin: 0 .45em; color: var(--faint); font-weight: 400; }
.wordmark-sub { font-weight: 500; color: var(--muted); }
.steps b { color: var(--text); font-weight: 600; }
@media (max-width: 420px) { .wordmark { font-size: 15px; } .nav { gap: 16px; } }
.nav { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.nav a { text-decoration: none; color: var(--muted); transition: color .15s; }
.nav a:hover { color: var(--text); }
.nav-icon .i { width: 18px; height: 18px; }

@media (max-width: 720px) {
  .nav a:not(.nav-icon):not([href="#download"]) { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding-top: 88px; padding-bottom: 24px; }
.eyebrow { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.hero h1 { font-size: clamp(40px, 7vw, 68px); letter-spacing: -0.035em; }
.lead { margin-top: 20px; max-width: 620px; font-size: clamp(18px, 2.2vw, 20px); color: var(--muted); line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
@media (max-width: 600px) { .hero { padding-top: 56px; } .section { padding-top: 72px; } }
.meta { margin-top: 18px; font-size: 13px; color: var(--faint); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 18px;
  border-radius: 8px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--text);
  font-size: 15px; font-weight: 500; text-decoration: none;
  transition: border-color .15s, background-color .15s;
}
.btn:hover { border-color: var(--faint); }
.btn-primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-primary:hover { background: color-mix(in srgb, var(--text) 85%, var(--bg)); border-color: transparent; }
.btn .i { width: 17px; height: 17px; }

/* ---------- Sections ---------- */
.section { padding-top: 96px; padding-bottom: 8px; }
.section + .section { border-top: 0; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section h2 { font-size: clamp(28px, 4vw, 38px); }
.section-head p, .split-text > p { margin-top: 14px; color: var(--muted); font-size: 17px; }
.note { margin-top: 20px; font-size: 14px; color: var(--faint); max-width: 680px; }
.kbd {
  font-family: var(--mono); font-size: .85em; font-weight: 600;
  padding: .05em .4em; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--surface);
}

/* ---------- Demo ---------- */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
@media (max-width: 960px) { .demo { grid-template-columns: 1fr; } }

.controls { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.seg {
  display: inline-flex; padding: 3px; gap: 2px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--surface);
}
.seg button {
  border: 0; background: none; cursor: pointer;
  padding: 5px 12px; border-radius: 6px; font-size: 13px; color: var(--muted);
}
.seg button:hover { color: var(--text); }
.seg button[aria-checked="true"] { background: var(--text); color: var(--bg); }

.screen-frame {
  border: 1px solid var(--line-strong);
  border-radius: 14px; padding: 8px; background: var(--surface);
}
.screen {
  position: relative; overflow: hidden; border-radius: 8px;
  aspect-ratio: 16 / 10;
  background: #2f4858;
  container-type: inline-size;
}
.wallpaper span { position: absolute; border-radius: 50%; }
.wallpaper span:nth-child(1) { width: 62%; aspect-ratio: 1; right: -14%; top: -30%; background: #e8a25a; }
.wallpaper span:nth-child(2) { width: 46%; aspect-ratio: 1; left: -10%; bottom: -36%; background: #d9d1bf; }
.wallpaper span:nth-child(3) { width: 18%; aspect-ratio: 1; left: 38%; top: 34%; background: #3f6a5b; }

.menubar {
  position: absolute; inset: 0 0 auto 0; height: 4.2cqw; min-height: 18px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.8cqw;
  background: rgba(20, 24, 28, .32);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  color: #fff; font-size: max(9px, 1.45cqw); z-index: 3;
}
.menubar-left, .menubar-right { display: flex; gap: 1.8cqw; align-items: center; white-space: nowrap; }
.menubar-left span { opacity: .9; }
.pir { font-weight: 600; padding: .15em .5em; border-radius: 4px; background: rgba(255,255,255,.18); }
@container (max-width: 520px) { .menubar-left span:nth-child(n+4) { display: none; } }

.popup-layer { position: absolute; inset: 0; z-index: 2; }

.replay {
  margin-top: 10px; border: 0; background: none; padding: 4px 0;
  font-size: 13px; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.replay:hover { color: var(--text); }

/* Event list */
.events { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
@media (min-width: 961px) { .events { margin-top: 46px; } }
.events li { border-bottom: 1px solid var(--line); }
.events li > span { display: block; padding: 12px 4px; color: var(--muted); }
.event-btn {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 11px 6px; border: 0; background: none; text-align: left; cursor: pointer;
  border-radius: 8px; transition: background-color .15s;
}
.event-btn:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }
.event-btn .i { width: 18px; height: 18px; color: var(--faint); }
.event-btn strong { display: block; font-weight: 550; font-size: 15px; }
.event-btn small { display: block; font-size: 13px; color: var(--muted); }
.event-btn[aria-pressed="true"] .i { color: var(--ev, var(--text)); }
.event-btn[aria-pressed="true"] strong { color: var(--text); }
.event-btn[aria-pressed="false"] strong { color: var(--muted); font-weight: 500; }

/* Styles explanation */
.styles-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line);
}
.styles-grid h3 { font-size: 17px; margin-bottom: 6px; }
.styles-grid p { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .styles-grid { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Popups (sized in container units so they scale with the screen) ---------- */
/* 1 "point" on the virtual 1000pt-wide screen = 0.1cqw */
.pop {
  --pt: 0.1cqw;
  position: absolute;
  font-family: var(--font);
  color: #1d1d1f;
  --secondary: rgba(0,0,0,.5);
  --tertiary: rgba(0,0,0,.3);
  --fill: rgba(0,0,0,.06);
  --stroke: rgba(0,0,0,.4);
}
/* On narrow screens, draw popups larger than true scale so they stay readable. */
@container (max-width: 560px) { .pop { --pt: 0.16cqw; } }
.pop.look-glass {
  background: rgba(246, 246, 246, .58);
  backdrop-filter: blur(calc(28 * var(--pt))) saturate(1.7);
  -webkit-backdrop-filter: blur(calc(28 * var(--pt))) saturate(1.7);
  box-shadow: 0 calc(8 * var(--pt)) calc(36 * var(--pt)) rgba(0,0,0,.25), inset 0 0 0 1px rgba(255,255,255,.35);
}
.pop.look-light {
  background: #fafafa;
  box-shadow: 0 calc(5 * var(--pt)) calc(28 * var(--pt)) rgba(0,0,0,.18), inset 0 0 0 .5px rgba(0,0,0,.08);
}
.pop.look-dark {
  background: #000;
  color: #f5f5f7;
  --secondary: rgba(255,255,255,.55);
  --tertiary: rgba(255,255,255,.3);
  --fill: rgba(255,255,255,.1);
  --stroke: rgba(255,255,255,.4);
  box-shadow: 0 calc(5 * var(--pt)) calc(28 * var(--pt)) rgba(0,0,0,.3), inset 0 0 0 1px rgba(255,255,255,.14);
}
.pop .title { font-family: var(--font-round); font-weight: 600; white-space: nowrap; }
.pop .subtitle { color: var(--secondary); font-weight: 500; white-space: nowrap; }
.pop .pct { font-family: var(--font-round); font-weight: 600; font-variant-numeric: tabular-nums; }
.pop .ev-icon { color: var(--ev); }
.pop .circle { display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--ev) 18%, transparent); flex: none; }

/* Classic */
.pop-classic {
  width: calc(210 * var(--pt)); height: calc(210 * var(--pt));
  left: 50%; bottom: calc(36 * var(--pt));
  border-radius: calc(44 * var(--pt));
  padding: calc(18 * var(--pt));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(10 * var(--pt));
  transform: translateX(-50%);
  transform-origin: 50% 100%;
}
.pop-classic .ev-icon { width: calc(60 * var(--pt)); height: calc(60 * var(--pt)); stroke-width: 1.8; }
.pop-classic .text { text-align: center; line-height: 1.25; }
.pop-classic .title { font-size: calc(19 * var(--pt)); }
.pop-classic .subtitle { font-size: calc(12 * var(--pt)); }
.pop-classic .batt { display: flex; align-items: center; gap: calc(8 * var(--pt)); }
.pop-classic .pct { font-size: calc(17 * var(--pt)); }

/* Island */
.pop-island {
  width: calc(390 * var(--pt)); height: calc(70 * var(--pt));
  left: 50%; top: calc(52 * var(--pt));
  border-radius: 999px;
  padding: 0 calc(20 * var(--pt)) 0 calc(13 * var(--pt));
  display: flex; align-items: center; gap: calc(12 * var(--pt));
  transform: translateX(-50%);
}
.pop-island .circle { width: calc(44 * var(--pt)); height: calc(44 * var(--pt)); }
.pop-island .ev-icon { width: calc(22 * var(--pt)); height: calc(22 * var(--pt)); }
.pop-island .text { flex: 1; min-width: 0; line-height: 1.25; }
.pop-island .title { font-size: calc(15 * var(--pt)); }
.pop-island .subtitle { font-size: calc(12 * var(--pt)); }
.pop-island .batt { display: flex; align-items: center; gap: calc(8 * var(--pt)); }
.pop-island .pct { font-size: calc(16 * var(--pt)); }

/* Detail card */
.pop-card {
  width: calc(320 * var(--pt));
  right: calc(14 * var(--pt)); top: calc(52 * var(--pt));
  border-radius: calc(28 * var(--pt));
  padding: calc(16 * var(--pt));
  display: flex; flex-direction: column; gap: calc(14 * var(--pt));
}
.pop-card .head { display: flex; align-items: center; gap: calc(10 * var(--pt)); }
.pop-card .circle { width: calc(36 * var(--pt)); height: calc(36 * var(--pt)); }
.pop-card .ev-icon { width: calc(18 * var(--pt)); height: calc(18 * var(--pt)); }
.pop-card .head .text { flex: 1; line-height: 1.2; }
.pop-card .caps { display: block; font-size: calc(9.5 * var(--pt)); font-weight: 700; letter-spacing: .08em; color: var(--secondary); }
.pop-card .title { font-size: calc(15 * var(--pt)); }
.pop-card .now { font-size: calc(11 * var(--pt)); color: var(--tertiary); align-self: flex-start; }
.pop-card .batt { display: flex; align-items: center; justify-content: space-between; }
.pop-card .pct { font-size: calc(42 * var(--pt)); font-weight: 700; line-height: 1; }
.pop-card .rows {
  display: flex; flex-direction: column; gap: calc(7 * var(--pt));
  padding: calc(12 * var(--pt)); border-radius: calc(14 * var(--pt)); background: var(--fill);
  font-size: calc(12 * var(--pt));
}
.pop-card .row { display: flex; align-items: center; gap: calc(8 * var(--pt)); }
.pop-card .row .i { width: calc(12 * var(--pt)); height: calc(12 * var(--pt)); color: var(--secondary); }
.pop-card .row span { color: var(--secondary); flex: 1; }
.pop-card .row b { font-weight: 500; }

/* Battery gauge (shared by popups and the panel) */
.gauge {
  --w: 50px; --h: 23px; --level: .5;
  position: relative; display: inline-flex; align-items: center; flex: none;
  width: var(--w); height: var(--h);
  border: max(1px, calc(var(--h) * .06)) solid var(--stroke, rgba(0,0,0,.4));
  border-radius: calc(var(--h) * .32);
  padding: calc(var(--h) * .1);
  margin-right: calc(var(--h) * .2);
}
.gauge::after {
  content: ""; position: absolute; left: 100%; top: 50%;
  width: calc(var(--h) * .12); height: calc(var(--h) * .36);
  margin-left: calc(var(--h) * .06); transform: translateY(-50%);
  border-radius: 0 2px 2px 0; background: var(--stroke, rgba(0,0,0,.4));
}
.gauge-fill {
  height: 100%; width: calc(var(--level) * 100%); min-width: 12%;
  border-radius: calc(var(--h) * .18);
  background: var(--tint, currentColor);
  transition: width .7s cubic-bezier(.3, .7, .2, 1);
}
.gauge-bolt {
  position: absolute; inset: 0; margin: auto;
  width: calc(var(--h) * .62); height: calc(var(--h) * .62);
  fill: #fff; stroke: rgba(0,0,0,.7); stroke-width: 1.4;
  display: none;
}
.gauge[data-charging] .gauge-bolt { display: block; }

/* Popup motion */
@media (prefers-reduced-motion: no-preference) {
  .pop-classic.enter { animation: classic-in .42s cubic-bezier(.2, .9, .25, 1.05) both; }
  .pop-island.enter { animation: island-in .55s cubic-bezier(.2, .9, .2, 1.04) both; }
  .pop-card.enter { animation: card-in .45s cubic-bezier(.2, .9, .25, 1) both; }
}
.pop.fade { animation: fade-in .3s ease both; }
@keyframes classic-in { from { opacity: 0; transform: translateX(-50%) translateY(calc(14 * var(--pt))) scale(.94); } }
@keyframes island-in { from { transform: translateX(-50%) translateY(calc(-150 * var(--pt))); } }
@keyframes card-in { from { opacity: 0; transform: translateX(calc(60 * var(--pt))); } }
@keyframes fade-in { from { opacity: 0; } }

/* ---------- Charger panel ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 64px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }

.facts { margin: 28px 0 0; }
.facts div { padding: 16px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 110px 1fr; gap: 16px; }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 600; font-size: 15px; }
.facts dd { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 520px) { .facts div { grid-template-columns: 1fr; gap: 4px; } }

.split-visual { display: flex; flex-direction: column; align-items: center; }
.caption { margin-top: 12px; font-size: 13px; color: var(--faint); }

.panel {
  --p-text: #1d1d1f; --p-secondary: rgba(0,0,0,.52); --p-fill: rgba(0,0,0,.055);
  --stroke: rgba(0,0,0,.4);
  width: 100%; max-width: 380px;
  padding: 14px;
  display: flex; flex-direction: column; gap: 12px;
  background: #f4f4f3; color: var(--p-text);
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.1);
  box-shadow: 0 18px 50px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.06);
  font-size: 12px; line-height: 1.35;
}
@media (prefers-color-scheme: dark) {
  .panel {
    --p-text: #f2f2f2; --p-secondary: rgba(255,255,255,.55); --p-fill: rgba(255,255,255,.07);
    --stroke: rgba(255,255,255,.45);
    background: #232323; border-color: rgba(255,255,255,.1);
    box-shadow: 0 18px 50px rgba(0,0,0,.5);
  }
}
.panel-box { background: var(--p-fill); border-radius: 12px; padding: 12px; margin: 0; }
.panel .caps { font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--p-secondary); }
.panel-header { display: flex; flex-direction: column; gap: 10px; }
.panel-title-row { display: flex; align-items: center; gap: 10px; }
.badge-icon { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.badge-icon .i { width: 18px; height: 18px; }
.tint-green { color: var(--sys-green); background: color-mix(in srgb, var(--sys-green) 18%, transparent); }
.tint-bg-green { background: var(--sys-green); }
.panel-title { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.panel-title strong { font-family: var(--font-round); font-size: 15px; font-weight: 600; }
.panel-title .sub { font-size: 11px; color: var(--p-secondary); }
.panel-watts { font-family: var(--font-round); font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.panel-batt { display: flex; align-items: center; gap: 10px; }
.panel-batt .pct { font-family: var(--font-round); font-size: 15px; font-weight: 600; }
.panel-status { margin-left: auto; font-size: 11px; color: var(--p-secondary); white-space: nowrap; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile { background: var(--p-fill); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 3px; }
.tile-label { display: flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 600; color: var(--p-secondary); }
.tile-label .i { width: 11px; height: 11px; }
.tile-value { font-family: var(--font-round); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }

.panel-tabs { display: grid; grid-template-columns: repeat(3, 1fr); padding: 2px; border-radius: 7px; background: var(--p-fill); }
.panel-tabs button {
  border: 0; background: none; cursor: pointer; padding: 3px 0; border-radius: 5px;
  font-size: 12px; color: var(--p-text);
}
.panel-tabs button[aria-selected="true"] { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.14); font-weight: 500; }
@media (prefers-color-scheme: dark) {
  .panel-tabs button[aria-selected="true"] { background: rgba(255,255,255,.2); box-shadow: none; }
}

.rows { display: flex; flex-direction: column; gap: 7px; }
.rows div { display: flex; justify-content: space-between; gap: 12px; }
.rows dt { color: var(--p-secondary); white-space: nowrap; }
.rows dd { margin: 0; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.panel-caption { margin: 10px 0 6px 4px; }
.profiles { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.profiles li { display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.profiles .i { width: 14px; height: 14px; padding: 2px; border-radius: 50%; border: 1.3px solid var(--p-secondary); color: transparent; opacity: .6; }
.profiles li.active .i { background: var(--sys-green); border-color: var(--sys-green); color: #fff; opacity: 1; stroke-width: 3.5; }
.profiles b { font-weight: 500; }
.profiles span { margin-left: auto; color: var(--p-secondary); }
.profiles em { font-style: normal; font-weight: 600; min-width: 44px; text-align: right; }

.panel-footer { display: flex; align-items: center; gap: 4px; color: var(--p-secondary); font-size: 11px; font-weight: 500; }
.panel-footer > * { display: inline-flex; align-items: center; gap: 4px; padding: 4px 7px; }
.panel-footer button { border: 0; background: none; color: inherit; cursor: pointer; border-radius: 5px; font-size: 11px; font-weight: 500; }
.panel-footer button:hover { color: var(--p-text); background: var(--p-fill); }
.panel-footer .i { width: 12px; height: 12px; }
.panel-footer .spacer { flex: 1; padding: 0; }

/* ---------- Settings ---------- */
.settings {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 48px;
}
.settings li { display: flex; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.settings .i { width: 20px; height: 20px; color: var(--muted); margin-top: 2px; stroke-width: 1.75; }
.settings h3 { font-size: 16px; letter-spacing: -0.01em; }
.settings p { margin-top: 4px; color: var(--muted); font-size: 15px; }
@media (max-width: 720px) { .settings { grid-template-columns: 1fr; } }

/* ---------- Download ---------- */
.download {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
  padding: 40px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
}
.download > div > p { margin-top: 12px; color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.steps li { display: flex; gap: 14px; }
.steps li > span {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 600; border: 1px solid var(--line-strong);
}
.steps p { color: var(--muted); padding-top: 1px; }
@media (max-width: 820px) { .download { grid-template-columns: 1fr; padding: 28px 22px; gap: 32px; } }

/* ---------- About ---------- */
.about { padding-bottom: 96px; }
.about p { margin-top: 14px; max-width: 640px; color: var(--muted); font-size: 17px; }
.about a { color: var(--text); text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 13px; }
.footer-inner { display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.footer-inner a { text-underline-offset: 3px; }
.muted { color: var(--faint); }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.notfound h1 { font-size: clamp(36px, 6vw, 56px); }
.notfound p { color: var(--muted); }
