/*
 * Pagina de prezentare LiderPOS.
 * Tema luminoasă/întunecată: light-dark() urmărește setarea sistemului,
 * iar html[data-theme] (butonul din antet) o suprascrie.
 * Culorile sunt toate derivate din nuanța --h (vișiniu).
 */

/* Capturile cu variantă dark (componenta x-themed-img): se vede doar cea potrivită temei. */
:root[data-theme="light"] .theme-dark-only,
:root[data-theme="dark"] .theme-light-only { display: none; }

@media (prefers-color-scheme: light) {
    :root:not([data-theme]) .theme-dark-only { display: none; }
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .theme-light-only { display: none; }
}

@font-face {
    font-family: "Geist";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/geist-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Geist";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/geist-latin.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: "Geist Mono";
    font-style: normal;
    font-weight: 400 500;
    font-display: swap;
    src: url("../fonts/geist-mono-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Geist Mono";
    font-style: normal;
    font-weight: 400 500;
    font-display: swap;
    src: url("../fonts/geist-mono-latin.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;
}

:root {
    color-scheme: light dark;
    interpolate-size: allow-keywords;

    --h: 12;
    --hdr: 66px;
    --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --bg: light-dark(oklch(0.99 0.003 var(--h)), oklch(0.16 0.01 var(--h)));
    --bg2: light-dark(oklch(0.972 0.006 var(--h)), oklch(0.185 0.012 var(--h)));
    --card: light-dark(#fff, oklch(0.21 0.013 var(--h)));
    --ink: light-dark(oklch(0.2 0.015 var(--h)), oklch(0.96 0.005 var(--h)));
    --ink2: light-dark(oklch(0.44 0.015 var(--h)), oklch(0.76 0.012 var(--h)));
    --ink3: light-dark(oklch(0.58 0.012 var(--h)), oklch(0.62 0.01 var(--h)));
    --line: light-dark(oklch(0.25 0.02 var(--h) / 0.11), oklch(1 0 0 / 0.1));
    --accent: light-dark(oklch(0.45 0.15 var(--h)), oklch(0.72 0.13 var(--h)));
    --accent-ink: light-dark(#fff, oklch(0.17 0.03 var(--h)));
    --soft: light-dark(oklch(0.95 0.035 var(--h)), oklch(0.27 0.05 var(--h)));
    --cta: light-dark(oklch(0.29 0.07 var(--h)), oklch(0.3 0.08 var(--h)));
    --glow: light-dark(oklch(0.86 0.09 var(--h) / 0.5), oklch(0.5 0.12 var(--h) / 0.32));
    --danger: light-dark(oklch(0.55 0.2 25), oklch(0.75 0.15 25));

    --sh-1: light-dark(oklch(0.2 0.02 var(--h) / 0.06), #0006);
    --sh-2: light-dark(oklch(0.2 0.03 var(--h) / 0.22), #000a);
    --sh-3: light-dark(oklch(0.25 0.06 var(--h) / 0.45), #000a);
    --shadow: 0 2px 4px var(--sh-1), 0 18px 40px -16px var(--sh-2), 0 6px 14px -8px var(--sh-2);
}

:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

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

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

[id] { scroll-margin-top: var(--hdr); }

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: clip;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, figure, address { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
button, summary { cursor: pointer; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--ink); }
::selection { background: var(--soft); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.mono { font-family: var(--mono); }

.i {
    width: 1em;
    height: 1em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- Butoane ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 22px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.55;
    white-space: nowrap;
    color: var(--accent-ink);
    background: var(--accent);
    border: 1px solid transparent;
    border-radius: 12px;
    box-shadow: 0 8px 24px -10px var(--accent);
    transition: filter 0.15s, background 0.15s, transform 0.15s;
}

.btn:hover { color: var(--accent-ink); filter: brightness(1.08); }
.btn .i { font-size: 18px; }

.btn-sm { padding: 9px 16px; font-size: 14.5px; border-radius: 10px; box-shadow: none; }

.btn-ghost { color: var(--ink); background: var(--card); border-color: var(--line); box-shadow: none; }
.btn-ghost:hover { color: var(--ink); background: var(--bg2); filter: none; }

.btn-white { color: oklch(0.25 0.05 var(--h)); font-weight: 600; background: #fff; box-shadow: 0 12px 30px -12px #0008; }
.btn-white:hover { color: oklch(0.25 0.05 var(--h)); filter: none; transform: translateY(-1px); }

.btn-outline { color: #fff; background: transparent; border-color: #fff4; box-shadow: none; }
.btn-outline:hover { color: #fff; background: #fff1; filter: none; }

.icon-btn {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    font-size: 17px;
    color: var(--ink2);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.icon-btn:hover { color: var(--ink); background: var(--bg2); }

/* ---------- Antet ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in oklch, var(--bg) 82%, transparent);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.site-header.is-scrolled { border-bottom-color: var(--line); }

.bar {
    display: flex;
    align-items: center;
    gap: 28px;
    max-width: 1200px;
    height: var(--hdr);
    margin-inline: auto;
    padding-inline: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.brand:hover { color: var(--ink); }

.brand-mark {
    display: grid;
    place-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    font-family: var(--mono);
    font-size: 18px;
    font-weight: 500;
    color: var(--accent-ink);
    background: var(--accent);
    border-radius: 12px;
}

.brand-name span { color: var(--accent); }

.brand-logo { display: block; flex: none; width: auto; height: 44px; max-width: 160px; object-fit: contain; border-radius: 12px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-sub { font-size: 10.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink3); }

.nav { display: none; flex: 1; justify-content: center; gap: 2px; }

.nav a {
    padding: 8px;
    font-size: 14px;
    white-space: nowrap;
    color: var(--ink2);
    border-radius: 8px;
}

.nav a:hover { color: var(--ink); background: var(--bg2); }

.bar-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.header-cta { display: none; }

.theme-toggle .t-sun { display: none; }

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .t-sun { display: block; }
    :root:not([data-theme="light"]) .theme-toggle .t-moon { display: none; }
}

:root[data-theme="dark"] .theme-toggle .t-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .t-moon { display: none; }

.menu-toggle { width: 42px; height: 42px; font-size: 20px; color: var(--ink); background: var(--card); }
.menu-toggle .m-close { display: none; }
.menu-toggle[aria-expanded="true"] .m-open { display: none; }
.menu-toggle[aria-expanded="true"] .m-close { display: block; }

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: calc(100dvh - var(--hdr));
    overflow-y: auto;
    padding: 12px 24px 24px;
    background: var(--bg);
    border-top: 1px solid var(--line);
}

.mobile-nav[hidden] { display: none; }

.mobile-nav a:not(.btn) {
    padding: 13px 4px;
    font-size: 17px;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
}

.mobile-cta { margin-top: 16px; padding: 14px; border-radius: 12px; box-shadow: none; }

/* Meniul complet (8 linkuri) încape doar de la 1280px; sub, se folosește meniul din buton. */
@media (min-width: 1280px) {
    .nav { display: flex; }
    .header-cta { display: inline-flex; }
    .menu-toggle { display: none; }
    .mobile-nav { display: none; }
}

/* ---------- Structură comună ---------- */

.section {
    padding: clamp(80px, 10vw, 136px) 24px;
}

/* Paginile de confidențialitate și cookie-uri: mai puțin spațiu pe ecrane late. */
.section-legal { padding: clamp(80px, 5vw, 136px) 24px; }

.section-alt { background: var(--bg2); border-top: 1px solid var(--line); }

/* Linie între toate secțiunile consecutive (prima pagină), indiferent de fundal. */
.section + .section { border-top: 1px solid var(--line); }

.wrap { max-width: 1180px; margin-inline: auto; }

.eyebrow {
    display: block;
    margin-bottom: 16px;
    font-family: var(--mono);
    font-size: 12.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.head { max-width: 720px; }
.head-center { margin-inline: auto; text-align: center; }

.head h2, .faq-intro h2 {
    font-size: clamp(32px, 4.6vw, 54px);
    line-height: 1.06;
    letter-spacing: -0.035em;
    font-weight: 600;
    text-wrap: balance;
}

.sub { margin-top: 18px; font-size: 18px; color: var(--ink2); }
.head-center .sub { max-width: 560px; margin-inline: auto; }

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 28px;
}

.card-lg { padding: 32px; border-radius: 22px; }

.ico {
    display: grid;
    place-items: center;
    flex: none;
    width: 42px;
    height: 42px;
    font-size: 20px;
    color: var(--accent);
    background: var(--soft);
    border-radius: 11px;
}

.ico-lg { width: 48px; height: 48px; font-size: 22px; border-radius: 13px; }

.chip {
    font-family: var(--mono);
    font-size: 11.5px;
    padding: 4px 9px;
    color: var(--ink2);
    border: 1px solid var(--line);
    border-radius: 7px;
}

.lift { transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s, opacity 0.25s; }
.lift:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* Cât timp mouse-ul e pe un card, celelalte din același grup se estompează. */
@media (hover: hover) {
    :is(.features, .integ-grid, .roles):has(.lift:hover) .lift:not(:hover) { opacity: 0.45; }
}

/* Apariția la derulare: activă doar cu JavaScript, ca fără el conținutul să rămână vizibil. */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--d, 0ms);
}

.js [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Hero ---------- */

.hero { position: relative; padding: clamp(56px, 9vw, 104px) 24px 0; overflow: hidden; }

.hero::before, .hero::after { content: ""; position: absolute; z-index: 0; pointer-events: none; }

.hero::before {
    inset: -20% -10% auto;
    height: 900px;
    background:
        radial-gradient(ellipse 50% 45% at 50% 30%, var(--glow), transparent 70%),
        radial-gradient(ellipse 30% 30% at 80% 10%, var(--soft), transparent 70%);
}

.hero::after {
    inset: 0;
    opacity: 0.5;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 20%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 60% 50% at 50% 20%, #000 20%, transparent 75%);
}

.hero-in, .trust { position: relative; z-index: 1; }

.hero-in {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1000px;
    margin-inline: auto;
    text-align: center;
}

.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }

.badge {
    padding: 5px 11px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.02em;
    color: var(--ink2);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.hero h1 {
    font-size: clamp(40px, 6.6vw, 80px);
    line-height: 1.02;
    letter-spacing: -0.045em;
    font-weight: 600;
    text-wrap: balance;
}

.hero h1 span { color: var(--accent); }

.lead { max-width: 640px; margin-top: 28px; font-size: clamp(17px, 1.6vw, 19px); color: var(--ink2); text-wrap: pretty; }

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

.trust {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    max-width: 1000px;
    margin: clamp(64px, 8vw, 96px) auto 0;
    padding-bottom: clamp(64px, 8vw, 96px);
}

.trust li { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--ink2); }
.trust .i { font-size: 19px; color: var(--accent); }

/* Anunțul unui modul nou, deasupra titlului din hero. */
.announce {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    margin-bottom: 20px;
    padding: 5px 14px 5px 5px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 6px 20px -12px var(--sh-2);
    transition: border-color 0.2s, transform 0.2s;
}

.announce:hover { color: var(--ink); border-color: color-mix(in oklch, var(--accent) 45%, var(--line)); transform: translateY(-1px); }
.announce > span:nth-child(2) { min-width: 0; text-align: left; }
.announce > .i { color: var(--accent); }

.announce-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: none;
    padding: 3px 10px;
    font-size: 12.5px;
    color: var(--accent-ink);
    background: var(--accent);
    border-radius: 999px;
}

/* „Smart NIR” colorat, cu iconița AI mică, pe rândul lui; restul titlului urmează dedesubt. */
.smart-nir-name { display: block; color: var(--accent); white-space: nowrap; }
.smart-nir-name .i { margin-right: 0.15em; font-size: 0.6em; vertical-align: 0.15em; }
.smart-nir-cta { margin-top: 32px; }
/* Cardurile Smart NIR și „Pentru cine este” au umbră și în repaus; la hover primesc umbra mai mare de la .lift. */
#smart-nir .feature, .role { box-shadow: 0 1px 2px var(--sh-1), 0 10px 24px -14px var(--sh-2); }
#smart-nir .feature:hover, .role:hover { box-shadow: var(--shadow); }

.foot-new { margin-left: 4px; padding: 1px 7px; font-size: 11px; font-weight: 600; color: var(--accent-ink); background: var(--accent); border-radius: 999px; vertical-align: 1px; }

/* ---------- Problema → soluția ---------- */

.compare {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 20px;
    margin-top: 56px;
}

.compare > div { display: flex; }

.compare article {
    display: flex;
    flex: 1;
    flex-direction: column;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    transition: transform 0.25s, box-shadow 0.25s, opacity 0.25s;
}

.compare article:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

/* Cât timp mouse-ul e pe un card, celelalte se estompează, ca să iasă în evidență cel cu hover. */
@media (hover: hover) {
    .compare:has(article:hover) article:not(:hover) { opacity: 0.45; }
}

/* Liniile „Acum" și „Cu LiderPOS" rămân aliniate între carduri, oricât text ar avea fiecare. */
@supports (grid-template-rows: subgrid) {
    .compare > div, .compare article {
        display: grid;
        grid-row: span 2;
        grid-template-rows: subgrid;
        row-gap: 0;
    }
}

.compare .now { padding: 28px 28px 24px; }
.compare .then { flex: 1; padding: 28px; background: var(--soft); border-top: 1px dashed var(--line); }

.kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink3);
}

.then .kicker { color: var(--accent); }

.compare h3 { margin: 10px 0 8px; font-size: 21px; letter-spacing: -0.02em; font-weight: 600; }
.compare p { font-size: 15px; color: var(--ink2); }

/* ---------- Aplicația ---------- */

.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 44px; }

.tab {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink2);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 999px;
    transition: all 0.2s;
}

.tab[aria-selected="true"] { color: var(--bg); background: var(--ink); border-color: var(--ink); }

.showcase { margin-top: 32px; }

.showcase-frame { padding: 8px; background: var(--bg2); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
/* Pe fundal gri, rama capturilor devine albă, altfel se pierde în fundal. */
.section-alt .showcase-frame { background: var(--card); }

.stage {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    cursor: zoom-in;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.slide { position: absolute; inset: 0; display: none; }
.slide.is-active { display: block; animation: fade 0.45s ease; }
/* Capturile au proporții ușor diferite (16:9 și 1.9:1): se arată întregi, nu tăiate, ca să aibă aceeași scală. */
.slide img { width: 100%; height: 100%; object-fit: contain; object-position: center; }

@keyframes fade { from { opacity: 0; } }

.zoom-hint {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    background: color-mix(in oklch, var(--card) 88%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.show-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; padding-inline: 6px; }
.show-foot p { font-size: 16px; color: var(--ink2); }
.show-foot strong { font-weight: 600; color: var(--ink); }
.show-nav { display: flex; gap: 8px; }

.round-btn {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 18px;
    color: var(--ink);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
}

.round-btn:hover { background: var(--bg2); }

.lightbox {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: clamp(16px, 4vw, 48px);
    color: #fff;
    background: transparent;
    border: 0;
}

.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.lightbox::backdrop { background: oklch(0.12 0.01 12 / 0.88); backdrop-filter: blur(6px); }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 140px); background: var(--card); border-radius: 12px; box-shadow: 0 30px 80px #000a; }

.lb-bar { display: flex; align-items: center; gap: 14px; }
.lb-bar span { min-width: 180px; text-align: center; font-size: 15px; font-weight: 600; }

.lb-btn {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    font-size: 18px;
    color: #fff;
    background: #fff1;
    border: 1px solid #fff3;
    border-radius: 50%;
}

.lb-btn:hover { background: #fff2; }
.lb-btn:last-child { margin-left: 8px; }

/* ---------- Funcționalități ---------- */

.features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 16px;
    margin-top: 56px;
}

.features > div { display: flex; }

.feature { flex: 1; padding: 26px; border-radius: 18px; }
.feature:hover { border-color: color-mix(in oklch, var(--accent) 35%, var(--line)); }
.feature h3 { margin: 20px 0 8px; font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.feature p { font-size: 15px; color: var(--ink2); }

/* ---------- Cum funcționează ---------- */

.steps-wrap { position: relative; margin-top: 72px; }

.steps-line {
    display: none;
    position: absolute;
    left: 12.5%;
    right: 12.5%;
    top: 27px;
    height: 2px;
    background: var(--line);
    border-radius: 2px;
}

.steps-line::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--accent), color-mix(in oklch, var(--accent) 50%, var(--soft)));
    border-radius: 2px;
    transform-origin: left;
}

.js .steps-line::after { transform: scaleX(0); transition: transform 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.15s; }
.js .steps-line.in::after { transform: none; }

@media (min-width: 1100px) {
    .steps-line { display: block; }
}

.steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 48px 28px;
}

.step { display: flex; flex-direction: column; align-items: flex-start; }

@media (min-width: 1100px) {
    .step { align-items: center; text-align: center; }
}

.step-dot {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    font-size: 22px;
    color: var(--accent);
    background: var(--card);
    border: 2px solid var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 8px var(--bg);
}

.step-last .step-dot { color: var(--accent-ink); background: var(--accent); }

/* Pe fundal gri, inelul din jurul cercului se face tot gri, ca să nu apară un halou alb. */
.section-alt .step-dot { box-shadow: 0 0 0 8px var(--bg2); }

.step-n { margin-top: 22px; font-family: var(--mono); font-size: 12px; color: var(--ink3); }
.step h3 { margin: 6px 0 10px; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.step p { max-width: 260px; margin-bottom: 16px; font-size: 15px; color: var(--ink2); }

.step-tag {
    /* Etichetele stau pe același rând în toți pașii, oricât text au descrierile. */
    margin-top: auto;
    padding: 4px 10px;
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--accent);
    background: var(--soft);
    border-radius: 999px;
}

/* ---------- Integrări ---------- */

.integ-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
    gap: 20px;
    margin-top: 56px;
}

.integ-grid > div { display: flex; }

.integ {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: clamp(26px, 3vw, 36px);
}

.integ-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.integ h3 { margin: 26px 0 10px; font-size: 24px; font-weight: 600; letter-spacing: -0.025em; }
.integ p { flex: 1; font-size: 15.5px; color: var(--ink2); }

.integ-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    padding-top: 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    border-top: 1px solid var(--line);
}

.integ-foot .i { color: var(--accent); }

/* ---------- Pentru cine ---------- */

.roles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 20px;
    margin-top: 56px;
}

.roles > div { display: flex; }
.role { flex: 1; }
.role-top { display: flex; align-items: center; gap: 12px; }
.role .ico { width: 44px; height: 44px; border-radius: 50%; }
.role-top span:last-child { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink3); }
.role h3 { margin: 22px 0 10px; font-size: 24px; font-weight: 600; letter-spacing: -0.025em; }
.role > p { font-size: 15.5px; color: var(--ink2); }

.perms { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.perms li { display: flex; gap: 10px; font-size: 15px; }
.perms .i { margin-top: 3px; color: var(--accent); }

/* ---------- Întrebări frecvente ---------- */

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: clamp(32px, 6vw, 80px);
    align-items: start;
    max-width: 1180px;
    margin-inline: auto;
}

.faq-intro h2 { font-size: clamp(32px, 4.2vw, 48px); }
.faq-intro p { margin: 18px 0 28px; font-size: 17px; color: var(--ink2); }
.faq-intro .btn { padding: 12px 18px; font-size: 15px; border-radius: 11px; box-shadow: none; }

.faq { display: flex; flex-direction: column; gap: 10px; }

.faq details { overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -0.01em;
    list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { font-size: 18px; color: var(--ink3); transition: transform 0.3s; }
.faq details[open] summary .i { transform: rotate(180deg); }

.faq details::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size 0.35s ease, content-visibility 0.35s allow-discrete;
}

.faq details[open]::details-content { block-size: auto; }
.faq details p { padding: 0 22px 22px; font-size: 15.5px; color: var(--ink2); text-wrap: pretty; }
.faq details p:not(:last-child) { padding-bottom: 12px; }

/* ---------- Apel final ---------- */

/* Secțiune separată de FAQ: are linie deasupra și fundalul alternează față de secțiunea dinainte. */
.section-cta { padding: clamp(80px, 10vw, 120px) 24px; background: var(--bg2); border-top: 1px solid var(--line); }
.section-alt + .section-cta { background: var(--bg); }

.cta {
    position: relative;
    max-width: 1180px;
    margin-inline: auto;
    padding: clamp(56px, 8vw, 104px) clamp(24px, 5vw, 64px);
    overflow: hidden;
    text-align: center;
    color: #fff;
    background: var(--cta);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 55% 70% at 50% 0%, oklch(0.55 0.14 var(--h) / 0.55), transparent 70%),
        radial-gradient(ellipse 40% 60% at 100% 100%, oklch(0.5 0.12 var(--h) / 0.35), transparent 70%);
}

.cta-in { position: relative; display: flex; flex-direction: column; align-items: center; }
.cta h2 { font-size: clamp(34px, 5.2vw, 62px); line-height: 1.04; letter-spacing: -0.04em; font-weight: 600; text-wrap: balance; }
.cta p { max-width: 560px; margin-top: 20px; font-size: 18px; color: oklch(0.93 0.02 var(--h)); }
.cta .actions { margin-top: 36px; }
.cta .btn { padding: 15px 24px; }

/* ---------- Subsol ---------- */

.site-footer { padding: 64px 24px 40px; border-top: 1px solid var(--line); }

.foot {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 40px;
    max-width: 1180px;
    margin-inline: auto;
}

@media (min-width: 700px) {
    .foot-brand { grid-column: span 2; }
}

.foot-brand { min-width: 0; max-width: 380px; }
.foot-brand p { margin-top: 16px; font-size: 15px; color: var(--ink2); }

.foot-col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.foot-col a { color: var(--ink2); }
.foot-col a:hover { color: var(--ink); }
/* „Setări cookie-uri” e buton (deschide fereastra de cookie-uri), dar arată ca un link. */
.foot-col button { align-self: flex-start; padding: 0; font: inherit; text-align: left; color: var(--ink2); background: none; border: 0; cursor: pointer; }
.foot-col button:hover { color: var(--ink); }
.foot-col a.foot-accent { color: var(--accent); }
.foot-col a.foot-accent:hover { color: var(--ink); }
.foot-h { margin-bottom: 4px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink3); }
.foot-col .foot-muted { font-size: 14px; color: var(--ink3); }

.legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    max-width: 1180px;
    margin: 56px auto 0;
    padding-top: 24px;
    font-size: 13.5px;
    color: var(--ink3);
    border-top: 1px solid var(--line);
}

.legal .mono { font-size: 12px; }

/* ---------- Pagina de contact ---------- */

/* Doar conținutul paginii are alt fundal; header-ul și footer-ul rămân neatinse. */
.page-contact main, .page-doc main { background: var(--bg2); }

.contact-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }

.page-title {
    font-size: clamp(34px, 4.6vw, 52px);
    line-height: 1.06;
    letter-spacing: -0.035em;
    font-weight: 600;
    text-wrap: balance;
}

.contact-intro .sub { margin-top: 18px; }

.contact-points { display: grid; gap: 12px; margin-top: 28px; }
.contact-points li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink2); }
.contact-points .i { margin-top: 4px; font-size: 18px; color: var(--accent); }

.contact-direct { display: grid; gap: 8px; margin-top: 28px; padding-top: 20px; font-size: 14px; color: var(--ink3); border-top: 1px solid var(--line); }
.contact-direct a { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.contact-company { margin-top: 24px; font-size: 13.5px; line-height: 1.7; color: var(--ink3); }
.contact-company strong { font-weight: 500; color: var(--ink2); }

.contact-form { display: grid; gap: 16px; padding: 24px; border-radius: 22px; box-shadow: var(--shadow); }

.field { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink); }
.field-row { display: grid; grid-template-columns: 1fr; gap: 16px; }

.field input, .field textarea {
    width: 100%;
    padding: 12px 14px;
    font: inherit;
    font-size: 15px;
    font-weight: 400;
    color: var(--ink);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 10px;
}

.field textarea { min-height: 140px; resize: vertical; }

.field input:focus, .field textarea:focus {
    outline: 0;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 22%, transparent);
}

.field-error { font-size: 12px; font-weight: 500; color: var(--danger); }

.form-alert {
    padding: 12px 14px;
    font-size: 14px;
    color: var(--danger);
    background: color-mix(in oklch, var(--danger) 10%, var(--card));
    border: 1px solid color-mix(in oklch, var(--danger) 35%, transparent);
    border-radius: 10px;
}

.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.5; color: var(--ink2); }
.consent input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.form-note { font-size: 12px; line-height: 1.5; color: var(--ink3); }
.contact-form .btn { justify-self: start; }

/* Câmp-capcană pentru roboți */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.thanks {
    display: grid;
    justify-items: center;
    max-width: 560px;
    margin-inline: auto;
    padding: 48px 28px;
    text-align: center;
    box-shadow: var(--shadow);
}

.thanks-ico {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 24px;
    font-size: 26px;
    color: var(--accent);
    background: var(--soft);
    border-radius: 50%;
}

.thanks-title { font-size: clamp(24px, 3vw, 30px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; text-wrap: balance; }
.thanks-text { max-width: 42ch; margin-top: 12px; color: var(--ink2); text-wrap: pretty; }
.thanks-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

@media (max-width: 480px) {
    .thanks-actions { flex-direction: column; align-self: stretch; }
}

@media (min-width: 640px) {
    .field-row { grid-template-columns: 1fr 1fr; }
    .contact-form { padding: 32px; }
}

@media (min-width: 900px) {
    .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 64px; }
}

/* ---------- Cookie-uri și pagini legale ---------- */

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding: 0 16px 16px;
    pointer-events: none;
}

.cookie-banner[hidden] { display: none; }

/* Chenar cu aceeași lățime maximă ca antetul; accentul din chenar îl face greu de ratat. */
.cookie-in {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px 32px;
    max-width: 1200px;
    margin-inline: auto;
    padding: 24px 28px;
    pointer-events: auto;
    background: var(--card);
    border: 2px solid var(--accent);
    border-radius: 20px;
    box-shadow: 0 0 0 6px color-mix(in oklch, var(--accent) 14%, transparent), 0 30px 70px -20px var(--sh-2);
    animation: cookie-up 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes cookie-up { from { opacity: 0; transform: translateY(24px); } }

@media (prefers-reduced-motion: reduce) {
    .cookie-in { animation: none; }
}

.cookie-copy { flex: 1 1 420px; max-width: 760px; }
.cookie-title { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.cookie-text { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--ink2); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; flex: none; }

/* Cele trei butoane au aceeași mărime și aceeași importanță vizuală. */
.cookie-actions .btn { min-width: 150px; color: var(--ink); background: var(--card); border: 1px solid var(--ink3); }
.cookie-actions .btn:hover { color: var(--ink); background: var(--bg2); border-color: var(--ink); }

@media (max-width: 520px) {
    .cookie-in { padding: 20px; }
    .cookie-actions { width: 100%; }
    .cookie-actions .btn { flex: 1 1 100%; }
}

.cookie-modal {
    width: min(560px, calc(100% - 32px));
    max-height: calc(100dvh - 32px);
    padding: 28px;
    overflow-y: auto;
    color: var(--ink);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.cookie-modal::backdrop { background: oklch(0.12 0.01 12 / 0.6); backdrop-filter: blur(4px); }
.cookie-modal h2 { padding-right: 32px; font-size: 24px; letter-spacing: -0.025em; font-weight: 600; }

.cookie-close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    font-size: 18px;
    color: var(--ink2);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.cookie-close:hover { color: var(--ink); background: var(--bg2); }

.cookie-cats { display: grid; gap: 12px; margin-top: 20px; }
.cookie-cat { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.cookie-cat strong { font-weight: 600; }
.cookie-cat p { margin-top: 4px; font-size: 14px; line-height: 1.55; color: var(--ink2); }
.cookie-state { flex: none; padding: 3px 10px; font-family: var(--mono); font-size: 11.5px; color: var(--accent); background: var(--soft); border-radius: 999px; }
.cookie-more { margin-top: 16px; font-size: 13.5px; color: var(--ink3); }
.cookie-modal .cookie-actions { margin-top: 20px; }

.switch { position: relative; flex: none; display: inline-block; width: 46px; height: 26px; cursor: pointer; }
.switch input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.switch-ui { position: absolute; inset: 0; background: var(--line); border: 1px solid var(--ink3); border-radius: 999px; transition: background 0.2s; }
.switch-ui::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; background: var(--ink2); border-radius: 50%; transition: transform 0.2s, background 0.2s; }
.switch input:checked + .switch-ui { background: var(--accent); border-color: var(--accent); }
.switch input:checked + .switch-ui::after { background: var(--accent-ink); transform: translateX(20px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--accent); outline-offset: 2px; }

.legal-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.legal-links a, .legal-links button { padding: 0; font-size: inherit; color: var(--ink3); background: none; border: 0; }
.legal-links a:hover, .legal-links button:hover { color: var(--ink); }

.link-btn { padding: 0; font: inherit; color: var(--accent); text-decoration: underline; background: none; border: 0; }
.link-btn:hover { color: var(--ink); }

.prose { max-width: 820px; margin-inline: auto; }

/* Pagini legale și pagini din admin: textul stă pe un card, ca un document. */
.doc { max-width: 1152px; padding: clamp(28px, 5vw, 56px); border-radius: 22px; box-shadow: var(--shadow); }
.prose .updated { margin-top: 12px; font-size: 14px; color: var(--ink3); }
.prose h2 { margin-top: 40px; font-size: 22px; letter-spacing: -0.02em; font-weight: 600; }
.prose p, .prose ul { margin-top: 14px; color: var(--ink2); }
.prose ul, .prose ol { padding-left: 22px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose h3 { margin-top: 28px; font-size: 18px; letter-spacing: -0.015em; font-weight: 600; }
.prose h4 { margin-top: 22px; font-size: 16px; font-weight: 600; }
.prose blockquote { margin: 16px 0 0; padding: 4px 0 4px 16px; color: var(--ink2); border-left: 3px solid var(--accent); }
.prose pre { margin-top: 14px; padding: 14px; overflow-x: auto; font-family: var(--mono); font-size: 13px; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; }
.prose hr { margin: 28px 0; border: 0; border-top: 1px solid var(--line); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose li + li { margin-top: 8px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose code { padding: 1px 6px; font-family: var(--mono); font-size: 0.88em; background: var(--bg2); border: 1px solid var(--line); border-radius: 6px; }

.prose table {
    width: 100%;
    margin-top: 16px;
    font-size: 14px;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Pe ecrane înguste tabelul se derulează pe orizontală, în loc să strice pagina. */
@media (max-width: 760px) {
    .prose table { display: block; overflow-x: auto; }
    .prose th, .prose td { min-width: 150px; }
}

.prose th, .prose td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; color: var(--ink); background: var(--soft); border-bottom-color: color-mix(in oklch, var(--accent) 30%, transparent); }
/* Tabelele făcute în editor nu au antet separat: primul rând se afișează ca antet. */
.prose table:not(:has(th)) tr:first-child td { font-weight: 600; color: var(--ink); background: var(--soft); border-bottom-color: color-mix(in oklch, var(--accent) 30%, transparent); }
.prose tr:last-child td { border-bottom: 0; }
.prose td { color: var(--ink2); }
/* Rânduri alternate, ca tabelele lungi să se citească ușor (fără rândul-antet). */
.prose tbody tr:nth-child(even) td { background: var(--bg2); }
/* Fără antet separat, rândul 1 e antetul: alternanța începe de la rândul 3. */
.prose table:not(:has(th)) tr:nth-child(even) td { background: transparent; }
.prose table:not(:has(th)) tr:nth-child(odd):not(:first-child) td { background: var(--bg2); }

