/* =========================================================
   ai, jo! V2 — redakcinis / šveicariškas sluoksnis virš components.css
   Hairline linijos, griežtas tinklelis, Instrument Serif akcentai,
   mono etiketės. Jokių gradientų, švytėjimų ar „AI“ dekoracijų.
   ========================================================= */

/* ---------- Tonai ---------- */
.on-paper { --bg: var(--paper); --surface: var(--white); --fg: var(--fg-on-paper); --fg-muted: var(--fg-muted-on-paper);
  --line: color-mix(in srgb, var(--ink) 18%, transparent); --focus: var(--alt); --accent: var(--alt-ink); }
.on-light { --bg: var(--light); --surface: var(--white); --fg: var(--fg-on-paper); --fg-muted: var(--fg-muted-on-paper);
  --line: color-mix(in srgb, var(--ink) 16%, transparent); --focus: var(--alt); --accent: var(--alt-ink); --mark-bg: var(--hi); }
.on-ink { --bg: var(--ink); --surface: var(--ink-2); --fg: var(--fg-on-ink); --fg-muted: var(--fg-muted-on-ink);
  --line: color-mix(in srgb, var(--light) 18%, transparent); --focus: var(--hi); --accent: var(--hi); }
.on-alt { --bg: var(--alt); --surface: color-mix(in srgb, var(--white) 12%, transparent); --fg: var(--fg-on-alt); --fg-muted: var(--fg-muted-on-alt);
  --line: color-mix(in srgb, var(--white) 32%, transparent); --focus: var(--white); --accent: var(--hi); }

body { background: var(--paper); color: var(--fg-on-paper); font-feature-settings: "ss01", "cv11"; }
h1, h2, h3, h4 { font-weight: 600; }
.h2 { letter-spacing: -0.035em; line-height: 1.04; }
.serif, em.serif { font-family: var(--font-accent); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

/* ---------- Etiketės ---------- */
.eyebrow { font-family: var(--font-mono); font-weight: 500; font-size: var(--fs-eyebrow); letter-spacing: 0.06em; color: var(--fg); }
.eyebrow::before { content: ""; width: 28px; height: 1px; border-radius: 0; background: currentColor; }

/* ---------- Logotipas ---------- */
.logo { font-family: var(--font-logo); font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.on-ink .logo { color: var(--hi); }
.on-alt .logo { color: var(--white); }

/* ---------- Mygtukai ---------- */
.btn { border-radius: var(--r-pill); font-weight: 600; letter-spacing: -0.005em; min-height: 52px; }
.btn--primary, .on-paper .btn--primary, .on-light .btn--primary { background: var(--ink); color: var(--light); }
.btn--primary:hover, .on-paper .btn--primary:hover, .on-light .btn--primary:hover { background: var(--alt); color: var(--white); }
.on-ink .btn--primary { background: var(--hi); color: var(--fg-on-hi); }
.on-ink .btn--primary:hover { background: var(--white); color: var(--ink); }
.on-alt .btn--primary { background: var(--white); color: var(--ink); }
.on-alt .btn--primary:hover { background: var(--hi); color: var(--ink); }
.btn--ghost { border-width: 1px; }
.form-card .btn--primary { background: var(--ink); color: var(--light); }
.form-card .btn--primary:hover { background: var(--alt); color: var(--white); }
.link-arrow { font-weight: 600; }

/* ---------- Peržiūros juosta, header, meniu ---------- */
.preview-bar { background: var(--ink); color: var(--fg-on-ink); --focus: var(--hi); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.02em; }
.preview-bar button:hover { background: color-mix(in srgb, var(--white) 12%, transparent); }
.site-header .container { min-height: 76px; }
.site-header.on-paper { background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px); }
.nav-list a { font-weight: 500; color: var(--fg-muted); }
.nav-list a::after { width: 100%; height: 1.5px; border-radius: 0; left: 0; bottom: 8px; background: var(--alt); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-med) var(--ease-out); }
.nav-list a:hover::after { transform: scaleX(1); }
.nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.menu-toggle { border-radius: var(--r-pill); border-width: 1px; }
.mobile-menu { background: var(--ink); }
.mobile-menu ul a { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; }
.mobile-menu ul a[aria-current="page"] { color: var(--hi); }
.mobile-menu-close { border-radius: var(--r-pill); border-width: 1px; }

/* ---------- V2 hero ---------- */
.hero--v2 { padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 104px); overflow: visible; }
.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-5); align-items: end; }
.hero-main { grid-column: 1 / span 8; }
.hero-side { grid-column: 9 / span 4; justify-self: end; width: 100%; max-width: 440px; }
.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.04em; color: var(--fg-muted); }
.brand-inline { font-family: var(--font-logo); font-weight: 800; font-size: 0.9375rem; letter-spacing: -0.01em; color: var(--ink); }
.kicker-sep { width: 28px; height: 1px; background: currentColor; }
.hero--v2 h1 { font-size: var(--fs-hero); line-height: 0.94; letter-spacing: -0.045em; max-width: none; margin-top: var(--s-6); font-weight: 600; }
.hero--v2 h1 .l1, .hero--v2 h1 .l2 { display: block; }
.hero--v2 h1 .l2 { color: var(--fg); }
.hero--v2 h1 em.serif { font-size: 1.08em; letter-spacing: -0.02em; color: var(--alt-ink); padding-right: 0.04em; }
.hero-copy { margin-top: var(--s-7); max-width: 56ch; display: grid; gap: var(--s-4); }
.hero-copy .lead { max-width: none; }
.hero-actions { margin-top: var(--s-7); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-6); }
html.js-ready .hero--v2 .l1, html.js-ready .hero--v2 .l2 { animation: v2-rise 700ms var(--ease-out) both; }
html.js-ready .hero--v2 .l2 { animation-delay: 120ms; }
@keyframes v2-rise { from { opacity: 0; transform: translateY(0.25em); } to { opacity: 1; transform: none; } }

/* Hero iliustracija: aiškios užklausos anatomija */
.hv { margin: 0; }
.hv-svg { width: 100%; height: auto; overflow: visible; }
.hv-card { fill: var(--white); stroke: var(--ink); stroke-width: 1; }
.hv-card--res { fill: var(--ink); stroke: var(--ink); }
.hv-mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; fill: var(--fg-muted-on-paper); }
.hv-res .hv-mono { fill: var(--fg-muted-on-ink); }
.hv-bar { fill: var(--paper-2); }
.hv-bar--a { fill: var(--alt); }
.hv-bar--b { fill: var(--ink); }
.hv-bar--c { fill: var(--hi); stroke: var(--ink); stroke-width: 1; }
.hv-ann path { fill: none; stroke: var(--ink); stroke-width: 1; stroke-dasharray: 2 3; }
.hv-ann circle { fill: var(--ink); }
.hv-ann text { font-family: var(--font-mono); font-size: 12px; fill: var(--ink); }
.hv-link { fill: none; stroke: var(--ink); stroke-width: 1; }
.hv-ok { fill: var(--hi); }
.hv-okm { fill: none; stroke: var(--ink); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 0; }
.hv-res-t { font-family: var(--font-display); font-weight: 600; font-size: 16px; fill: var(--white); letter-spacing: -0.01em; }
.hv-cap { margin-top: var(--s-3); font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.04em; color: var(--fg-muted); }
html.js-ready .hv:not(.is-in) .hv-grp, html.js-ready .hv:not(.is-in) .hv-ann { opacity: 0; transform: translateX(-10px); }
html.js-ready .hv .hv-grp, html.js-ready .hv .hv-ann { transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out); transition-delay: calc(var(--i) * 240ms + 200ms); }
html.js-ready .hv .hv-ann { transition-delay: calc(var(--i) * 240ms + 380ms); }
html.js-ready .hv .hv-link { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 400ms var(--ease-out) 1100ms; }
html.js-ready .hv.is-in .hv-link { stroke-dashoffset: 0; }
html.js-ready .hv .hv-res { transform-box: fill-box; transform-origin: center top; transition: opacity 420ms var(--ease-out) 1350ms, transform 520ms var(--ease-spring) 1350ms; }
html.js-ready .hv:not(.is-in) .hv-res { opacity: 0; transform: translateY(10px); }
html.js-ready .hv .hv-okm { transition: stroke-dashoffset 380ms var(--ease-out) 1750ms; }
html.js-ready .hv:not(.is-in) .hv-okm { stroke-dashoffset: 30; }

/* Hero kryptys */
.hero-dirs { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero-dirs a { font-weight: 500; }
.hero-dirs .hd-n { font-family: var(--font-mono); font-size: 0.75rem; color: var(--alt-ink); }
.hero-dirs a:hover .lbl { color: var(--alt-ink); }

/* ---------- Pagrindinė žinutė (tamsi) ---------- */
.core .core-msg { font-weight: 600; letter-spacing: -0.04em; max-width: 15ch; }
.core-points li { border-top-color: color-mix(in srgb, var(--light) 28%, transparent); }
.core-points .cp-n { font-family: var(--font-mono); font-weight: 500; color: var(--hi); }
.core-points b { font-weight: 600; }

/* ---------- Procesas ---------- */
.proc-sec .sec-head > :first-child { grid-column: 1 / span 6; }
.proc-sec .sec-head > :last-child { grid-column: 8 / span 5; }
.proc { --gap: clamp(32px, 4vw, 64px); }
.proc-step { border-radius: var(--r-md); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); padding: clamp(24px, 2.6vw, 40px); }
.proc-num { font-family: var(--font-mono); font-weight: 500; font-size: 0.8125rem; letter-spacing: 0.04em; color: var(--alt-ink); }
.proc-ico { border-radius: var(--r-sm); border: 1px solid var(--line); color: var(--alt-ink); }
.proc-title { font-weight: 600; letter-spacing: -0.025em; }
.proc-items li { border-radius: var(--r-sm); background: var(--light); font-weight: 500; }
.proc-items li::before { border-radius: 2px; width: 6px; height: 6px; background: var(--alt); }
.proc-step.is-final { background: var(--hi); box-shadow: none; }
.proc-step.is-final .proc-items li { background: color-mix(in srgb, var(--white) 55%, transparent); }
.proc-step.is-final .proc-ico { border-color: color-mix(in srgb, var(--ink) 35%, transparent); color: var(--ink); }
.proc-arrow { color: var(--alt); }
.proc-arrow svg { stroke-width: 1.5; }
.proc--col .proc-ico, .proc--row .proc-ico { border-radius: var(--r-sm); }

/* ---------- Temos: hairline lentelė ---------- */
.topics-grid { gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.topic-d { border-radius: 0; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; padding: clamp(28px, 3vw, 44px); transition: background-color var(--dur-med) var(--ease-out); }
.topic-num { font-family: var(--font-mono); font-weight: 500; font-size: 0.8125rem; color: var(--alt-ink); }
.topic-ico { border-radius: var(--r-sm); background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.topic-title { font-weight: 600; letter-spacing: -0.02em; margin-top: var(--s-5); }
.topic-text { margin-top: var(--s-4); }
@media (hover: hover) {
  .topic-d:hover { transform: none; background: var(--white); }
  .topic-d:hover .topic-ico { transform: none; background: var(--alt); color: var(--white); box-shadow: none; }
}
.topics-closing { font-family: var(--font-accent); font-style: italic; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); line-height: 1.3; color: var(--fg); max-width: 40ch; }
.topics-grid.is-accordion { gap: 0; }
.topics-grid.is-accordion .topic-title { margin-top: 0; }
.topics-grid.is-accordion details[open] .topic-chev { background: var(--ink); border-color: var(--ink); color: var(--light); }
.topics-grid.is-accordion details[open] { background: var(--white); }

/* ---------- Teiginys (Ocean Blue) ---------- */
.statement.on-alt p.big { font-weight: 600; letter-spacing: -0.045em; color: var(--white); }

/* ---------- Skirtukai: segmentuotas valdiklis ---------- */
.tablist { border-radius: var(--r-md); background: transparent; box-shadow: inset 0 0 0 1px var(--line); padding: 4px; gap: 4px; }
.tablist [role="tab"] { border-radius: var(--r-sm); font-weight: 600; color: var(--fg-muted); }
.tablist [role="tab"]:hover { color: var(--fg); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.tablist [role="tab"][aria-selected="true"] { background: var(--ink); color: var(--light); }
.tabpanel { border-radius: var(--r-md); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.tabpanel .who { font-family: var(--font-mono); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.06em; color: var(--alt-ink); }
.tp-example { border-top: 1px solid var(--line); }
.tp-example-lbl { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.06em; }
.tp-example-lbl::before { border-radius: 2px; box-shadow: inset 0 0 0 1px var(--ink); }

/* ---------- Mini forma (tamsioje sekcijoje, šviesi kortelė) ---------- */
.form-card { background: var(--light); color: var(--fg-on-paper); border-radius: var(--r-lg); --line: color-mix(in srgb, var(--ink) 16%, transparent); --accent: var(--alt-ink); --focus: var(--alt); }
.mf-q { font-weight: 600; letter-spacing: -0.03em; }
.mf-qn { font-family: var(--font-mono); font-weight: 500; color: var(--alt-ink); }
.mf-bar { height: 4px; border-radius: 0; }
.mf-bar span { background: var(--alt); border-radius: 0; }
.mf-count { font-family: var(--font-mono); font-weight: 500; font-size: 0.75rem; }
.mf-opt span { border-radius: var(--r-sm); border-width: 1px; }
.mf-opt span::before { border-radius: 50%; width: 18px; height: 18px; }
.mf-opt input:checked + span { background: var(--hi); border-color: var(--ink); }
.mf-opt input:checked + span::before { border: 5px solid var(--ink); background: var(--white); }
.field input, .field select, .field textarea { border-radius: var(--r-sm); border-width: 1px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--alt) 28%, transparent); border-color: var(--alt); }
.field .req { color: var(--alt-ink); }
.chips label > span { border-radius: var(--r-sm); border-width: 1px; }
.chips input:checked + span { background: var(--hi); }
.form-status { border-radius: var(--r-sm); }
.mf-split .a .lead { color: var(--fg); }

/* ---------- Paslaugų kortelės ir schemos ---------- */
.svc-card { border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line); }
.on-light .svc-card { background: var(--white); }
.svc-card .tagline { font-family: var(--font-accent); font-style: italic; font-weight: 400; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.2; letter-spacing: -0.01em; color: var(--alt-ink); }
.dg { background: var(--light); border-radius: var(--r-md); }
.on-paper .dg, .on-light .dg { background: var(--light); box-shadow: inset 0 0 0 1px var(--line); }
.on-light .svc-card .dg { background: var(--paper); box-shadow: none; }
.dg-head .lbl { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.06em; }
.dg-replay { border-radius: var(--r-sm); border-width: 1px; }
.dg .nd-lilac { fill: var(--alt-soft); }
.dg .t-strong, .dg .t-mark { font-weight: 600; }
.dg-legend button { border-radius: var(--r-sm); }
.dg-legend button::before { border-radius: 4px; font-family: var(--font-mono); font-weight: 500; }
.dg-legend button:hover, .dg-legend button[aria-pressed="true"] { background: var(--white); }

/* ---------- Paslaugų puslapis ---------- */
.anchor-nav a { border-radius: var(--r-sm); font-weight: 600; }
.anchor-nav a.is-active { background: var(--ink); color: var(--light); }
.price { border-radius: var(--r-md); }
.price .amount { font-weight: 600; letter-spacing: -0.03em; }
.price .btn { background: var(--white); color: var(--ink); }
.price .btn:hover { background: var(--hi); color: var(--ink); }
.bul li::before { border-radius: 2px; width: 8px; height: 8px; background: var(--alt); }

/* ---------- Apie ---------- */
.steps li { border-radius: var(--r-md); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.steps li::before { border-radius: var(--r-sm); background: var(--ink); color: var(--light); font-family: var(--font-mono); font-weight: 500; }
.paths article { border-top: 1px solid var(--fg); }
.paths .when { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.04em; color: var(--alt-ink); }
.statement.on-alt .eyebrow { color: var(--white); }

/* ---------- DUK ---------- */
.faq summary { font-weight: 600; letter-spacing: -0.02em; }
.faq summary .pm { border-radius: var(--r-sm); border-width: 1px; }
.faq details[open] summary .pm { background: var(--ink); border-color: var(--ink); color: var(--light); }
.on-ink .faq details[open] summary .pm { background: var(--hi); border-color: var(--hi); color: var(--ink); }
.faq-cats a .n { font-family: var(--font-mono); font-weight: 500; color: var(--alt-ink); }

/* ---------- CTA, footer ---------- */
.cta-band h2 { font-weight: 600; letter-spacing: -0.045em; }
.f-title { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.06em; }
.f-links a:hover { color: var(--hi); }
.footer-grid .f-brand .logo { font-size: 2.75rem; }

/* ---------- 404, ?redaguoti ---------- */
.err-page .glyph { font-family: var(--font-accent); font-style: italic; font-weight: 400; color: var(--alt-ink); }
html.edit-mode [data-edit] { outline-color: var(--alt); }
html.edit-mode [data-edit]::after { background: var(--alt); color: var(--white); }

/* ---------- Atsakas ---------- */
@media (max-width: 1023px) {
  .hero-main, .hero-side { grid-column: 1 / -1; }
  .hero-side { max-width: 460px; margin-top: var(--s-7); }
  .proc-sec .sec-head > :first-child, .proc-sec .sec-head > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .hero--v2 h1 { font-size: clamp(2.5rem, 1rem + 9vw, 3.75rem); line-height: 0.98; margin-top: var(--s-5); }
  .hero-copy { margin-top: var(--s-6); }
  .hero-actions { margin-top: var(--s-6); flex-direction: column; align-items: stretch; }
  .hero-actions .link-arrow { justify-content: center; }
  .hero-side { margin-top: var(--s-6); }
  .proc--row .proc-step { box-shadow: inset 0 0 0 1px var(--line); }
  .tablist { border-radius: var(--r-md); }
}
@media (prefers-reduced-motion: reduce) {
  html.js-ready .hv .hv-grp, html.js-ready .hv .hv-ann, html.js-ready .hv .hv-res { opacity: 1 !important; transform: none !important; }
  html.js-ready .hv .hv-link, html.js-ready .hv .hv-okm { stroke-dashoffset: 0 !important; }
  html.js-ready .hero--v2 .l1, html.js-ready .hero--v2 .l2 { animation: none; }
}
