/* MakaTools site: makatools.dev brand tokens (violet brand, cyan trace, ink tile), light and dark. */
:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --bg-sunken: #eceef6;
  --surface: #ffffff;
  --surface-2: #f2f4fa;
  --border: #e2e5ee;
  --border-strong: #c9cede;
  --text: #0f1420;
  --text-soft: #3b4354;
  --text-muted: #5f6779;
  --brand: #6055f2;
  --brand-400: #7b79fb;
  --brand-600: #4e40de;
  --brand-700: #4033b4;
  --brand-tint: #eef0ff;
  --brand-ink: #4e40de;
  --trace: #0d8fa8;
  --trace-tint: #e3f8fc;
  --ok: #15803d;
  --ok-tint: #e5f6ec;
  --grid: rgba(15, 20, 32, 0.06);
  --glow: rgba(96, 85, 242, 0.16);
  --glass: rgba(246, 247, 251, 0.8);
  --shadow: 0 1px 2px rgba(15, 20, 32, 0.06), 0 12px 32px rgba(15, 20, 32, 0.08);
  --shadow-lg: 0 2px 4px rgba(15, 20, 32, 0.06), 0 30px 70px rgba(30, 26, 90, 0.18);
  --head: 'Poppins', 'Albert Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font: 'Albert Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(16px, 5vw, 64px);
  --radius: 18px;
}

/* Dark: follows the system unless the visitor picked light; the toggle writes data-theme. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #0a0e14;
    --bg-sunken: #06090e;
    --surface: #12161f;
    --surface-2: #171d28;
    --border: #1e2532;
    --border-strong: #2c3546;
    --text: #f1f2f6;
    --text-soft: #c3c8d4;
    --text-muted: #969db0;
    --brand-tint: #1b1940;
    --brand-ink: #a5a3ff;
    --trace: #37e6ff;
    --trace-tint: #0b2a33;
    --ok: #1fbf6b;
    --ok-tint: #0f2a1d;
    --grid: rgba(255, 255, 255, 0.045);
    --glow: rgba(96, 85, 242, 0.26);
    --glass: rgba(10, 14, 20, 0.78);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 14px 36px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.5), 0 34px 80px rgba(0, 0, 0, 0.55);
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0a0e14;
  --bg-sunken: #06090e;
  --surface: #12161f;
  --surface-2: #171d28;
  --border: #1e2532;
  --border-strong: #2c3546;
  --text: #f1f2f6;
  --text-soft: #c3c8d4;
  --text-muted: #969db0;
  --brand-tint: #1b1940;
  --brand-ink: #a5a3ff;
  --trace: #37e6ff;
  --trace-tint: #0b2a33;
  --ok: #1fbf6b;
  --ok-tint: #0f2a1d;
  --grid: rgba(255, 255, 255, 0.045);
  --glow: rgba(96, 85, 242, 0.26);
  --glass: rgba(10, 14, 20, 0.78);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 14px 36px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.5), 0 34px 80px rgba(0, 0, 0, 0.55);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand-ink); text-underline-offset: 3px; }
a:hover { color: var(--brand); }
:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }
code, kbd { font-family: var(--mono); font-size: 0.86em; background: var(--surface-2); border: 1px solid var(--border); border-radius: 7px; padding: 1px 6px; overflow-wrap: anywhere; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.ico { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mono { font-family: var(--mono); }
.accent { color: var(--brand); }
:root[data-theme='dark'] .accent { color: var(--brand-400); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .accent { color: var(--brand-400); } }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 700; }
.skip:focus { top: 12px; color: #fff; }

/* ------------------------------------------------------------ buttons */
.btn {
  --fill: var(--surface); --edge: var(--border-strong); --ink: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border: 1px solid var(--edge); border-radius: 14px;
  background: var(--fill); box-shadow: 0 4px 0 var(--edge); color: var(--ink);
  font: 600 17px/1.1 var(--head); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 150ms ease;
}
.btn:hover { color: var(--ink); transform: translateY(-1px); box-shadow: 0 5px 0 var(--edge); }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--edge); }
.btn svg { flex: none; width: 20px; height: 20px; }
.btn-primary { --fill: var(--brand); --edge: var(--brand-700); --ink: #fff; border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-600); }
.btn-sm { min-height: 42px; padding: 0 16px; border-radius: 12px; font-size: 15px; box-shadow: 0 3px 0 var(--edge); }
.btn-sm:hover { box-shadow: 0 4px 0 var(--edge); }
.btn-sm:active { transform: translateY(3px); }
.btn-lg { min-height: 60px; padding: 0 30px; border-radius: 16px; font-size: 19px; }
.btn-light { --fill: #fff; --edge: #c3c7ff; --ink: var(--brand-700); border-color: #fff; }

/* ------------------------------------------------------------ header */
.top {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.top-in { display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'brand actions' 'links links'; align-items: center; gap: 4px 12px; padding-block: 10px 6px; }
.top-in .brand { grid-area: brand; }
.top-in .links { grid-area: links; }
.top-in .top-actions { grid-area: actions; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 21px/1 var(--head); letter-spacing: -0.03em; }
.brand:hover { color: var(--text); }
.brand img { width: 36px; height: 36px; }
.brand .t { color: var(--brand); }
:root[data-theme='dark'] .brand .t { color: var(--brand-400); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .brand .t { color: var(--brand-400); } }
.top-actions { display: flex; align-items: center; gap: 8px; }
.links { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin-inline: -10px; }
.links::-webkit-scrollbar { display: none; }
.links a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--text-soft); text-decoration: none; font-weight: 600; font-size: 15px; }
.links a:hover, .links a[aria-current='page'] { background: var(--surface-2); color: var(--text); }
@media (min-width: 960px) {
  .top-in { grid-template-columns: auto 1fr auto; grid-template-areas: 'brand links actions'; padding-block: 12px; }
  .links { justify-self: end; margin: 0 6px 0 0; }
}
@media (max-width: 420px) { .top-actions .btn-sm { display: none; } }

/* EN / IT switch and theme toggle */
.lang { display: flex; padding: 3px; gap: 2px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.lang button { min-width: 40px; min-height: 36px; border: 0; border-radius: 9px; background: none; color: var(--text-muted); font: 700 13px/1 var(--font); cursor: pointer; }
.lang button[aria-pressed='true'] { background: var(--brand); color: #fff; }
.theme { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-soft); cursor: pointer; }
.theme:hover { color: var(--text); }
.theme svg { width: 20px; height: 20px; }
.theme .moon { display: none; }
:root[data-theme='dark'] .theme .sun { display: none; }
:root[data-theme='dark'] .theme .moon { display: block; }

/* ------------------------------------------------------------ shared section bits */
.sec { position: relative; padding-block: 88px; }
.sec.tight { padding-top: 24px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--brand-ink); font: 600 13px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.14em; }
.eyebrow::before { content: ''; width: 22px; height: 10px; background: linear-gradient(90deg, currentColor 2px, transparent 2px) 0 0 / 5px 100%; opacity: 0.7; }
.h2 { font-size: clamp(32px, 4.6vw, 54px); }
.sec-sub { margin-top: 16px; max-width: 640px; font-size: 19px; color: var(--text-soft); }
.sec-head { max-width: 760px; }

/* ------------------------------------------------------------ hero */
.hero { position: relative; padding-block: 56px 72px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 30%, #000 30%, transparent 80%); mask-image: radial-gradient(80% 70% at 50% 30%, #000 30%, transparent 80%);
}
.hero::after { content: ''; position: absolute; z-index: -1; width: 900px; height: 600px; right: -260px; top: -180px; background: radial-gradient(closest-side, var(--glow), transparent); }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text-soft); font-weight: 600; font-size: 14.5px; box-shadow: var(--shadow); }
.pill .dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-tint); }
.hero h1 { font-size: clamp(42px, 6.2vw, 76px); letter-spacing: -0.035em; line-height: 1.02; }
.hero h1 .line { display: block; }
.hero h1 mark.line { display: inline-block; }
.hero h1 mark { background: none; color: var(--brand); position: relative; white-space: nowrap; }
:root[data-theme='dark'] .hero h1 mark { color: var(--brand-400); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .hero h1 mark { color: var(--brand-400); } }
.hero h1 mark::after { content: ''; position: absolute; left: 2px; right: 2px; bottom: -6px; height: 8px; background: linear-gradient(90deg, var(--trace) 2px, transparent 2px) 0 0 / 9px 100%; opacity: 0.8; }
.hero-lead { margin: 26px 0 32px; max-width: 560px; font-size: clamp(18px, 2vw, 20px); color: var(--text-soft); }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 24px; color: var(--text-muted); font-size: 14.5px; font-weight: 600; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--ok); }
@media (min-width: 1000px) {
  .hero { padding-block: 64px 88px; }
  .hero-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }
}

/* App window frame around a real screenshot */
.window { position: relative; margin: 0; border-radius: 14px; background: #1a1446; border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); overflow: hidden; }
.window .bar { display: flex; gap: 7px; padding: 10px 12px; background: #120d36; }
.window .bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.window .bar i:nth-child(2) { background: #febc2e; }
.window .bar i:nth-child(3) { background: #28c840; }
.window img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: top; }
.hero-art { position: relative; }
.hero-art .window { transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); }
.ruler { position: absolute; z-index: -1; width: 14px; background: linear-gradient(var(--brand) 2px, transparent 2px) 0 0 / 100% 12px; opacity: 0.5; }
.ruler.r1 { left: -26px; top: 12%; height: 62%; }
.ruler.r2 { right: -22px; top: 28%; height: 50%; }
.chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); font-weight: 700; font-size: 14px; white-space: nowrap; }
.chip svg { width: 18px; height: 18px; }
.chip.c1 { left: -14px; bottom: -18px; color: var(--ok); }
.chip.c1 span { color: var(--text); }
.chip.c2 { right: -10px; top: -16px; font-family: var(--mono); font-weight: 500; color: var(--text-soft); }
.chip.c2 b { color: var(--trace); font-weight: 500; }
@media (max-width: 720px) {
  .hero-art .window { transform: none; }
  .ruler { display: none; }
  .chip.c1 { left: 8px; }
  .chip.c2 { right: 8px; }
}

/* ------------------------------------------------------------ numbers strip */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; padding: 0; list-style: none; border: 1px solid var(--border); border-radius: var(--radius); background: var(--border); overflow: hidden; }
.facts li { padding: 22px 22px 20px; background: var(--surface); }
.facts b { display: block; font: 700 clamp(30px, 4vw, 42px)/1 var(--head); letter-spacing: -0.03em; }
.facts span { display: block; margin-top: 8px; color: var(--text-muted); font-size: 15px; font-weight: 600; }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ------------------------------------------------------------ steps */
.steps { display: grid; gap: 18px; margin: 48px 0 0; padding: 0; list-style: none; counter-reset: step; }
.step { position: relative; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.step::before { counter-increment: step; content: '0' counter(step); display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px; border-radius: 13px; background: var(--brand); color: #fff; font: 600 16px/1 var(--mono); box-shadow: 0 4px 0 var(--brand-700); }
.step h3 { font-size: 22px; margin-bottom: 8px; }
.step p { color: var(--text-soft); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ------------------------------------------------------------ tool families */
.families { display: grid; gap: 18px; margin-top: 48px; }
@media (min-width: 680px) { .families { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .families { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.family { --c: var(--brand); position: relative; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; }
.family::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--c); }
.fam-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.fam-ico { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--c); color: #fff; box-shadow: 0 4px 0 color-mix(in srgb, var(--c) 70%, #000); }
.fam-ico svg { width: 24px; height: 24px; }
.family h3 { font-size: 21px; }
.count { margin-left: auto; padding: 4px 9px; border-radius: 8px; background: var(--surface-2); color: var(--text-muted); font: 500 13px/1.2 var(--mono); }
.tools { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.tools li { padding: 5px 10px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border); font-size: 14px; font-weight: 600; color: var(--text-soft); }
.family.next { --c: var(--trace); background: transparent; border-style: dashed; box-shadow: none; }
.family.next .fam-ico { color: #06090e; }
.family.next p { margin-bottom: 14px; color: var(--text-muted); font-size: 15px; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 7px; background: var(--trace-tint); color: var(--trace); font: 600 11.5px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; }
.family.c1 { --c: #4c7dff; } .family.c2 { --c: #13c2a3; } .family.c3 { --c: #9a5bff; } .family.c4 { --c: #ff8a3d; } .family.c5 { --c: #ff4f8b; }

/* ------------------------------------------------------------ screenshots */
.gallery { display: grid; gap: 28px; margin-top: 48px; }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.shot figcaption { margin-top: 14px; color: var(--text-soft); font-size: 15.5px; }
.shot figcaption b { color: var(--text); }
.shot { margin: 0; }

/* ------------------------------------------------------------ privacy */
.vault { position: relative; padding: 36px 22px; border-radius: 26px; background: #06090e; border: 1px solid #1e2532; color: #f1f2f6; overflow: hidden; box-shadow: var(--shadow-lg); }
.vault::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px); background-size: 32px 32px; pointer-events: none; }
.vault::after { content: ''; position: absolute; width: 640px; height: 480px; right: -200px; top: -200px; background: radial-gradient(closest-side, rgba(96, 85, 242, 0.35), transparent); pointer-events: none; }
.vault > * { position: relative; z-index: 1; }
.vault .eyebrow { color: #37e6ff; }
.vault .h2 { max-width: 820px; }
.vault .h2 .accent { color: #9fa3ff; }
.vault-grid { display: grid; gap: 14px 32px; margin: 30px 0 0; padding: 0; list-style: none; }
.vault-grid li { display: flex; gap: 12px; align-items: flex-start; color: #c3c8d4; }
.vault-grid b { color: #fff; }
.vault-grid svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: #1fbf6b; }
.vault .more { display: inline-block; margin-top: 26px; color: #9fa3ff; font-weight: 700; }
.vault .more:hover { color: #fff; }
@media (min-width: 900px) { .vault { padding: 52px 56px; } .vault-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ------------------------------------------------------------ download band */
.band { position: relative; padding: 40px 22px; border-radius: 26px; background: var(--brand); color: #fff; overflow: hidden; box-shadow: 0 10px 0 var(--brand-700), 0 40px 80px rgba(96, 85, 242, 0.3); }
.band::after { content: ''; position: absolute; right: 24px; top: 0; bottom: 0; width: 120px; background: linear-gradient(rgba(255, 255, 255, 0.35) 2px, transparent 2px) 0 0 / 100% 14px; -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000); opacity: 0.5; pointer-events: none; }
.band > * { position: relative; z-index: 1; }
.band .eyebrow { color: #dfe2ff; }
.band p { margin: 16px 0 26px; max-width: 600px; color: #eef0ff; font-size: 18px; }
.band .note { margin: 18px 0 0; font-size: 14.5px; color: #dfe2ff; }
@media (min-width: 900px) { .band { padding: 56px 60px; } }

/* ------------------------------------------------------------ inner pages */
.page { padding-block: 32px 88px; }
.page h1 { font-size: clamp(38px, 7vw, 60px); letter-spacing: -0.035em; }
.lead { margin-top: 14px; max-width: 42rem; font-size: 19px; color: var(--text-soft); }
.meta { margin-top: 10px; color: var(--text-muted); font-size: 15px; }
.prose { max-width: 860px; }
.card { margin-top: 18px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.card h2 { font-size: 23px; margin-bottom: 10px; }
.card h3 { font-size: 18px; margin: 18px 0 6px; }
.card p + p, .card p + ul, .card p + ol, .card ul + p, .card ol + p, .card p + figure, .card figure + p { margin-top: 10px; }
.card ul, .card ol { margin: 8px 0 0; padding-left: 1.3rem; }
.card li { margin-bottom: 7px; }
.card li::marker { color: var(--brand); }
.card figure { margin: 16px 0 0; }
.card figure img { border-radius: 12px; border: 1px solid var(--border); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.toc a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); color: var(--text-soft); font-weight: 600; font-size: 15px; text-decoration: none; }
.toc a:hover { color: var(--text); border-color: var(--brand-400); }
table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--text-muted); font-weight: 600; }

/* Download page */
.dl-card { display: grid; gap: 22px; margin-top: 28px; padding: 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.dl-card .app { display: flex; align-items: center; gap: 16px; }
.dl-card .app img { width: 72px; height: 72px; }
.dl-card h2 { font-size: 26px; }
.dl-card .sub { color: var(--text-muted); font-weight: 600; font-size: 15px; }
.dl-card .status { margin-top: 20px; }
.dl-actions { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.reqs { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.reqs li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-soft); font-size: 15.5px; }
.reqs svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--ok); }
@media (min-width: 900px) { .dl-card { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; padding: 34px 38px; } }
.status { display: inline-flex; align-items: center; gap: 10px; padding: 7px 13px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-soft); font-weight: 600; font-size: 14.5px; }
.status::before { content: ''; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--brand-400); }
.status.ok::before { background: var(--ok); }
.callout { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--brand-tint); color: var(--text); font-size: 15.5px; }
.steps-list { counter-reset: s; list-style: none; padding: 0 !important; }
.steps-list > li { position: relative; padding-left: 44px; margin-bottom: 14px !important; }
.steps-list > li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--brand-tint); color: var(--brand-ink); font: 600 14px/1 var(--mono); }

/* 404 */
.lost { text-align: center; padding-block: 96px; }
.lost .code { font: 600 clamp(80px, 18vw, 160px)/1 var(--mono); color: var(--brand); letter-spacing: -0.05em; }
.lost p { margin: 16px auto 28px; max-width: 30rem; color: var(--text-soft); }

/* ------------------------------------------------------------ footer */
footer { border-top: 1px solid var(--border); padding-block: 36px 52px; color: var(--text-muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: center; }
footer img { width: 28px; height: 28px; }
footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-soft); text-decoration: none; }
footer a:hover { color: var(--text); }
footer .by a { display: inline; min-height: 0; text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------ scroll reveals: content stays visible where unsupported */
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
}
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
