/* MIRA Bioremediome — design system "clinico/scientifico premium".
   Nessuna dipendenza esterna. Chiaro/scuro via prefers-color-scheme. */

:root {
  --bg: #f4f7f8;
  --surface: #ffffff;
  --surface-2: #fbfcfd;
  --ink: #10242b;
  --muted: #5b6f77;
  --faint: #8698a0;
  --border: #e2e9ec;
  --border-strong: #cdd8dc;
  --accent: #0e7c7b;         /* teal petrolio */
  --accent-deep: #0a5a5a;
  --accent-soft: #e3f2f0;
  --blue: #12557f;
  --blue-soft: #e6eff5;
  --good: #158a6f;
  --good-soft: #e0f1ea;
  --warn: #b9791f;
  --warn-soft: #fbeed6;
  --bad: #b23a48;
  --bad-soft: #f7e3e5;
  --shadow: 0 1px 2px rgba(16,36,43,.04), 0 4px 16px rgba(16,36,43,.05);
  --shadow-lg: 0 8px 30px rgba(16,36,43,.10);
  --radius: 14px;
  --radius-sm: 9px;
  --sans: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", "Menlo", monospace;
  --sidebar-w: 244px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1416; --surface: #0f1c20; --surface-2: #12232700; --ink: #e8f0f1;
    --muted: #9db1b8; --faint: #6f8489; --border: #1e3237; --border-strong: #2a4046;
    --accent: #2bb3ac; --accent-deep: #7fd6cf; --accent-soft: #10312f;
    --blue: #6fb0dd; --blue-soft: #10293a; --good: #3cbf9a; --good-soft: #10312a;
    --warn: #d69a45; --warn-soft: #33260f; --bad: #e06b78; --bad-soft: #331a1e;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 18px rgba(0,0,0,.35);
    --shadow-lg: 0 10px 34px rgba(0,0,0,.5);
    --surface-2: #12232a;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-size: 14.5px;
  line-height: 1.5;
  letter-spacing: -0.006em;
}
a { color: inherit; text-decoration: none; }

/* ---------- Layout ---------- */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); flex: 0 0 var(--sidebar-w);
  background: linear-gradient(180deg, var(--accent-deep), #073f42 60%, #052e33);
  color: #dbeeec; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; padding: 22px 16px; gap: 6px;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 6px 8px 18px; }
.brand .mark { width: 38px; height: 38px; flex: 0 0 38px; }
.brand h1 { font-size: 15px; margin: 0; font-weight: 650; letter-spacing: .01em; color: #fff; }
.brand small { display: block; font-size: 11px; color: #8fc7c3; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.nav { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px;
  color: #bfe0dc; font-weight: 500; font-size: 13.5px; transition: background .15s, color .15s;
}
.nav a svg { width: 17px; height: 17px; opacity: .85; }
.nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav a.on { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.nav a.on svg { opacity: 1; }
.sidebar .foot { margin-top: auto; font-size: 11px; color: #7bb3af; padding: 12px 10px 0; border-top: 1px solid rgba(255,255,255,.08); }

.main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 16px; padding: 16px 30px;
  border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(6px); position: sticky; top: 0; z-index: 20;
}
.topbar .crumb { font-size: 12.5px; color: var(--muted); }
.topbar .crumb b { color: var(--ink); font-weight: 620; }
.topbar .spacer { flex: 1; }
.content { padding: 30px; max-width: 1240px; width: 100%; }
.page-title { font-size: 23px; font-weight: 680; margin: 0 0 4px; letter-spacing: -0.02em; }
.page-sub { color: var(--muted); margin: 0 0 24px; font-size: 14px; }

/* ---------- Chips & badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; background: var(--accent-soft); color: var(--accent-deep);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}
.badge.blue { background: var(--blue-soft); color: var(--blue); border-color: color-mix(in srgb, var(--blue) 22%, transparent); }
.badge.plain { background: var(--surface-2); color: var(--muted); border-color: var(--border); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card .card-h { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.card .card-h h3 { margin: 0; font-size: 14.5px; font-weight: 640; letter-spacing: -0.01em; }
.card .card-h svg { width: 18px; height: 18px; flex: 0 0 18px; color: var(--accent); }
.card .card-h .hint { color: var(--faint); font-size: 12px; margin-left: auto; }
.card .card-b { padding: 20px; }
.grid { display: grid; gap: 18px; }

/* ---------- Stat tiles ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 15px 17px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); opacity: .85; }
.stat .k { font-size: 26px; font-weight: 700; font-family: var(--mono); letter-spacing: -0.03em; }
.stat .l { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; margin-top: 2px; }
.stat.blue::before { background: var(--blue); }
.stat.mut::before { background: var(--border-strong); }

/* ---------- Tables ---------- */
.tbl-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th, table.data td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.data thead th { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 640; background: var(--surface-2); position: sticky; top: 0; }
table.data tbody tr:hover { background: color-mix(in srgb, var(--accent-soft) 40%, transparent); }
table.data td.num { font-family: var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.val-cens { color: var(--warn); font-style: italic; }
.val-na { color: var(--faint); font-weight: 600; }
.val-nd { color: var(--muted); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.mono { font-family: var(--mono); }

/* ---------- Availability matrix ---------- */
.matrix { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; }
.matrix th, .matrix td { padding: 0; }
.matrix thead th { padding: 10px 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 640; border-bottom: 1px solid var(--border); }
.matrix .pt { text-align: left; padding: 12px 14px; font-weight: 600; border-bottom: 1px solid var(--border); position: sticky; left: 0; background: var(--surface); }
.matrix .pt a { display: flex; flex-direction: column; }
.matrix .pt .orig { font-size: 11px; color: var(--faint); font-weight: 500; }
.mcell { border-bottom: 1px solid var(--border); border-left: 1px solid var(--border); padding: 10px 8px !important; vertical-align: middle; }
.evi { display: flex; gap: 5px; justify-content: center; }
.evi .pill {
  width: 34px; height: 22px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; letter-spacing: .02em; border: 1px solid transparent; cursor: default;
}
.pill.presente { background: var(--good-soft); color: var(--good); border-color: color-mix(in srgb, var(--good) 30%, transparent); }
.pill.NA { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 28%, transparent); }
.pill.assente { background: var(--surface-2); color: var(--faint); border-color: var(--border); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend .pill { width: 30px; height: 18px; }

/* ---------- Point sheet ---------- */
.section-h { display: flex; align-items: center; gap: 10px; margin: 26px 0 12px; }
.section-h h2 { font-size: 16px; margin: 0; font-weight: 660; }
.section-h .rule { flex: 1; height: 1px; background: var(--border); }
.chart-card { padding: 18px 20px 8px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 4px 2px 14px; font-size: 12px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); }
.chart-legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.log-note { font-size: 11px; color: var(--faint); margin-left: auto; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 640; }
.field select {
  appearance: none; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 9px;
  padding: 8px 30px 8px 11px; font-size: 13px; color: var(--ink); font-family: var(--sans); min-width: 150px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235b6f77' stroke-width='2.4'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 10px center;
}
.field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.btn { padding: 8px 14px; border-radius: 9px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 13px; cursor: pointer; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--accent); }
.count-tag { font-size: 12.5px; color: var(--muted); margin-left: auto; }

/* ---------- Import status ---------- */
.status-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 7px; }
.status-tag.ok { background: var(--good-soft); color: var(--good); }
.status-tag.part { background: var(--warn-soft); color: var(--warn); }
.status-tag.err { background: var(--bad-soft); color: var(--bad); }
.status-tag.old { background: var(--surface-2); color: var(--faint); }
.bar { height: 6px; border-radius: 4px; background: var(--border); overflow: hidden; width: 120px; }
.bar > i { display: block; height: 100%; background: var(--good); }

.empty { text-align: center; padding: 80px 20px; color: var(--muted); }

/* ---------- Nav sections ---------- */
.nav-sec { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: #6fa9a4; font-weight: 700; margin: 14px 12px 4px; opacity: .8; }
.nav-sec:first-child { margin-top: 2px; }

/* ---------- Tone system (stato attenzione) ---------- */
.tone { --t: var(--border-strong); --tb: var(--surface-2); }
.tone.good { --t: var(--good); --tb: var(--good-soft); }
.tone.warn { --t: var(--warn); --tb: var(--warn-soft); }
.tone.bad  { --t: var(--bad);  --tb: var(--bad-soft); }
.tone.neutral { --t: var(--faint); --tb: var(--surface-2); }
.chip-tone {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 650; background: var(--tb); color: var(--t);
  border: 1px solid color-mix(in srgb, var(--t) 30%, transparent);
}
.chip-tone .dot { width: 7px; height: 7px; }

/* hero stato complessivo */
.overall-hero {
  display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: var(--radius);
  background: var(--tb); border: 1px solid color-mix(in srgb, var(--t) 30%, transparent); box-shadow: var(--shadow);
}
.overall-hero .ring { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--t); display: grid; place-items: center; flex: 0 0 44px; }
.overall-hero .ring::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--t); }
.overall-hero h2 { margin: 0; font-size: 17px; }
.overall-hero p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

/* linee di evidenza (griglia stato) */
.evidence-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 10px; margin: 18px 0; }
.ev-tile { padding: 13px 15px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); border-left: 3px solid var(--t); }
.ev-tile .l { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 640; }
.ev-tile .v { font-weight: 640; font-size: 13.5px; margin-top: 3px; color: var(--t); }
.ev-tile.off { border-left-color: var(--border); }
.ev-tile.off .v { color: var(--faint); font-weight: 500; }

/* blocchi evidenza / regole */
.rule-block { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; overflow: hidden; background: var(--surface); }
.rule-head { display: flex; align-items: center; gap: 10px; padding: 11px 14px; cursor: pointer; border-left: 3px solid var(--t); }
.rule-head:hover { background: var(--surface-2); }
.rule-head .name { font-weight: 620; font-size: 13.5px; }
.rule-head .code { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.rule-head .caret { margin-left: auto; color: var(--faint); transition: transform .15s; }
.rule-block[open] .caret { transform: rotate(90deg); }
.rule-body { padding: 12px 16px 14px; border-top: 1px solid var(--border); font-size: 13px; }
.rule-body .msg { color: var(--ink); margin-bottom: 10px; line-height: 1.55; }
.why-title { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; margin: 6px 0 6px; }
.cond { display: flex; align-items: center; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--border); font-size: 12.5px; }
.cond:last-child { border-bottom: none; }
.cond .res { width: 16px; height: 16px; border-radius: 5px; flex: 0 0 16px; display: grid; place-items: center; font-size: 11px; color: #fff; font-weight: 700; }
.cond .res.t { background: var(--good); } .cond .res.f { background: var(--bad); } .cond .res.n { background: var(--faint); }
.cond .obs { margin-left: auto; font-family: var(--mono); color: var(--muted); }
.miss { font-size: 12px; color: var(--warn); margin-top: 8px; }

/* sintesi automatica */
.synth { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); border-radius: var(--radius-sm); padding: 15px 18px; font-size: 14px; line-height: 1.6; }
.synth .lab { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-deep); font-weight: 700; margin-bottom: 6px; }

/* form esperto */
.expert-form { display: flex; flex-direction: column; gap: 14px; }
.expert-form label { font-size: 12px; font-weight: 640; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.expert-form textarea, .expert-form select, .expert-form input {
  width: 100%; font-family: var(--sans); font-size: 13.5px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 9px; padding: 10px 12px; resize: vertical;
}
.expert-form textarea:focus, .expert-form select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.primary:hover { background: var(--accent-deep); }
.status-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.two-col { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

/* catalog */
.cat-tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.cat-tabs a { padding: 8px 14px; border-radius: 9px; font-weight: 600; font-size: 13px; color: var(--muted); border: 1px solid var(--border); }
.cat-tabs a.on { background: var(--accent-soft); color: var(--accent-deep); border-color: color-mix(in srgb, var(--accent) 25%, transparent); }
.pill-role { font-size: 11px; font-weight: 650; padding: 2px 8px; border-radius: 6px; }
.role-favorevole, .role-di\ supporto { background: var(--good-soft); color: var(--good); }
.role-competitore { background: var(--bad-soft); color: var(--bad); }
.role-indicatore { background: var(--blue-soft); color: var(--blue); }

/* ---------- Data-viz page ---------- */
.viz-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.viz-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px 14px; position: relative; overflow: hidden; }
.viz-card h3 { margin: 0 0 2px; font-size: 14.5px; font-weight: 660; letter-spacing: -0.01em; }
.viz-card .sub { color: var(--faint); font-size: 12px; margin: 0 0 12px; }
.viz-card.col-12 { grid-column: span 12; } .viz-card.col-8 { grid-column: span 8; }
.viz-card.col-7 { grid-column: span 7; } .viz-card.col-6 { grid-column: span 6; }
.viz-card.col-5 { grid-column: span 5; } .viz-card.col-4 { grid-column: span 4; }
@media (max-width: 980px) { .viz-card { grid-column: span 12 !important; } }
.viz { position: relative; }
.viz-svg { width: 100%; }
.viz-tip { position: absolute; opacity: 0; pointer-events: none; background: var(--ink); color: var(--surface); padding: 6px 9px; border-radius: 7px; font-size: 11.5px; line-height: 1.4; box-shadow: var(--shadow-lg); transition: opacity .12s; white-space: nowrap; z-index: 8; }
.viz-legend { display: flex; flex-wrap: wrap; gap: 13px; margin: 2px 0 12px; font-size: 12px; }
.viz-legend span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.viz-legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }

/* KPI hero row */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi { background: linear-gradient(150deg, var(--surface), var(--surface-2)); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.kpi::after { content: ""; position: absolute; right: -20px; top: -20px; width: 74px; height: 74px; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 70%); }
.kpi .k { font-size: 28px; font-weight: 750; letter-spacing: -0.03em; font-family: var(--mono); }
.kpi .l { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; margin-top: 2px; }
.kpi .s { font-size: 11.5px; color: var(--accent-deep); margin-top: 6px; font-weight: 600; }

/* small multiples */
.sm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(148px, 100%), 1fr)); gap: 10px; }
.sm-tile { border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px 4px; background: var(--surface-2); }
.sm-tile .h { display: flex; align-items: baseline; justify-content: space-between; }
.sm-tile .h b { font-size: 12.5px; } .sm-tile .h .v { font-size: 10.5px; color: var(--faint); font-family: var(--mono); }
.sm-tile .trend-up { color: var(--good); } .sm-tile .trend-down { color: var(--bad); }

/* ---------- Footer ---------- */
.app-footer { margin-top: auto; display: flex; align-items: center; gap: 24px; padding: 18px 30px; border-top: 1px solid var(--border); background: var(--surface); flex-wrap: wrap; }
.app-footer .ft-brand { display: flex; flex-direction: column; }
.app-footer .ft-brand b { font-size: 13px; } .app-footer .ft-brand span { font-size: 11.5px; color: var(--faint); }
.app-footer .ft-links { display: flex; gap: 6px; margin-left: auto; }
.app-footer .ft-links a { padding: 7px 13px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); border: 1px solid var(--border); }
.app-footer .ft-links a:hover { color: var(--accent-deep); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.app-footer .ft-links a.on { background: var(--accent-soft); color: var(--accent-deep); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.app-footer .ft-note { font-size: 11px; color: var(--faint); width: 100%; text-align: right; }
.main { min-height: 100vh; }

/* ---------- Changelog ---------- */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl-item { position: relative; margin-bottom: 26px; }
.tl-item::before { content: ""; position: absolute; left: -25px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); }
.tl-item.old::before { border-color: var(--border-strong); }
.tl-ver { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.tl-ver .v { font-family: var(--mono); font-weight: 700; font-size: 15px; color: var(--accent-deep); }
.tl-ver .t { font-weight: 640; } .tl-ver .d { margin-left: auto; font-size: 12px; color: var(--faint); }
.tl-item ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; line-height: 1.7; }

/* ---------- Valore / pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.pillar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); border-top: 3px solid var(--accent); }
.pillar h4 { margin: 0 0 6px; font-size: 15px; }
.pillar p { margin: 0 0 12px; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.pillar .metric { font-size: 12px; font-weight: 640; color: var(--accent-deep); background: var(--accent-soft); padding: 5px 10px; border-radius: 7px; display: inline-block; }
.levels { display: flex; flex-direction: column; gap: 0; }
.level-row { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.level-row:last-child { border-bottom: none; }
.level-row .num { flex: 0 0 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-deep); display: grid; place-items: center; font-weight: 750; font-size: 15px; }
.level-row h4 { margin: 0 0 3px; font-size: 14.5px; } .level-row p { margin: 0; color: var(--muted); font-size: 13.5px; }

/* progress bar */
.progress-wrap { display: flex; align-items: center; gap: 14px; }
.progress-track { flex: 1; height: 10px; border-radius: 6px; background: var(--border); overflow: hidden; }
.progress-track > i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-deep)); }

/* ---------- Investitori / valuation ---------- */
.val-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; align-items: stretch; margin-bottom: 22px; }
@media (max-width: 900px) { .val-hero { grid-template-columns: 1fr; } }
.val-figure { background: linear-gradient(150deg, var(--accent-deep), #07393c); color: #eafffb; border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.val-figure::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(127,214,207,.25), transparent 70%); }
.val-figure .lab { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #8fd8d1; font-weight: 700; }
.val-figure .big { font-size: 42px; font-weight: 800; letter-spacing: -0.03em; margin: 6px 0 2px; font-family: var(--mono); }
.val-figure .rng { font-size: 14px; color: #b9e8e3; }
.val-figure .disc { font-size: 11px; color: #7bb3af; margin-top: 16px; line-height: 1.5; max-width: 90%; }
.method { margin-bottom: 14px; }
.method .mh { display: flex; align-items: baseline; gap: 10px; margin-bottom: 5px; }
.method .mh .n { font-weight: 640; font-size: 13.5px; } .method .mh .w { font-size: 11px; color: var(--faint); }
.method .mh .val { margin-left: auto; font-family: var(--mono); font-weight: 700; }
.method .track { height: 8px; border-radius: 5px; background: var(--border); overflow: hidden; }
.method .track > i { display: block; height: 100%; background: var(--accent); }
.method .det { font-size: 11.5px; color: var(--faint); margin-top: 5px; }
.adv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 14px; }
.adv { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; box-shadow: var(--shadow); }
.adv .ic { font-size: 20px; } .adv h4 { margin: 8px 0 5px; font-size: 14px; } .adv p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.assump-table td { padding: 7px 10px; }


