/* ==========================================================================
   VeloFrame – Styles
   Farben und Schrift aus dem Design-README: Archivo, Navy für Text,
   warmes Gelb (#e7bf3c) als einzige Akzentfarbe, Logo in Senfgelb (#ad8c1f).
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@62..125,400..900&display=swap");

:root {
  --bg: #ffffff;
  --surface: #f5f6f8;
  --border: #e3e6eb;
  --ink: #0f1d3a;
  --text: #1f2a3d;
  --muted: #5b6577;
  --accent: #e7bf3c;
  --accent-hover: #cea82c;
  --accent-active: #b09027;
  --logo: #ad8c1f;
  --accent-soft: #fcf6e3;
  --on-accent: #0f1d3a;
  --dark-surface: #1c1f26;
  --on-dark: #f3f4f6;
  --on-dark-muted: #a9b0bd;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;

  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --gutter: 16px;
  --header-h: 64px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: light;
}

@media (min-width: 640px) {
  :root { --gutter: 24px; --header-h: 72px; }
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--space-4));
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/26px var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, h4, p, ul, ol, figure, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 { color: var(--ink); text-wrap: balance; }
p { text-wrap: pretty; }

a {
  color: var(--text);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}
a:hover { color: var(--accent-hover); }

:focus-visible { outline: 3px solid var(--accent-active); outline-offset: 2px; }
::selection { background: var(--accent-soft); color: var(--ink); }

.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-link {
  position: absolute; top: var(--space-3); left: var(--gutter); z-index: 100;
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--ink); color: var(--on-dark);
  font: 700 15px/20px var(--font); text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
.skip-link:hover { color: var(--on-dark); }
#main:focus { outline: none; }

.container { width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; }

/* --------------------------------------------------------------------------
   Typografie (README › Texttabelle)
   `font`-Shorthand setzt font-stretch zurück, deshalb steht es danach.
   -------------------------------------------------------------------------- */

.logo {
  font: 900 160px/0.9 var(--font);
  font-stretch: 125%;
  letter-spacing: -0.02em;
  color: var(--logo);
}
h1, .h1 { font: 800 56px/60px var(--font); letter-spacing: -0.01em; }
h2, .h2 { font: 800 30px/34px var(--font); font-stretch: 112%; }
h3, .h3 { font: 700 22px/28px var(--font); }
h4 { font: 700 17px/24px var(--font); }
.lead { font-size: 26px; line-height: 36px; color: var(--text); }
.small { font-size: 14px; line-height: 22px; color: var(--muted); }
.caption {
  font-size: 12px; line-height: 16px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.tabular { font-variant-numeric: tabular-nums; }

code, kbd, pre { font-family: var(--mono); font-size: 0.9em; }
:not(pre) > code {
  padding: 1px 6px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--ink); white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Buttons, Chips, Badges
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border: 0; border-radius: var(--radius-sm);
  background: var(--accent); color: var(--on-accent);
  font: 700 17px/24px var(--font); text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
}
.btn:hover, .btn:focus-visible { background: var(--accent-hover); color: var(--on-accent); }
.btn:active { background: var(--accent-active); transform: translateY(1px); }

.btn--ghost { background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--border); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--surface); color: var(--ink); }
.btn--ghost:active { background: var(--border); }

.btn--sm { padding: 9px 16px; font-size: 15px; line-height: 20px; }

.btn .icon { width: 18px; height: 18px; flex: none; }

.chip {
  display: inline-flex; gap: 8px; align-items: center; padding: 10px 14px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md);
  font: 600 15px/20px var(--font); color: var(--ink);
}

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font: 600 13px/18px var(--font); color: var(--ink);
  background: var(--surface); border: 1px solid var(--border);
  white-space: nowrap;
}
.badge--ok { background: var(--accent-soft); border-color: #f1df9f; }
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.badge--ok .badge__dot { background: var(--accent-active); }
.badge--wip .badge__dot { background: transparent; box-shadow: inset 0 0 0 2px var(--muted); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-6);
}
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 36px; width: auto; }
@media (min-width: 640px) { .brand img { height: 40px; } }

.menu-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--bg); color: var(--ink); font: 600 15px/20px var(--font); cursor: pointer;
}
.menu-toggle svg { width: 20px; height: 20px; }
.js .site-menu { display: none; }
.js .site-menu.is-open {
  display: flex; flex-direction: column; gap: var(--space-4);
  position: absolute; top: var(--header-h); left: 0; right: 0;
  padding: var(--space-4) var(--gutter) var(--space-6);
  background: var(--bg); border-bottom: 1px solid var(--border);
  box-shadow: 0 16px 32px -16px rgb(15 29 58 / 0.25);
}
.nav-list { display: flex; flex-direction: column; gap: 2px; }
.nav-link {
  display: block; padding: 10px 12px; border-radius: var(--radius-md);
  font: 600 15px/20px var(--font); color: var(--ink); text-decoration: none;
}
.nav-link:hover { background: var(--surface); color: var(--ink); }
.nav-link[aria-current="page"] { background: var(--accent-soft); }
.nav-link--ext::after { content: " ↗"; color: var(--muted); }

@media (min-width: 1100px) {
  .menu-toggle { display: none; }
  .js .site-menu, .site-menu {
    display: flex; flex-direction: row; align-items: center; gap: var(--space-4);
    position: static; padding: 0; border: 0; box-shadow: none; background: none;
  }
  .nav-list { flex-direction: row; gap: 4px; }
}
.site-menu .btn .icon { width: 16px; height: 16px; }
@media (max-width: 1099px) {
  .js .site-menu.is-open > a { align-self: flex-start; }
  .no-js .site-menu { display: flex; flex-direction: column; padding-bottom: var(--space-4); }
}

/* --------------------------------------------------------------------------
   Sektionen
   -------------------------------------------------------------------------- */

.section { padding-block: var(--space-16); }
.section + .section { border-top: 1px solid var(--border); }
.section--surface { background: var(--surface); border-top: 0 !important; }
.section--surface + .section { border-top: 0; }
.section__head { max-width: 720px; margin-bottom: var(--space-8); }
.section__head .caption { margin-bottom: var(--space-3); }
.section__head p:not(.caption) { margin-top: var(--space-4); }

@media (min-width: 900px) { .section { padding-block: var(--space-24); } }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero { padding-block: var(--space-16) var(--space-16); }
.hero__badges { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-8); }
/* Riesiges Logo: passt sich der Breite an, damit "VeloFrame" nie umbricht */
.logo.hero__logo { font-size: clamp(40px, 11.8vw, 150px); white-space: nowrap; }
.hero__lead { max-width: 760px; margin-top: var(--space-8); }
.hero__sub { max-width: 640px; margin-top: var(--space-4); color: var(--muted); font-size: 18px; line-height: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }

.stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px;
  margin-top: var(--space-16); background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
}
.stat { background: var(--bg); padding: var(--space-6); }
.stat__value {
  font: 800 34px/38px var(--font); font-stretch: 112%; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat__value span { font-size: 18px; font-weight: 700; }
.stat__label { margin-top: var(--space-2); }
@media (min-width: 900px) {
  .hero { padding-block: var(--space-24) var(--space-16); }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------------
   Feature-Karten
   -------------------------------------------------------------------------- */

.grid { display: grid; gap: var(--space-4); }
.grid > * { min-width: 0; }
@media (min-width: 700px) { .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.section--surface .card { border-color: var(--border); }
.card h3 { margin-bottom: var(--space-2); }
.card__num {
  display: inline-grid; place-items: center; width: 32px; height: 32px; margin-bottom: var(--space-4);
  border-radius: var(--radius-md); background: var(--accent-soft);
  font: 800 15px/1 var(--font); color: var(--ink);
}
.card__list { margin-top: var(--space-4); display: grid; gap: var(--space-2); }
.card__list li { position: relative; padding-left: 20px; font-size: 15px; line-height: 24px; }
.card__list li::before {
  content: ""; position: absolute; left: 2px; top: 9px; width: 7px; height: 7px;
  background: var(--accent-active); border-radius: 1px;
}

/* --------------------------------------------------------------------------
   Pipeline-Diagramm
   -------------------------------------------------------------------------- */

.flow { display: grid; gap: var(--space-2); counter-reset: flow; }
.flow__step {
  display: grid; grid-template-columns: 40px 1fr; gap: var(--space-4); align-items: start;
  padding: var(--space-4) var(--space-6); background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius-md);
}
.flow__step::before {
  counter-increment: flow; content: counter(flow, decimal-leading-zero);
  font: 800 15px/24px var(--font); color: var(--logo); font-variant-numeric: tabular-nums;
}
.flow__step strong { color: var(--ink); }
.flow__step p { font-size: 15px; line-height: 24px; color: var(--muted); }

/* --------------------------------------------------------------------------
   Vergleichstabelle
   -------------------------------------------------------------------------- */

.table-wrap {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow-x: auto; background: var(--bg);
  -webkit-overflow-scrolling: touch;
}
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 23px; }
th, td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--border); }
tbody tr:last-child > * { border-bottom: 0; }
thead th {
  background: var(--surface); color: var(--ink);
  font: 700 15px/20px var(--font); white-space: nowrap;
}
tbody th { font-weight: 600; color: var(--ink); width: 26%; }
td.num, th.num { font-variant-numeric: tabular-nums; }

.compare { min-width: 640px; }
.compare thead th:nth-child(2) { background: var(--accent-soft); box-shadow: inset 0 -2px 0 var(--accent); }
.compare td:nth-child(2) { background: rgb(252 246 227 / 0.45); }
.mark {
  display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 8px;
  border-radius: 50%; font: 800 12px/1 var(--font); vertical-align: -4px; flex: none;
}
.mark--yes { background: var(--accent); color: var(--on-accent); }
.mark--no { background: var(--surface); color: var(--muted); box-shadow: inset 0 0 0 1px var(--border); }
.mark--part { background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.compare__note { margin-top: var(--space-4); max-width: 820px; }
.compare__note a { color: var(--muted); }
.th-sub { display: block; font: 500 12px/16px var(--font); color: var(--muted); }
td.na { color: var(--muted); }

/* RAM-Balken (Bereich von–bis auf gemeinsamer Skala) */
.meter-card {
  margin: 0; padding: var(--space-6);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.meter-card figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px var(--space-4); margin-bottom: var(--space-6); }
.meter-card h3 { font-size: 18px; line-height: 24px; }
.meter { display: grid; gap: var(--space-4); }
.meter__row {
  display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: var(--space-4); align-items: center;
}
.meter__name { font: 700 15px/20px var(--font); color: var(--ink); }
.meter__track { position: relative; height: 14px; border-radius: 7px; background: var(--surface); }
.meter__bar {
  position: absolute; top: 0; bottom: 0; left: var(--from); width: max(calc(var(--to) - var(--from)), 8px);
  border-radius: 7px; background: #b9c0cc;
}
.meter__bar--vf { background: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-active); }
.meter__val { font: 600 15px/20px var(--font); color: var(--ink); min-width: 104px; text-align: right; }
.meter__scale {
  display: flex; justify-content: space-between;
  margin-left: calc(84px + var(--space-4)); margin-right: calc(104px + var(--space-4));
  padding-top: var(--space-2); border-top: 1px solid var(--border);
}
@media (max-width: 640px) {
  .meter__row { grid-template-columns: 1fr auto; grid-template-areas: "name val" "track track"; gap: 6px var(--space-3); }
  .meter__name { grid-area: name; }
  .meter__val { grid-area: val; min-width: 0; }
  .meter__track { grid-area: track; }
  .meter__scale { margin-left: 0; margin-right: 0; }
}

/* ClipHub-Hinweis */
.made-for {
  display: grid; gap: var(--space-4); align-items: center;
  margin-top: var(--space-8); padding: var(--space-6);
  background: var(--accent-soft); border: 1px solid #f1df9f; border-radius: var(--radius-lg);
}
.made-for h3 { font-size: 20px; line-height: 26px; }
.made-for p { margin-top: var(--space-2); max-width: 720px; }
@media (min-width: 800px) { .made-for { grid-template-columns: 1fr auto; padding: var(--space-6) var(--space-8); } }

/* Lizenz-Karten */
.license {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-8); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg);
}
.license--pro { border: 2px solid var(--ink); }
.license__price { font: 800 24px/30px var(--font); font-stretch: 112%; color: var(--ink); }
.license .btn { margin-top: auto; }
.license p:not(.license__price) { margin-bottom: var(--space-3); }

.badge__icon { width: 13px; height: 13px; flex: none; color: var(--ink); }

/* Sprachumschalter */
.lang-switch {
  display: inline-grid; place-items: center; min-width: 40px; height: 38px; padding: 0 10px;
  border-radius: var(--radius-md); border: 1px solid var(--border);
  font: 700 14px/1 var(--font); color: var(--ink); text-decoration: none; letter-spacing: 0.04em;
}
.lang-switch:hover { background: var(--surface); color: var(--ink); }

/* --------------------------------------------------------------------------
   Plattform-Status
   -------------------------------------------------------------------------- */

.platform {
  display: flex; flex-direction: column; gap: var(--space-3);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.platform--ok { border: 2px solid var(--ink); }
.platform__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.platform__tech { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: var(--space-3); }
.platform__tech li {
  font: 600 13px/18px var(--font); color: var(--muted);
  padding: 3px 8px; border-radius: var(--radius-sm); background: var(--surface);
}
.progress { height: 6px; border-radius: 3px; background: var(--surface); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--accent); border-radius: 3px; }

.notice {
  display: flex; gap: var(--space-4); align-items: flex-start;
  margin-top: var(--space-6); padding: var(--space-4) var(--space-6);
  background: var(--accent-soft); border-radius: var(--radius-md);
  border-left: 4px solid var(--accent);
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Dunkle Fläche (Code, Entwickler-Teaser)
   -------------------------------------------------------------------------- */

.dark {
  background: var(--dark-surface); color: var(--on-dark);
  border-radius: var(--radius-lg); padding: var(--space-8);
}
.dark h2, .dark h3 { color: var(--on-dark); }
.dark p { color: var(--on-dark-muted); }
.dark .caption { color: var(--on-dark-muted); }

.dev { display: grid; gap: var(--space-8); align-items: center; }
.dev > * { min-width: 0; }
@media (min-width: 900px) { .dev { grid-template-columns: 5fr 7fr; padding: var(--space-12); } }
.dev__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.dev .btn--ghost { background: transparent; color: var(--on-dark); box-shadow: inset 0 0 0 1px #3a3f4b; }
.dev .btn--ghost:hover { background: #262a33; color: var(--on-dark); }

pre.code {
  position: relative;
  background: #14161b; color: #e6e8ec;
  border: 1px solid #2c3039; border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-6); overflow-x: auto;
  font-size: 14px; line-height: 22px; tab-size: 4;
}
pre.code .c { color: #7d8594; }
pre.code .k { color: #e7bf3c; }
pre.code .s { color: #9fd3a8; }
pre.code .in { color: #e7bf3c; font-weight: 700; }
pre.code .out { color: #8fb8f0; font-weight: 700; }

.code-block { position: relative; }
.copy-btn {
  position: absolute; top: 8px; right: 8px;
  padding: 4px 10px; border-radius: var(--radius-sm);
  border: 1px solid #3a3f4b; background: #1f232b; color: #c9cdd5;
  font: 600 12px/18px var(--font); cursor: pointer;
  opacity: 0; transition: opacity 0.15s ease;
}
.code-block:hover .copy-btn, .copy-btn:focus-visible, .copy-btn.is-done { opacity: 1; }
@media (hover: none) { .copy-btn { opacity: 1; } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding-block: var(--space-16) var(--space-8); }
.footer__grid { display: grid; gap: var(--space-8); }
.footer__brand img { height: 36px; width: auto; }
.footer__brand p { margin-top: var(--space-4); max-width: 340px; }
.footer__title { margin-bottom: var(--space-3); }
.footer__links { display: grid; gap: var(--space-2); }
.footer__links a { font-size: 15px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3);
  margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid var(--border);
}
.made-by { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
@media (min-width: 700px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

/* --------------------------------------------------------------------------
   Docs-Layout
   -------------------------------------------------------------------------- */

.docs { display: grid; gap: var(--space-8); padding-block: var(--space-12) var(--space-24); }
.docs__nav { font-size: 15px; }
.docs__nav details { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg); }
.docs__nav summary {
  padding: 12px 16px; font: 700 15px/20px var(--font); color: var(--ink); cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.docs__nav summary::-webkit-details-marker { display: none; }
.docs__nav summary::after { content: "▾"; color: var(--muted); transition: transform 0.2s var(--ease-out); }
.docs__nav details[open] summary::after { transform: rotate(180deg); }
.docs__toc { padding: 0 8px 12px; display: grid; gap: 2px; }
.docs__toc .caption { padding: 14px 10px 6px; }
.docs__toc a {
  display: block; padding: 6px 10px; border-radius: var(--radius-sm);
  color: var(--text); text-decoration: none; line-height: 22px;
  border-left: 2px solid transparent;
}
.docs__toc a:hover { background: var(--surface); color: var(--ink); }
.docs__toc a.is-active { background: var(--accent-soft); color: var(--ink); font-weight: 600; border-left-color: var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

@media (min-width: 1000px) {
  .docs { grid-template-columns: 240px minmax(0, 1fr); gap: var(--space-12); }
  .docs__nav { position: sticky; top: calc(var(--header-h) + var(--space-6)); align-self: start; max-height: calc(100vh - var(--header-h) - var(--space-12)); overflow-y: auto; }
  .docs__nav details { border: 0; background: none; }
  .docs__nav summary { display: none; }
  .docs__toc { padding: 0; }
  .docs__toc .caption:first-child { padding-top: 0; }
}

.prose { max-width: 820px; min-width: 0; }
.prose > * + *, .prose section > * + * { margin-top: var(--space-4); }
.prose h1 { margin-bottom: var(--space-2); }
.prose h2 { margin-top: var(--space-16); padding-top: var(--space-8); border-top: 1px solid var(--border); }
.prose h1 + .lead + h2, .prose .doc-intro + h2 { margin-top: var(--space-12); }
.prose h3 { margin-top: var(--space-8); }
.prose h4 { margin-top: var(--space-6); }
.prose ul.bullets { display: grid; gap: var(--space-2); padding-left: 0; }
.prose ul.bullets li { position: relative; padding-left: 20px; }
.prose ul.bullets li::before {
  content: ""; position: absolute; left: 2px; top: 10px; width: 7px; height: 7px;
  background: var(--accent-active); border-radius: 1px;
}
.prose ol.steps { counter-reset: s; display: grid; gap: var(--space-3); }
.prose ol.steps li { position: relative; padding-left: 36px; counter-increment: s; }
.prose ol.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 1px;
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--ink); font: 800 13px/1 var(--font);
}
.prose .table-wrap { margin-top: var(--space-6); }
.prose .table-wrap table { min-width: 560px; }
.prose td code, .prose th code { white-space: nowrap; }
.prose .code-block { margin-top: var(--space-6); }
.prose .callout {
  padding: var(--space-4) var(--space-6); border-radius: var(--radius-md);
  background: var(--surface); border-left: 4px solid var(--ink);
}
.prose .callout--warn { background: var(--accent-soft); border-left-color: var(--accent); }
.prose .callout strong { color: var(--ink); }

.doc-meta { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-6); }

/* --------------------------------------------------------------------------
   Mobil (README: Logo ~72px, h1 36px, lead 20/30)
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
  .logo { font-size: 64px; }
  h1, .h1 { font-size: 36px; line-height: 40px; }
  h2, .h2 { font-size: 26px; line-height: 30px; }
  .lead { font-size: 20px; line-height: 30px; }
  .stat { padding: var(--space-4); }
  .stat__value { font-size: 28px; line-height: 32px; }
  .dark { padding: var(--space-6); }
  th, td { padding: 12px 14px; }
}
@media (min-width: 641px) and (max-width: 1000px) {
  .logo { font-size: 112px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
