/* Zema website – one stylesheet for the home page, the guide and the download wizard.
   Dark like the app: tokens first. */
@font-face { font-family: "Montserrat"; src: url("../fonts/Montserrat.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Noto Sans Ethiopic"; src: url("../fonts/NotoSansEthiopic.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+1200-139F, U+2D80-2DDF, U+AB00-AB2F; }

:root {
  color-scheme: dark;
  --bg: #0a0a10;
  --bg-2: #0f0f17;
  --surface: rgb(255 255 255 / 0.04);
  --surface-2: rgb(255 255 255 / 0.07);
  --line: rgb(255 255 255 / 0.08);
  --line-2: rgb(255 255 255 / 0.14);
  --text: #ededf3;
  --muted: rgb(237 237 245 / 0.66);
  --faint: rgb(237 237 245 / 0.42);
  --accent: #8b8fff;
  --accent-strong: #7c80ff;
  --accent-rgb: 124 128 255;
  --on-accent: #fff;
  --live: #ff9a3c;
  --gold: #f2c46d;
  --ok: #3ccf8e;
  --warn: #f5c469;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 30px 80px rgb(0 0 0 / 0.45), 0 0 0 1px rgb(255 255 255 / 0.06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", "Noto Sans Ethiopic", sans-serif;
  --head: "Montserrat", var(--font);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #b4b6ff; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
code, kbd { font-family: var(--mono); font-size: 0.88em; }
code { background: var(--surface-2); padding: 0.12em 0.4em; border-radius: 6px; border: 1px solid var(--line); }
kbd { display: inline-block; min-width: 1.7em; text-align: center; padding: 0.08em 0.45em; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line-2); border-bottom-width: 2px; font-size: 0.82em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.eth { font-family: "Noto Sans Ethiopic", var(--font); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent-strong); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 11px; border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--text); font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer; transition: background 0.15s, border-color 0.15s, transform 0.1s; }
.btn:hover { background: rgb(255 255 255 / 0.11); color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent-strong); border-color: transparent; color: var(--on-accent); box-shadow: 0 8px 26px rgb(var(--accent-rgb) / 0.35); }
.btn.primary:hover { background: #8f93ff; }
.btn.big { height: 54px; padding: 0 26px; font-size: 16.5px; border-radius: 13px; }
.btn.sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.btn.ghost { background: transparent; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.btn svg { flex: none; }

/* ---------------------------------------------------------------- header */
.top { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  background: rgb(10 10 16 / 0.72); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 800 19px/1 var(--head); letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand:hover { color: var(--text); }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 550; font-size: 15px; padding: 8px 12px; border-radius: 9px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface); }
.top .grow { flex: 1; }
@media (max-width: 720px) { .nav { display: none; } .top .btn .long { display: none; } }

/* ---------------------------------------------------------------- home: hero */
.hero { position: relative; padding: clamp(48px, 9vw, 96px) 0 0; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 820px; z-index: -1;
  background: radial-gradient(40% 50% at 20% 30%, rgb(110 100 255 / 0.32), transparent 70%), radial-gradient(35% 45% at 80% 20%, rgb(20 184 166 / 0.16), transparent 70%), radial-gradient(40% 50% at 60% 70%, rgb(168 85 247 / 0.16), transparent 70%); }
.hero-text { text-align: center; max-width: 820px; margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.eyebrow b { font-family: "Noto Sans Ethiopic", var(--font); color: var(--gold); font-weight: 700; background: rgb(242 196 109 / 0.12); padding: 2px 9px; border-radius: 99px; }
.hero h1 { font-size: clamp(36px, 6.2vw, 68px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 18px; }
.hero h1 .grad { background: linear-gradient(92deg, #a6a9ff, #d7a7ff 50%, #f2c46d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(17px, 2.1vw, 20px); color: var(--muted); max-width: 680px; margin: 0 auto 30px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-meta { margin-top: 16px; color: var(--faint); font-size: 14px; min-height: 22px; }
.shots { position: relative; margin: clamp(40px, 7vw, 72px) auto 0; width: min(1240px, 100% - 2 * var(--gutter)); }
.frame { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); background: #000; }
.frame img { width: 100%; height: auto; }
.shots .main { transform: perspective(2200px) rotateX(4deg); transform-origin: 50% 100%; }
.shots .float { position: absolute; width: 34%; right: -2%; bottom: -8%; border: 1px solid var(--line-2); }
.shots .float.left { right: auto; left: -2%; width: 15%; bottom: -12%; border-radius: 22px; }
@media (max-width: 760px) { .shots .float { display: none; } .shots .main { transform: none; } }
.shots-fade { height: 120px; margin-top: -60px; position: relative; background: linear-gradient(transparent, var(--bg)); }

/* ---------------------------------------------------------------- home: sections */
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { text-align: center; margin-inline: auto; }
.kicker { display: block; color: var(--accent); font: 700 13px/1 var(--head); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
.section h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -0.025em; }
.section-head p { color: var(--muted); font-size: 18px; }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.feature { padding: 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.feature .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; background: rgb(var(--accent-rgb) / 0.14); color: var(--accent); }
.feature h3 { font-size: 17.5px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 15px; margin: 0; }
.tour { display: grid; gap: clamp(56px, 8vw, 96px); }
.tour-item { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.tour-item.flip { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); }
.tour-item.flip .tour-text { order: 2; }
.tour-text h3 { font-size: clamp(22px, 2.8vw, 30px); font-weight: 800; }
.tour-text p { color: var(--muted); font-size: 17px; }
.tour-text ul { margin: 0 0 1em; padding-left: 0; list-style: none; display: grid; gap: 8px; color: var(--muted); }
.tour-text li { display: flex; gap: 10px; }
.tour-text li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 10px; border-radius: 50%; background: var(--accent); }
.phone { width: min(300px, 70%); margin-inline: auto; border-radius: 34px; overflow: hidden; border: 8px solid #1d1d26; box-shadow: var(--shadow); }
@media (max-width: 860px) { .tour-item, .tour-item.flip { grid-template-columns: minmax(0, 1fr); } .tour-item.flip .tour-text { order: 0; } }
.langs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.langs span { padding: 6px 14px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); font-size: 14.5px; }
.cta { text-align: center; padding: clamp(40px, 6vw, 64px) var(--gutter); border-radius: 26px; border: 1px solid var(--line-2);
  background: radial-gradient(60% 120% at 50% 0%, rgb(var(--accent-rgb) / 0.22), transparent 70%), var(--surface); }
.cta h2 { font-size: clamp(26px, 3.6vw, 38px); }
.cta p { color: var(--muted); font-size: 17px; max-width: 560px; margin: 0 auto 26px; }
.faq { display: grid; gap: 10px; max-width: 820px; margin-inline: auto; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--faint); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 20px 16px; color: var(--muted); }
.faq details > div p:last-child { margin: 0; }

/* facts under the hero */
.facts-band { border-block: 1px solid var(--line); background: var(--bg-2); }
.facts { list-style: none; margin-block: 0; padding: 26px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.facts li { display: grid; gap: 4px; align-content: start; }
.facts b { font: 800 22px/1.15 var(--head); letter-spacing: -0.02em; color: var(--text); }
.facts b.eth { font-family: "Noto Sans Ethiopic", var(--font); color: var(--gold); }
.facts span { color: var(--muted); font-size: 14.5px; line-height: 1.45; }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .facts { grid-template-columns: minmax(0, 1fr); gap: 16px; } }

/* how it works */
.how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.how .section-head { margin-bottom: 28px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-left: 52px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font: 800 15px/1 var(--head); color: var(--accent); background: rgb(var(--accent-rgb) / 0.15); border: 1px solid rgb(var(--accent-rgb) / 0.35); }
.steps b { display: block; font: 700 18px/1.3 var(--head); margin: 5px 0 4px; }
.steps p { color: var(--muted); margin: 0; }
.slide-demo { margin: 0; }
.slide-mock { aspect-ratio: 16 / 9; border-radius: 14px; box-shadow: var(--shadow); display: grid; align-content: center; justify-items: center; gap: 0.4em; padding: 6%;
  font-size: clamp(15px, 2.6vw, 30px); text-align: center; container-type: inline-size;
  background: radial-gradient(70% 90% at 30% 20%, #2c4fb8, transparent 70%), radial-gradient(60% 80% at 80% 90%, #4b2a9a, transparent 70%), #0b1640; }
.slide-mock p { margin: 0; line-height: 1.2; text-shadow: 0 2px 12px rgb(0 0 0 / 0.45); }
.slide-mock .l1 { font-size: 7.4cqi; font-weight: 700; color: #fff; }
.slide-mock .l2 { font-size: 5cqi; color: #cfd8ff; font-style: italic; }
.slide-mock .l3 { font-size: 5.6cqi; font-weight: 600; color: var(--gold); }
.slide-demo figcaption { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; margin-top: 16px; color: var(--muted); font-size: 14px; }
.slide-demo .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
.dot.d1 { background: #fff; } .dot.d2 { background: #cfd8ff; } .dot.d3 { background: var(--gold); }
@media (max-width: 860px) { .how { grid-template-columns: minmax(0, 1fr); } }

/* made for Ge'ez */
.geez { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px; margin-bottom: 28px; }
.geez article { padding: 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.geez article h3 { font-size: 18px; margin-bottom: 8px; }
.geez article p { color: var(--muted); font-size: 15.5px; }
.geez article p:last-child { margin: 0; }
.geez .geez-main { grid-row: span 3; padding: 28px; background: radial-gradient(80% 60% at 0% 0%, rgb(var(--accent-rgb) / 0.16), transparent 70%), var(--surface); border-color: rgb(var(--accent-rgb) / 0.3); }
.geez .geez-main h3 { font-size: clamp(21px, 2.4vw, 26px); font-weight: 800; }
.geez .geez-main p { font-size: 16.5px; }
.geez .geez-main a { font-weight: 600; }
.geez .geez-main { display: flex; flex-direction: column; }
.translit { margin: auto 0 18px; padding: 14px 16px; border-radius: var(--radius); background: rgb(0 0 0 / 0.25); border: 1px solid var(--line); display: grid; gap: 8px; }
.translit div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: baseline; }
.translit dt { font-weight: 600; color: var(--text); }
.translit dd { margin: 0; color: #cfd8ff; font-style: italic; }
@media (max-width: 860px) { .geez { grid-template-columns: minmax(0, 1fr); } .geez .geez-main { grid-row: auto; } }
.tour > .section-head { margin-bottom: 0; }

/* ---------------------------------------------------------------- footer */
.foot { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--faint); font-size: 14px; }
.foot .wrap { display: flex; gap: 20px 32px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }

/* ---------------------------------------------------------------- the guide */
.doc { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; padding: 32px 0 80px; }
.toc { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 100px); overflow: auto; padding-right: 6px; scrollbar-width: thin; }
.search { position: relative; margin-bottom: 16px; }
.search input { width: 100%; height: 40px; padding: 0 12px 0 36px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: 15px var(--font); }
.search input:focus { outline: none; border-color: rgb(var(--accent-rgb) / 0.8); }
.search svg { position: absolute; left: 11px; top: 11px; color: var(--faint); pointer-events: none; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc > nav > ol > li { margin-bottom: 14px; }
.toc .grp { display: block; font: 700 12px/1 var(--head); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin: 0 0 6px 10px; }
.toc a { display: block; padding: 5px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 14.5px; line-height: 1.35; }
.toc a:hover { color: var(--text); background: var(--surface); }
.toc a.on { color: var(--text); background: rgb(var(--accent-rgb) / 0.16); }
.toc-mobile { display: none; }
.article { min-width: 0; max-width: 780px; }
.article h1 { font-size: clamp(32px, 4.4vw, 44px); font-weight: 800; letter-spacing: -0.025em; }
.article .intro { color: var(--muted); font-size: 18px; }
.article .updated { color: var(--faint); font-size: 14px; margin-top: -6px; }
.article section { scroll-margin-top: 84px; padding-top: 22px; }
.article h2 { font-size: 27px; font-weight: 800; padding-top: 26px; margin-top: 18px; border-top: 1px solid var(--line); }
.article section:first-of-type h2 { border-top: 0; margin-top: 0; }
.article h3 { font-size: 19px; margin-top: 30px; scroll-margin-top: 84px; }
.article p, .article li { color: rgb(237 237 245 / 0.84); }
.article ul, .article ol { padding-left: 22px; margin: 0 0 1.1em; }
.article li { margin-bottom: 6px; }
.article b, .article strong { color: var(--text); }
.article figure { margin: 22px 0 26px; }
.article figure img { border-radius: 12px; box-shadow: var(--shadow); }
.article figcaption { color: var(--faint); font-size: 14px; margin-top: 10px; }
.note { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: rgb(var(--accent-rgb) / 0.09); border: 1px solid rgb(var(--accent-rgb) / 0.28); margin: 0 0 1.2em; }
.note.warn { background: rgb(245 196 105 / 0.08); border-color: rgb(245 196 105 / 0.3); }
.note > :last-child { margin-bottom: 0; }
.note .ni { flex: none; font-weight: 800; color: var(--accent); }
.note.warn .ni { color: var(--warn); }
.table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 15px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--faint); font-weight: 650; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
.table-wrap { overflow-x: auto; }
.steps-list { counter-reset: s; list-style: none; padding: 0 !important; }
.steps-list > li { counter-increment: s; position: relative; padding-left: 42px; margin-bottom: 14px; }
.steps-list > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: rgb(var(--accent-rgb) / 0.18); color: var(--accent); font: 700 14px/1 var(--head); }
.hidden-by-search { display: none; }
mark.hit { background: rgb(242 196 109 / 0.35); color: inherit; border-radius: 3px; padding: 0 1px; }
.no-hits { display: none; padding: 24px; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
@media (max-width: 900px) {
  .doc { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 16px; }
  .toc { display: none; }
  .toc-mobile { display: block; margin-bottom: 20px; }
  .toc-mobile details { border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); }
  .toc-mobile summary { cursor: pointer; padding: 12px 16px; font-weight: 650; }
  .toc-mobile .toc-inner { padding: 4px 8px 12px; max-height: 60vh; overflow: auto; }
  .toc-mobile .toc { display: block; position: static; max-height: none; }
}

/* ---------------------------------------------------------------- download wizard */
.wiz { width: min(760px, 100% - 24px); max-height: min(92vh, 900px); padding: 0; border: 1px solid var(--line-2); border-radius: 22px; background: #13131c; color: var(--text);
  box-shadow: 0 40px 120px rgb(0 0 0 / 0.65); overflow: hidden; }
.wiz[open] { display: flex; flex-direction: column; animation: wiz-in 0.22s ease-out; }
.wiz::backdrop { background: rgb(4 4 8 / 0.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@keyframes wiz-in { from { opacity: 0; transform: translateY(10px) scale(0.985); } }
.wiz-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px 0 24px; }
.wiz-head img { width: 28px; height: 28px; border-radius: 7px; }
.wiz-head h2 { font-size: 17px; margin: 0; flex: 1; }
.x { width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.x:hover { background: var(--surface-2); color: var(--text); }
.stepper { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 16px 24px 0; list-style: none; margin: 0; }
.stepper li { display: grid; gap: 8px; font-size: 13px; color: var(--faint); font-weight: 600; }
.stepper li::before { content: ""; height: 4px; border-radius: 4px; background: var(--line-2); }
.stepper li.done::before { background: rgb(var(--accent-rgb) / 0.6); }
.stepper li.now { color: var(--text); }
.stepper li.now::before { background: var(--accent-strong); }
.wiz-body { padding: 22px 24px 8px; overflow-y: auto; flex: 1; }
.wiz-body h3 { font-size: clamp(21px, 3vw, 26px); font-weight: 800; margin-bottom: 6px; }
.wiz-body .sub { color: var(--muted); margin-bottom: 20px; }
.wiz-foot { display: flex; align-items: center; gap: 10px; padding: 16px 24px 20px; border-top: 1px solid var(--line); }
.wiz-foot .grow { flex: 1; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 560px) { .choices { grid-template-columns: minmax(0, 1fr); } }
.choice { position: relative; display: grid; gap: 6px; padding: 20px; border-radius: 16px; border: 1.5px solid var(--line-2); background: var(--surface); cursor: pointer; text-align: left; color: var(--text); font: inherit; }
.choice:hover { border-color: rgb(255 255 255 / 0.25); }
.choice[aria-checked="true"] { border-color: var(--accent-strong); background: rgb(var(--accent-rgb) / 0.12); box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / 0.18); }
.choice .os { display: flex; align-items: center; gap: 10px; font: 750 18px/1.2 var(--head); }
.choice .os svg { color: var(--accent); }
.choice small { color: var(--muted); font-size: 14px; }
.choice .tag { position: absolute; top: 14px; right: 14px; font-size: 12px; font-weight: 700; color: var(--ok); background: rgb(60 207 142 / 0.12); padding: 3px 9px; border-radius: 99px; }
.side-note { margin-top: 16px; color: var(--muted); font-size: 14.5px; }
.dl-card { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface); flex-wrap: wrap; }
.dl-card img { width: 56px; height: 56px; border-radius: 14px; }
.dl-card .meta { flex: 1; min-width: 180px; }
.dl-card .fname { font: 700 17px/1.3 var(--head); word-break: break-all; }
.dl-card .info { color: var(--muted); font-size: 14px; }
.dl-state { margin-top: 14px; min-height: 24px; color: var(--muted); font-size: 15px; display: flex; gap: 8px; align-items: center; }
.dl-state.ok { color: var(--ok); }
.dl-state.err { color: var(--warn); }
.howto { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: h; }
.howto > li { counter-increment: h; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px 12px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.howto > li::before { content: counter(h); grid-row: span 3; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgb(var(--accent-rgb) / 0.18); color: var(--accent); font: 800 14px/1 var(--head); }
.howto b { color: var(--text); }
.howto p { margin: 0; color: var(--muted); font-size: 15px; }
.howto .ill { margin-top: 10px; }
.seg { display: inline-flex; padding: 3px; gap: 3px; border-radius: 10px; background: rgb(0 0 0 / 0.28); border: 1px solid var(--line); margin-bottom: 10px; }
.seg button { border: 0; background: transparent; color: var(--muted); padding: 6px 12px; border-radius: 8px; font: 600 13.5px/1 var(--font); cursor: pointer; }
.seg button[aria-pressed="true"] { background: rgb(255 255 255 / 0.12); color: var(--text); }
.check { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.check li svg { color: var(--ok); margin-top: 2px; }
.check b { display: block; color: var(--text); }
.check span { color: var(--muted); font-size: 15px; }
/* Small drawings of what people see while installing (not screenshots). */
.ill { border-radius: 12px; border: 1px solid var(--line-2); background: #1b1b26; padding: 14px; font-size: 13.5px; color: var(--muted); }
.ill .row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ill .tile { display: grid; justify-items: center; gap: 6px; font-size: 12.5px; color: var(--text); }
.ill .tile img, .ill .tile .folder { width: 52px; height: 52px; border-radius: 12px; }
.ill .folder { background: linear-gradient(#6aa8ff, #3d7ee8); position: relative; }
.ill .folder::before { content: ""; position: absolute; left: 6px; top: -5px; width: 22px; height: 10px; border-radius: 4px 4px 0 0; background: #5b98f5; }
.ill .arrow { color: var(--accent); font-size: 22px; }
.ill .win { border-radius: 10px; background: #26263a; padding: 12px 14px; display: grid; gap: 8px; }
.ill .win.blue { background: #1f3f78; color: #eaf1ff; }
.ill .lnk { text-decoration: underline; color: inherit; font-weight: 600; }
.ill .hl { outline: 2px solid var(--live); outline-offset: 2px; border-radius: 6px; }
.ill .fake-btn { display: inline-block; padding: 5px 12px; border-radius: 6px; background: rgb(255 255 255 / 0.12); color: #fff; font-weight: 600; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 404 */
.lost { min-height: calc(100vh - 64px - 120px); display: grid; place-items: center; text-align: center; padding: 64px 0; }
.lost-code { font-size: clamp(72px, 16vw, 140px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-bottom: 8px;
  background: linear-gradient(92deg, #a6a9ff, #d7a7ff 50%, #f2c46d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lost h1 { font-size: clamp(28px, 4.4vw, 40px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.lost .lead { color: var(--muted); margin-bottom: 28px; }
