/* Zapdrop site (zapdrop.wdlab.app). Tokens from docs/design.md: dark-first deep ink with the
   violet -> cyan energy gradient, Rajdhani for headings and numbers, Mukta for text.
   No inline styles or scripts anywhere (the CSP forbids them); bump ?v= in the pages when this changes. */

@font-face { font-family: "Rajdhani"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/Rajdhani-Bold-latin.woff2") format("woff2"); }
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/Mukta-Regular-latin.woff2") format("woff2"); }
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/Mukta-SemiBold-latin.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --ground: #0A0A1F;
  --surface: #14142E;
  --raised: #1B1B3D;
  --hairline: #2A2A55;
  --ink: #F4F4FF;
  --muted: #A3A3C7;
  --violet: #8A6BFF;
  --cyan: #2DE2F5;
  --violet-text: #B6A6FF;
  --cyan-text: #7DE9F7;
  --on-energy: #070718;
  --success: #2EE6A6;
  --warning: #FFB547;
  --danger: #FF6B85;
  --volt: #C6FF3D;
  --focus: #2DE2F5;
  --energy: linear-gradient(120deg, #8A6BFF 0%, #2DE2F5 100%);
  --energy-text: linear-gradient(120deg, #B6A6FF 0%, #7DE9F7 100%);
  --glow: 0 0 24px -4px rgba(138, 107, 255, 0.35);
  --card-shadow: none;
  --dots: rgba(138, 107, 255, 0.16);
  --halo-a: rgba(138, 107, 255, 0.24);
  --halo-b: rgba(45, 226, 245, 0.14);
  --beam-dot: #FFFFFF;
  --header-bg: rgba(10, 10, 31, 0.82);

  --font-display: "Rajdhani", "Mukta", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Mukta", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-pill: 999px;
  --r-btn: 18px;
  --r-card: 22px;
  --r-big: 30px;
  --r-thumb: 12px;
  --gutter: 16px;
  --max: 1120px;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --ground: #F5F6FB;
    --surface: #FFFFFF;
    --raised: #EEF0F8;
    --hairline: #E2E4F0;
    --ink: #0E0E2C;
    --muted: #565678;
    --violet-text: #5B3CF0;
    --cyan-text: #0E7490;
    --success: #0B7A54;
    --warning: #9A5B00;
    --danger: #C2264B;
    --focus: #5B3CF0;
    --energy-text: linear-gradient(120deg, #5B3CF0 0%, #0E7490 100%);
    --glow: none;
    --card-shadow: 0 8px 24px rgba(14, 14, 44, 0.07);
    --dots: rgba(91, 60, 240, 0.10);
    --halo-a: rgba(138, 107, 255, 0.18);
    --halo-b: rgba(45, 226, 245, 0.16);
    --beam-dot: #FFFFFF;
    --header-bg: rgba(245, 246, 251, 0.86);
  }
}

@media (min-width: 760px) { :root { --gutter: 32px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}
@media (max-width: 480px) { body { font-size: 16px; } }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--violet-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cyan-text); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 0.45em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 1.4rem + 1.9vw, 2.75rem); }
h3 { font-size: 1.45rem; line-height: 1.12; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin: 0.3em 0; }
li::marker { color: var(--muted); }
strong { font-weight: 600; }
code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--raised);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 0.05em 0.4em;
  white-space: nowrap;
}
hr { border: 0; border-top: 1px solid var(--hairline); margin: 2.5rem 0; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--surface); color: var(--ink); border: 1px solid var(--hairline);
  padding: 10px 16px; border-radius: 12px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.overline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-text);
  margin: 0 0 0.9rem;
}
.grad {
  background: var(--energy-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.muted { color: var(--muted); }
.lede { font-size: 1.18rem; line-height: 1.55; color: var(--muted); max-width: 40rem; }
@media (max-width: 480px) { .lede { font-size: 1.08rem; } }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: var(--ground);
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  color: var(--ink); text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: 0.01em;
}
.brand:hover { color: var(--ink); }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav li { margin: 0; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  border-radius: var(--r-pill);
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.98rem;
}
.nav a:hover { color: var(--ink); background: var(--raised); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--raised); }
@media (max-width: 760px) { .nav .wide { display: none; } }
@media (max-width: 400px) { .nav a { padding: 0 9px; font-size: 0.93rem; } .brand { font-size: 1.35rem; } }

/* ---------- Buttons, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px;
  border-radius: var(--r-btn);
  font: 600 1.02rem/1.2 var(--font-body);
  text-decoration: none; text-align: center;
  border: 1px solid transparent;
  transition: transform 0.15s cubic-bezier(.33, 1, .68, 1), box-shadow 0.15s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-energy { background: var(--energy); color: var(--on-energy); box-shadow: var(--glow); }
.btn-energy:hover { color: var(--on-energy); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--hairline); box-shadow: var(--card-shadow); }
.btn-ghost:hover { color: var(--ink); border-color: var(--violet); }

.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }

.promise { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 28px; }
.promise li {
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
  min-height: 40px; padding: 0 14px 0 10px;
  border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--hairline); box-shadow: var(--card-shadow);
  font-weight: 600; font-size: 0.95rem;
}
.promise .ico { width: 20px; height: 20px; color: var(--cyan-text); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 420px at 78% 34%, var(--halo-a), transparent 70%),
    radial-gradient(520px 380px at 60% 78%, var(--halo-b), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(var(--dots) 1.2px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 70% 40%, #000 20%, transparent 75%);
}
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 940px) {
  .hero { padding: 72px 0 96px; }
  .hero-grid { grid-template-columns: 1.02fr 0.98fr; gap: 48px; }
}
.hero h1 { margin-bottom: 0.35em; }
.hero .lede { margin-bottom: 1.4rem; }
.hero-art { max-width: 580px; width: 100%; margin: 0 auto; }

.avail { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.store {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-width: 158px; min-height: 58px; padding: 6px 18px; margin: 0;
  border-radius: var(--r-btn);
  border: 1px dashed var(--hairline);
  background: var(--surface);
  box-shadow: var(--card-shadow);
}
.store b { font-family: var(--font-display); font-size: 1.22rem; line-height: 1.1; font-weight: 700; }
.store span {
  font-family: var(--font-display); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--cyan-text);
}
.fine { font-size: 0.95rem; color: var(--muted); margin: 0; }
.fine a { font-weight: 600; }

/* Illustration (inline SVG). Colours that follow the theme come from these classes. */
.art-surface { fill: var(--surface); stroke: var(--hairline); stroke-width: 1.5; }
.art-screen { fill: var(--ground); }
.art-line { fill: var(--raised); }
.art-line-strong { fill: var(--hairline); }
.art-ring { fill: none; stroke: var(--hairline); stroke-width: 1.2; }
.art-track { fill: none; stroke: var(--raised); stroke-width: 9; }
.art-notch { fill: var(--on-energy); }
.art-ink { fill: var(--ink); }
.art-muted { fill: var(--muted); }
.art-accent { fill: var(--cyan-text); }
.art-ok { fill: var(--success); }
.art-on { fill: var(--on-energy); }
.art-dim { opacity: 0.45; }
.art-chip { fill: #FFFFFF; }
.art-chk { fill: none; stroke: var(--on-energy); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.art-num { font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; }
.art-txt { font-family: var(--font-body); font-weight: 600; }
.beam-dots {
  fill: none; stroke: var(--beam-dot); stroke-width: 4.5; stroke-linecap: round;
  stroke-dasharray: 0.1 17;
}
.radar-pulse { fill: none; stroke: var(--violet); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .beam-dots { animation: beam 0.9s linear infinite; }
  .radar-pulse { animation: radar 2.4s cubic-bezier(.33, 1, .68, 1) infinite; }
}
@keyframes beam { to { stroke-dashoffset: -17.1; } }
@keyframes radar {
  0% { transform: scale(0.35); opacity: 0.55; }
  100% { transform: scale(1); opacity: 0; }
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
@media (min-width: 940px) { .section { padding: 88px 0; } }
.section-alt { background: var(--surface); border-block: 1px solid var(--hairline); }
.section-head { max-width: 44rem; margin-bottom: 36px; }
.section-head p:last-child { margin-bottom: 0; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.steps > li {
  margin: 0; position: relative;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-card);
  box-shadow: var(--card-shadow);
  padding: 22px 22px 20px;
  counter-increment: step;
}
.section-alt .steps > li, .section-alt .card { background: var(--ground); }
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  display: block; margin-bottom: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; line-height: 1;
  font-variant-numeric: tabular-nums;
  background: var(--energy-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.steps h3 { margin-bottom: 0.35em; }
.steps p { color: var(--muted); margin: 0; }
.note-row { display: grid; gap: 12px; margin-top: 20px; }
@media (min-width: 860px) { .note-row { grid-template-columns: 1fr 1fr; gap: 20px; } }
.note {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px; border-radius: var(--r-card);
  background: var(--raised); border: 1px solid var(--hairline);
}
.note .ico { color: var(--violet-text); margin-top: 3px; }
.note p { margin: 0; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
@media (min-width: 940px) { .grid { gap: 20px; } }
.card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-card);
  box-shadow: var(--card-shadow);
  padding: 22px;
}
.card h3 { font-size: 1.32rem; margin-bottom: 0.35em; }
.card p { color: var(--muted); margin: 0; }
.card p + p { margin-top: 0.7em; }
.card-ico {
  display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 16px;
  border-radius: 14px; background: var(--raised); border: 1px solid var(--hairline);
  color: var(--violet-text);
}
.card-ico .ico { width: 24px; height: 24px; }
.card-hi { position: relative; border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--energy) border-box; border: 1.5px solid transparent; }
.section-alt .card-hi { background: linear-gradient(var(--ground), var(--ground)) padding-box, var(--energy) border-box; }

/* Privacy band */
.split { display: grid; gap: 32px; align-items: start; }
@media (min-width: 940px) { .split { grid-template-columns: 0.9fr 1.1fr; gap: 56px; } }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li {
  display: flex; gap: 14px; align-items: flex-start; margin: 0;
  padding: 16px 18px; border-radius: var(--r-card);
  background: var(--ground); border: 1px solid var(--hairline);
}
.checks .tick {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--energy); color: var(--on-energy); margin-top: 1px;
}
.checks .tick .ico { width: 17px; height: 17px; stroke-width: 2.6; }
.checks b { display: block; font-weight: 600; }
.checks span.muted { display: block; }

/* Browser mock (decorative) */
.browser {
  border-radius: var(--r-card); overflow: hidden;
  background: var(--surface); border: 1px solid var(--hairline); box-shadow: var(--card-shadow);
  font-size: 0.92rem;
}
.browser-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--raised); border-bottom: 1px solid var(--hairline); }
.browser-bar .dots { display: flex; gap: 6px; flex: none; }
.browser-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--hairline); }
.browser-bar .url {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 4px 12px; border-radius: var(--r-pill); background: var(--ground); border: 1px solid var(--hairline);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.85rem; color: var(--ink);
}
.browser-body { padding: 16px; display: grid; gap: 14px; }
.bm-head { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.bm-head img { width: 22px; height: 22px; }
.bm-live {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.8rem; color: var(--success);
}
.bm-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.bm-drop {
  display: grid; place-items: center; text-align: center; min-height: 92px; padding: 12px;
  border-radius: 18px; border: 1.5px dashed var(--violet);
  background: linear-gradient(120deg, rgba(138, 107, 255, 0.10), rgba(45, 226, 245, 0.08));
  font-weight: 600;
}
.bm-drop small { display: block; color: var(--muted); font-weight: 400; }
.bm-cols { display: grid; gap: 12px; }
@media (min-width: 520px) { .bm-cols { grid-template-columns: 1fr 1fr; } }
.bm-col { border-radius: 16px; background: var(--ground); border: 1px solid var(--hairline); padding: 12px; min-width: 0; }
.bm-title { font-family: var(--font-display); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.bm-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; min-width: 0; }
.bm-row + .bm-row { border-top: 1px solid var(--hairline); }
.bm-thumb { flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--energy); }
.bm-thumb.t2 { background: linear-gradient(120deg, #FFB547, #FF6B9A); }
.bm-thumb.t3 { background: linear-gradient(120deg, #3DFFB5, #C6FF3D); }
.bm-thumb.t4 { background: linear-gradient(120deg, #4C7DFF, #2DE2F5); }
.bm-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-size { flex: none; color: var(--muted); font-size: 0.82rem; }
.bm-ok { flex: none; width: 18px; height: 18px; color: var(--success); }
.bm-btn {
  display: flex; align-items: center; justify-content: center; margin-top: 10px; min-height: 38px;
  border-radius: 12px; background: var(--energy); color: var(--on-energy); font-weight: 600; font-size: 0.9rem;
}
.bm-clip { border-radius: 16px; background: var(--ground); border: 1px solid var(--hairline); padding: 10px 12px; color: var(--muted); }
.bm-clip b { color: var(--ink); font-weight: 600; }

.pin { display: flex; gap: 6px; flex-wrap: wrap; }
.pin span {
  display: grid; place-items: center; width: 40px; height: 50px; border-radius: 12px;
  background: var(--raised); border: 1px solid var(--hairline);
  font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; font-variant-numeric: tabular-nums;
}
.pin span:nth-child(3) { margin-right: 8px; }

.mini-steps { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; counter-reset: ms; }
.mini-steps li { display: flex; gap: 14px; align-items: flex-start; margin: 0; counter-increment: ms; }
.mini-steps li::before {
  content: counter(ms);
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--energy); color: var(--on-energy);
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
}

/* FAQ */
.faq { max-width: 52rem; border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 14px 0;
  font-family: var(--font-display); font-weight: 700; font-size: 1.28rem; line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background:
    linear-gradient(var(--violet-text), var(--violet-text)) center / 12px 2px no-repeat,
    linear-gradient(var(--violet-text), var(--violet-text)) center / 2px 12px no-repeat,
    var(--raised);
  transition: transform 0.2s cubic-bezier(.33, 1, .68, 1);
}
.faq details[open] summary::after {
  background:
    linear-gradient(var(--violet-text), var(--violet-text)) center / 12px 2px no-repeat,
    var(--raised);
}
.faq summary:hover { color: var(--violet-text); }
.faq .a { padding: 0 44px 18px 0; color: var(--muted); }
.faq .a p:last-child { margin-bottom: 0; }
@media (max-width: 560px) { .faq .a { padding-right: 0; } .faq summary { font-size: 1.18rem; } }

/* Closing band */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-big); padding: 44px 24px; text-align: center;
  background: var(--surface); border: 1px solid var(--hairline); box-shadow: var(--card-shadow);
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(420px 260px at 50% 0%, var(--halo-a), transparent 75%);
}
.cta img { width: 64px; height: 64px; margin: 0 auto 18px; }
.cta > p { color: var(--muted); max-width: 34rem; margin-left: auto; margin-right: auto; }
.cta .avail { justify-content: center; margin-top: 22px; }

/* ---------- Document pages (privacy, terms, support, help) ---------- */
.page-head { position: relative; overflow: hidden; isolation: isolate; padding: 48px 0 36px; border-bottom: 1px solid var(--hairline); }
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(520px 300px at 85% 0%, var(--halo-a), transparent 70%);
}
.page-head h1 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem); margin-bottom: 0.3em; }
.page-head .lede { margin-bottom: 0; }
.updated { margin: 14px 0 0; font-size: 0.92rem; color: var(--muted); }
.doc { max-width: 46rem; padding-top: 40px; padding-bottom: 72px; }
.doc h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.05rem); margin-top: 2.2em; scroll-margin-top: 84px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 1.3rem; margin-top: 1.6em; }
.doc li { padding-left: 0.2em; }
.doc .card { margin: 1.2em 0; }
.doc .card h3:first-child { margin-top: 0; }
.doc .card ol, .doc .card ul { margin-bottom: 0; }
.doc .grid { margin: 1.2em 0; }
figure.browser { margin: 1.8em 0; }

.summary {
  margin: 0 0 2.4em; padding: 20px 22px; border-radius: var(--r-card);
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--energy) border-box;
  border: 1.5px solid transparent; box-shadow: var(--card-shadow);
}
.summary h2 { font-size: 1.35rem; margin: 0 0 0.6em; }
.summary ul { margin: 0; }

.callout {
  display: flex; gap: 14px; align-items: flex-start;
  margin: 1.4em 0; padding: 16px 18px; border-radius: var(--r-card);
  background: var(--raised); border: 1px solid var(--hairline);
}
.callout p { margin: 0; }
.callout .ico { margin-top: 3px; color: var(--violet-text); }
.callout.warn .ico { color: var(--warning); }

.toc { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 2.6em; }
.toc li { margin: 0; }
.toc a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--hairline);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.93rem; box-shadow: var(--card-shadow);
}
.toc a:hover { border-color: var(--violet); color: var(--ink); }

.perm { display: grid; gap: 12px; margin: 1.2em 0; }
.perm > div {
  padding: 16px 18px; border-radius: var(--r-card);
  background: var(--surface); border: 1px solid var(--hairline); box-shadow: var(--card-shadow);
}
.perm dt { font-weight: 600; }
.perm dd { margin: 0.25em 0 0; color: var(--muted); }
.perm .os { display: block; margin-top: 0.35em; font-size: 0.86rem; color: var(--muted); }
.perm .os b { color: var(--ink); font-weight: 600; }

.big-steps { list-style: none; padding: 0; margin: 1.4em 0; display: grid; gap: 14px; counter-reset: bs; }
.big-steps > li {
  position: relative; margin: 0; counter-increment: bs;
  padding: 18px 20px 18px 74px; min-height: 76px;
  border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--hairline); box-shadow: var(--card-shadow);
}
.big-steps > li::before {
  content: counter(bs);
  position: absolute; left: 18px; top: 18px;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--energy); color: var(--on-energy);
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
}
.big-steps h3 { font-size: 1.25rem; margin: 0.3em 0 0.3em; }
.big-steps p { margin: 0; color: var(--muted); }
.big-steps p + p { margin-top: 0.6em; }
@media (max-width: 420px) {
  .big-steps > li { padding: 16px 16px 16px 16px; }
  .big-steps > li::before { position: static; margin-bottom: 10px; }
}

.os-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); margin: 1.2em 0; }
.os-grid .card { margin: 0; }
.os-grid .card h3 { margin-top: 0; }
.os-grid .card ul { margin: 0; color: var(--muted); }

.table-wrap { overflow-x: auto; margin: 1.2em 0; border: 1px solid var(--hairline); border-radius: var(--r-card); }
table { border-collapse: collapse; width: 100%; font-size: 0.96rem; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--hairline); }
th { font-family: var(--font-display); font-weight: 700; font-size: 1rem; background: var(--raised); }
tr:last-child td { border-bottom: 0; }

.mail-card { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.mail-card p { margin: 0; }

/* 404 */
.lost { min-height: calc(100vh - 340px); display: grid; place-items: center; text-align: center; padding-top: 72px; padding-bottom: 72px; }
.lost img { width: 88px; height: 88px; margin: 0 auto 20px; }
.lost .code { font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: 0.2em; color: var(--cyan-text); margin-bottom: 6px; }
.lost p { color: var(--muted); }
.lost .btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--hairline); background: var(--surface); padding: 40px 0 32px; font-size: 0.95rem; }
.foot-grid { display: grid; gap: 28px; }
@media (min-width: 820px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; } }
.foot .brand { font-size: 1.35rem; }
.foot p { color: var(--muted); margin: 0.6em 0 0; }
.studio { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 600; min-height: 44px; }
.studio:hover { color: var(--violet-text); }
.studio img { width: 52px; height: auto; }
.foot h2 { font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: 0; }
.foot li a { display: inline-flex; align-items: center; min-height: 36px; color: var(--ink); text-decoration: none; }
.foot li a:hover { color: var(--violet-text); text-decoration: underline; }
.foot-base { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--hairline); color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.foot-base p { margin: 0; }

@media (forced-colors: active) {
  .grad, .steps > li::before { color: CanvasText; background: none; }
  .btn-energy, .checks .tick, .mini-steps li::before, .big-steps > li::before { border: 1px solid CanvasText; }
}

@media print {
  .top, .foot, .hero-art, .skip { display: none; }
  body { background: #fff; color: #000; }
}
