/* Knovi: sistem de design „soft UI” (neumorfism cu contrast WCAG AA).
   Suprafețele au relief moale; elementele interactive au în plus contur vizibil (≥3:1)
   și inel de focus, ca să rămână ușor de folosit, nu doar frumoase. */

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Paleta Knovi „Iris & caisă”: suprafețe lavandă-pal (aerisite, calme), iris ca culoare de
   încredere și caisă ca accent cald (butonul principal, marcajul de evidențiere, eticheta
   „Recomandat”). Contrast verificat: text 14,3:1, iris 5,7:1 pe fundal și 6,5:1 cu text alb,
   cerneală pe caisă 11:1. Caisa se folosește doar ca fundal sau lumină, nu ca text. */
:root {
  --bg: #eeeef6;
  --bg-2: #e4e3ef;
  --surface: #f4f4fa;
  --text: #1e1b3a;
  --text-2: #46426b;
  --muted: #5b5779;
  --control-border: #7f7b9c;
  --hairline: rgba(30, 27, 58, 0.10);
  --primary: #5146d8;
  --primary-hover: #4136c2;
  --on-primary: #ffffff;
  --primary-soft: rgba(81, 70, 216, 0.12);
  --accent: #ffc9a8;
  --accent-deep: #f0835a;
  --on-accent: #1e1b3a;
  --glow: #8b84f2;
  --focus: #5146d8;
  --ok: #1e7a4c;
  --ok-soft: rgba(30, 122, 76, 0.12);
  --sev-critical: #b4174f;
  --sev-high: #b33a0a;
  --sev-medium: #8a5300;
  --sev-low: #1d63c7;
  --sev-info: #55627a;
  --sh-dark: rgba(160, 157, 192, 0.5);
  --sh-light: rgba(255, 255, 255, 0.95);
  --raise-lg: 14px 14px 32px var(--sh-dark), -12px -12px 28px var(--sh-light);
  --raise: 8px 8px 18px var(--sh-dark), -8px -8px 18px var(--sh-light);
  --raise-sm: 4px 4px 10px var(--sh-dark), -4px -4px 10px var(--sh-light);
  --press: inset 4px 4px 9px var(--sh-dark), inset -4px -4px 9px var(--sh-light);
  --press-sm: inset 2px 2px 5px var(--sh-dark), inset -2px -2px 5px var(--sh-light);
  --r-xl: 28px; --r-lg: 22px; --r: 16px; --r-sm: 12px; --r-xs: 8px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --wrap: 1400px;
  --font: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  color-scheme: light;
}

/* Tema implicită e cea luminoasă; cea întunecată se activează doar din butonul de temă. */
:root[data-theme="dark"] {
  --bg: #16152b; --bg-2: #111024; --surface: #1c1b35;
  --text: #ecebfa; --text-2: #c9c6e6; --muted: #a3a0c4;
  --control-border: #67638c; --hairline: rgba(236, 235, 250, 0.10);
  --primary: #a9a3ff; --primary-hover: #c4bfff; --on-primary: #16152b; --primary-soft: rgba(169, 163, 255, 0.14); --focus: #ffb48a;
  --accent: #ffb48a; --accent-deep: #ffb48a; --on-accent: #1e1b3a; --glow: #a9a3ff;
  --ok: #6dd9a0; --ok-soft: rgba(109, 217, 160, 0.14);
  --sev-critical: #ff7aa8; --sev-high: #ff9a62; --sev-medium: #f2c45a; --sev-low: #7fb2ff; --sev-info: #a7b2c6;
  --sh-dark: rgba(0, 0, 0, 0.6); --sh-light: rgba(52, 50, 90, 0.45);
  color-scheme: dark;
}

/* ── Bază ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 1rem; line-height: 1.6; word-spacing: .03em; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img, svg { max-width: 100%; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.015em; color: var(--text); }
h1 { font-size: clamp(2rem, 4.6vw, 3.35rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
code, kbd, .mono { font-family: var(--mono); font-size: .92em; }
hr { border: 0; height: 1px; background: var(--hairline); margin: 2rem 0; }
::selection { background: var(--primary); color: var(--on-primary); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--primary); color: var(--on-primary); padding: .7rem 1rem; border-radius: var(--r-sm); font-weight: 700; }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
@media (min-width: 1280px) { .wrap { padding: 0 48px; } }
.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section-sm { padding: 2.5rem 0; }
.center { text-align: center; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--text-2); max-width: 62ch; }
.center .lead { margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.xs { font-size: .8rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin-bottom: 1rem; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.row-between { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.grid { display: grid; gap: 1.5rem; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) and (max-width: 1023px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.22em; }
.icon-lg { width: 1.6rem; height: 1.6rem; }

/* ── Suprafețe neumorfice ── */
.card { background: var(--bg); border-radius: var(--r-lg); box-shadow: var(--raise); padding: clamp(1.25rem, 2.4vw, 2rem); position: relative; }
.card-lg { border-radius: var(--r-xl); box-shadow: var(--raise-lg); }
.card-flat { background: var(--surface); border-radius: var(--r); padding: 1.25rem; border: 1px solid var(--hairline); }
.well { background: var(--bg); border-radius: var(--r); box-shadow: var(--press); padding: 1rem 1.15rem; }
.card h3 { margin-bottom: .4rem; }
.card-link { text-decoration: none; color: inherit; display: block; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.card-link:hover { color: inherit; transform: translateY(-2px); box-shadow: var(--raise-lg); }
.icon-bubble { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--bg); box-shadow: var(--raise-sm); color: var(--primary); margin-bottom: 1rem; }
.icon-bubble .icon { width: 24px; height: 24px; }

/* ── Butoane ── */
.btn {
  --b-bg: var(--bg); --b-fg: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 46px; padding: .7rem 1.25rem; border-radius: var(--r-sm);
  font: inherit; font-weight: 700; font-size: .98rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  color: var(--b-fg); background: var(--b-bg); border: 1px solid var(--control-border);
  box-shadow: var(--raise-sm); transition: box-shadow .18s var(--ease), transform .18s var(--ease), background-color .18s var(--ease);
  touch-action: manipulation; white-space: nowrap;
}
.btn:hover { color: var(--b-fg); box-shadow: var(--raise); }
.btn:active { box-shadow: var(--press-sm); transform: translateY(1px); }
.btn-primary { --b-bg: var(--primary); --b-fg: var(--on-primary); border-color: transparent; box-shadow: 6px 6px 16px var(--sh-dark), -6px -6px 14px var(--sh-light), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-primary:hover { --b-bg: var(--primary-hover); }
.btn-ghost { background: transparent; box-shadow: none; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { box-shadow: var(--raise-sm); background: var(--bg); }
.btn-danger { --b-fg: var(--sev-critical); border-color: var(--sev-critical); }
.btn-sm { min-height: 38px; padding: .45rem .85rem; font-size: .88rem; border-radius: 10px; }
.btn-lg { min-height: 56px; padding: .95rem 1.6rem; font-size: 1.05rem; border-radius: var(--r); }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn .spinner { display: none; }
.btn.is-loading .spinner { display: inline-block; }
.spinner { width: 1em; height: 1em; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { width: 44px; height: 44px; padding: 0; border-radius: 14px; }

/* ── Formulare ── */
.field { display: grid; gap: .4rem; margin-bottom: 1.1rem; }
.field label, .label { font-weight: 650; font-size: .95rem; color: var(--text); }
.req { color: var(--sev-critical); margin-left: 2px; }
.hint { font-size: .85rem; color: var(--muted); }
.error { font-size: .88rem; color: var(--sev-critical); font-weight: 600; display: flex; gap: .35rem; align-items: flex-start; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: .75rem 1rem; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg); border: 1.5px solid var(--control-border); border-radius: var(--r-sm); box-shadow: var(--press-sm);
  transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 140px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: .9; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: var(--press-sm), 0 0 0 3px var(--primary-soft); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--sev-critical); }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.4rem; }
.input-group { position: relative; }
.input-group .input { padding-right: 3.2rem; }
.input-group .icon-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); box-shadow: none; border: 0; background: transparent; color: var(--text-2); }
.check { display: flex; gap: .7rem; align-items: flex-start; cursor: pointer; font-size: .95rem; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--primary); flex: none; cursor: pointer; }
fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; min-width: 0; }
legend { font-weight: 700; margin-bottom: .6rem; padding: 0; }
.form-row { display: grid; gap: 0 1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.segmented { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--bg); box-shadow: var(--press-sm); flex-wrap: wrap; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span { display: block; padding: .5rem .9rem; border-radius: 10px; font-weight: 650; font-size: .9rem; color: var(--text-2); cursor: pointer; min-height: 38px; }
.segmented input:checked + span { background: var(--bg); color: var(--primary); box-shadow: var(--raise-sm); }
.segmented input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ── Antet ── */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--hairline); }
.nav { display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; }
.brand:hover { color: var(--text); }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--bg); box-shadow: var(--raise-sm); color: var(--primary); }
.brand-mark svg { width: 22px; height: 22px; }
.brand b { color: var(--primary); }
.nav-links { display: none; gap: .25rem; margin-left: 1.5rem; }
.nav-links a { padding: .55rem .8rem; border-radius: 10px; text-decoration: none; color: var(--text-2); font-weight: 600; font-size: .96rem; }
.nav-links a:hover { color: var(--text); box-shadow: var(--raise-sm); }
.nav-links a[aria-current="page"] { color: var(--primary); box-shadow: var(--press-sm); }
.nav-actions { margin-left: auto; display: flex; gap: .5rem; align-items: center; }
.nav-actions .btn-hide-sm { display: none; }
.menu-btn { display: inline-flex; }
@media (min-width: 1000px) {
  .nav-links { display: flex; }
  .menu-btn { display: none; }
  .nav-actions .btn-hide-sm { display: inline-flex; }
}
.mobile-nav { display: none; padding: .5rem 16px 1.25rem; border-top: 1px solid var(--hairline); }
.mobile-nav.open { display: grid; gap: .35rem; }
.mobile-nav a { padding: .8rem 1rem; border-radius: 12px; text-decoration: none; color: var(--text); font-weight: 650; }
.mobile-nav a:hover { box-shadow: var(--raise-sm); }
@media (min-width: 1000px) { .mobile-nav, .mobile-nav.open { display: none; } }

/* ── Erou ── */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.08fr .92fr; } }
.hero h1 .accent { color: var(--primary); }
.scan-form { display: flex; gap: .6rem; padding: .55rem; border-radius: 20px; background: var(--bg); box-shadow: var(--press); border: 1.5px solid var(--control-border); max-width: 600px; flex-wrap: wrap; }
.scan-form .input { flex: 1 1 220px; border: 0; box-shadow: none; background: transparent; min-height: 52px; font-size: 1.05rem; }
.scan-form .input:focus { box-shadow: none; }
.scan-form:focus-within { border-color: var(--primary); box-shadow: var(--press), 0 0 0 3px var(--primary-soft); }
.scan-form .btn { flex: 1 0 auto; }
@media (min-width: 560px) { .scan-form { flex-wrap: nowrap; } .scan-form .btn { flex: none; } }
.trust { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 1.25rem; padding: 0; list-style: none; color: var(--text-2); font-size: .92rem; font-weight: 600; }
.trust li { display: inline-flex; gap: .45rem; align-items: center; }
.trust .icon { color: var(--ok); }

/* Previzualizare raport în erou */
.preview { padding: 1.6rem; }
.preview-head { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.25rem; }
.preview .bars { display: grid; gap: .65rem; }
.preview .bar-row { display: grid; grid-template-columns: 7.5rem 1fr 2rem; gap: .75rem; align-items: center; font-size: .88rem; font-weight: 600; color: var(--text-2); }
.preview .bar-row b { text-align: right; color: var(--text); }
.float-chip { position: absolute; display: inline-flex; gap: .45rem; align-items: center; padding: .55rem .85rem; border-radius: 14px; background: var(--bg); box-shadow: var(--raise); font-size: .85rem; font-weight: 700; }
.float-chip.c1 { top: -18px; right: 24px; color: var(--ok); }
.float-chip.c2 { bottom: -18px; left: 24px; color: var(--sev-high); }
@media (max-width: 520px) { .float-chip { display: none; } }

/* ── Scor (gauge) ── */
.gauge { --pct: 0; --c: var(--primary); width: 128px; height: 128px; border-radius: 50%; flex: none; position: relative; display: grid; place-items: center; background: var(--bg); box-shadow: var(--raise); }
.gauge::before { content: ''; position: absolute; inset: 10px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--pct) * 1%), var(--bg-2) 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 12px), #000 calc(100% - 11px)); mask: radial-gradient(farthest-side, transparent calc(100% - 12px), #000 calc(100% - 11px)); }
.gauge::after { content: ''; position: absolute; inset: 24px; border-radius: 50%; box-shadow: var(--press-sm); }
.gauge-inner { position: relative; z-index: 1; text-align: center; line-height: 1; }
.gauge-inner strong { display: block; font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.gauge-inner span { font-size: .78rem; color: var(--muted); font-weight: 600; }
.gauge-lg { width: 168px; height: 168px; }
.gauge-lg .gauge-inner strong { font-size: 2.8rem; }
.gauge-sm { width: 76px; height: 76px; }
.gauge-sm::before { inset: 6px; -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px)); mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px)); }
.gauge-sm::after { inset: 15px; }
.gauge-sm .gauge-inner strong { font-size: 1.2rem; }
.grade { display: inline-grid; place-items: center; min-width: 2.6rem; height: 2.6rem; padding: 0 .5rem; border-radius: 12px; font-weight: 800; font-size: 1.2rem; box-shadow: var(--raise-sm); background: var(--bg); }
.grade-A, .grade-Ap { color: var(--ok); } .grade-B { color: var(--sev-low); } .grade-C, .grade-D { color: var(--sev-medium); } .grade-E, .grade-F { color: var(--sev-critical); }

.meter { height: 10px; border-radius: 99px; background: var(--bg); box-shadow: var(--press-sm); overflow: hidden; }
.meter > span { display: block; height: 100%; width: calc(var(--pct, 0) * 1%); border-radius: inherit; background: var(--c, var(--primary)); transition: width .6s var(--ease); }
.progress { height: 14px; }

/* ── Severități și stări ── */
.sev { display: inline-flex; align-items: center; gap: .35rem; padding: .22rem .6rem; border-radius: 99px; font-size: .78rem; font-weight: 750; letter-spacing: .01em; background: var(--bg); box-shadow: var(--press-sm); white-space: nowrap; }
.sev::before { content: ''; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.sev-critical { color: var(--sev-critical); } .sev-high { color: var(--sev-high); } .sev-medium { color: var(--sev-medium); } .sev-low { color: var(--sev-low); } .sev-info { color: var(--sev-info); }
.c-critical { --c: var(--sev-critical); } .c-high { --c: var(--sev-high); } .c-medium { --c: var(--sev-medium); } .c-low { --c: var(--sev-low); } .c-info { --c: var(--sev-info); } .c-ok { --c: var(--ok); }
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .65rem; border-radius: 99px; font-size: .8rem; font-weight: 700; background: var(--bg); box-shadow: var(--raise-sm); color: var(--text-2); white-space: nowrap; }
.badge-ok { color: var(--ok); } .badge-warn { color: var(--sev-medium); } .badge-bad { color: var(--sev-critical); } .badge-primary { color: var(--primary); }
.status-pass { color: var(--ok); } .status-fail { color: var(--sev-critical); } .status-warn { color: var(--sev-medium); } .status-info, .status-error { color: var(--sev-info); }

/* ── Alerte / flash ── */
.alert { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.15rem; border-radius: var(--r); background: var(--bg); box-shadow: var(--press-sm); border-left: 4px solid var(--primary); margin-bottom: 1.25rem; }
.alert .icon { margin-top: .1rem; }
.alert-success { border-left-color: var(--ok); } .alert-success .icon { color: var(--ok); }
.alert-error { border-left-color: var(--sev-critical); } .alert-error .icon { color: var(--sev-critical); }
.alert-warn { border-left-color: var(--sev-medium); } .alert-warn .icon { color: var(--sev-medium); }
.alert-info .icon { color: var(--primary); }
.alert p:last-child { margin-bottom: 0; }
.toast-wrap { position: fixed; z-index: 200; right: 16px; bottom: 16px; left: 16px; display: grid; justify-items: end; pointer-events: none; }
.toast-wrap .alert { pointer-events: auto; max-width: 440px; box-shadow: var(--raise); margin: 0; transition: opacity .3s, transform .3s; }
.toast-wrap .alert.hide { opacity: 0; transform: translateY(8px); }

/* ── Secțiuni pagină principală ── */
.chips { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; list-style: none; padding: 0; margin: 0; }
.chip { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border-radius: 14px; background: var(--bg); box-shadow: var(--raise-sm); font-weight: 650; font-size: .92rem; color: var(--text-2); }
.chip .icon { color: var(--primary); }
.steps { counter-reset: step; }
.step-num { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; color: var(--primary); box-shadow: var(--press-sm); margin-bottom: 1rem; }
.bento { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .bento { grid-template-columns: repeat(6, 1fr); } .bento > :nth-child(1) { grid-column: span 4; } .bento > :nth-child(2) { grid-column: span 2; } .bento > :nth-child(3), .bento > :nth-child(4), .bento > :nth-child(5) { grid-column: span 2; } .bento > :nth-child(6) { grid-column: span 6; } }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.check-list li { display: flex; gap: .6rem; align-items: flex-start; }
.check-list .icon { color: var(--ok); margin-top: .2rem; }
.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.stat { text-align: center; }
.stat strong { display: block; font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; color: var(--primary); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.band { background: var(--bg-2); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }

/* ── Prețuri ── */
.plans { display: grid; gap: 1.5rem; }
@media (min-width: 700px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1150px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { display: flex; flex-direction: column; }
.plan.highlight { outline: 2px solid var(--primary); outline-offset: -2px; }
.plan .ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--primary); color: var(--on-primary); font-size: .78rem; font-weight: 800; padding: .3rem .8rem; border-radius: 99px; white-space: nowrap; }
.price { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.price small { font-size: .95rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan .check-list { margin: 1.25rem 0 1.5rem; font-size: .95rem; }
.plan .btn { margin-top: auto; }

/* ── FAQ ── */
.faq { display: grid; gap: 1rem; max-width: 860px; margin: 0 auto; }
.faq details { background: var(--bg); border-radius: var(--r); box-shadow: var(--raise-sm); }
.faq summary { cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; font-weight: 500; color: var(--primary); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 1.3rem 1.2rem; color: var(--text-2); }

/* ── Subsol ── */
.site-footer { margin-top: 4rem; padding: 3rem 0 2rem; border-top: 1px solid var(--hairline); background: var(--bg-2); font-size: .92rem; color: var(--text-2); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.site-footer h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--primary); text-decoration: underline; }
.footer-legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--hairline); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .84rem; color: var(--muted); }

/* ── Aplicație (panou) ── */
.app-shell { display: grid; gap: 1.5rem; padding-top: 1.5rem; padding-bottom: 3rem; }
@media (min-width: 1000px) { .app-shell { grid-template-columns: 240px 1fr; gap: 2rem; padding-top: 2rem; } }
.side-nav { display: flex; gap: .4rem; overflow-x: auto; padding: .4rem; margin: 0 -16px; padding-left: 16px; scrollbar-width: none; }
.side-nav::-webkit-scrollbar { display: none; }
.side-nav a { display: inline-flex; gap: .6rem; align-items: center; padding: .7rem .95rem; border-radius: 12px; text-decoration: none; color: var(--text-2); font-weight: 650; white-space: nowrap; min-height: 44px; }
.side-nav a:hover { color: var(--text); box-shadow: var(--raise-sm); }
.side-nav a[aria-current="page"] { color: var(--primary); box-shadow: var(--press-sm); }
@media (min-width: 1000px) { .side-nav { flex-direction: column; position: sticky; top: 96px; align-self: start; margin: 0; padding: .6rem; border-radius: var(--r-lg); box-shadow: var(--raise); overflow: visible; } }
.page-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; justify-content: space-between; margin-bottom: 1.75rem; }
.page-head h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0; }
.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: .4rem; }
.breadcrumb a { color: var(--muted); }

.site-list { display: grid; gap: 1rem; }
.site-item { display: grid; gap: 1rem; grid-template-columns: auto 1fr; align-items: center; }
@media (min-width: 760px) { .site-item { grid-template-columns: auto 1fr auto; } }
.site-item .host { font-weight: 750; font-size: 1.08rem; word-break: break-all; }
.site-item .actions { grid-column: 1 / -1; display: flex; gap: .5rem; flex-wrap: wrap; }
@media (min-width: 760px) { .site-item .actions { grid-column: auto; } }
.empty { text-align: center; padding: 2.5rem 1rem; }
.empty .icon-bubble { margin: 0 auto 1rem; }

.table-wrap { overflow-x: auto; border-radius: var(--r); box-shadow: var(--press-sm); }
table.table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 560px; }
.table th, .table td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 750; }
.table tr:last-child td { border-bottom: 0; }
.num { font-variant-numeric: tabular-nums; text-align: right; }

/* Raport */
.report-hero { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 820px) { .report-hero { grid-template-columns: auto 1fr auto; } }
.sev-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; }
.sev-cell { text-align: center; padding: .75rem .4rem; border-radius: 14px; box-shadow: var(--press-sm); }
.sev-cell strong { display: block; font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.sev-cell span { font-size: .74rem; font-weight: 700; color: var(--muted); }
@media (max-width: 480px) { .sev-grid { grid-template-columns: repeat(3, 1fr); } }
.finding { padding: 1.25rem 1.4rem; }
.finding + .finding { margin-top: 1rem; }
.finding-head { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: .6rem; }
.finding h3 { font-size: 1.08rem; margin: 0; flex: 1 1 260px; }
.finding .rec { margin-top: 1rem; padding: 1rem 1.1rem; border-radius: var(--r-sm); box-shadow: var(--press-sm); }
.finding .rec h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ok); margin-bottom: .4rem; }
.finding pre, .evidence { margin: .75rem 0 0; padding: .8rem 1rem; border-radius: var(--r-xs); background: var(--bg-2); font-family: var(--mono); font-size: .84rem; white-space: pre-wrap; word-break: break-word; color: var(--text-2); border: 1px solid var(--hairline); }
.nis2-ref { display: inline-flex; gap: .4rem; align-items: center; font-size: .82rem; color: var(--muted); margin-top: .7rem; font-weight: 600; }
.locked-row { display: flex; gap: .8rem; align-items: center; padding: 1rem 1.2rem; border-radius: var(--r); box-shadow: var(--press-sm); color: var(--muted); }
.locked-row + .locked-row { margin-top: .6rem; }
.locked-row .redacted { flex: 1; height: .8rem; border-radius: 99px; background: repeating-linear-gradient(90deg, var(--hairline) 0 14px, transparent 14px 20px); }
.paywall { text-align: center; padding: 2rem 1.5rem; border: 2px dashed var(--control-border); border-radius: var(--r-lg); margin-top: 1.5rem; }
.cat-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.cat-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem .95rem; border-radius: 12px; box-shadow: var(--press-sm); font-size: .93rem; }
.check-table { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; font-size: .92rem; }
.check-table li { display: flex; gap: .6rem; align-items: flex-start; }
.ai-box { border-left: 4px solid var(--primary); }
.copy { display: flex; gap: .5rem; align-items: stretch; }
.copy code { flex: 1; padding: .75rem .9rem; border-radius: var(--r-xs); background: var(--bg-2); border: 1px solid var(--hairline); word-break: break-all; display: flex; align-items: center; }

.tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tabs button[aria-selected="true"] { color: var(--primary); box-shadow: var(--press-sm); }
[role="tabpanel"][hidden] { display: none; }

.q-row { display: grid; gap: .6rem; padding: 1rem 0; border-bottom: 1px solid var(--hairline); }
.q-row:last-child { border-bottom: 0; }
.q-rec { font-size: .9rem; color: var(--text-2); padding: .7rem .9rem; border-radius: 10px; box-shadow: var(--press-sm); }

.auth-wrap { max-width: 480px; margin: clamp(2rem, 6vw, 4rem) auto; }
.auth-wrap .card { padding: clamp(1.5rem, 4vw, 2.5rem); }
.qr { background: #fff; padding: 10px; border-radius: 14px; width: 220px; }

/* ── Mișcare redusă ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ── Tipărire (raportul PDF) ── */
@media print {
  :root { --bg: #fff; --bg-2: #f4f6fa; --sh-dark: transparent; --sh-light: transparent; }
  body { background: #fff; color: #111; font-size: 11pt; }
  .site-header, .site-footer, .side-nav, .no-print, .toast-wrap { display: none !important; }
  .card, .finding, .well { box-shadow: none !important; border: 1px solid #d5dbe5; break-inside: avoid; }
  .app-shell { display: block; padding: 0; }
  a { color: #111; text-decoration: none; }
  .print-break { break-before: page; }
}

/* ── Utilitare ── */
.mt { margin-top: 1.5rem; }
.mt-sm { margin-top: .6rem; }
.h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
.h3 { font-size: 1.2rem; font-weight: 700; }
.h4 { font-size: 1rem; font-weight: 700; }
.center-block { margin-left: auto; margin-right: auto; }
.center-row { justify-content: center; }
.pre-line { white-space: pre-line; margin: 0; }
.legal h2 { font-size: 1.25rem; margin-top: 2rem; }
.legal ul { padding-left: 1.2rem; }
.legal { max-width: 860px; margin: 0 auto; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.25rem; font-size: .94rem; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; }
.summary-line { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--hairline); font-variant-numeric: tabular-nums; }
.summary-line.total { border-bottom: 0; font-weight: 800; font-size: 1.15rem; }
.plan-pick { display: grid; gap: .8rem; }
.plan-pick label { display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: center; padding: 1rem 1.1rem; border-radius: var(--r); box-shadow: var(--raise-sm); cursor: pointer; border: 1.5px solid transparent; }
.plan-pick input { width: 20px; height: 20px; accent-color: var(--primary); }
.plan-pick label:has(input:checked) { border-color: var(--primary); box-shadow: var(--press-sm); }
.admin-badge { background: var(--sev-critical); color: #fff; border-radius: 99px; padding: 0 .5rem; font-size: .75rem; font-weight: 800; margin-left: .3rem; }
.report-print header.print-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.5rem 0; border-bottom: 2px solid var(--primary); margin-bottom: 1.5rem; }
.input-narrow { flex: 1 1 12rem; max-width: 18rem; }
.empty .row { justify-content: center; }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.rec code, .finding p code { background: var(--bg-2); border: 1px solid var(--hairline); border-radius: 6px; padding: .05rem .35rem; word-break: break-word; }
.app-shell > * { min-width: 0; }
