/* Knovi: componente dinamice (în stilul modulelor 21st.dev / Magic UI, implementate nativ,
   fără React și fără scripturi inline, compatibile cu CSP-ul strict al site-ului). */

/* ── Fundaluri: aurora (pete de culoare în mișcare lentă) + grilă de puncte cu mască radială ── */
.has-bg { position: relative; isolation: isolate; overflow: hidden; }
.has-bg > .wrap { position: relative; z-index: 1; }
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .6; animation: aurora 22s ease-in-out infinite alternate; }
.aurora span:nth-child(1) { width: 46vw; height: 46vw; left: -12vw; top: -18vw; background: #d8d5ff; }
.aurora span:nth-child(2) { width: 38vw; height: 38vw; right: -10vw; top: -4vw; background: #ffe1cf; animation-duration: 26s; animation-delay: -6s; }
.aurora span:nth-child(3) { width: 30vw; height: 30vw; left: 32vw; top: 24vw; background: #d3e9f6; animation-duration: 30s; animation-delay: -12s; }
:root[data-theme="dark"] .aurora span { opacity: .16; }
@keyframes aurora { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(4vw, 3vw) scale(1.08); } 100% { transform: translate(-3vw, 5vw) scale(.95); } }
.dot-grid { position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .6;
  background-image: radial-gradient(color-mix(in srgb, var(--text) 16%, transparent) 1px, transparent 1.3px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 25%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 25%, transparent 75%); }

/* ── Apariție la derulare (blur fade). Starea ascunsă există doar când rulează JS. ── */
.js [data-reveal] { opacity: 0; transform: translateY(18px); filter: blur(6px); transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-visible { opacity: 1; transform: none; filter: none; }

/* ── Border beam: o rază de lumină care parcurge conturul ── */
@property --beam { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.border-beam { position: relative; }
.border-beam::after { content: ''; position: absolute; inset: -2px; border-radius: inherit; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--beam), transparent 0deg 250deg, var(--primary) 295deg, var(--accent) 335deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: beam-spin 5s linear infinite; }
@keyframes beam-spin { to { --beam: 360deg; } }

/* ── Shimmer pe butoanele principale ── */
.btn-shimmer { position: relative; overflow: hidden; }
.btn-shimmer::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.42) 50%, transparent 65%); transform: translateX(-120%); animation: shimmer 3.6s ease-in-out infinite; }
@keyframes shimmer { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

/* ── Spotlight: lumină care urmărește cursorul ── */
.spotlight { position: relative; overflow: hidden; }
.spotlight::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; z-index: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--primary) 13%, transparent), transparent 45%); }
.spotlight:hover::before { opacity: 1; }
.spotlight > * { position: relative; z-index: 1; }

/* ── Marquee (bandă infinită) ── */
.marquee { overflow: hidden; padding: 14px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 1rem; width: max-content; animation: marquee 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .chip { white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Erou lat, cu scenă 3D ── */
.hero-xl { padding: clamp(2rem, 5vw, 4rem) 0 clamp(2.5rem, 5vw, 4.5rem); }
.hero-xl .hero-grid { gap: 2rem; }
@media (min-width: 1000px) { .hero-xl .hero-grid { grid-template-columns: 1fr 1.05fr; } }
.hero-xl h1 { font-size: clamp(2.3rem, 4.6vw, 4rem); letter-spacing: -.03em; }
.text-shine { color: var(--text); background-image: linear-gradient(transparent 58%, var(--accent) 58%, var(--accent) 92%, transparent 92%); background-repeat: no-repeat; background-size: 0% 100%; animation: marker 1.1s .35s var(--ease) forwards; padding: 0 .08em; margin: 0 -.08em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@keyframes marker { to { background-size: 100% 100%; } }
:root[data-theme="dark"] .text-shine { color: var(--on-accent); background-image: linear-gradient(transparent 12%, var(--accent) 12%, var(--accent) 94%, transparent 94%); }
@keyframes text-shine { to { background-position: -200% center; } }
.scene-wrap { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 720px; margin: 0 auto; }
.scene-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; opacity: 0; transition: opacity 1.2s var(--ease); }
.scene-wrap canvas:active { cursor: grabbing; }
.scene-wrap.scene-ready canvas { opacity: 1; }
.scene-fallback { position: absolute; inset: 14%; border-radius: 50%; box-shadow: var(--raise-lg); background: radial-gradient(circle at 35% 30%, #fff, var(--bg) 55%, var(--bg-2)); transition: opacity .8s; }
.scene-fallback::after { content: ''; position: absolute; inset: 8%; border-radius: 50%; background-image: radial-gradient(color-mix(in srgb, var(--primary) 45%, transparent) 1.2px, transparent 1.6px); background-size: 14px 14px; -webkit-mask-image: radial-gradient(circle, #000 55%, transparent 72%); mask-image: radial-gradient(circle, #000 55%, transparent 72%); }
.scene-ready .scene-fallback { opacity: 0; }
.scene-hint { position: absolute; bottom: -.4rem; left: 50%; transform: translateX(-50%); font-size: .78rem; color: var(--muted); white-space: nowrap; }
.float-card { position: absolute; z-index: 2; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--hairline); border-radius: 18px; box-shadow: var(--raise); padding: .75rem 1rem; font-size: .86rem; font-weight: 650; animation: float 7s ease-in-out infinite; }
.float-card .icon { vertical-align: -.25em; }
.float-card.f1 { top: 9%; right: 3%; color: var(--ok); }
.float-card.f2 { bottom: 20%; right: 0; color: var(--sev-high); animation-delay: -2s; }
.float-card.f3 { top: 36%; left: -1%; color: var(--primary); animation-delay: -4s; }
.float-card.f-report { bottom: 3%; left: 4%; display: flex; gap: .9rem; align-items: center; padding: .85rem 1.1rem; animation-delay: -1s; color: var(--text); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 640px) {
  .float-card.f3, .float-card.f1, .float-card.f2 { display: none; }
  .float-card { font-size: .78rem; }
  .scene-wrap { margin-bottom: 3.5rem; }
  .float-card.f-report { bottom: -12%; left: 0; right: 0; margin: 0 auto; width: fit-content; }
  .scene-hint { bottom: -4.6rem; }
}

/* ── Statistici cu numere animate ── */
.stats-band { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .stats-band { grid-template-columns: repeat(4, 1fr); } }
.stat-tile { padding: 1.4rem 1.2rem; border-radius: var(--r-lg); background: var(--bg); box-shadow: var(--raise); text-align: center; }
.stat-tile strong { display: block; font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.stat-tile span { font-size: .88rem; color: var(--muted); }

/* ── Animated beam: fluxul de date dintre noduri ── */
.beam-stage { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(1rem, 7vw, 7rem); padding: 1rem 0; }
.beam-col { display: grid; gap: 1rem; position: relative; z-index: 1; justify-items: start; }
.beam-col.right { justify-items: end; }
.beam-node { display: inline-flex; align-items: center; gap: .55rem; padding: .7rem 1rem; border-radius: 16px; background: var(--bg); box-shadow: var(--raise-sm); font-weight: 650; font-size: .92rem; white-space: nowrap; }
.beam-node .icon { color: var(--primary); }
.beam-hub { width: 116px; height: 116px; border-radius: 32px; display: grid; place-items: center; background: var(--bg); box-shadow: var(--raise-lg); position: relative; z-index: 1; }
.beam-hub svg.icon { width: 50px; height: 50px; color: var(--primary); }
.beam-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 0; pointer-events: none; }
.beam-svg .track { fill: none; stroke: color-mix(in srgb, var(--text) 12%, transparent); stroke-width: 2; }
.beam-svg .pulse { fill: none; stroke: var(--primary); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 70 1400; stroke-dashoffset: 1470; animation: beam-flow 3.4s linear infinite; }
.beam-svg .pulse.alt { stroke: var(--accent-deep); }
@keyframes beam-flow { from { stroke-dashoffset: 1470; } to { stroke-dashoffset: 0; } }
@media (max-width: 760px) { .beam-stage { grid-template-columns: 1fr; justify-items: center; } .beam-col, .beam-col.right { justify-items: center; } .beam-col.right { grid-template-columns: 1fr 1fr; } .beam-svg { display: none; } }

/* ── Terminal cu scanare „live” ── */
.terminal { border-radius: var(--r-lg); overflow: hidden; background: #17152e; color: #dcdaf2; box-shadow: var(--raise-lg); font-family: var(--mono); font-size: .86rem; }
.term-bar { display: flex; gap: .45rem; align-items: center; padding: .75rem 1rem; background: #1f1c3d; border-bottom: 1px solid rgba(255,255,255,.06); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.term-bar i:nth-child(2) { background: #febc2e; } .term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: .6rem; color: #a09cc8; font-size: .8rem; }
.term-body { padding: 1rem 1.2rem 1.3rem; min-height: 320px; margin: 0; white-space: pre-wrap; line-height: 1.75; }
.term-line { display: block; }
.term-line .ok { color: #4ade80; } .term-line .bad { color: #fb7185; } .term-line .warn { color: #fbbf24; } .term-line .dim { color: #75719c; } .term-line .hl { color: #ffb48a; }
.js .term-line.pending { visibility: hidden; }
.term-cursor { display: inline-block; width: .55em; height: 1.05em; background: #ffb48a; vertical-align: -.15em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ── Cercuri orbitale ── */
.orbit { position: relative; width: 220px; height: 220px; margin: 1rem auto 0; }
.orbit::before, .orbit::after { content: ''; position: absolute; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--primary) 35%, transparent); }
.orbit::before { inset: 0; } .orbit::after { inset: 30%; }
.orbit-center { position: absolute; inset: 37%; border-radius: 18px; display: grid; place-items: center; background: var(--bg); box-shadow: var(--raise-sm); color: var(--primary); z-index: 1; }
.orbit-item { position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 12px; display: grid; place-items: center; background: var(--bg); box-shadow: var(--raise-sm); color: var(--primary); --r: 110px; animation: orbit 20s linear infinite; }
.orbit-item.inner { --r: 44px; width: 30px; height: 30px; margin: -15px 0 0 -15px; animation-duration: 12s; animation-direction: reverse; }
.orbit-item:nth-child(3) { animation-delay: -5s; } .orbit-item:nth-child(4) { animation-delay: -10s; } .orbit-item:nth-child(5) { animation-delay: -15s; }
.orbit-item.inner:nth-child(7) { animation-delay: -6s; }
@keyframes orbit { from { transform: rotate(0deg) translateX(var(--r)) rotate(0deg); } to { transform: rotate(360deg) translateX(var(--r)) rotate(-360deg); } }

/* ── Linii care se desenează și bare care cresc ── */
.draw-line { stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600); transition: stroke-dashoffset 1.8s var(--ease); }
.is-visible .draw-line { stroke-dashoffset: 0; }
.js [data-reveal] .meter > span { width: 0; }
.js [data-reveal].is-visible .meter > span { width: calc(var(--pct, 0) * 1%); }

/* ── Bento grafic ── */
.bento-xl { display: grid; gap: 1.25rem; }
@media (min-width: 900px) {
  .bento-xl { grid-template-columns: repeat(12, 1fr); }
  .bento-xl .b-7 { grid-column: span 7; } .bento-xl .b-5 { grid-column: span 5; } .bento-xl .b-4 { grid-column: span 4; }
  .bento-xl .b-8 { grid-column: span 8; } .bento-xl .b-6 { grid-column: span 6; } .bento-xl .b-12 { grid-column: span 12; }
}
.mini-ui { margin-top: 1.1rem; border-radius: var(--r); box-shadow: var(--press-sm); padding: 1rem; font-size: .85rem; }
.mini-ui .row-between + .row-between { margin-top: .55rem; }
.typing::after { content: ''; display: inline-block; width: 2px; height: 1em; background: var(--primary); margin-left: 2px; vertical-align: -.15em; animation: blink 1s steps(1) infinite; }
.measure-ring { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; margin-top: 1rem; }
.measure-ring span { aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: .9rem; color: var(--primary); background: var(--bg); box-shadow: var(--raise-sm); transition: transform .3s var(--ease), box-shadow .3s, background-color .4s, color .4s; }
.measure-ring span:hover { transform: translateY(-3px); box-shadow: var(--raise); }
.measure-ring span.on { background: var(--primary); color: var(--on-primary); }
.tilt { transition: transform .25s var(--ease); transform-style: preserve-3d; will-change: transform; }

/* ── Grafice ── */
.stack-bar { display: flex; gap: 2px; height: 14px; border-radius: 7px; overflow: hidden; background: var(--bg-2); }
.stack-bar > span { height: 100%; flex: var(--v, 0) 1 0; min-width: 0; transition: flex-grow .9s var(--ease); }
.js [data-reveal] .stack-bar > span { flex-grow: 0; }
.js [data-reveal].is-visible .stack-bar > span { flex-grow: var(--v, 0); }
.s-critical { --sw: #b8233f; } .s-high { --sw: #e8590c; } .s-medium { --sw: #cfa200; } .s-low { --sw: #3b82f6; } .s-info { --sw: #8d9bb3; }
:root[data-theme="dark"] .s-critical { --sw: #ea4f72; } :root[data-theme="dark"] .s-high { --sw: #c8541e; } :root[data-theme="dark"] .s-medium { --sw: #bfa43a; } :root[data-theme="dark"] .s-low { --sw: #4f86ee; }
.stack-bar > span, .legend i { background: var(--sw); }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: .6rem 0 0; font-size: .82rem; color: var(--text-2); list-style: none; padding: 0; }
.legend li { display: inline-flex; gap: .4rem; align-items: center; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.hbar-chart { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.hbar { display: grid; grid-template-columns: minmax(8rem, 17rem) 1fr 3rem; gap: .9rem; align-items: center; font-size: .9rem; }
.hbar .track { height: 12px; border-radius: 0 6px 6px 0; background: var(--bg-2); position: relative; }
.hbar .track > span { position: absolute; inset: 0 auto 0 0; width: calc(var(--pct, 0) * 1%); max-width: 100%; border-radius: 0 4px 4px 0; background: var(--primary); transition: width 1.1s var(--ease); }
.js [data-reveal] .hbar .track > span { width: 0; }
.js [data-reveal].is-visible .hbar .track > span { width: calc(var(--pct, 0) * 1%); }
.hbar b { text-align: right; font-variant-numeric: tabular-nums; }
.hbar .track[title] { cursor: help; }
@media (max-width: 560px) { .hbar { grid-template-columns: 1fr 2.6rem; } .hbar .track { grid-column: 1 / -1; grid-row: 2; } }
.spark { width: 120px; height: 36px; overflow: visible; flex: none; }
.spark path { fill: none; stroke: var(--muted); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark circle { fill: var(--primary); stroke: var(--bg); stroke-width: 2; }
.kpi-row { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); margin-bottom: 1.5rem; }
@media (min-width: 1100px) { .kpi-row { grid-template-columns: repeat(4, 1fr); } }
.kpi { padding: 1.1rem 1.25rem; }
.kpi .label { font-size: .85rem; color: var(--muted); font-weight: 600; }
.kpi .value { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.kpi .stack-bar { margin-top: .7rem; }
.gauge { transition: --pct 1.4s var(--ease); }
@property --pct { syntax: '<number>'; initial-value: 0; inherits: true; }

/* Secțiune cu antet 3D (NIS2, servicii) */
.page-hero { padding: clamp(2rem, 5vw, 4rem) 0; }
.page-hero .split { align-items: center; }
.page-hero .scene-wrap { max-width: 460px; }

/* ── Mișcare redusă: fără animații decorative ── */
@media (prefers-reduced-motion: reduce) {
  .text-shine { background-size: 100% 100%; }
  .aurora span, .marquee-track, .border-beam::after, .btn-shimmer::after, .float-card, .orbit-item, .beam-svg .pulse, .text-shine, .typing::after, .term-cursor { animation: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
  .gauge { transition: none; }
}

.term-body.term-short { min-height: 0; }
.plan.border-beam { outline: none; }
.plan .ribbon { z-index: 2; }
.steps .row { flex-wrap: nowrap; align-items: center; margin-bottom: .4rem; }
.steps .row .step-num { margin-bottom: 0; flex: none; }
.steps .row h3 { margin: 0; }

/* ── Accentul citron: butonul principal al paginii, eticheta „Recomandat”, măsurile active ── */
.btn-accent { --b-bg: var(--accent); --b-fg: var(--on-accent); border-color: color-mix(in srgb, var(--on-accent) 22%, transparent); box-shadow: 6px 6px 16px var(--sh-dark), -6px -6px 14px var(--sh-light), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-accent:hover { --b-bg: #ffb994; }
.plan .ribbon { background: var(--accent); color: var(--on-accent); box-shadow: var(--raise-sm); }
.measure-ring span.on { background: var(--accent); color: var(--on-accent); }
.eyebrow::before { content: ''; width: .55rem; height: .55rem; border-radius: 2px; background: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 30%, transparent); }
.eyebrow .icon { display: none; }
.stat-tile strong, .stat strong { color: var(--primary); }
.brand-mark { background: var(--primary); color: var(--accent); box-shadow: var(--raise-sm); }
.brand b { color: var(--primary); }
::selection { background: var(--accent); color: var(--on-accent); }
.orbit-center { color: var(--primary); }
.scan-form:focus-within { border-color: var(--primary); }
.paywall.border-beam { border-color: transparent; }
.c-brand { --c: var(--primary); }
.plan.spotlight { overflow: visible; }
.spotlight::before { border-radius: inherit; }
/* Câmpurile completate automat (ANAF) clipesc scurt în culoarea accentului */
.input.autofilled { animation: autofill-flash 1.6s var(--ease); }
@keyframes autofill-flash { 0% { box-shadow: var(--press-sm), 0 0 0 4px var(--accent); } 100% { box-shadow: var(--press-sm), 0 0 0 0 transparent; } }

/* ═══════════ Audit responsive (320-1920 px) ═══════════ */
/* Elementele absolute din tabele (ex. etichete sr-only) rămân în containerul cu derulare. */
.table-wrap { position: relative; }
/* Ținte de atingere: minimum 44 px pe ecrane tactile, 42 px cu mouse. */
.btn-sm { min-height: 42px; }
.brand { min-height: 44px; }
.segmented span { min-height: 44px; display: flex; align-items: center; }
.check { padding: .5rem 0; }
.row-between > a.small { padding: .65rem 0; }
@media (pointer: coarse) { .btn, .btn-sm { min-height: 44px; } .icon-btn { width: 44px; height: 44px; } }
.sev-cell span { font-size: .8rem; }
.mobile-theme { margin-top: .5rem; justify-content: flex-start; }
/* Antet pe telefoane înguste: tema trece în meniu, butonul principal se strânge. */
@media (max-width: 480px) {
  .nav { gap: .5rem; }
  .nav-actions { gap: .35rem; }
  .nav-actions > [data-theme-toggle] { display: none; }
  .nav-actions .btn-accent { padding: .45rem .7rem; font-size: .86rem; }
  .brand { font-size: 1.15rem; gap: .45rem; }
  .brand-mark { width: 34px; height: 34px; }
}
@media (max-width: 340px) { .brand > span:last-child { display: none; } }
/* Diagrama cu fluxuri: pe mobil nodurile se așază pe rânduri, fără să iasă din ecran. */
@media (max-width: 760px) {
  .beam-col, .beam-col.right { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
  .beam-node { white-space: normal; font-size: .86rem; padding: .6rem .85rem; }
  .beam-hub { width: 92px; height: 92px; border-radius: 26px; }
}
/* Spațiere verticală mai mică pe telefon */
@media (max-width: 640px) {
  .section { padding: 2.75rem 0; }
  .card { padding: 1.15rem; }
  .card-lg { border-radius: var(--r-lg); }
  .hero-xl { padding-top: 1.25rem; }
  .page-head { margin-bottom: 1.1rem; }
  .terminal { font-size: .78rem; }
  .term-body { min-height: 0; }
}
.brand { min-width: 44px; }
details > summary.small { padding: .65rem 0; cursor: pointer; }

/* ═══════════ Formulare NIS2 ușor de completat ═══════════ */
/* Butoane-alegere mari: eticheta scurtă, indicatorul de nivel și explicația, tot butonul e țintă. */
.choices { display: grid; gap: .6rem; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.choices.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choices.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.choice { position: relative; display: block; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.choice-box { display: flex; flex-direction: column; gap: .2rem; min-height: 64px; height: 100%; padding: .75rem .85rem; border-radius: 14px;
  background: var(--bg); box-shadow: var(--raise-sm); border: 1.5px solid var(--hairline); transition: box-shadow .18s var(--ease), transform .18s var(--ease), background-color .18s, border-color .18s; }
.choice-box b { font-size: .95rem; line-height: 1.25; }
.choice-box small { font-size: .8rem; color: var(--muted); line-height: 1.3; }
.choice:hover .choice-box { box-shadow: var(--raise); border-color: color-mix(in srgb, var(--primary) 35%, transparent); }
.choice input:active + .choice-box { transform: scale(.98); }
.choice input:checked + .choice-box { background: var(--primary); border-color: var(--primary); box-shadow: var(--press-sm); color: var(--on-primary); }
.choice input:checked + .choice-box small { color: color-mix(in srgb, var(--on-primary) 82%, transparent); }
.choice input:focus-visible + .choice-box { outline: 3px solid var(--focus); outline-offset: 3px; }
.lvl { display: inline-flex; gap: 3px; margin-bottom: .2rem; }
.lvl i { width: 12px; height: 5px; border-radius: 3px; background: color-mix(in srgb, currentColor 18%, transparent); }
.lvl[data-l="1"] i:nth-child(-n+1), .lvl[data-l="2"] i:nth-child(-n+2), .lvl[data-l="3"] i:nth-child(-n+3), .lvl[data-l="4"] i { background: currentColor; }
.choice input:not(:checked) + .choice-box .lvl { color: var(--primary); }
.choice-box.simple { min-height: 52px; justify-content: center; align-items: center; text-align: center; }

/* Cardul întrebării */
.q-card { margin: 0 0 1rem; border: 0; min-width: 0; }
.q-card legend.q-head { float: left; width: 100%; display: flex; gap: .7rem; align-items: baseline; padding: 0; margin: 0 0 .9rem; font-weight: 700; font-size: 1.04rem; line-height: 1.4; }
.q-card legend.q-head + * { clear: both; }
.q-num { flex: none; font-size: .8rem; font-weight: 750; color: var(--primary); background: var(--primary-soft); padding: .15rem .55rem; border-radius: 99px; font-variant-numeric: tabular-nums; }
.q-card.answered { box-shadow: var(--raise-sm); }
.q-card .q-rec { margin: .9rem 0 0; }
.nis2-domain { margin-top: 1.75rem; scroll-margin-top: 170px; }
.q-card { scroll-margin-top: 170px; }
.domain-title { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.domain-title .step-num { margin: 0; width: 38px; height: 38px; flex: none; }

/* Progres lipicios cu cele 10 domenii */
.nis2-progress { position: sticky; top: 72px; z-index: 20; margin: 1.5rem 0 .5rem; padding: .9rem 1.1rem; border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--raise); }
.nis2-progress .meter { margin: .6rem 0 .7rem; }
.domain-chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.domain-chip { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; font-weight: 800; font-size: .85rem; text-decoration: none; color: var(--primary); background: var(--bg); box-shadow: var(--raise-sm); }
.domain-chip.done { background: var(--primary); color: var(--on-primary); box-shadow: var(--press-sm); }
@media (pointer: coarse) { .domain-chip { width: 40px; height: 40px; } }

@media (max-width: 900px) {
  .choices { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
}
/* Pe telefon: o listă verticală, fiecare variantă pe un rând (eticheta + explicația alături). */
@media (max-width: 560px) {
  .choices, .choices.cols-4 { grid-template-columns: 1fr; gap: .45rem; }
  .choice-box { flex-direction: row; align-items: center; gap: .7rem; min-height: 52px; padding: .6rem .8rem; }
  .choice-box .lvl { margin: 0; flex: none; }
  .choice-box small { margin-left: auto; text-align: right; }
  .nis2-progress { top: 64px; padding: .7rem .8rem; }
  .domain-chip { width: 32px; height: 32px; font-size: .8rem; }
}
@media (max-width: 560px) and (pointer: coarse) { .domain-chip { width: 40px; height: 40px; } }
@media (max-width: 560px) {
  .nis2-progress { top: 72px; }
  .domain-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -.2rem; padding: .2rem; }
  .domain-chips::-webkit-scrollbar { display: none; }
  .domain-chip { flex: none; }
}
@media (max-width: 560px) { .choices.cols-4 { grid-template-columns: 1fr 1fr; } .choice-box.simple { flex-direction: column; text-align: center; } }
.domain-chip { width: 40px; height: 40px; }

/* ═══════════ Blog ═══════════ */
.post-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); margin-top: 1.5rem; }
.post-card { display: flex; flex-direction: column; gap: .55rem; }
.post-card h3 { font-size: 1.12rem; line-height: 1.35; margin: .2rem 0 0; }
.post-card .badge { align-self: flex-start; }
.post-card .post-meta { margin-top: auto; }
.article-head { max-width: 860px; margin-bottom: 1.5rem; }
.article-head h1 { font-size: clamp(1.9rem, 4vw, 3rem); margin: .8rem 0 .7rem; }
.article-layout { display: grid; gap: 1.5rem; }
@media (min-width: 1100px) { .article-layout { grid-template-columns: 270px minmax(0, 1fr); align-items: start; } }
.article-toc .card { position: sticky; top: 96px; padding: 1.1rem 1.2rem; }
.article-toc ol { margin: .5rem 0 0; padding-left: 1.1rem; display: grid; gap: .45rem; font-size: .9rem; }
.article-toc a { color: var(--text-2); text-decoration: none; }
.article-toc a:hover { color: var(--primary); text-decoration: underline; }
@media (max-width: 1099px) { .article-toc .card { position: static; } }
.article-main { min-width: 0; max-width: 860px; }
.prose { font-size: 1.05rem; line-height: 1.75; color: var(--text); }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin: 2.2rem 0 .8rem; scroll-margin-top: 96px; }
.prose h3 { font-size: 1.18rem; margin: 1.7rem 0 .6rem; scroll-margin-top: 96px; }
.prose h4 { font-size: 1.02rem; margin: 1.4rem 0 .5rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.05rem; }
.prose ul, .prose ol { padding-left: 1.35rem; }
.prose li { margin: .3rem 0; }
.prose li::marker { color: var(--primary); }
.prose a { font-weight: 600; }
.prose strong { color: var(--text); }
.prose blockquote { margin: 1.3rem 0; padding: 1rem 1.2rem; border-left: 4px solid var(--accent-deep); border-radius: var(--r-sm); background: color-mix(in srgb, var(--accent) 22%, var(--bg)); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code { font-family: var(--mono); font-size: .9em; padding: .1rem .35rem; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--hairline); word-break: break-word; }
.prose pre { margin: 1.2rem 0; padding: 1rem 1.15rem; border-radius: var(--r); background: #17152e; color: #dcdaf2; overflow-x: auto; font-size: .88rem; line-height: 1.6; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; word-break: normal; }
.prose .table-wrap { margin: 1.3rem 0; }
.prose table { font-size: .93rem; }
.prose hr { margin: 2rem 0; }
.article-cta h2 { margin-top: 0; }
@media (max-width: 640px) { .prose { font-size: 1rem; } }

/* Footer pe mobil: sigla pe toată lățimea, legăturile pe 2 coloane (Companie își împarte lista pe aceleași coloane). */
@media (max-width: 799.98px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem 1.25rem; }
  .footer-grid > :first-child, .footer-grid > :last-child { grid-column: 1 / -1; }
  .footer-grid > :last-child ul { grid-template-columns: 1fr 1fr; column-gap: 1.25rem; }
  .site-footer li a { display: inline-block; padding-block: .3rem; }
  .site-footer ul { gap: .15rem; }
  .footer-legal { flex-direction: column; }
}

/* Blog: categorii și paginare */
.cat-nav { display: flex; flex-wrap: wrap; gap: .5rem; }
.cat-count { display: inline-grid; place-items: center; min-width: 1.5em; padding: 0 .35em; margin-left: .35rem; border-radius: 999px; font-size: .75em; font-weight: 700; background: color-mix(in srgb, currentColor 12%, transparent); }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; }
.pager .btn { min-width: 44px; min-height: 44px; justify-content: center; }
.pager-gap { color: var(--muted); padding: 0 .25rem; }
.icon.flip { transform: scaleX(-1); }

/* Prețuri: public țintă pe card și oferta pentru firme medii */
.plan .plan-audience { align-self: flex-start; margin: .1rem 0 .35rem; }
.plan-quote { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.plan-quote > div { flex: 1 1 420px; }
.plan-quote h3 { margin-top: 0; }
.plan-quote + p { margin-top: 1.25rem; }

/* Livrabile: concluziile auditorului, scrisoarea de constatări, pagina de verificare */
.wrap.narrow { max-width: 760px; }
.check-list .ent-detail { display: block; padding-left: 1.9rem; }
.check-list .ent-detail .card-flat { margin: .25rem 0 .5rem; }
.letter h2 { margin-top: 1.5rem; }

/* Documente și ghidul NIS2 din cont */
.doc-list { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: .6rem; }
.doc-list li { display: grid; grid-template-columns: auto 1fr auto; gap: .85rem; align-items: center; padding: .75rem .9rem; border-radius: var(--radius-sm, 12px); background: var(--surface-2, transparent); border: 1px solid var(--hairline); }
.doc-list li > .icon { color: var(--primary); }
@media (max-width: 560px) { .doc-list li { grid-template-columns: auto 1fr; } .doc-list li > .btn { grid-column: 1 / -1; justify-self: start; } }
.guide-steps { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .8rem; }
.guide-steps > li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.guide-n { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-weight: 800; }
.guide-steps h2 { margin: .1rem 0 .3rem; }

/* Admin: graficul de trafic pe zile (înălțimea vine din data-pct, prin app.js) */
.traffic-bars { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding: 1rem; }
.traffic-bars span { flex: 1; min-width: 4px; height: calc(var(--pct, 0) * 1%); min-height: 2px; background: var(--primary); border-radius: 4px 4px 0 0; opacity: .85; }

/* Audit SEO */
.plan-pick a.card-flat { gap: 1rem; padding: 1rem 1.1rem; color: inherit; text-decoration: none; border-radius: var(--r); box-shadow: var(--raise-sm); }
.plan-pick a.card-flat:hover { box-shadow: var(--press-sm); }
.seo-urls { margin: .5rem 0 0; padding-left: 1.1rem; overflow-wrap: anywhere; }
.seo-url { overflow-wrap: anywhere; max-width: 28rem; }
.seo-pages summary.h3 { cursor: pointer; margin: 0; }
.seo-pages .table td, .seo-pages .table th { padding: .55rem .7rem; }
.plans-2 { max-width: 860px; margin-inline: auto; }
@media (min-width: 1150px) { .plans.plans-2 { grid-template-columns: repeat(2, 1fr); } }
@media print { .seo-pages { break-before: page; } }
