/* dos.mk — the site's ONE stylesheet (13 септември 2026).
   ==========================================================================
   The same product the apps are: DOS Sans, the Nightshine/Sunshine palettes of
   internal/theme/theme.go, the radii of internal/uikit (card 14 · button 9 · chip 8),
   a chip that shows STATE, a quiet control that opens after a second and forgives
   0.8 s. Written as a system, in layers, each thing defined once:
     1 tokens   2 base   3 layout (l-)   4 components (c-)   5 pages (p-)   6 utilities (u-)
   No !important anywhere, no inline style anywhere (the CSP will forbid it, as in /sa/).
   Two themes through tokens only. Generated pages: see _site/ and deploy/build-site.py.
   ========================================================================== */

/* ---------- 1 · tokens ---------- */
@font-face { font-family: 'DOS Sans'; src: url('assets/fonts/DOSSans-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'DOS Sans'; src: url('assets/fonts/DOSSans-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'DOS Sans'; src: url('assets/fonts/DOSSans-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* Sunshine — internal/theme/theme.go lightPalette */
  color-scheme: light;
  --bg: #f4f7fa; --panel: #ffffff; --panel-2: #f5f9fc; --raised: #d9e5ec;
  --line: #dde5ec; --line-2: #b6c9db;
  --text: #102a43; --muted: #637385; --faint: #8697a6;
  --accent: #1096d7; --accent-btn: #0b6f9f; --accent-text: #0b6f9f; --accent-soft: rgba(16,150,215,.10);
  --ok: #1f9d4d; --warn: #c97f09; --err: #d03939;
  --brand-yellow: #ffd300; --brand-yellow-ink: #0b2238;
  --navy: #0b2238; --navy-2: #102d48;
  --shadow-card: 0 10px 30px rgba(16,42,67,.08); --shadow-pop: 0 24px 60px rgba(16,42,67,.18);
  --ring: 0 0 0 3px rgba(16,150,215,.22);
  /* shape — internal/uikit */
  --r-card: 14px; --r-btn: 9px; --r-chip: 8px; --r-pill: 999px;
  /* rhythm and type */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 72px;
  --fs-0: 12px; --fs-1: 13px; --fs-2: 15px; --fs-3: 17px; --fs-4: 20px; --fs-5: 26px; --fs-6: clamp(28px, 2.4vw + 14px, 38px); --fs-7: clamp(36px, 4.2vw + 12px, 60px);
  --font: 'DOS Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --container: 1160px;
  --header-h: 68px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b2238; --panel: #102d48; --panel-2: #183b57; --raised: #173955;
    --line: #244863; --line-2: #2a506d;
    --text: #e8e9ee; --muted: #9eb1c2; --faint: #6f8599;
    --accent: #1096d7; --accent-btn: #0b6f9f; --accent-text: #6fc0fa; --accent-soft: rgba(16,150,215,.16);
    --ok: #22c55e; --warn: #f59e0b; --err: #ef4444;
    --shadow-card: 0 10px 30px rgba(0,0,0,.28); --shadow-pop: 0 24px 60px rgba(0,0,0,.45);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b2238; --panel: #102d48; --panel-2: #183b57; --raised: #173955;
  --line: #244863; --line-2: #2a506d;
  --text: #e8e9ee; --muted: #9eb1c2; --faint: #6f8599;
  --accent: #1096d7; --accent-btn: #0b6f9f; --accent-text: #6fc0fa; --accent-soft: rgba(16,150,215,.16);
  --ok: #22c55e; --warn: #f59e0b; --err: #ef4444;
  --shadow-card: 0 10px 30px rgba(0,0,0,.28); --shadow-pop: 0 24px 60px rgba(0,0,0,.45);
}

/* ---------- 2 · base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font: 400 var(--fs-2)/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
body.has-menu { overflow: hidden; }
h1, h2, h3, h4, p, ul { margin: 0; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; font-weight: 700; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
img, svg { display: block; }
ul { padding-left: 20px; }
::selection { background: var(--brand-yellow); color: var(--brand-yellow-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-chip); }
[hidden] { display: none; }

/* ---------- 3 · layout ---------- */
.l-container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.l-section { padding-block: clamp(56px, 7vw, 96px); }
.l-section--tight { padding-block: clamp(32px, 4vw, 56px); }
.l-grid { display: grid; gap: var(--sp-4); }
.l-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.l-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.l-stack { display: flex; flex-direction: column; gap: var(--sp-3); }
.l-row { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
/* A left-aligned section head has nothing beside it either, so it is not capped; only the
   CENTRED variant keeps a measure, because a centred block must not span the whole page. */
.l-heading { display: flex; flex-direction: column; gap: var(--sp-3); margin-bottom: var(--sp-6); }
.l-heading--center { max-width: 62ch; margin-inline: auto; text-align: center; align-items: center; }
.l-heading h2 { font-size: var(--fs-6); }
.l-heading p { color: var(--muted); font-size: var(--fs-3); max-width: 58ch; }

/* ---------- 4 · components ---------- */
/* kicker: the small uppercase line above a heading — the app's dosHomeLabel */
.c-kicker { display: inline-flex; align-items: center; gap: var(--sp-2); color: var(--accent-text); font-size: var(--fs-0); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.c-kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-yellow); }

/* buttons: one definition of every state */
.c-button { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); min-height: 42px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: var(--r-btn); background: var(--panel); color: var(--text); font-size: var(--fs-2); font-weight: 600; white-space: nowrap; transition: background .14s ease, border-color .14s ease, transform .08s ease, box-shadow .14s ease; }
.c-button:hover { border-color: var(--accent); background: var(--panel-2); }
.c-button:active { transform: translateY(1px); }
.c-button--primary { border-color: var(--accent-btn); background: var(--accent-btn); color: #fff; }
.c-button--primary:hover { border-color: var(--accent); background: var(--accent); }
.c-button--ghost { border-color: transparent; background: transparent; color: var(--muted); }
.c-button--ghost:hover { color: var(--text); border-color: var(--line); background: transparent; }
.c-button--small { min-height: 36px; padding: 0 14px; font-size: var(--fs-1); }
.c-button--full { width: 100%; }
.c-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* chips: a chip says what IS, never what a click would do */
.c-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 10px; border-radius: var(--r-chip); background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); font-size: var(--fs-0); font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.c-chip--on { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); background: color-mix(in srgb, var(--ok) 10%, transparent); }
.c-chip--accent { color: var(--accent-text); border-color: color-mix(in srgb, var(--accent) 35%, transparent); background: var(--accent-soft); }
.c-chip--warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 35%, transparent); background: color-mix(in srgb, var(--warn) 10%, transparent); }
.c-chip__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.c-chip--on .c-chip__dot { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 18%, transparent); }

/* cards */
.c-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--sp-5); box-shadow: var(--shadow-card); }
.c-card--flat { box-shadow: none; }
.c-card--link { display: block; transition: border-color .14s ease, transform .14s ease; }
.c-card--link:hover { border-color: var(--accent); transform: translateY(-2px); }
.c-card__icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-chip); background: var(--accent-soft); color: var(--accent-text); margin-bottom: var(--sp-4); }
.c-card__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.c-card__icon--yellow { background: color-mix(in srgb, var(--brand-yellow) 22%, transparent); color: var(--brand-yellow-ink); }
:root[data-theme="dark"] .c-card__icon--yellow { color: var(--brand-yellow); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .c-card__icon--yellow { color: var(--brand-yellow); } }
.c-card h3 { font-size: var(--fs-4); margin-bottom: var(--sp-2); }
.c-card p { color: var(--muted); }
.c-card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--sp-4); color: var(--accent-text); font-weight: 600; font-size: var(--fs-1); }

/* the quiet control: a chip that opens a small card after a second under the pointer
   (uikit.Reveal: revealHoverDelay 1 s, revealGrace 0.8 s); on touch it opens on tap */
.c-quiet { position: relative; }
.c-quiet__card { position: absolute; top: calc(100% + 8px); right: 0; z-index: 40; min-width: 168px; padding: 6px; border: 1px solid var(--line-2); border-radius: var(--r-card); background: var(--panel); box-shadow: var(--shadow-pop); opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .16s ease, transform .16s ease; }
.c-quiet.is-open .c-quiet__card { opacity: 1; transform: none; pointer-events: auto; }
.c-quiet__card::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }  /* the bridge from chip to card */
.c-quiet__item { display: flex; width: 100%; align-items: center; gap: var(--sp-2); padding: 8px 10px; border-radius: var(--r-chip); text-align: left; font-size: var(--fs-1); font-weight: 500; color: var(--text); }
.c-quiet__item:hover { background: var(--panel-2); }
.c-quiet__item.is-on { color: var(--accent-text); font-weight: 700; }
.c-quiet__item .c-chip { min-height: 22px; padding: 0 7px; }

/* the segment: one active, the rest quiet — the app's GrantSegment */
.c-segment { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--panel-2); }
.c-segment__item { min-height: 30px; padding: 0 10px; border-radius: 7px; color: var(--muted); font-size: var(--fs-0); font-weight: 700; letter-spacing: .06em; }
.c-segment__item:hover { color: var(--text); }
.c-segment__item.is-on { background: var(--panel); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.12); }

/* icon buttons (theme, menu) */
.c-iconbtn { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--panel); color: var(--muted); transition: color .14s, border-color .14s; }
.c-iconbtn:hover { color: var(--text); border-color: var(--line-2); }
.c-iconbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* the theme button shows the STATE: a sun while light, a moon while dark */
.c-iconbtn--theme .c-ico-moon { display: none; }
:root[data-theme="dark"] .c-iconbtn--theme .c-ico-sun { display: none; }
:root[data-theme="dark"] .c-iconbtn--theme .c-ico-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .c-iconbtn--theme .c-ico-sun { display: none; }
  :root:not([data-theme="light"]) .c-iconbtn--theme .c-ico-moon { display: block; }
}

/* brand */
.c-brand { display: inline-flex; align-items: center; gap: 10px; }
.c-brand__mark { width: 36px; height: 36px; flex: none; }
.c-brand__name { display: flex; flex-direction: column; line-height: 1.05; }
.c-brand__name strong { font-size: var(--fs-3); letter-spacing: .04em; color: var(--accent-text); }
.c-brand__name span { font-size: 11px; font-weight: 600; color: var(--muted); }
.c-brand__name em { font-style: normal; color: var(--warn); }

/* header */
.c-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.c-header__row { height: var(--header-h); display: flex; align-items: center; gap: var(--sp-4); }
.c-nav { display: flex; align-items: center; gap: 4px; margin-left: var(--sp-4); }
.c-nav a { position: relative; padding: 8px 12px; border-radius: var(--r-chip); color: var(--muted); font-size: var(--fs-2); font-weight: 500; transition: color .14s, background .14s; }
.c-nav a:hover { color: var(--text); background: var(--panel-2); }
.c-nav a[aria-current="page"] { color: var(--text); font-weight: 700; }
.c-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--brand-yellow); }
.c-header__actions { margin-left: auto; display: flex; align-items: center; gap: var(--sp-2); }
.c-header__login { display: inline-flex; }
.c-menubtn { display: none; }

/* mobile drawer */
.c-drawer { position: fixed; inset: var(--header-h) 0 0 0; z-index: 45; background: var(--bg); padding: var(--sp-5) 20px; overflow: auto; transform: translateX(105%); transition: transform .22s ease; }
.c-drawer.is-open { transform: none; }
.c-drawer__links { display: flex; flex-direction: column; gap: 4px; }
.c-drawer__links a { display: flex; align-items: center; gap: var(--sp-3); padding: 14px 12px; border-radius: var(--r-card); font-size: var(--fs-4); font-weight: 700; }
.c-drawer__links a span { color: var(--faint); font: 700 var(--fs-0)/1 var(--mono); }
.c-drawer__links a b { margin-left: auto; color: var(--accent-text); font-weight: 400; }
.c-drawer__links a:hover, .c-drawer__links a[aria-current="page"] { background: var(--panel); }
.c-drawer__bottom { display: flex; flex-direction: column; gap: var(--sp-3); margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid var(--line); }
.c-drawer__meta { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); color: var(--muted); font-size: var(--fs-1); }

/* footer — like DOS Home's: the quiet things at the bottom, in one row */
.c-footer { border-top: 1px solid var(--line); background: var(--panel); padding-block: var(--sp-7) var(--sp-5); }
.c-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: var(--sp-6); }
.c-footer__col { display: flex; flex-direction: column; gap: 10px; }
.c-footer__col strong { color: var(--text); font-size: var(--fs-0); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }
.c-footer__col a { color: var(--muted); font-size: var(--fs-2); }
.c-footer__col a:hover { color: var(--text); }
.c-footer__lead { color: var(--muted); font-size: var(--fs-2); max-width: 32ch; margin-top: var(--sp-3); }
.c-footer__bottom { display: flex; align-items: center; justify-content: center; text-align: center; gap: var(--sp-4); flex-wrap: wrap; margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-1); }
.c-footer__legal { margin-top: var(--sp-3); color: var(--faint); font-size: var(--fs-0); line-height: 1.6; max-width: 92ch; }

/* the app window: the drawing every hero carries */
.c-window { position: relative; border: 1px solid var(--line-2); border-radius: var(--r-card); background: var(--navy-2); color: #e8e9ee; box-shadow: var(--shadow-pop); overflow: hidden; font-size: 12px; line-height: 1.4; }
.c-window__top { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; background: #0b2238; border-bottom: 1px solid #244863; }
.c-window__brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 12px; color: #c7daea; }
.c-window__brand i { width: 18px; height: 18px; border-radius: 5px; background: var(--accent); display: grid; place-items: center; color: #fff; font-style: normal; font-size: 9px; font-weight: 800; }
.c-window__dots { margin-left: auto; display: flex; gap: 6px; }
.c-window__dots i { width: 9px; height: 9px; border-radius: 50%; background: #2a506d; }
.c-window__body { display: grid; grid-template-columns: 56px 1fr; min-height: 380px; }
.c-window__rail { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 0; background: #071a2b; border-right: 1px solid #244863; }
.c-window__rail i { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: #5f7b92; }
.c-window__rail i.is-on { background: rgba(16,150,215,.18); color: #6fc0fa; }
.c-window__rail i svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.c-window__rail i:last-child { margin-top: auto; }
.c-window__main { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.c-window__label { color: #9eb1c2; font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.c-window__label--blue { color: #6fc0fa; }
.c-window__title { font-size: 16px; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.c-window__panel { border: 1px solid #244863; border-radius: 12px; background: #102d48; padding: 12px; }
.c-window__field { display: flex; flex-direction: column; gap: 4px; }
.c-window__input { height: 32px; display: flex; align-items: center; padding: 0 10px; border: 1px solid #2a506d; border-radius: 8px; background: #0f1015; color: #e8e9ee; font: 500 12px/1 var(--mono); letter-spacing: .04em; }
.c-window__input--placeholder { color: #6f8599; }
.c-window__btn { height: 32px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border-radius: 9px; background: #0b6f9f; color: #fff; font-weight: 700; font-size: 12px; }
.c-window__chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 8px; border: 1px solid #2a506d; background: #183b57; color: #9eb1c2; font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.c-window__chip--on { color: #22c55e; border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.1); }
.c-window__chip--on i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(34,197,94,.18); }
.c-window__list { display: flex; flex-direction: column; gap: 6px; }
.c-window__row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid #244863; border-radius: 9px; background: #0b2238; }
.c-window__row strong { font-size: 12px; color: #fff; }
.c-window__row small { display: block; color: #9eb1c2; font-size: 10px; }
.c-window__row .c-window__chip { margin-left: auto; }
.c-window__foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; border-top: 1px solid #244863; color: #6f8599; font-size: 10px; }
.c-window__foot span { padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.04); }

/* the home drawing (variant B): the real DOS Home — a rail of sections with their summaries,
   the quiet footer, the quick-connect row and the two lists side by side */
.c-window__body--rail { grid-template-columns: 176px minmax(0, 1fr); }
.c-window__sidebar { display: flex; flex-direction: column; gap: 6px; padding: 12px 10px; background: #071a2b; border-right: 1px solid #244863; }
.c-window__side-item { display: flex; align-items: flex-start; gap: 8px; padding: 8px; border-radius: 9px; color: #9eb1c2; }
.c-window__side-item.is-on { background: rgba(16,150,215,.16); color: #fff; }
.c-window__side-item svg { width: 15px; height: 15px; flex: none; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: #6fc0fa; }
.c-window__side-item span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.c-window__side-item strong { font-size: 11px; font-weight: 700; }
.c-window__side-item small { font-size: 9px; color: #6f8599; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-window__side-item small em { font-style: normal; color: #22c55e; }
.c-window__sidebar .c-window__foot { margin-top: auto; font-size: 9px; gap: 4px; }
.c-window__sidebar .c-window__foot span { padding: 1px 5px; }
.c-window__quick { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr) auto; gap: 8px; align-items: end; margin: 8px 0; }
.c-window__quick .c-window__field { min-width: 0; }
.c-window__quick .c-window__input { overflow: hidden; }
.c-window__pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.c-window__pair .c-window__panel { min-width: 0; padding: 10px; }
.c-window__pair .c-window__row { gap: 6px; }
.c-window__pair .c-window__row > span:first-child { min-width: 0; overflow: hidden; }
.c-window__pair .c-window__row strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; }
.c-window__pair .c-window__row small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-window--home .c-window__main { gap: 10px; min-width: 0; padding: 14px; }
.c-window--home .c-window__title { font-size: 15px; }
.c-window--home .c-window__row { padding: 6px 8px; }
@media (max-width: 600px) {
  .c-window__body--rail { grid-template-columns: 1fr; }
  .c-window__sidebar { flex-direction: row; flex-wrap: wrap; }
  .c-window__sidebar .c-window__foot { display: none; }
  .c-window__quick { grid-template-columns: 1fr; }
  .c-window__pair { grid-template-columns: 1fr; }
}

/* a floating receipt beside the window (variant A keeps two) */
.c-float { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--panel); color: var(--text); box-shadow: var(--shadow-pop); font-size: var(--fs-1); }
.c-float span:first-child { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); font-weight: 800; }
.c-float small { display: block; color: var(--muted); font-size: var(--fs-0); }
.c-float--fast span:first-child { background: color-mix(in srgb, var(--brand-yellow) 26%, transparent); color: var(--brand-yellow-ink); }
:root[data-theme="dark"] .c-float--fast span:first-child { color: var(--brand-yellow); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .c-float--fast span:first-child { color: var(--brand-yellow); } }

/* the plan card */
.c-plan { display: flex; flex-direction: column; gap: var(--sp-4); }
.c-plan__name { font-size: var(--fs-1); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.c-plan__price { display: flex; align-items: baseline; gap: 6px; }
.c-plan__price strong { font-size: var(--fs-5); letter-spacing: -.02em; }
.c-plan__price span { color: var(--muted); font-size: var(--fs-1); }
.c-plan--featured { border-color: var(--accent); }
/* The plan's name and, on the recommended one, its badge — one row, so the badge is IN the card
   and on the same line as everything below it. It used to hang above the top edge on an absolute
   offset: loose on a light page, off-centre, and overlapping a rounded corner. */
.c-plan__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); min-height: 26px; }
.c-plan ul { padding-left: 18px; color: var(--muted); font-size: var(--fs-1); display: flex; flex-direction: column; gap: 4px; }
.c-plan ul li::marker { color: var(--ok); }
.c-plan__includes { font-size: var(--fs-1); font-weight: 700; }

/* the CTA band */
.c-cta { border-radius: var(--r-card); background: var(--navy); color: #e8e9ee; padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--sp-5); align-items: center; overflow: hidden; position: relative; }
.c-cta::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(16,150,215,.35), transparent 65%); pointer-events: none; }
.c-cta h2 { font-size: var(--fs-6); color: #fff; }
.c-cta p { color: #9eb1c2; margin-top: var(--sp-3); max-width: 50ch; }
.c-cta__actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; justify-content: flex-end; position: relative; }
.c-cta .c-button { border-color: #2a506d; background: #183b57; color: #fff; }
.c-cta .c-button--primary { border-color: var(--accent-btn); background: var(--accent-btn); }

/* the trust strip */
.c-trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--panel); overflow: hidden; }
.c-trust > div { padding: var(--sp-4) var(--sp-5); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.c-trust > div:last-child { border-right: 0; }
.c-trust strong { font-size: var(--fs-5); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.c-trust strong span { color: var(--accent-text); font-size: var(--fs-3); font-weight: 600; margin-left: 2px; }
.c-trust small { color: var(--muted); font-size: var(--fs-1); }

/* page head — the app's pageHeading: a kicker, the title, one sentence */
/* The subpage head has nothing beside it, so it takes the container's width (13 сеп 2026,
   Зоран: „овие ваквите (има неколку, без ништо десно) не е паметно да се 100 %?"). Only the
   paragraph keeps a reading measure — a headline may run wide, a sentence may not. */
.c-pagehead { padding-block: clamp(40px, 6vw, 72px) clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: var(--sp-3); }
.c-pagehead h1 { font-size: var(--fs-7); }
.c-pagehead h1 span { display: block; color: var(--accent-text); }
.c-pagehead p { color: var(--muted); font-size: var(--fs-3); max-width: 58ch; }
.c-pagehead__row { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-2); }

/* the bento of the product page */
.c-bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
.c-bento .c-card { display: flex; flex-direction: column; gap: var(--sp-2); }
.c-bento .c-card h3 { margin-bottom: 0; }
.c-bento .c-card p { flex: 1; }
.c-bento__wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--sp-5); align-items: center; }
.c-bento__wide > div:first-child { display: flex; flex-direction: column; gap: var(--sp-2); }
.c-bento__visual { margin-top: var(--sp-3); display: flex; flex-direction: column; gap: 8px; }
.c-transfer { display: flex; align-items: center; gap: 10px; }
.c-transfer progress { flex: 1; height: 6px; appearance: none; border: 0; border-radius: 3px; background: var(--raised); overflow: hidden; }
.c-transfer progress::-webkit-progress-bar { background: var(--raised); }
.c-transfer progress::-webkit-progress-value, .c-transfer progress::-moz-progress-bar { background: var(--accent); border-radius: 3px; }
.c-transfer strong { font-variant-numeric: tabular-nums; font-size: var(--fs-1); }
.c-bubble { display: inline-block; max-width: 80%; padding: 8px 12px; border-radius: 12px 12px 12px 4px; background: var(--panel-2); border: 1px solid var(--line); font-size: var(--fs-1); }
.c-bubble--reply { align-self: flex-end; border-radius: 12px 12px 4px 12px; background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.c-route { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 8px; padding: var(--sp-4); border: 1px dashed var(--line-2); border-radius: var(--r-card); }
.c-route__node { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line); font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.c-route__node--live { border-color: var(--ok); color: var(--ok); }
.c-route__line { height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px); }
.c-route__line--live { background: var(--ok); }
.c-route__label { grid-column: 1 / -1; text-align: center; font-size: var(--fs-0); color: var(--muted); }

/* tabs — one active, the rest quiet, the panel beneath */
.c-tabs { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--sp-5); align-items: start; }
.c-tabs__list { display: flex; flex-direction: column; gap: 6px; }
.c-tabs__tab { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--panel); text-align: left; transition: border-color .14s, background .14s; }
.c-tabs__tab:hover { border-color: var(--line-2); }
.c-tabs__tab[aria-selected="true"] { border-color: var(--accent); background: var(--accent-soft); }
.c-tabs__tab > span:first-child { font: 700 var(--fs-0)/1 var(--mono); color: var(--faint); }
.c-tabs__tab strong { display: block; font-size: var(--fs-2); }
.c-tabs__tab small { display: block; color: var(--muted); font-size: var(--fs-0); }
.c-tabs__panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-5); align-items: start; }
.c-tabs__panel[hidden] { display: none; }
.c-tabs__copy { display: flex; flex-direction: column; gap: var(--sp-3); }
.c-tabs__copy h3 { font-size: var(--fs-5); }
.c-tabs__copy p { color: var(--muted); }
.c-tabs__copy ul { padding-left: 18px; color: var(--muted); font-size: var(--fs-1); display: flex; flex-direction: column; gap: 4px; }
.c-tabs__copy ul li::marker { color: var(--accent); }
.c-tabs__no { font: 700 var(--fs-0)/1 var(--mono); color: var(--faint); letter-spacing: .1em; }
.c-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.c-tile { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--panel); }
.c-tile svg { width: 20px; height: 20px; fill: none; stroke: var(--accent-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 4px; }
.c-tile strong { font-size: var(--fs-2); }
.c-tile small { color: var(--muted); font-size: var(--fs-0); }
.c-consent { max-width: 340px; padding: var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--panel); display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow-card); }
.c-consent__shield { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); font-weight: 800; }
.c-consent h4 { font-size: var(--fs-3); }
.c-consent p { color: var(--muted); font-size: var(--fs-1); }
.c-consent__actions { display: flex; gap: 8px; margin-top: 4px; }

/* steps */
.c-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); counter-reset: step; }
.c-step { position: relative; display: flex; flex-direction: column; gap: 8px; }
.c-step__no { font: 700 var(--fs-0)/1 var(--mono); color: var(--faint); letter-spacing: .1em; }
.c-step h3 { font-size: var(--fs-4); }
.c-step p { color: var(--muted); }

/* security points and the compliance badges */
.c-points { display: flex; flex-direction: column; gap: var(--sp-4); }
.c-points__item { display: grid; grid-template-columns: 36px 1fr; gap: var(--sp-3); }
.c-points__no { font: 700 var(--fs-0)/1 var(--mono); color: var(--accent-text); padding-top: 6px; }
.c-points h3 { font-size: var(--fs-3); margin-bottom: 4px; }
.c-points p { color: var(--muted); }
.c-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.c-badges .c-chip svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.c-shield { position: relative; width: min(100%, 420px); aspect-ratio: 1; margin-inline: auto; display: grid; place-items: center; }
.c-shield__ring { position: absolute; inset: 0; border: 1px solid var(--line-2); border-radius: 50%; }
.c-shield__ring--in { inset: 18%; border-style: dashed; }
.c-shield__core { width: 120px; height: 120px; display: grid; place-items: center; border-radius: 30px; background: var(--navy-2); color: var(--brand-yellow); border: 1px solid #244863; box-shadow: var(--shadow-pop); }
.c-shield__core svg { width: 56px; height: 56px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.c-shield__chip { position: absolute; }
.c-shield__chip--a { top: 10%; right: 4%; }
.c-shield__chip--b { bottom: 16%; left: 0; }
.c-shield__chip--c { bottom: 2%; right: 16%; }
.p-security__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--sp-7); align-items: center; }

/* download */
.c-dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
.c-dl__card { display: flex; flex-direction: column; gap: var(--sp-3); }
.c-dl__card.is-yours { border-color: var(--accent); }
.c-dl__os { display: flex; align-items: center; gap: 12px; }
.c-dl__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); color: var(--accent-text); }
.c-dl__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.c-dl__os h3 { font-size: var(--fs-4); }
.c-dl__os p { color: var(--muted); font-size: var(--fs-1); }
.c-dl__os .dl-ver { color: var(--accent-text); font-weight: 700; }
.c-dl__actions { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.c-dl__actions a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r-btn); font-size: var(--fs-1); font-weight: 600; transition: border-color .14s, background .14s; }
.c-dl__actions a:hover { border-color: var(--accent); background: var(--accent-soft); }
.c-dl__actions a b { color: var(--accent-text); font-weight: 700; }
.c-dl__soon { color: var(--muted); font-size: var(--fs-1); padding: 9px 0; }
.c-banner { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-4) var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--panel); }
.c-banner__icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); font-weight: 800; }
.c-banner strong { display: block; font-size: var(--fs-2); }
.c-banner p { color: var(--muted); font-size: var(--fs-1); }
.c-banner .c-chip { margin-left: auto; flex: none; }

/* faq */
.c-faq { display: flex; flex-direction: column; gap: 8px; }
.c-faq details { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--panel); }
.c-faq summary { display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; list-style: none; font-weight: 600; }
.c-faq summary::-webkit-details-marker { display: none; }
.c-faq summary::after { content: "+"; margin-left: auto; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: var(--r-chip); color: var(--muted); font-weight: 700; }
.c-faq details[open] summary::after { content: "−"; color: var(--accent-text); border-color: var(--accent); }
.c-faq details p { padding: 0 18px 16px; color: var(--muted); }
.p-help__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--sp-6); align-items: start; }
.c-contact { display: flex; flex-direction: column; gap: var(--sp-3); }
.c-contact a.c-button { align-self: flex-start; }

/* ---------- 5 · pages ---------- */
/* home: the hero */
.p-hero { padding-block: clamp(40px, 6vw, 80px) clamp(40px, 5vw, 64px); position: relative; }
.p-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.p-hero__copy { display: flex; flex-direction: column; gap: var(--sp-4); }
.p-hero h1 { font-size: var(--fs-7); }
.p-hero h1 span { display: block; color: var(--accent-text); }
.p-hero__lead { color: var(--muted); font-size: var(--fs-3); max-width: 52ch; }
.p-hero__actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-2); }
.p-hero__proof { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-3); color: var(--muted); font-size: var(--fs-1); }
.p-hero__proof strong { color: var(--text); }
.p-hero__visual { position: relative; }
.p-hero__visual .c-float--secure { left: -20px; bottom: -14px; }
.p-hero__visual .c-float--fast { right: -12px; top: 32px; }
.p-hero__glow { position: absolute; inset: auto; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 65%); pointer-events: none; z-index: -1; }
.p-hero__glow--a { right: -120px; top: -160px; }
.p-hero__glow--b { left: -200px; bottom: -220px; opacity: .6; }
/* home: the three doors */
.p-doors { padding-top: 0; }
.p-plans-teaser .l-heading { margin-bottom: var(--sp-5); }
.p-plans-teaser__note { margin-top: var(--sp-4); color: var(--muted); font-size: var(--fs-1); text-align: center; }

/* ---------- 6 · utilities, motion, widths ---------- */
.u-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.u-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 14px; border-radius: var(--r-btn); background: var(--accent-btn); color: #fff; font-weight: 700; }
.u-skip:focus { left: 8px; }
.u-muted { color: var(--muted); }
.u-mono { font-family: var(--mono); }
/* reveal-on-scroll: the page is at REST when it loads — only what sits below the fold is
   parked and faded in on its way up (site.js marks it is-pending); nothing waits on an observer */
.u-reveal { transition: opacity .5s ease, transform .5s ease; }
.u-reveal.is-pending { opacity: 0; transform: translateY(12px); }
.u-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms; transition-duration: .001ms; scroll-behavior: auto; }
  .u-reveal.is-pending { opacity: 1; transform: none; }
}
@media (max-width: 1000px) {
  .c-tabs { grid-template-columns: 1fr; }
  .c-tabs__list { flex-direction: row; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
  .c-tabs__tab { flex: 0 0 auto; width: auto; }
  .c-tabs__panel, .c-bento__wide, .p-security__grid, .p-help__grid { grid-template-columns: 1fr; }
  .c-dl { grid-template-columns: 1fr 1fr; }
  .c-steps { grid-template-columns: 1fr; }
  .p-hero__grid { grid-template-columns: 1fr; }
  .p-hero__visual { max-width: 640px; }
  .c-footer__grid { grid-template-columns: 1fr 1fr; }
  .c-trust { grid-template-columns: 1fr 1fr; }
  .c-trust > div:nth-child(2) { border-right: 0; }
  .c-trust > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .l-grid--3 { grid-template-columns: 1fr; }
  .c-cta { grid-template-columns: 1fr; }
  .c-cta__actions { justify-content: flex-start; }
}
@media (max-width: 820px) {
  .c-nav, .c-header__login, .c-header__cta, .c-header .c-quiet--lang, .c-header .c-iconbtn--theme { display: none; }
  .c-menubtn { display: grid; }
  .p-hero__visual .c-float { position: static; margin-top: var(--sp-3); }
  .c-window__body { grid-template-columns: 48px 1fr; }
}
@media (max-width: 600px) {
  .c-bento, .c-dl, .c-tiles { grid-template-columns: 1fr; }
  .c-route { grid-template-columns: 1fr; justify-items: center; }
  .c-route__line { width: 2px; height: 24px; }
  .l-container { width: calc(100% - 32px); }
  .c-footer__grid { grid-template-columns: 1fr; }
  .c-trust { grid-template-columns: 1fr; }
  .c-trust > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .c-trust > div:last-child { border-bottom: 0; }
  .l-grid--2 { grid-template-columns: 1fr; }
}

/* ---------- the free account (/register) and partner-register.php's answer pages (15 сеп 2026) ---------- */
.p-reg__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--sp-5); align-items: start; }
.p-reg__aside { display: grid; gap: var(--sp-4); }
.p-reg__form { display: flex; flex-direction: column; gap: var(--sp-4); }
.p-reg__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
.p-reg__hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.c-field { display: flex; flex-direction: column; gap: 6px; }
.c-field label { font-size: var(--fs-1); font-weight: 700; }
.c-field input { min-height: 42px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-btn); background: var(--panel-2); color: var(--text); font: inherit; }
.c-field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.c-field__hint { color: var(--muted); font-size: var(--fs-0); }
.c-field__error { margin: 0; padding: 10px 12px; border-radius: var(--r-btn); color: var(--warn); background: color-mix(in srgb, var(--warn) 10%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); font-size: var(--fs-1); }
.p-reg__legal { color: var(--muted); font-size: var(--fs-0); margin: 0; }
.p-reg__legal a { color: var(--accent-text); }
.p-reg__answer { max-width: 640px; }
.p-reg__answer p { color: var(--text); }
.p-reg__answer p + p { margin-top: var(--sp-3); }
.p-reg__answer ul { padding-left: 18px; color: var(--muted); }
.p-reg__answer a { color: var(--accent-text); }
.p-reg__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-4); }
.p-reg__actions .c-button { color: var(--text); }
.p-reg__actions .c-button--primary { color: #fff; }
@media (max-width: 860px) { .p-reg__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .p-reg__row { grid-template-columns: minmax(0, 1fr); } }
