/* Skaidris. Vizualinė kalba: tamsus rėmas, užapvalinti blokai, platus „Unbounded“ antraštėms, „Manrope“ tekstui,
   mėlyni apvalūs mygtukai su balta rodykle. Šriftai laikomi vietoje (jokių kreipinių į trečiąsias šalis). */
@font-face { font-family: "Unbounded"; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url(fonts/unbounded-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Unbounded"; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url(fonts/unbounded-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(fonts/manrope-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(fonts/manrope-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Mono"; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-mono-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113; }
@font-face { font-family: "Plex Mono"; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Mono"; font-weight: 600; font-display: swap; src: url(fonts/ibm-plex-mono-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113; }
@font-face { font-family: "Plex Mono"; font-weight: 600; font-display: swap; src: url(fonts/ibm-plex-mono-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- spalvos: tamsus režimas numatytasis, šviesus – per jungiklį ---------- */
:root {
  color-scheme: dark;
  --bg: #0b0b0b; --panel: #151515; --panel-2: #1e1e1e; --line: rgba(255, 255, 255, .12); --line-2: rgba(255, 255, 255, .26);
  --fg: #f6f6f6; --fg-2: rgba(255, 255, 255, .72);
  --accent: #0051c2; --accent-hi: #1a66d6; --accent-text: #8ab4ff; --accent-soft: rgba(0, 81, 194, .22);
  --ok: #46c98b; --ok-soft: rgba(70, 201, 139, .15); --on-ok: #04140c;
  --bad: #ff7a6b; --bad-soft: rgba(255, 122, 107, .16);
  --warn: #ffcf5c; --warn-soft: rgba(255, 207, 92, .15);
  --code-bg: #101010; --code-fg: #dbe6ff; --input-bg: #0f0f0f;
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --text: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --radius: clamp(16px, 11px + .7vw, 24px); --radius-s: 12px;
  --gutter: clamp(16px, 6px + 1.8vw, 32px); --inset: clamp(8px, 5px + .4vw, 12px); --ease: cubic-bezier(.16, 1, .3, 1); --section: clamp(64px, 40px + 6vw, 132px);
  --w: 1240px;
}
:root[data-theme=light] {
  color-scheme: light;
  --bg: #ffffff; --panel: #f4f4f4; --panel-2: #e9e9e9; --line: rgba(0, 0, 0, .12); --line-2: rgba(0, 0, 0, .3);
  --fg: #0c0c0c; --fg-2: #5a5a5a;
  --accent-text: #0051c2; --accent-soft: rgba(0, 81, 194, .1);
  --ok: #137044; --ok-soft: #dcf0e3; --on-ok: #ffffff;
  --bad: #c12f1b; --bad-soft: #fbe2dc;
  --warn: #7a5d00; --warn-soft: #fff1bf;
  --code-bg: #111111; --code-fg: #e6ecfb; --input-bg: #ffffff;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.55 var(--text); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration-color: var(--accent-text); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--accent-text); }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 72ch; }

/* ---------- tipografija ---------- */
h1, h2, .display { font-family: var(--display); font-weight: 500; letter-spacing: -.03em; line-height: 1.08; margin: 0; text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: clamp(30px, 14px + 3.6vw, 62px); }
h2 { font-size: clamp(26px, 14px + 2.6vw, 50px); margin-bottom: 22px; }
h3 { font: 600 19px/1.3 var(--text); margin: 0 0 6px; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(17px, 15px + .4vw, 20px); line-height: 1.5; max-width: 60ch; color: var(--fg-2); }
.quiet { color: var(--fg-2); }
.small { font-size: 14px; }
.mono, code, kbd { font-family: var(--mono); font-size: .92em; }
code { background: var(--panel-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
mark { background: var(--warn-soft); color: inherit; padding: 0 3px; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- viršus: fiksuota juosta su dviem „išpjovomis“ kampuose ---------- */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none; }
.notch { pointer-events: auto; background: var(--bg); display: flex; align-items: center; gap: 10px; min-height: 62px; position: relative; }
.notch-l { padding: 10px 24px 10px var(--gutter); border-bottom-right-radius: var(--radius); }
.notch-r { padding: 10px var(--gutter) 10px 14px; border-bottom-left-radius: var(--radius); }
.notch::before, .notch::after { content: ""; position: absolute; width: var(--radius); height: var(--radius); pointer-events: none; }
.notch-l::before { left: 100%; top: var(--inset); background: radial-gradient(circle at 100% 100%, transparent var(--radius), var(--bg) calc(var(--radius) + .5px)); }
.notch-l::after { left: var(--inset); top: 100%; background: radial-gradient(circle at 100% 100%, transparent var(--radius), var(--bg) calc(var(--radius) + .5px)); }
.notch-r::before { right: 100%; top: var(--inset); background: radial-gradient(circle at 0 100%, transparent var(--radius), var(--bg) calc(var(--radius) + .5px)); }
.notch-r::after { right: var(--inset); top: 100%; background: radial-gradient(circle at 0 100%, transparent var(--radius), var(--bg) calc(var(--radius) + .5px)); }
.logo { display: inline-flex; align-items: center; gap: 8px; font: 600 21px/1 var(--display); letter-spacing: -.03em; text-decoration: none; color: var(--fg); }
.logo::after { content: ""; width: 9px; height: 9px; background: var(--accent); border-radius: 2px; }
.logo:hover { color: var(--fg); }
.theme { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--panel-2); color: var(--fg); cursor: pointer; flex: none; }
.theme:hover { background: var(--line-2); }
.menu-btn { display: inline-flex; align-items: center; gap: 12px; height: 42px; padding: 0 5px 0 20px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: 500 16px/1 var(--text); cursor: pointer; }
.menu-btn:hover { background: var(--accent-hi); }
.burger { position: relative; width: 32px; height: 32px; border-radius: 50%; background: #fff; flex: none; }
.burger::before, .burger::after { content: ""; position: absolute; left: 9px; right: 9px; height: 2px; border-radius: 2px; background: var(--accent); transition: transform .25s, top .25s; }
.burger::before { top: 12px; } .burger::after { top: 18px; }
.menu-btn[aria-expanded=true] .burger::before { top: 15px; transform: rotate(45deg); }
.menu-btn[aria-expanded=true] .burger::after { top: 15px; transform: rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 40; background: var(--bg); overflow: auto; display: grid; align-content: center; padding: 96px var(--gutter) 48px; }
.menu-in { max-width: var(--w); margin: 0 auto; width: 100%; display: grid; gap: 2px; }
.menu a { font: 500 clamp(28px, 12px + 4.6vw, 68px)/1.14 var(--display); letter-spacing: -.035em; text-decoration: none; color: var(--fg); padding: 4px 0; width: fit-content; }
.menu a:hover, .menu a[aria-current] { color: var(--accent-text); }
body.menu-open { overflow: hidden; }
.page { padding-top: 92px; }

/* ---------- mygtukai ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 5px 22px; border: 0; border-radius: 999px;
  background: var(--accent); color: #fff; font: 500 16px/1.2 var(--text); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s; }
.btn:hover { background: var(--accent-hi); color: #fff; }
.btn.arrow { padding-right: 5px; }
.btn.arrow::after { content: ""; width: 36px; height: 36px; border-radius: 50%; flex: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230051c2' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / 44% no-repeat; }
.btn.line { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn.line:hover { background: var(--panel-2); color: var(--fg); }
.btn.go { background: var(--ok); color: var(--on-ok); }
.btn.go:hover { background: var(--ok); color: var(--on-ok); filter: brightness(1.08); }
.btn.sm { min-height: 36px; padding: 3px 16px; font-size: 14.5px; }
.btn.sm.arrow { padding-right: 4px; }
.btn.sm.arrow::after { width: 28px; height: 28px; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- skaičiuoklės lapas ---------- */
.sheet { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-s); overflow: auto; font: 400 14px/1.3 var(--mono); max-width: 100%; }
.sheet table { border-collapse: separate; border-spacing: 0; width: 100%; }
.sheet th, .sheet td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sheet th { background: var(--panel-2); color: var(--fg-2); font-weight: 400; text-align: left; padding: 6px 10px; white-space: nowrap; position: sticky; top: 0; z-index: 1; }
.sheet th b { font-weight: 600; color: var(--fg); }
.sheet th .code { display: block; font-size: 11.5px; }
.sheet .rn { background: var(--panel-2); color: var(--fg-2); text-align: right; padding: 6px 9px; width: 1%; white-space: nowrap; position: sticky; left: 0; z-index: 1; }
.sheet th.rn { z-index: 2; }
.sheet td { padding: 0; }
.sheet td input { display: block; width: 100%; min-width: 8ch; border: 0; border-radius: 0; background: transparent; color: var(--fg); font: inherit; padding: 8px 10px; }
.sheet td input:focus { outline: 2px solid var(--accent-text); outline-offset: -2px; background: var(--input-bg); }
.sheet td.err { background: var(--bad-soft); box-shadow: inset 0 -2px 0 var(--bad); }
.sheet td.warn { background: var(--warn-soft); box-shadow: inset 0 -2px 0 var(--warn); }
.sheet td.ro { padding: 8px 10px; white-space: nowrap; }
.sheet tr.bad .rn { color: var(--bad); font-weight: 600; }
.fx { display: flex; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--panel); font: 400 14px/1.4 var(--mono); min-height: 44px; margin-bottom: 8px; overflow: hidden; }
.fx .cell { flex: none; padding: 11px 14px; background: var(--panel-2); min-width: 13ch; color: var(--fg); font-weight: 600; }
.fx .msg { padding: 10px 14px; font-family: var(--text); font-size: 15px; color: var(--fg-2); }
.fx .msg.err { color: var(--bad); } .fx .msg.warn { color: var(--warn); }

/* ---------- antspaudas ir žymos ---------- */
.stamp { display: inline-block; font: 600 20px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; padding: 12px 18px 11px;
  border: 2.5px solid currentColor; border-radius: 10px; outline: 1px solid currentColor; outline-offset: -7px; color: var(--ok); transform: rotate(-4deg); }
.stamp.bad { color: var(--bad); }
.stamp.thunk { animation: thunk .28s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes thunk { from { transform: rotate(-4deg) scale(1.6); opacity: 0; } to { transform: rotate(-4deg) scale(1); opacity: 1; } }
.pill { display: inline-block; font: 600 12.5px/1.5 var(--mono); padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.pill.err { background: var(--bad-soft); color: var(--bad); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }

/* ---------- skyriaus juosta ir didysis teiginys ---------- */
.rule { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--fg); border-bottom: 1px solid var(--line-2); font-size: 14px; }
.rule b { font-weight: 400; color: var(--accent-text); margin-right: 8px; }
.rule span:last-child { text-align: right; display: inline-flex; align-items: center; gap: 12px; }
.rule i { width: 16px; height: 9px; background: var(--fg); flex: none; }
.statement { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px 32px; padding: clamp(40px, 6vw, 76px) 0 clamp(28px, 4vw, 52px); align-items: end; }
.statement p { color: var(--fg-2); max-width: 30ch; margin: 0; }
.statement h2 { margin: 0; }
@media (min-width: 900px) { .statement { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } }
.sec { padding-top: var(--section); }
html.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
html.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .rv { opacity: 1; transform: none; transition: none; } }

/* ---------- juostos ---------- */
.band { padding: var(--section) 0 0; }
.band.ink { padding-left: var(--gutter); padding-right: var(--gutter); }
.band.ink > .wrap { background: var(--accent); color: #fff; border-radius: var(--radius); padding: clamp(28px, 5vw, 72px); max-width: calc(var(--w) - 2 * var(--gutter)); }
.band.ink a { text-decoration-color: #fff; } .band.ink a:hover { color: #fff; }
.band.ink .quiet, .band.ink .lead { color: rgba(255, 255, 255, .78); }
.cols { display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: repeat(12, minmax(0, 1fr)); }
.cols > * { grid-column: span 12; min-width: 0; }
@media (min-width: 900px) { .c4 { grid-column: span 4; } .c5 { grid-column: span 5; } .c6 { grid-column: span 6; } .c7 { grid-column: span 7; } .c8 { grid-column: span 8; } }

/* ---------- lentelės turinyje ---------- */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--panel); border-radius: var(--radius-s); font-size: 15.5px; overflow: hidden; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl th { font-weight: 500; font-size: 14px; color: var(--fg-2); background: var(--panel-2); }
.tbl td.num, .tbl th.num { text-align: right; }
.tbl th.num { font-family: var(--text); }
.tbl .no { color: var(--bad); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.tbl .yes { color: var(--ok); font-weight: 600; }
.scroll { overflow-x: auto; border-radius: var(--radius-s); }
details { border-bottom: 1px solid var(--line); }
details summary { cursor: pointer; font-weight: 600; font-size: 17px; padding: 18px 0; }
details[open] summary { padding-bottom: 8px; }
details > *:not(summary) { max-width: 66ch; color: var(--fg-2); }
.note { border-radius: var(--radius-s); background: var(--warn-soft); padding: 14px 18px; margin: 0 0 1em; }
footer.foot { padding: var(--section) var(--inset) var(--inset); font-size: 15px; }
.foot-card { background: var(--panel); border-radius: var(--radius); padding: clamp(20px, 3vw, 44px); overflow: hidden; }
.foot-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 32px; padding-bottom: clamp(24px, 4vw, 48px); color: var(--fg-2); }
.foot-top p { margin: 0; }
.foot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, auto)) minmax(0, 1fr); gap: 28px clamp(24px, 5vw, 72px); align-items: start; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-grid a { text-decoration: none; }
.foot-grid .arrows a::before { content: "\2192\00a0\00a0"; color: var(--fg-2); }
.foot-cta { justify-self: end; text-align: right; }
.foot-cta .display { font-size: clamp(20px, 12px + 1.6vw, 34px); color: var(--fg-2); margin-bottom: 18px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-cta { grid-column: 1 / -1; justify-self: start; text-align: left; } }
.mega { font: 600 clamp(44px, 14.6vw, 232px)/.86 var(--display); letter-spacing: -.05em; text-transform: uppercase; white-space: nowrap; margin: clamp(28px, 5vw, 72px) 0 0; color: var(--fg); }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; border-top: 1px solid var(--line); margin-top: clamp(16px, 3vw, 32px); padding-top: 16px; font-size: 13.5px; color: var(--fg-2); }
.foot-base p { margin: 0; }

/* ---------- straipsnis ---------- */
.prose { max-width: 74ch; }
.prose h2 { font-size: clamp(22px, 14px + 1.6vw, 34px); margin: 2em 0 .6em; }
.prose h3 { margin-top: 1.6em; }
.prose li { margin: .35em 0; }
.prose .tbl, .prose .scroll { margin: 1em 0 1.5em; }
.prose .scroll .tbl { margin: 0; }

/* ---------- formos ---------- */
label.f { display: flex; flex-direction: column; gap: 5px; font-size: 14px; color: var(--fg-2); }
input[type=text], input[type=email], input[type=month], input[type=number], select, textarea {
  font: 400 16px/1.3 var(--text); color: var(--fg); background: var(--input-bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; max-width: 100%; }
textarea { font-family: var(--mono); font-size: 13.5px; width: 100%; }

@media (prefers-reduced-motion: reduce) { .stamp.thunk { animation: none; } html { scroll-behavior: auto; } }
@media print {
  :root, :root[data-theme=light] { --bg: #fff; --panel: #fff; --panel-2: #f1f1f1; --line: #bbb; --line-2: #888; --fg: #000; --fg-2: #333; --ok: #137044; --bad: #b3261e; --warn: #7a5d00; --bad-soft: #fbe2dc; --ok-soft: #dcf0e3; }
  body { font-size: 11.5pt; }
  .no-print { display: none !important; }
  .band { padding: 0; }
}

/* ---------- papildymai ---------- */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[data-seller]:empty { display: none; }
.foot-note { color: var(--fg-2); max-width: 90ch; margin: 0 0 clamp(20px, 3vw, 36px); font-size: 14px; }
.notch-r #licBtn { max-width: 40vw; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) { .menu-btn { padding: 0 5px; font-size: 0; gap: 0; } .notch-l { padding-right: 16px; } .notch-r { padding-left: 10px; gap: 8px; } .logo { font-size: 18px; } }
@media print { .bar, .menu, footer.foot { display: none !important; } .page { padding-top: 0; } }
