:root {
  color-scheme: light;
  --bg: #f7f6f3;
  --surface: #ffffff;
  --fill: #eceae3;
  --ink: #1b1b1a;
  --muted: #5f5e5a;
  --line: #e3e1da;
  --line-strong: #c9c6bc;
  --accent: #c2410c;
  --accent-soft: #fdece3;
  --accent-ink: #7c2d12;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #161615;
  --surface: #1f1f1d;
  --fill: #2b2a27;
  --ink: #f1efe9;
  --muted: #a8a69d;
  --line: #2e2d2a;
  --line-strong: #4a4842;
  --accent-soft: #3a2218;
  --accent-ink: #f5b494;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; text-decoration: none; margin-right: auto; }
nav { display: flex; align-items: center; gap: 4px; }
nav a { text-decoration: none; padding: 8px 12px; border-radius: 8px; color: var(--muted); font-weight: 500; font-size: 15px; }
nav a:hover { color: var(--ink); background: var(--fill); }
nav a.navcta { background: var(--ink); color: var(--bg); margin-left: 6px; }
nav a.navcta:hover { background: var(--ink); opacity: 0.88; }
.iconbtn { width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.iconbtn .sun { display: none; }
.iconbtn[data-mode='dark'] .sun { display: block; }
.iconbtn[data-mode='dark'] .moon { display: none; }
@media (max-width: 640px) { nav a:not(.navcta) { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-weight: 500; text-decoration: none; cursor: pointer; }
.btn.big { height: 52px; padding: 0 26px; font-size: 17px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 72px 0 48px; }
.eyebrow { color: var(--accent-ink); background: var(--accent-soft); display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; margin-bottom: 20px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 600; }
.lead { margin-top: 20px; font-size: 19px; color: var(--muted); max-width: 34em; }
.lead strong { color: var(--ink); font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.caption { margin-top: 14px; font-size: 14px; color: var(--muted); font-family: var(--mono); }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding-top: 44px; gap: 36px; } }

/* the live demo window */
.mock { position: relative; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 70px -28px rgba(120, 40, 10, 0.45); transition: box-shadow 0.3s; }
.mock:hover { box-shadow: 0 36px 80px -26px rgba(194, 65, 12, 0.5); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); display: block; }
.mock-bar span { margin-left: 8px; font-weight: 500; }
.mock-bar em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--accent); cursor: pointer; text-decoration: underline; }
.mock-body { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.mock-url { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 6px 6px 6px 12px; font: 13px var(--mono); overflow: hidden; white-space: nowrap; }
.mock-url .dim { color: var(--muted); }
.mock-url > span { overflow: hidden; text-overflow: ellipsis; }
.caret { display: inline-block; width: 1px; height: 1.1em; background: var(--ink); margin-left: 1px; vertical-align: text-bottom; animation: blink 1s steps(2) infinite; }
.mock-url b { background: var(--accent); color: #fff; font: 500 13px var(--sans); padding: 7px 12px; border-radius: 6px; flex: none; transition: transform 0.15s, filter 0.15s; }
.mock-url b.press { transform: scale(0.92); filter: brightness(1.15); }
.mock-row { display: flex; gap: 14px; }
.mock-frame { position: relative; flex: 1; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: repeating-linear-gradient(135deg, var(--fill) 0 12px, var(--line) 12px 24px); }
.scene { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s;
  background: radial-gradient(circle at var(--sx, 30%) 36%, hsl(var(--h2, 45) 100% 72%) 0 8%, transparent 9%), linear-gradient(180deg, hsl(var(--h, 20) 75% 62%) 0%, hsl(var(--h3, 260) 55% 36%) 100%); }
.scene::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 36%; background: hsl(var(--h3, 260) 40% 16%);
  clip-path: polygon(0 62%, 12% 42%, 26% 60%, 41% 30%, 58% 56%, 72% 34%, 88% 56%, 100% 44%, 100% 100%, 0 100%); }
.demo--loaded .scene { opacity: 1; }
.scan { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%); background-size: 250% 100%; animation: scan 1.4s linear infinite; }
.demo--loaded .scan { display: none; }
.mock-crop { position: absolute; top: 0; bottom: 0; left: var(--cx, 34%); width: 31.6%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--accent), 0 0 0 999px rgba(27, 27, 26, 0.62);
  opacity: 0; transform: scaleX(2.2); transform-origin: center; transition: opacity 0.4s, transform 0.55s cubic-bezier(.2, .8, .2, 1); }
.demo--cropped .mock-crop { opacity: 1; transform: none; }
.mock-time { position: absolute; left: 8px; bottom: 8px; background: rgba(17, 17, 17, 0.82); color: #fff; font: 500 11px var(--mono); padding: 2px 7px; border-radius: 5px; }
.mock-side { width: 30%; display: flex; flex-direction: column; gap: 10px; }
.mock-chip { align-self: flex-start; background: var(--fill); color: var(--muted); font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 6px; transition: background 0.3s, color 0.3s; }
.demo--cropped .mock-chip { background: var(--accent-soft); color: var(--accent-ink); }
.mock-stat { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); }
.mock-stat b { font: 500 17px var(--mono); color: var(--ink); transition: color 0.3s; }
.mock-stat b.flash { color: var(--accent); }
.mock-track { position: relative; height: 58px; margin-top: 22px; border-radius: 8px; touch-action: none; cursor: ew-resize; opacity: 0.35; transition: opacity 0.5s; user-select: none; }
.demo--loaded .mock-track { opacity: 1; }
.thumbs { display: flex; height: 100%; border-radius: 8px; overflow: hidden; }
.thumbs i { flex: 1; background: linear-gradient(180deg, hsl(var(--c) 70% 62%), hsl(calc(var(--c) + 210) 50% 36%)); border-right: 1px solid rgba(255, 255, 255, 0.25); }
.d-dim { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--surface) 78%, transparent); pointer-events: none; }
.d-sel { position: absolute; top: -3px; bottom: -3px; border: 3px solid var(--accent); border-radius: 8px; background: rgba(194, 65, 12, 0.08); pointer-events: none; }
.d-hd { position: absolute; top: 50%; width: 14px; height: 36px; margin: -18px 0 0 -7px; border-radius: 4px; background: var(--accent); cursor: ew-resize; outline-offset: 3px; transition: transform 0.15s; }
.d-hd:hover, .d-hd.drag { transform: scaleY(1.12) scaleX(1.15); }
.d-tag { position: absolute; top: -34px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); font: 500 11px var(--mono); padding: 2px 7px; border-radius: 5px; white-space: nowrap; pointer-events: none; }
#demo-hs .d-tag { transform: translateX(-85%); } #demo-he .d-tag { transform: translateX(-15%); }
.mock-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.mock-dl { position: relative; overflow: hidden; background: var(--ink); color: var(--bg); padding: 9px 16px; border-radius: 8px; font-weight: 500; cursor: pointer; flex: none; min-width: 132px; text-align: center; }
.mock-dl .fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent); }
.mock-dl span { position: relative; color: #fff; mix-blend-mode: normal; }
.mock-dl:not(.busy):not(.done) span { color: var(--bg); }
.mock-dl.done { background: #1e5b33; }
.mock-dl.done .fill { width: 100%; background: #1e5b33; }
@keyframes blink { to { visibility: hidden; } }
@keyframes scan { from { background-position: 150% 0; } to { background-position: -100% 0; } }

/* life: glow, headline, marquee, numbers, reveal */
main { position: relative; }
.glow { position: absolute; inset: 0 0 auto 0; height: 760px; overflow: hidden; pointer-events: none; z-index: -1; }
.glow i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.38; will-change: transform; }
.glow i:nth-child(1) { width: 460px; height: 460px; left: -120px; top: -80px; background: #f6a46e; animation: drift1 20s ease-in-out infinite; }
.glow i:nth-child(2) { width: 380px; height: 380px; right: 4%; top: 40px; background: #ffc9a3; animation: drift2 24s ease-in-out infinite; }
.glow i:nth-child(3) { width: 320px; height: 320px; right: 30%; top: 360px; background: #e9835a; opacity: 0.22; animation: drift3 28s ease-in-out infinite; }
:root[data-theme='dark'] .glow i { opacity: 0.2; }
:root[data-theme='dark'] .glow i:nth-child(3) { opacity: 0.12; }
@keyframes drift1 { 50% { transform: translate(120px, 80px) scale(1.15); } }
@keyframes drift2 { 50% { transform: translate(-100px, 100px) scale(0.9); } }
@keyframes drift3 { 50% { transform: translate(-80px, -60px) scale(1.2); } }
.trim { background: linear-gradient(var(--accent-soft), var(--accent-soft)) no-repeat 0 90% / 0% 36%; animation: hl 1.1s 0.5s ease-out forwards; border-radius: 4px; padding: 0 2px; }
@keyframes hl { to { background-size: 100% 36%; } }
.caption-note { margin-top: 6px; font-size: 13px; color: var(--muted); }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 30; }
.progress i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.top { transition: box-shadow 0.25s; }
.top.scrolled { box-shadow: 0 10px 30px -22px rgba(0, 0, 0, 0.6); }

.marquee { padding: 8px 0 24px; }
.marquee-label { font-size: 13px; letter-spacing: 0.04em; color: var(--muted); text-align: center; margin-bottom: 12px; }
.marquee-view { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 44px; width: max-content; animation: marquee 38s linear infinite; font-size: 20px; font-weight: 500; color: var(--muted); }
.marquee-view:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { display: flex; flex-direction: column; gap: 4px; text-align: center; }
.stat b { font-size: clamp(34px, 5vw, 52px); font-weight: 600; letter-spacing: -0.03em; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 14px; }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.in { opacity: 1; transform: none; }
.card, .way { position: relative; overflow: hidden; }
.card::before, .way::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.25s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(194, 65, 12, 0.11), transparent 60%); }
.card:hover::before, .way:hover::before { opacity: 1; }
.card, .way, .dl { transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s; }
.card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 18px 36px -24px rgba(194, 65, 12, 0.5); }
.steps .n { transition: transform 0.3s, background 0.3s; }
.steps li:hover .n { transform: scale(1.12) rotate(-6deg); background: var(--accent); color: #fff; }
.btn { transition: transform 0.15s, filter 0.15s, background 0.15s, border-color 0.15s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }

@media (prefers-reduced-motion: reduce) {
  .glow i, .marquee-track, .trim, .scan, .caret { animation: none !important; }
  .trim { background-size: 100% 36%; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover, .btn:hover { transform: none; }
  .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track span[aria-hidden='true'] { display: none; }
}

/* sections */
.section { padding: 64px 0; }
.section h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 600; margin-bottom: 32px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 15px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 800px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.n { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--bg); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; }
.steps h3 { font-size: 18px; margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: 15px; }

/* downloads */
.dl-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.dl-head h2 { margin: 0; }
.ver { font-family: var(--mono); font-weight: 500; }
.dl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .dl-grid { grid-template-columns: minmax(0, 1fr); } }
.dl { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
.dl:hover { border-color: var(--accent); transform: translateY(-2px); }
.dl.mine { border: 2px solid var(--accent); padding: 17px 19px; }
.dl .os { font-size: 18px; font-weight: 600; }
.dl .what { color: var(--muted); font-size: 14px; }
.dl .meta { margin-top: 10px; font: 13px var(--mono); color: var(--accent-ink); }
.dl.more { background: transparent; border-style: dashed; }
@media (prefers-reduced-motion: reduce) { .dl { transition: none; } .dl:hover { transform: none; } }

.req { margin-top: 28px; }
.req > p { margin-bottom: 14px; }
.cmds { display: grid; gap: 8px; margin-top: 10px; }
.cmd { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.cmd b { flex: none; width: 76px; font-size: 13px; color: var(--muted); font-weight: 500; }
.cmd code { flex: 1; min-width: 0; font: 13px var(--mono); overflow-x: auto; white-space: nowrap; }
.cmd button { flex: none; height: 32px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); cursor: pointer; font-size: 13px; font-weight: 500; }
.cmd[hidden] { display: none; }
.req details { margin-top: 10px; }
.req summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.note { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); font-size: 14px; }
code.inline { font: 12.5px var(--mono); }

/* faq + closing */
.narrow { max-width: 760px; }
details { border-top: 1px solid var(--line); padding: 16px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 500; font-size: 17px; }
details p { margin-top: 10px; color: var(--muted); }
.final { text-align: center; }
.final h2 { margin-bottom: 24px; }

.foot { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* two ways to use it */
.sect-lead { margin: -16px 0 28px; color: var(--muted); font-size: 18px; max-width: 40em; }
.ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 800px) { .ways { grid-template-columns: minmax(0, 1fr); } }
.way { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.way.best { border: 2px solid var(--accent); padding: 25px; }
.way h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.way .btn { align-self: flex-start; margin-top: auto; }
.badge { position: absolute; top: -12px; left: 22px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 12px; border-radius: 999px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--muted); font-size: 15px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ''; position: absolute; left: 3px; top: 0.45em; width: 11px; height: 6px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.way-note { font-size: 14px; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 16px 20px; margin-bottom: 18px; border: 1px dashed var(--line-strong); border-radius: 14px; }
.caption-note { margin-top: 6px; font-size: 13px; color: var(--muted); }
nav a.navcta.alt { background: var(--accent); color: #fff; margin-left: 4px; }
nav a.navcta.alt:hover { background: var(--accent); filter: brightness(1.08); opacity: 1; }
[hidden] { display: none !important; }

/* support */
.support-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 32px; align-items: center; padding: 36px; border-radius: 18px; border: 1px solid var(--line);
  background: linear-gradient(135deg, color-mix(in srgb, #ffdd00 14%, var(--surface)), var(--surface) 60%); }
@media (max-width: 800px) { .support-card { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; padding: 28px 22px; } }
.cup { color: var(--ink); animation: bob 5s ease-in-out infinite; }
.cup .steam { stroke: var(--muted); stroke-width: 4; opacity: 0; animation: steam 3s ease-in-out infinite; }
.cup .s2 { animation-delay: 0.9s; } .cup .s3 { animation-delay: 1.8s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(8px); } 40% { opacity: 0.7; } 100% { opacity: 0; transform: translateY(-10px); } }
@keyframes bob { 50% { transform: translateY(-5px) rotate(-2deg); } }
.support-copy h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 10px; }
.support-copy p { color: var(--muted); margin-bottom: 18px; max-width: 34em; }
.btn.bmc { background: #ffdd00; border-color: #ffdd00; color: #1b1b1a; font-weight: 600; }
.btn.bmc:hover { filter: brightness(0.96); }
.qr { margin: 0; text-align: center; }
.qr img { display: block; border-radius: 12px; background: #fff; border: 1px solid var(--line); padding: 6px; }
.qr figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .cup, .cup .steam { animation: none !important; } .cup .steam { opacity: 0.6; } }

/* header on small screens: keep every button on one line and inside the screen */
.bar { min-width: 0; }
.brand { flex: none; }
nav { flex-wrap: nowrap; min-width: 0; }
nav a { white-space: nowrap; display: inline-flex; align-items: center; }
.iconbtn { flex: none; }
@media (max-width: 640px) {
  .bar { gap: 8px; }
  nav { gap: 4px; }
  nav a.navcta { padding: 8px 12px; font-size: 14px; line-height: 1.2; }
  nav a.navcta.alt { margin-left: 0; }
  .iconbtn { width: 36px; height: 36px; }
}
@media (max-width: 420px) {
  .brand-name { display: none; }
}

/* install commands: let the row shrink to the screen; long commands scroll inside their box */
.cmds { grid-template-columns: minmax(0, 1fr); }
.cmd { min-width: 0; }
@media (max-width: 520px) {
  .cmd { flex-wrap: wrap; gap: 6px 10px; padding: 10px; }
  .cmd b { width: auto; }
  .cmd code { flex: 1 1 100%; order: 3; padding: 8px 10px; background: var(--surface); border-radius: 8px; }
  .cmd button { margin-left: auto; }
}
