/* platurum.app — one stylesheet for the whole site. Plain CSS, no external requests.
   Layers: home (draft v1 "Short"), simple (draft v2 "Story"), advanced + inner pages (draft v3 "Reference").
   Fonts: Onest (Latin + Cyrillic) from this site; every other script falls back, glyph by glyph,
   to the system fonts of the device (system-ui … sans-serif) — nothing is downloaded for it. */

@font-face {
  font-family: "Onest";
  src: url("fonts/Onest-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #F8F9FF;
  --surface: #FFFFFF;
  --tint: #E8EEF7;
  --ink: #16283A;
  --muted: #45566A;
  --line: #D3DCEA;
  --blue: #36618E;
  --blue-hover: #2C5278;
  --on-blue: #FFFFFF;
  --amber: #F2A21B;
  --pending-bg: #E8EEF7;
  --pending-ink: #16283A;
  --code-bg: #EEF2F8;
  /* blocks that keep the brand blue / dark plate in both themes */
  --panel: #36618E;
  --panel-ink: #FFFFFF;
  --panel-soft: #DCE8F5;
  --panel-line: rgba(255, 255, 255, .3);
  --dev-bg: #16283A;
  --dev-ink: #E7ECF3;
  --dev-muted: #A9B9CB;
  --dev-line: #2F455C;
  --dev-link: #A0CAFD;
  --dev-amber: #FFB938;
  --btn-bg: #FFFFFF;
  --btn-ink: #16283A;

  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Roboto Mono", "DejaVu Sans Mono", Menlo, Consolas, monospace;
  --gutter: 16px;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111418;
    --surface: #191E25;
    --tint: #1F2731;
    --ink: #E7ECF3;
    --muted: #AEB9C6;
    --line: #2C343F;
    --blue: #A0CAFD;
    --blue-hover: #B9D8FE;
    --on-blue: #0C2036;
    --amber: #FFB938;
    --pending-bg: #26303C;
    --pending-ink: #E7ECF3;
    --code-bg: #1F2731;
    --dev-line: #2F455C;
    --panel: #1B3149;
    --panel-line: rgba(160, 202, 253, .28);
    --btn-bg: #A0CAFD;
    --btn-ink: #0C2036;
  }
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
body > main, body > .adv { flex: 1 0 auto; }

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
code { font-family: var(--mono); font-size: 16px; overflow-wrap: anywhere; direction: ltr; unicode-bidi: isolate; }
/* commands, file names, checksums and fingerprints read left to right in every language: in ar/fa the groups of a
   checksum would otherwise line up right to left; <pre> also carries dir="ltr" in the templates */
.nw { white-space: nowrap; }
code.hash .nw { display: inline-block; margin-inline-end: .5ch; }
code.hash .nw:last-child { margin-inline-end: 0; }
code.hash { display: inline-block; max-width: 34ch; vertical-align: top; }   /* 4 x 16 on a phone, 2 x 32 wider */
code.fpr .nw { display: inline-block; }
code.fpr { display: inline-block; max-width: 25ch; vertical-align: top; }     /* 5 + 5 groups */
.kv code.hash, .kv code.fpr { display: block; }
h1, h2, h3, summary, strong { text-wrap: balance; }
/* Japanese has no spaces: without this, headings break inside a word (あ|なた). auto-phrase breaks between phrases
   (Chromium 119+); other browsers ignore it and keep the normal Japanese line breaking. */
:is(h1, h2, h3, summary, strong):lang(ja) { word-break: auto-phrase; }
p, li, dd, figcaption, .layer span, .tile span { text-wrap: pretty; }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 50;
  padding: 10px 14px; border-radius: 8px;
  background: var(--blue); color: var(--on-blue); font-weight: 600;
}
.skip:focus { top: 8px; }

/* small badges */
.pending {
  display: inline-block;
  padding: 0 9px;
  border-radius: 6px;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
  white-space: nowrap;
  vertical-align: baseline;
}
.pending { background: var(--pending-bg); color: var(--pending-ink); border: 1px dashed var(--muted); white-space: normal; }

.more { font-weight: 600; text-decoration: none; }
.more::after { content: "\00a0\2192"; }
[dir="rtl"] .more::after { content: "\00a0\2190"; }
.more:hover { text-decoration: underline; }

.eyebrow { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--blue); }

/* ───────── header (all pages) ───────── */

.top { border-bottom: 1px solid var(--line); background: var(--bg); }
.top__in {
  position: relative;      /* the containing block of the language list (see .langs__list) */
  max-width: 1240px;
  margin: 0 auto;
  padding: 8px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
}
.top__logo { display: block; flex: none; padding: 6px 0; }
.top__logo img { width: 164px; height: auto; }   /* horizontal lockup: never below 160 px */

.top__nav {
  order: 3;
  flex: 1 1 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  padding-bottom: 6px;
}
.top__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 550;
  text-decoration: none;
}
.top__nav a[aria-current] { color: var(--blue); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.top__nav .pill {
  justify-content: center;
  padding: 0 16px;
  border-radius: 22px;
  background: var(--blue);
  color: var(--on-blue);
  font-weight: 600;
}
.top__nav .pill[aria-current] { color: var(--on-blue); text-decoration: none; box-shadow: inset 0 0 0 2px var(--on-blue), inset 0 0 0 4px var(--blue); }

.top--home { border-bottom: 0; background: transparent; }
.l-simple .top__in { max-width: 1160px; }
.l-home .top__in { max-width: 1120px; }
.top--home .top__in { justify-content: flex-end; padding-top: 6px; padding-bottom: 0; }

/* language menu: a <details>, no JavaScript */
/* The list is placed against the header bar, not against the button: a long self-name (Português (Portugal),
   Bahasa Indonesia) wraps the button onto its own line at the start edge, and a list hung from the button's end
   edge then opened past the start edge of the screen. Vertically it stays where it falls in the flow (top: auto),
   right under the button; horizontally its end edge is the bar's content edge and its width never exceeds the bar,
   so it is on screen in ltr and rtl at any width. On a wide screen the button is the last item of the bar, so the
   list ends exactly under it, as before. */
.langs { position: static; flex: none; }
.langs summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 4px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 550;
  cursor: pointer;
  list-style: none;
}
.langs summary::-webkit-details-marker { display: none; }
.langs summary::after {
  content: "";
  width: 7px; height: 7px;
  margin: -3px 2px 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.langs[open] summary::after { margin-top: 3px; transform: rotate(-135deg); }
.langs__ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.langs__list {
  position: absolute;
  inset-inline-end: var(--gutter);
  top: auto;
  z-index: 20;
  width: min(calc(100% - 2 * var(--gutter)), 660px);   /* 100% = the bar; the cap keeps a wide screen to a few columns */
  max-height: 70vh;
  overflow-y: auto;
  margin-top: 4px;
  padding: 6px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  min-width: 170px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
}
.langs__list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
}
.langs__list a:hover { background: var(--tint); }
.langs__list a[aria-current] { color: var(--blue); font-weight: 650; }

/* ───────── footer (all pages) ───────── */

.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 16px; margin-top: 40px; }
.foot__in {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px var(--gutter) 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.foot__knot { width: 28px; height: 28px; margin-bottom: 4px; }
.foot__facts > span { display: block; }   /* "> ": the legal line holds a span.nw that must stay inline */
.foot__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 18px; }
.foot__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 550;
  text-decoration-color: var(--line);
}

/* ───────── home (v1 "Short") ───────── */

.l-home main {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 24px 0;
}
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__logo { display: block; width: 188px; padding: 6px; border-radius: 12px; }
.hero__logo img { width: 100%; height: auto; }
.hero h1 {
  margin-top: 24px;
  font-size: 31px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero h1 span { display: block; color: var(--blue); }
.hero__lead { margin-top: 16px; max-width: 34ch; color: var(--muted); text-wrap: pretty; }

.cta {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 360px;
  min-height: 60px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--blue);
  color: var(--on-blue);
  font-size: 19px;
  font-weight: 650;
  text-decoration: none;
  transition: background-color .15s ease;
}
.cta svg { flex: none; fill: currentColor; }
.cta:hover { background: var(--blue-hover); }

.release {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  font-size: 16px;
  color: var(--muted);
}

.verify { margin-top: 4px; width: 100%; max-width: 480px; font-size: 16px; }
.verify summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 8px;
  color: var(--blue);
  font-weight: 550;
  cursor: pointer;
  list-style: none;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.verify summary::-webkit-details-marker { display: none; }
.verify summary::after {
  content: "";
  width: 8px; height: 8px;
  margin-top: -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.verify[open] summary::after { margin-top: 4px; transform: rotate(-135deg); }
.verify dl {
  margin-top: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  text-align: start;
}
.verify dt { color: var(--muted); }
.verify dd + dt { margin-top: 10px; }
.verify p { margin-top: 10px; color: var(--muted); text-align: start; }

/* the two layers: plain words / advanced */
.layers, .about__next {
  margin: 32px auto 0;
  max-width: 760px;
  display: grid;
  gap: 12px;
}
.layer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  text-align: start;
}
.layer strong { font-size: 19px; line-height: 1.3; font-weight: 650; color: var(--blue); }
.layer strong::after { content: "\00a0\2192"; }
[dir="rtl"] .layer strong::after { content: "\00a0\2190"; }
.layer span { color: var(--muted); line-height: 1.45; }
.layer:hover { border-color: var(--blue); }

.reasons { margin-top: 36px; }
.reasons ul { display: grid; gap: 28px; list-style: none; }
.reasons li { position: relative; padding-top: 16px; }
.reasons li::before {          /* short amber strip with straight cuts: a nod to the ribbon of the mark */
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 28px;
  height: 4px;
  background: var(--amber);
}
.reasons h2 { font-size: 20px; line-height: 1.25; font-weight: 650; letter-spacing: -0.01em; }
.reasons p { margin-top: 6px; color: var(--muted); text-wrap: pretty; }
.reasons__why { margin-top: 28px; text-align: center; }
.reasons__why .more { display: inline-flex; align-items: center; min-height: 44px; }

/* ───────── plain words (v2 "Story") ───────── */

.wrap { max-width: 1160px; margin-inline: auto; padding-inline: var(--gutter); width: 100%; }

.l-simple { --thread: 24px; --pad: 40px; }
.intro { padding-top: 28px; padding-bottom: 8px; }
.intro h1 {
  margin-top: 10px;
  font-size: clamp(36px, 6.4vw, 84px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.intro h1 span { display: block; }
.h1__b { color: var(--blue); }
.intro__cols { margin-top: 20px; }
.lede { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 34em; }

.contents { margin-top: 22px; border-top: 1px solid var(--line); list-style: none; }
.contents li { border-bottom: 1px solid var(--line); }
.contents a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 8px 0;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
}
.contents__n {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--blue);
  font-size: 16px;
  font-weight: 600;
}
.contents__amber .contents__n { box-shadow: inset 0 0 0 2px var(--amber); }
.contents__end a { color: var(--blue); font-weight: 600; }
.contents__end .contents__n { background: var(--blue); color: var(--on-blue); }

.story { position: relative; padding-inline-start: var(--thread); }
.story::before {               /* the thread */
  content: "";
  position: absolute;
  inset-inline-start: 5px;
  top: calc(var(--pad) + 12px);
  bottom: -24px;
  width: 2px;
  background: var(--line);
}
.chapter { position: relative; padding-block: var(--pad); }
.chapter::before {             /* a bead on the thread */
  content: "";
  position: absolute;
  inset-inline-start: calc(var(--thread) * -1);
  top: calc(var(--pad) + 6px);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px var(--bg);
}
.chapter--amber::before { background: var(--amber); }
.chapter--amber::after {
  content: "";
  position: absolute;
  inset-inline-start: calc(var(--thread) * -1 + 5px);
  top: calc(var(--pad) + 12px);
  bottom: calc(var(--pad) * -1 - 6px);
  width: 2px;
  background: var(--amber);
}
.chapter--amber + .chapter::before { z-index: 1; }

.chapter h2, .get h2 {
  margin-top: 6px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.chapter__text p:not(.eyebrow) { margin-top: 16px; max-width: 34em; }
.chapter__text .aside { color: var(--muted); padding-inline-start: 14px; border-inline-start: 2px solid var(--line); }

.fig { margin-top: 28px; }
figcaption { margin-top: 12px; font-size: 16px; line-height: 1.5; color: var(--muted); }

.paper { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 18px 20px; }
.paper__title { font-size: 16px; font-weight: 600; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.paper__slots { counter-reset: w; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; list-style: none; }
.paper__slots li { counter-increment: w; display: flex; align-items: center; gap: 8px; font-size: 16px; line-height: 1; color: var(--muted); }
.paper__slots li::before { content: counter(w); flex: none; width: 1.3em; text-align: end; }
.paper__slots li::after { content: ""; height: 10px; width: 78%; border-radius: 5px; background: var(--tint); }
.paper__slots li:nth-child(3n+2)::after { width: 58%; }
.paper__slots li:nth-child(4n+1)::after { width: 92%; }
.paper__slots li:nth-child(5n)::after { width: 66%; }

.route { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px 14px 14px; }
.route svg { width: 100%; height: auto; }
.route__net path { fill: none; stroke: var(--line); stroke-width: 1.5; }
.route__fail { fill: none; stroke: var(--muted); stroke-width: 2.5; stroke-dasharray: 2 7; stroke-linecap: round; stroke-linejoin: round; }
.route__x { fill: none; stroke: var(--muted); stroke-width: 2.5; stroke-linecap: round; }
.route__ok { fill: none; stroke: var(--amber); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.route__node circle { fill: var(--surface); stroke: var(--muted); stroke-width: 2; }
.route__node--ok circle { stroke: var(--amber); stroke-width: 3; }
.route__end circle { fill: var(--blue); stroke: var(--surface); stroke-width: 3; }
.route__ends { display: flex; justify-content: space-between; margin-top: 2px; font-size: 16px; font-weight: 600; line-height: 1.4; }
.key { display: flex; align-items: center; gap: 10px; }
.key + .key { margin-top: 4px; }
.key i { flex: none; width: 30px; height: 0; border-top: 3px dotted var(--muted); }
.key .key__ok { border-top: 4px solid var(--amber); border-radius: 2px; }

.facts { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 6px 18px; }
.facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; }
.facts div + div { border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 16px; }
.facts dd { font-weight: 600; text-align: end; text-wrap: balance; }   /* the publisher's name: even lines on a phone */

.qa { margin-top: 8px; }
.qa > div { padding: 18px 0; }
.qa > div + div { border-top: 1px solid var(--line); }
.qa h3 { font-size: 19px; line-height: 1.3; font-weight: 600; }
.qa p { margin-top: 6px; color: var(--muted); max-width: 34em; }
.qa__more { margin-top: 12px; }
.qa__more .more, figcaption .more { display: inline-flex; align-items: center; min-height: 44px; }

.get {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  padding: 28px 20px 26px;
  border-radius: 28px;
  background: var(--panel);
  color: var(--panel-ink);
}
.get__mark { width: 72px; height: 72px; margin: -4px 0 10px -8px; }
.get h2 { margin-top: 0; }
.get p { margin-top: 12px; color: var(--panel-soft); }
.get a:not(.btn) { color: var(--panel-ink); }
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 60px;
  margin-top: 22px;
  padding: 0 24px;
  border-radius: 30px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}
.btn svg { flex: none; }
.get .get__file { margin-top: 12px; text-align: center; color: var(--panel-ink); font-size: 16px; }
.get__verify { margin-top: 24px; padding-top: 6px; border-top: 1px solid var(--panel-line); font-size: 16px; }

/* ───────── advanced section and inner pages (v3 "Reference") ───────── */

.adv { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.adv__main { padding-top: 22px; min-width: 0; }
.crumb { font-size: 16px; }
.crumb a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 550; text-decoration: none; }
.crumb a::before { content: "\2190\00a0"; }
[dir="rtl"] .crumb a::before { content: "\2192\00a0"; }

.ico { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: butt; stroke-linejoin: miter; }
.ico .dot { fill: currentColor; stroke: none; }

.adv-hero h1 { margin-top: 6px; font-size: 30px; line-height: 1.14; font-weight: 650; letter-spacing: -0.02em; text-wrap: balance; }
.lead { margin-top: 12px; color: var(--muted); font-size: 18px; max-width: 40em; }

.tiles { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 14px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}
.tile .ico { width: 26px; height: 26px; margin-bottom: 6px; color: var(--blue); }
.tile strong { font-size: 17px; line-height: 1.25; font-weight: 650; }
.tile span { color: var(--muted); font-size: 16px; line-height: 1.35; }
.tile:hover { border-color: var(--blue); }

.adv-cards { margin-top: 28px; display: grid; gap: 20px; }
.card {
  padding: 18px var(--gutter);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-head h2, .dev h2 { font-size: 22px; line-height: 1.2; font-weight: 650; letter-spacing: -0.015em; }
.card-foot { margin-top: 16px; }
.card-foot .more { display: inline-flex; align-items: center; min-height: 44px; }
.rel-name { margin-top: 12px; font-size: 20px; font-weight: 650; }
.rel-name span { font-weight: 400; color: var(--muted); }
.rel-note { margin-top: 6px; color: var(--muted); }

.kv { margin-top: 14px; border-top: 1px solid var(--line); }
.kv > div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--muted); }
.kv dd { font-weight: 500; }
.kv code { overflow-wrap: normal; }

.dev {
  padding: 20px var(--gutter);
  border-radius: var(--radius);
  background: var(--dev-bg);
  color: var(--dev-ink);
  border: 1px solid var(--dev-line);
}
.dev .card-head .ico { color: var(--dev-amber); width: 28px; height: 28px; }
.dev a { color: var(--dev-link); }
.kv--dev { border-color: var(--dev-line); }
.kv--dev > div { border-color: var(--dev-line); }
.kv--dev dt { color: var(--dev-muted); }

.tree {
  margin-top: 36px;
  padding: 18px var(--gutter) 16px;
  border-radius: var(--radius);
  background: var(--tint);
}
.tree h2 { font-size: 16px; font-weight: 600; color: var(--muted); }
.tree ul { margin-top: 6px; list-style: none; display: grid; grid-template-columns: 1fr; gap: 0; }
.tree a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 550;
  line-height: 1.3;
  text-decoration: none;
}
.tree a[aria-current] { color: var(--blue); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* prose of inner pages */
.doc { max-width: 46em; }
.doc h1 { font-size: 30px; line-height: 1.15; font-weight: 650; letter-spacing: -0.02em; text-wrap: balance; }
.doc .eyebrow + h1 { margin-top: 6px; }
.doc h2 { margin-top: 36px; font-size: 24px; line-height: 1.25; font-weight: 650; letter-spacing: -0.01em; scroll-margin-top: 16px; }
.doc h3 { margin-top: 24px; font-size: 19px; line-height: 1.3; font-weight: 650; }
.doc p, .doc ul, .doc ol { margin-top: 12px; }
.doc ul, .doc ol { padding-inline-start: 22px; }
.doc li + li { margin-top: 8px; }
.doc li > ul { margin-top: 8px; }
.doc .card { margin-top: 20px; }
.doc .card h2 { margin-top: 0; font-size: 22px; }
.doc .card .kv { margin-top: 10px; }
.doc dl.card { padding-top: 4px; padding-bottom: 4px; }
.doc dl.card > div:last-child { border-bottom: 0; }
.muted { color: var(--muted); }
.note {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--tint);
  border-inline-start: 4px solid var(--blue);
}
.os { margin-top: 14px; font-weight: 600; font-size: 16px; color: var(--muted); }
.os + pre { margin-top: 4px; }
pre {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--code-bg);
  white-space: pre-wrap;
}
pre code { font-size: 16px; line-height: 1.5; }
.steps li { padding-inline-start: 4px; }
.cta--doc { margin-top: 18px; max-width: none; }
.short ul { padding-inline-start: 20px; }

.faq { margin-top: 20px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 10px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 24px; text-align: center; color: var(--blue); font-size: 24px; line-height: 1; font-weight: 400; }
.faq details[open] summary::after { content: "\2013"; }
.faq details > :not(summary) { margin-top: 0; padding-bottom: 14px; }
.faq details > p + p, .faq details > ul { margin-top: 10px; }

/* "Why Platurum" (l-about): its <main> is not inside .adv, so it gets the same column edges here (BR-215) */
.l-about main { width: 100%; max-width: 1240px; margin: 0 auto; padding: 22px var(--gutter) 0; }
.about .about__next { margin: 36px 0 0; }

/* ───────── wider screens ───────── */

@media (max-width: 339px) {
  .l-home main { padding-left: 20px; padding-right: 20px; }
  .hero h1 { font-size: 27px; }
}

@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .kv > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; }
  .layers, .about__next { grid-template-columns: 1fr 1fr; }
  .tree ul { grid-template-columns: 1fr 1fr; column-gap: 24px; }
}

@media (min-width: 720px) {
  .l-simple { --thread: 40px; --pad: 60px; }
  body { font-size: 18px; }
  .l-home main { padding: 8px 40px 0; }
  .hero__logo { width: 220px; }
  .hero h1 { margin-top: 30px; font-size: 56px; line-height: 1.08; letter-spacing: -0.025em; }
  .hero__lead { margin-top: 20px; max-width: 46ch; font-size: 20px; }
  .cta { min-height: 64px; font-size: 20px; }
  .reasons { margin-top: 48px; }
  .reasons ul { max-width: 560px; margin: 0 auto; }
  .foot__in { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 4px 28px; padding: 16px 40px; }
  .foot__knot { margin-bottom: 0; }
  .foot__facts > span { display: inline; }
  .foot__by::before { content: "· "; }
  .foot__facts > .foot__legal { display: block; }   /* the registered office and IČO: a line of its own */
  .lede { font-size: 20px; }
  .fig { max-width: 520px; }
  .qa { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .qa > div + div { border-top: 0; }
  .qa > div { border-bottom: 1px solid var(--line); }
  .get { padding: 44px 44px 40px; }
  .btn { display: inline-flex; min-width: 320px; }
  .get .get__file { text-align: start; padding-inline-start: 4px; }
  .doc h1, .adv-hero h1 { font-size: 40px; }
}

@media (min-width: 900px) {
  .reasons ul { max-width: none; grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .l-home .layers { max-width: none; gap: 40px; }
}

@media (min-width: 1024px) {
  .l-simple { --thread: 64px; --pad: 84px; }
  .top__in { flex-wrap: nowrap; padding-top: 10px; padding-bottom: 10px; gap: 28px; }
  .top__logo img { width: 200px; }
  .top__nav { order: 2; flex: 1 1 auto; display: flex; justify-content: flex-end; align-items: center; gap: 0 28px; padding-bottom: 0; }
  .top__nav a { font-size: 17px; }
  .langs { order: 3; }
  .top--home .top__in { padding-top: 10px; padding-bottom: 0; }
  .hero h1 { font-size: 64px; }

  .intro { padding-top: 64px; padding-bottom: 24px; }
  .intro__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; margin-top: 40px; }
  .contents { margin-top: 0; }
  .chapter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 72px; align-items: center; }
  .chapter--wide { display: block; }
  .fig { margin-top: 0; max-width: none; }
  .qa { margin-top: 20px; column-gap: 72px; }
  .get {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) minmax(0, 380px);
    gap: 16px 40px;
    align-items: start;
    padding: 56px 56px 52px;
    border-radius: 36px;
  }
  .get__mark { margin: -6px 0 0 -8px; }
  .get__verify { margin-top: 0; padding-top: 0; padding-inline-start: 40px; border-top: 0; border-inline-start: 1px solid var(--panel-line); }
  .get__verify p:first-child { margin-top: 0; }

  .adv { display: grid; grid-template-columns: 256px minmax(0, 1fr); gap: 56px; align-items: start; padding: 0 32px; }
  .adv__main { grid-column: 2; grid-row: 1; padding-top: 32px; }
  .l-about main { padding-top: 32px; }
  .tree { grid-column: 1; grid-row: 1; position: sticky; top: 16px; margin: 32px 0 0; padding: 0; background: none; }
  .tree ul { grid-template-columns: 1fr; margin-top: 8px; padding-inline-start: 14px; border-inline-start: 1px solid var(--line); }
  .tiles { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .tile { padding: 18px 18px 20px; }
  .adv-cards { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
  .card, .dev { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .cta { transition: none; }
}
