/* 2026-11-08: the simpler header (header.js). One row: logo · Privacy · account · Chat · Download · ☰ · EN▾ */
html { scroll-padding-top: calc(var(--hdr-h, 64px) + 12px); }
header.top[data-hdr] .wrap { flex-wrap: nowrap; gap: 16px; min-height: 64px; padding-block: 10px; }
header.top[data-hdr] .mark { flex: none; }
header.top[data-hdr] .mark small { margin-top: 4px; }
.h-src { display: none !important; }
.h-hidden-src { display: none !important; }
.h-nav { display: flex; margin-left: auto; }
.h-link { color: var(--muted); text-decoration: none; font-size: var(--s-1); font-weight: 500; padding: 8px 4px; }
.h-link:hover, .h-link[aria-current="page"] { color: var(--ink); }
.h-link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
.h-right { display: flex; align-items: center; gap: 8px; }
header.top[data-hdr] .nav-acc { color: var(--ink); text-decoration: none; font-size: var(--s-1); font-weight: 600; border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 12px 4px 4px; min-height: 36px; display: inline-flex; align-items: center; gap: 8px; }
header.top[data-hdr] .nav-acc:not(:has(.ax-ini)) { padding: 6px 14px; }
header.top[data-hdr] .nav-acc:hover { border-color: var(--ink); }
header.top[data-hdr] .ax-ini { width: 28px; height: 28px; font-size: .72rem; box-shadow: 0 0 0 2px var(--surface); background-size: cover; background-position: center; }
.h-chat, .h-dl { min-height: 38px; white-space: nowrap; }
.h-dl { box-shadow: 0 6px 18px -10px color-mix(in srgb, var(--accent) 80%, transparent); }
.h-more { all: unset; box-sizing: border-box; cursor: pointer; display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 999px; color: var(--ink); border: 1px solid var(--line); }
.h-more:hover, .h-more[aria-expanded="true"] { border-color: var(--ink); }
.h-more svg, .h-close svg { width: 20px; height: 20px; }
.h-more:focus-visible, .h-close:focus-visible, .h-lang:focus-visible, .h-langopt:focus-visible, .h-tool:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* language: last item, compact */
.h-langbox { position: relative; }
.h-lang { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; height: 40px; padding: 0 10px;
  border-radius: 999px; color: var(--muted); font: 600 .78rem/1 var(--f-body); }
.h-lang:hover, .h-lang[aria-expanded="true"] { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.h-lang svg { width: 16px; height: 16px; }
.h-lang svg:last-child { width: 14px; height: 14px; }
.h-langpop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 160px; padding: 6px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 16px 40px -18px color-mix(in srgb, var(--ink) 35%, transparent); display: grid; z-index: 30; }
.h-langopt { all: unset; box-sizing: border-box; cursor: pointer; padding: 10px 12px; border-radius: 9px; font: 500 .9rem/1.2 var(--f-body); color: var(--ink); }
.h-langopt:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.h-langopt[aria-current="true"] { color: var(--accent); font-weight: 700; }
.h-langopt[lang="si"] { font-family: var(--f-si); }

/* the menu */
.h-shade { position: fixed; inset: 0; z-index: 9; background: color-mix(in srgb, #000 28%, transparent); }
.h-menu { position: fixed; right: max(16px, calc((100vw - 1120px) / 2 + 16px)); top: calc(var(--hdr-h, 64px) + 8px); width: 340px; max-height: calc(100vh - var(--hdr-h, 64px) - 24px);
  overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 8px 8px 16px; z-index: 20;
  box-shadow: 0 24px 60px -24px color-mix(in srgb, var(--ink) 40%, transparent); }
.h-mhead { display: none; }
.h-mcta { display: none; }
.h-mlinks { display: grid; }
.h-mlinks a { color: var(--ink); text-decoration: none; padding: 12px 14px; border-radius: 10px; font-weight: 500; }
.h-mlinks a:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.h-mlinks a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }

.h-mtools { display: grid; gap: 2px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.h-tool { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px;
  color: var(--ink); font: 500 .92rem/1.3 var(--f-body); }
.h-tool:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.h-tool svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.h-tool[aria-pressed="true"] svg { color: var(--accent); }
.h-mlang { display: none; margin-top: 8px; padding: 12px 14px 0; border-top: 1px solid var(--line); }
.h-mlabel { margin: 0 0 8px; font-size: var(--s-1); color: var(--muted); }
.h-mlang .lang-sw { display: flex; width: 100%; }
.h-mlang .lang-sw button { flex: 1; text-align: center; padding: 10px 6px; }

/* laptops: hide the text label on Chat */
@media (max-width: 940px) { .h-chat span { display: none; } .h-chat { padding: 8px 10px; } }

/* tablets and phones: logo · avatar · ☰ */
@media (max-width: 860px) {
  .h-nav, .h-chat, .h-dl, .h-langbox { display: none !important; }
  .h-right { margin-left: auto; }
  header.top[data-hdr] .nav-acc .ax-label { display: none; }
  header.top[data-hdr] .nav-acc:has(.ax-ini) { padding: 3px; border-color: transparent; }
  header.top[data-hdr] .ax-ini { width: 34px; height: 34px; font-size: .8rem; }
  .h-menu { position: fixed; inset: 0; width: auto; max-height: none; border-radius: 0; border: 0; padding: 0 16px 32px;
    padding-bottom: max(32px, env(safe-area-inset-bottom)); z-index: 40; overscroll-behavior: contain; }
  .h-mhead { display: flex; align-items: center; justify-content: space-between; min-height: 64px; position: sticky; top: 0; background: var(--surface); z-index: 1; }
  .h-mtitle { font: 600 1.1rem/1 var(--f-body); }
  .h-close { all: unset; cursor: pointer; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; color: var(--ink); }
  .h-close:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
  .h-mcta { display: grid; gap: 10px; margin: 4px 0 16px; }
  .h-mcta .btn { justify-content: center; min-height: 48px; }
  .h-mlinks a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
  .h-mlinks a[aria-current="page"] { background: none; }
  .h-mtools { border-top: 0; margin-top: 12px; }
  .h-tool { padding: 13px 4px; }
  .h-mlang { display: block; padding-inline: 4px; }
  html.h-locked, html.h-locked body { overflow: hidden; }
}
@media (max-width: 340px) { header.top[data-hdr] .mark small { display: none; } header.top[data-hdr] .wrap { gap: 8px; } }

/* ---- home hero (2026-11-08) */
.hero .eyebrow { text-transform: none !important; letter-spacing: 0 !important; font-size: .85rem; font-weight: 600; display: inline-block; align-self: flex-start;
  padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); line-height: 1.4; }
@media (max-width: 860px) {
  .hero .display { display: none; }                         /* the header already shows VELION */
  .hero h1 { font-size: clamp(1.45rem, 6vw, 1.9rem) !important; }
  .hero .lead { font-size: 1rem; }
  .hero-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-btns .btn { justify-content: center; }
  .hero-btns .btn.hero-web { grid-column: 1 / -1; order: -1; background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
  .hero-btns .btn.hero-dl { grid-column: 1 / -1; background: transparent; color: var(--ink); border-color: var(--line); }
  .hero-setup { display: none !important; }
  .hero-demo { grid-column: 1 / -1; }
}
@media (min-width: 861px) { .hero-btns .hero-demo, .hero-btns .hero-setup { padding: 10px 16px; font-size: var(--s-1); } }
.ax-ini.has-img { background: var(--surface); overflow: hidden; }
.ax-ini img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }

/* ---- long pages: nothing wider than the screen (privacy, terms, changelog) */
.stack > *, .stack-lg > *, .grid-2 > *, .grid-3 > * { min-width: 0; }
.mono, code { overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .tw-cards { overflow: visible; border: 0; background: none; }
  .table-wrap table { min-width: 0; }
  .tw-cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tw-cards tr { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 12px; }
  .tw-cards td, .tw-cards th { display: block; border: 0 !important; padding: 0 !important; }
  .tw-cards td:first-child, .tw-cards tbody th { font-weight: 700; margin-bottom: 6px; }
  h2 { overflow-wrap: anywhere; }
}
@media (max-width: 600px) { .tw-cards tr.t-head { display: none; } }
@media (max-width: 600px) { .tw-cards th, .tw-cards td { width: auto !important; max-width: none !important; } main h2 { font-size: clamp(1.45rem, 7vw, 1.9rem); } }
@media (max-width: 340px) { header.top[data-hdr] .mark { font-size: 1.05rem; } header.top[data-hdr] .mark .beta { display: none; } }
@media (max-width: 400px) { .ask-row { flex-wrap: wrap; } .ask-row .btn { flex: 1; justify-content: center; } .ask-row input { flex-basis: 100%; } }
.req-note { display: block; margin-top: 6px; text-transform: none; letter-spacing: 0; font: 400 var(--s-1)/1.5 var(--f-body); color: var(--muted); }
caption:has(.req-note) { padding-bottom: 12px !important; }
