/* Plasmiam — site styles.
   Direction: docs/sito/design.md ("dark stage, light paper", one accent)
   and the brand kit in media/brand (colours below). KDI colours are reserved
   for data and never used as brand colours. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-var.260c81a4759b.woff2") format("woff2-variations"), url("../fonts/inter-latin-var.260c81a4759b.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-400.caf0dfde4e44.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand */
  --blue: #0B1F3F;          /* Blu Plasmiam */
  --signal: #1E90FF;        /* Segnale (graphics on light) */
  --signal-on-dark: #4DA8FF;
  --night: #0A1020;         /* Notte */
  /* Stage (dark) */
  --stage-bg: var(--night);
  --stage-raised: #121A2E;
  --stage-line: #24304A;
  --stage-ink: #F2F5FA;
  --stage-muted: #A3AEC2;
  /* Paper (light) */
  --paper-bg: #FBFBFC;
  --paper-raised: #FFFFFF;
  --paper-line: #E2E5EB;
  --paper-ink: var(--blue);
  --paper-muted: #545E70;
  --link-on-paper: #0A5FC2;
  /* Data only */
  --kdi-ok: #2E9E5B;
  --kdi-warn: #E8912D;
  --kdi-alarm: #D8433B;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 10px;
  --gutter: 16px;
  --max: 72rem;
  --narrow: 46rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--paper-ink);
  background: var(--paper-bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.6em; font-weight: 650; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.8rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--link-on-paper); text-underline-offset: 0.18em; }
code { font-family: var(--mono); font-size: 0.9em; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 3px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: var(--narrow); }
@media (min-width: 48rem) { :root { --gutter: 32px; } }

.visually-hidden, .hp {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--signal-on-dark); color: var(--night); padding: 0.6rem 1rem; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---- Surfaces ---- */
.stage { background: var(--stage-bg); color: var(--stage-ink); }
.stage a:not(.btn) { color: var(--signal-on-dark); }
.stage .muted, .stage .note, .stage .lead { color: var(--stage-muted); }
.stage .lead { color: #C9D2E3; }
.paper { background: var(--paper-bg); color: var(--paper-ink); }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section.paper + .section.paper { border-top: 1px solid var(--paper-line); }

.eyebrow {
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--paper-muted); margin-bottom: 1rem;
}
.stage .eyebrow { color: var(--signal-on-dark); }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.55; color: var(--paper-muted); max-width: 44rem; }
.muted { color: var(--paper-muted); }
.note { font-size: 0.9rem; color: var(--paper-muted); max-width: 52rem; margin-top: 1.5rem; }
.honesty { margin-top: 2rem; padding-left: 1rem; border-left: 3px solid var(--signal-on-dark); max-width: 48rem; }

/* ---- Header ---- */
.site-header { background: var(--night); color: var(--stage-ink); border-bottom: 1px solid var(--stage-line); position: sticky; top: 0; z-index: 50; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.site-header__logo { flex-shrink: 0; }
.site-header__logo img { display: block; width: 148px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 1.1rem; }
.site-nav ul { list-style: none; display: flex; gap: 1.1rem; margin: 0; padding: 0; }
.site-nav a { white-space: nowrap; }
.site-nav a:not(.btn) { color: var(--stage-ink); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--signal-on-dark); }
.nav-toggle { display: none; background: none; border: 0; padding: 0.5rem; cursor: pointer; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
  display: block; width: 22px; height: 2px; background: var(--stage-ink); position: relative; content: "";
}
.nav-toggle__bar::before { position: absolute; top: -7px; }
.nav-toggle__bar::after { position: absolute; top: 7px; }
/* Hamburger up to the width where the seven items, the demo button and the languages fit
   on one line in the longest language (es). */
@media (max-width: 79.99rem) {
  .js .nav-toggle { display: block; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 1rem;
    position: absolute; left: 0; right: 0; top: 68px; padding: 1rem var(--gutter) 1.5rem;
    background: var(--night); border-bottom: 1px solid var(--stage-line);
  }
  .site-nav ul { flex-direction: column; gap: 0.8rem; }
  .site-header__inner { flex-wrap: wrap; }
  html:not(.js) .site-nav { width: 100%; flex-wrap: wrap; padding-bottom: 1rem; }
}
.lang-switch { list-style: none; display: flex; gap: 0.6rem; margin: 0; padding: 0; font-family: var(--mono); font-size: 0.85rem; }
.lang-switch a[aria-current="true"] { text-decoration: underline; }

/* ---- Buttons, chips, links ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.85rem 1.35rem; border-radius: 999px; font: inherit; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn--small { padding: 0.55rem 1rem; font-size: 0.92rem; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: #142f5c; }
.stage .btn--primary, .site-header .btn--primary, .cta .btn--primary { background: var(--signal-on-dark); color: var(--night); }
.stage .btn--primary:hover, .site-header .btn--primary:hover, .cta .btn--primary:hover { background: #7cc0ff; }
.btn--ghost { background: transparent; color: var(--paper-ink); border-color: var(--paper-line); }
.btn--ghost:hover { border-color: var(--paper-ink); }
.stage .btn--ghost, .cta .btn--ghost { color: var(--stage-ink); border-color: var(--stage-line); }
.stage .btn--ghost:hover, .cta .btn--ghost:hover { border-color: var(--stage-ink); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 0; }
.link-arrow { display: inline-block; margin-top: 1rem; font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.chips { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips a {
  display: inline-block; padding: 0.4rem 0.85rem; border: 1px solid var(--stage-line); border-radius: 999px;
  font-size: 0.9rem; text-decoration: none; color: var(--stage-ink) !important;
}
.chips a:hover { border-color: var(--signal-on-dark); }

/* ---- Badges (status and connector levels) ---- */
.badge {
  display: inline-block; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.02em;
  padding: 0.18rem 0.55rem; border-radius: 4px; border: 1px solid currentColor; white-space: nowrap; vertical-align: 0.1em;
}
.badge--native, .badge--available, .badge--case { color: #0B5E9E; background: #E7F2FD; border-color: #B7D8F7; }
.badge--1day, .badge--pilot { color: #314260; background: #EEF1F6; border-color: #CBD3E1; }
.badge--project { color: #5A4A1E; background: #F7F2E4; border-color: #E2D6B0; }
.badge--roadmap, .badge--prep { color: #555D6B; background: transparent; border-style: dashed; }
.stage .badge--native, .stage .badge--available, .stage .badge--case { color: #9CCBFF; background: rgba(77,168,255,.12); border-color: rgba(77,168,255,.45); }
.stage .badge--1day, .stage .badge--pilot { color: #C9D2E3; background: rgba(201,210,227,.08); border-color: #3A4766; }
.stage .badge--project { color: #E9D9A8; background: rgba(233,217,168,.08); border-color: #5C5236; }
.stage .badge--roadmap, .stage .badge--prep { color: #A3AEC2; border-color: #4A5674; }
.tag-sim { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.04em; color: var(--stage-muted); }

/* ---- Hero ---- */
.hero { padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem); overflow: hidden; }
.hero__inner { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 60rem) { .hero__inner { grid-template-columns: 1.25fr 1fr; } }
.hero h1 { max-width: 16ch; }
.hero__visual { position: relative; display: grid; gap: 1.5rem; justify-items: center; }
.hero__mark { width: clamp(110px, 18vw, 170px); aspect-ratio: 84 / 100; }
.hero__mark svg { width: 100%; height: 100%; display: block; }

/* KDI chart (simulated data) */
.kdi-chart { margin: 0; width: 100%; max-width: 420px; background: var(--stage-raised); border: 1px solid var(--stage-line); border-radius: var(--radius); padding: 1rem 1rem 0.6rem; }
.kdi-chart svg { display: block; width: 100%; }
.kdi-chart__grid line { stroke: var(--stage-line); stroke-width: 1; }
.kdi-chart__band { fill: rgba(77,168,255,.12); }
.kdi-chart__pred { fill: none; stroke: var(--stage-muted); stroke-width: 1.5; stroke-dasharray: 4 4; }
.kdi-chart__actual { fill: none; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.kdi-chart__actual--ok { stroke: var(--kdi-ok); }
.kdi-chart__actual--warn { stroke: var(--kdi-warn); }
.kdi-chart__marker { fill: var(--night); stroke: var(--kdi-warn); stroke-width: 2.5; }
.kdi-chart text { fill: var(--stage-muted); font-family: var(--mono); font-size: 11px; }
.kdi-chart__label { fill: var(--stage-ink) !important; }
.kdi-dot--ok { fill: var(--kdi-ok); }
.kdi-dot--warn { fill: var(--kdi-warn); }
.kdi-chart figcaption { text-align: right; }
@media (prefers-reduced-motion: no-preference) {
  .js .kdi-chart__actual--warn { stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 2.4s 0.8s cubic-bezier(.5,0,.2,1) forwards; }
  .js .kdi-chart__marker, .js .kdi-chart__label { opacity: 0; animation: appear .4s 2.2s forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

/* P-F curve */
.pf-curve { margin: 2rem 0 0; }
.pf-curve svg { width: 100%; max-width: 760px; height: auto; display: block; overflow: visible; }
.pf-curve text { font-family: var(--mono); font-size: 13px; fill: var(--paper-muted); }
.pf-curve .pf-curve__strong { fill: var(--paper-ink); font-weight: 600; }
.pf-curve__axis, .pf-curve__arrow { fill: none; stroke: var(--paper-muted); stroke-width: 1.25; }
.pf-curve .pf-curve__axis-label { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.pf-curve__guide { fill: none; stroke: var(--paper-line); stroke-width: 1.25; stroke-dasharray: 3 4; }
.pf-curve__line { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; }
.pf-curve__i { fill: var(--paper-bg); stroke: var(--paper-muted); stroke-width: 1.5; }
.pf-curve__p { fill: var(--kdi-warn); stroke: var(--paper-bg); stroke-width: 3; }
.pf-curve__s { fill: var(--paper-muted); stroke: var(--paper-bg); stroke-width: 3; }
.pf-curve__f { fill: var(--kdi-alarm); stroke: var(--paper-bg); stroke-width: 3; }
.pf-curve__span { fill: none; stroke: var(--kdi-warn); stroke-width: 2.5; }
.pf-curve__span--late { stroke: var(--paper-muted); stroke-width: 1.5; }
.pf-curve figcaption { font-size: 0.85rem; color: var(--paper-muted); margin-top: 0.75rem; max-width: 46rem; }
@media (max-width: 40rem) { .pf-curve text { font-size: 15px; } .pf-curve .pf-curve__axis-label { font-size: 13px; } }

/* Standards: norm → what it has to do with the product */
.std-heading { margin-top: 2.75rem; font-size: 1.15rem; }
.std-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 0; border-top: 1px solid var(--paper-line); }
.std-list li { display: grid; gap: 0.15rem 1.5rem; padding: 0.8rem 0; border-bottom: 1px solid var(--paper-line); }
@media (min-width: 40rem) { .std-list li { grid-template-columns: 13rem 1fr; } }
.std-list__code { white-space: nowrap; font-family: var(--mono); font-size: 0.85rem; color: var(--paper-ink); font-weight: 600; }
.std-list__what { font-size: 0.95rem; color: var(--paper-muted); }
.std-list__what strong { color: var(--paper-ink); font-weight: 600; }
.std-note { font-size: 0.85rem; color: var(--paper-muted); margin-top: 1rem; }
.table td small { display: block; color: var(--paper-muted); font-size: 0.82rem; margin-top: 0.2rem; }

/* Flow diagram (Teneuro) */
.flow { display: grid; gap: 0.4rem; width: 100%; max-width: 360px; text-align: center; }
.flow__node { padding: 1rem; border: 1px solid var(--stage-line); border-radius: var(--radius); background: var(--stage-raised); font-weight: 600; }
.flow__node small { display: block; font-weight: 400; font-size: 0.82rem; color: var(--stage-muted); margin-top: 0.2rem; }
.flow__node--accent { border-color: var(--signal-on-dark); }
.flow__arrow { font-family: var(--mono); font-size: 0.85rem; color: var(--signal-on-dark); }

/* ---- Grids and cards ---- */
.grid-2, .grid-3 { display: grid; gap: 1.25rem; margin-top: 2rem; }
@media (min-width: 48rem) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--paper-line); background: var(--paper-raised); }
.stage .card { background: var(--stage-raised); border-color: var(--stage-line); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card--plain { background: transparent; }
.card--feature { border-color: var(--blue); }
.card--link { text-decoration: none; color: inherit; display: block; transition: border-color .15s; }
.card--link:hover { border-color: var(--link-on-paper); }
.card--link .link-arrow { color: var(--link-on-paper); }
.example { font-size: 0.95rem; color: var(--stage-muted); border-left: 2px solid var(--stage-line); padding-left: 0.9rem; }
.paper .example { color: var(--paper-muted); border-color: var(--paper-line); }
.two-col { display: grid; gap: 2rem; margin-top: 2rem; }
@media (min-width: 60rem) { .two-col { grid-template-columns: 1.4fr 1fr; align-items: start; } }

/* Steps (how it works) */
.steps { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: 1.25rem; counter-reset: s; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72rem) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding: 1.5rem; border-top: 2px solid var(--blue); background: var(--paper-raised); border-radius: 0 0 var(--radius) var(--radius); }
.step h3 { display: flex; gap: 0.6rem; align-items: baseline; }
.step__n { font-family: var(--mono); font-size: 0.85rem; color: var(--link-on-paper); }
.step__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; font-size: 0.85rem; }

/* Assets */
.asset-grid { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.asset-card { padding: 1.25rem; border: 1px solid var(--stage-line); border-radius: var(--radius); background: var(--stage-raised); display: flex; flex-direction: column; gap: 0.9rem; min-height: 8rem; }
.asset-card h3, .asset-card h4 { font-size: 1.05rem; margin: 0; }
.asset-card h4 a { color: inherit; text-decoration: none; }
.asset-card h4 a:hover { text-decoration: underline; }
.asset-card__more { margin-top: auto; font-size: 0.9rem; }
.sector-panel + .sector-panel { margin-top: 3rem; }
.sector-panel__title { margin: 2.5rem 0 0; font-size: 1.2rem; }
.sector-panel__count { font-family: var(--mono); font-size: 0.75rem; font-weight: 400; color: var(--paper-muted); margin-left: 0.35rem; }
.sector-panel .asset-grid { margin-top: 1.25rem; }
.sector-tabs__list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.sector-tabs__tab { font: inherit; font-size: 0.95rem; font-weight: 600; padding: 0.5rem 1rem; border-radius: 999px; border: 1px solid var(--paper-line); background: var(--paper-raised); color: var(--paper-ink); cursor: pointer; }
.sector-tabs__tab:hover { border-color: var(--paper-ink); }
.sector-tabs__tab[aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.sector-tabs__tab[aria-selected="true"] .sector-panel__count { color: #C9D2E3; }
.sector-tabs__tab:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.js .sector-panel + .sector-panel { margin-top: 0; }
.asset-card__head { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.asset-card__label { margin: 0; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--paper-muted); }
.fm-list { margin: -0.4rem 0 0; padding: 0; list-style: none; font-size: 0.9rem; line-height: 1.4; }
.fm-list li { display: flex; flex-direction: column; gap: 0.3rem; padding: 0.55rem 0; border-top: 1px solid var(--paper-line); }
.impacts { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.impact { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.02em; padding: 0.05rem 0.4rem; border-radius: 3px; border: 1px solid var(--paper-line); color: var(--paper-muted); }
.impact--safety-env { color: var(--paper-ink); border-color: var(--paper-ink); }

/* Levels list */
.levels { margin: 1rem 0 0; }
.levels dt { margin-top: 1.1rem; }
.levels dd { margin: 0.4rem 0 0; color: var(--paper-muted); }

/* Tables */
.table-wrap { overflow-x: auto; margin-top: 2rem; border: 1px solid var(--paper-line); border-radius: var(--radius); background: var(--paper-raised); }
.stage .table-wrap { border-color: var(--stage-line); background: var(--stage-raised); }
.table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 36rem; }
.table th, .table td { text-align: left; vertical-align: top; padding: 0.85rem 1rem; border-bottom: 1px solid var(--paper-line); }
.stage .table th, .stage .table td { border-color: var(--stage-line); }
.table thead th { font-family: var(--mono); font-size: 0.78rem; font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase; color: var(--paper-muted); }
.stage .table thead th { color: var(--stage-muted); }
.table tbody tr:last-child > * { border-bottom: 0; }
.table tbody th { font-weight: 600; width: 22%; }
.table--compare td:last-child { background: rgba(77,168,255,.07); }

/* Lists */
.facts, .ticks, .no-list, .status-list { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 0.6rem; }
.facts li, .ticks li { padding-left: 1.4rem; position: relative; }
.facts li::before, .ticks li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--signal-on-dark); }
.paper .ticks li::before { background: var(--signal); }
.no-list li { padding-left: 1.6rem; position: relative; }
.no-list li::before { content: "–"; position: absolute; left: 0; color: var(--stage-muted); font-family: var(--mono); }
.status-list li { display: flex; gap: 0.6rem; align-items: baseline; font-size: 0.93rem; }
.mini-steps { padding-left: 1.2rem; margin: 1.5rem 0; display: grid; gap: 0.6rem; }

/* FAQ */
.faq { border-bottom: 1px solid var(--stage-line); padding: 1rem 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 0.8rem 0 0; color: var(--stage-muted); }

/* Final CTA */
.cta { background: linear-gradient(180deg, var(--night), #0E1A33); color: var(--stage-ink); text-align: center; padding: clamp(4rem, 9vw, 7rem) 0; }
.cta .lead { margin-left: auto; margin-right: auto; color: #C9D2E3; }
.cta .actions { justify-content: center; }
.cta .note { margin-left: auto; margin-right: auto; color: var(--stage-muted); }

/* ---- Contact ---- */
.contact__layout { display: grid; gap: 2.5rem; margin-top: 2rem; }
@media (min-width: 60rem) { .contact__layout { grid-template-columns: 1.6fr 1fr; } }
.contact__aside { display: grid; gap: 1.25rem; align-content: start; }
.contact__aside h2 { font-size: 1.1rem; }
.contact__aside address { font-style: normal; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 2rem; }
.tabs__tab { display: block; padding: 1rem; border: 1px solid var(--paper-line); border-radius: var(--radius); text-decoration: none; color: var(--paper-ink); background: var(--paper-raised); }
.tabs__tab span { display: block; font-size: 0.88rem; color: var(--paper-muted); margin-top: 0.25rem; }
.tabs__tab[aria-current="page"] { border: 2px solid var(--blue); }
.form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: 0.35rem; margin: 0; border: 0; padding: 0; min-width: 0; }
.field > label, .field legend { font-weight: 600; font-size: 0.95rem; padding: 0; }
.field input[type="text"], .field input[type="email"], .field input[type="password"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--paper-ink); background: #fff;
  border: 1px solid #C3C9D4; border-radius: 8px; padding: 0.7rem 0.8rem;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(30,144,255,.35); border-color: var(--signal); }
.field__help { font-size: 0.85rem; color: var(--paper-muted); margin: 0; }
.field__error { font-size: 0.9rem; color: #B42318; margin: 0; font-weight: 500; }
.field--error input, .field--error select, .field--error textarea { border-color: #B42318; }
.options { display: grid; gap: 0.45rem; margin-top: 0.5rem; }
@media (min-width: 40rem) { .options { grid-template-columns: 1fr 1fr; } }
.option { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.95rem; cursor: pointer; }
.option input { margin-top: 0.3rem; accent-color: var(--blue); }
.field--check { grid-template-columns: auto 1fr; align-items: start; column-gap: 0.6rem; }
.field--check input { margin-top: 0.35rem; accent-color: var(--blue); width: 1.1rem; height: 1.1rem; }
.field--check label { font-weight: 400; }
.field--check .field__error { grid-column: 1 / -1; }
.form__info { font-size: 0.85rem; color: var(--paper-muted); margin: 0; }
.req { color: #B42318; }
.notice { padding: 1rem 1.25rem; border-radius: var(--radius); margin: 0; }
.notice--ok { background: #EAF6EF; border: 1px solid #B5DCC3; margin-top: 2rem; }
.notice--error { background: #FDECEA; border: 1px solid #F3B8B1; color: #7A1E14; }
.form .btn { justify-self: start; }

/* ---- Legal ---- */
.legal h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.legal h3 { margin-top: 1.5rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: 0.35rem; }

/* ---- Footer ---- */
.site-footer { background: var(--night); color: var(--stage-muted); padding: 3.5rem 0 2.5rem; font-size: 0.828rem; border-top: 1px solid var(--stage-line); }
.site-footer a { color: var(--stage-ink); }
.site-footer__cols { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .site-footer__cols { grid-template-columns: 2fr repeat(4, 1fr); } }
.site-footer__brand img { width: 148px; display: block; margin-bottom: 1rem; }
.site-footer h2 { font-family: var(--mono); font-size: 0.702rem; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stage-muted); margin-bottom: 0.8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.site-footer ul a { text-decoration: none; }
.site-footer ul a:hover { text-decoration: underline; }
.site-footer .lang-switch { display: flex; gap: 1rem; margin-top: 1.25rem; }
.site-footer .lang-switch a[aria-current="true"] { text-decoration: underline; }
.site-footer__legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--stage-line); font-size: 0.738rem; }
.site-footer__legal p { margin-bottom: 0.5rem; }

/* ---- Home cinematic (docs/contesto/cinematica-home.md) ----
   Base: six cards with still visuals (no JS, mobile, reduced motion).
   .cine--on (static/js/cinematic.js, desktop): sticky stage + scroll-driven steps. */
.stage .step { background: var(--stage-raised); border-top-color: var(--signal-on-dark); }
.stage .step__n { color: var(--signal-on-dark); }
.step__visual { margin: 1.25rem 0 0; }
.step__visual img { display: block; width: 100%; height: auto; border-radius: 8px; background: #000; }
.step__visual figcaption { margin-top: 0.4rem; text-align: right; }
.cine .steps { grid-template-columns: 1fr; }
@media (min-width: 48rem) { .cine .steps { grid-template-columns: repeat(2, 1fr); } }

/* Instrument panels (steps 3-5): data colours only from the KDI scale + one accent */
.panel { background: linear-gradient(180deg, #0B1324, #070C18); border: 1px solid #1C2740; border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.04); }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.7rem 1rem; border-bottom: 1px solid #1C2740; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--stage-ink); }
.panel__meta { color: var(--stage-muted); text-transform: none; letter-spacing: 0.02em; }
.panel__foot { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; align-items: flex-end; padding: 0.7rem 1rem 0.85rem; border-top: 1px solid #1C2740; }
.readout { display: grid; gap: 0.1rem; }
.readout span { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--stage-muted); }
.readout strong { font-family: var(--mono); font-weight: 400; font-size: 1.05rem; color: var(--stage-ink); font-variant-numeric: tabular-nums; }
.viz { display: block; width: 100%; height: auto; }
.viz text { font-family: var(--mono); font-size: 10.5px; fill: var(--stage-muted); }
.viz__cap { font-size: 9.5px !important; letter-spacing: .08em; fill: #6F7B94 !important; }
.viz__grid line { stroke: #16213A; stroke-width: 1; }
.viz__grid .viz__base { stroke: #2A3756; }
.viz__ticks text { font-size: 9.5px; fill: #6F7B94; }
.viz__wave { fill: none; stroke: url(#g-wave); stroke-width: 1.3; stroke-linejoin: round; }
.viz__spec-area { fill: url(#g-spec); }
.viz__spec-line { fill: none; stroke: #4DA8FF; stroke-width: 1.3; stroke-linejoin: round; }
.viz__subband { fill: rgba(232,145,45,.16); transition: opacity .3s; }
.viz__peak line { stroke: #8D98AE; stroke-width: 1; }
.viz__peak circle { fill: #070C18; stroke: #F2F5FA; stroke-width: 1.6; }
.viz__peak text { fill: var(--stage-ink); }
.viz__peak--sub circle { stroke: var(--kdi-warn); }
.viz__peak--sub text { fill: var(--kdi-warn); }
.viz__chips { list-style: none; padding: 0; margin: 0.85rem 0 0; display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; font-size: 0.82rem; color: var(--stage-muted); }

.graph__edges path { fill: none; stroke: #33507E; stroke-width: 1.6; transition: stroke-dashoffset .5s ease; }
.graph__node { opacity: .18; transition: opacity .5s ease, transform .5s ease; }
.graph__node.is-in { opacity: 1; }
.graph__node rect { fill: #0F1A30; stroke: #2E3D5E; stroke-width: 1.2; }
.graph__kind { font-size: 8.5px !important; letter-spacing: .1em; fill: #6F7B94 !important; }
.graph__name { font-family: var(--font) !important; font-size: 13px !important; font-weight: 600; fill: var(--stage-ink) !important; }
.graph__node--asset rect { stroke: #5D6B88; }
.graph__node--comp rect { stroke: #4DA8FF; }
.graph__node--fm rect { stroke: var(--kdi-warn); fill: #1D1710; }
.graph__node--fm .graph__kind { fill: #C98A45 !important; }
.graph__node--sig rect { stroke: #4DA8FF; stroke-dasharray: 3 3; }
.graph__tag rect { fill: #0B1324; stroke: #2A3756; }
.graph__tag text { font-size: 10.5px; fill: #A3AEC2; }
.graph__tag.is-linked rect { stroke: #4DA8FF; fill: rgba(77,168,255,.12); }
.graph__tag.is-linked text { fill: #CFE5FF; }
.graph__tag--noise { transition: opacity .4s; }

.viz__band { fill: rgba(77,168,255,.16); }
.viz__expected { fill: none; stroke: #6F7B94; stroke-dasharray: 3 4; }
.viz__area--ok { fill: url(#g-ok); }
.viz__area--warn { fill: url(#g-warn); }
.viz__line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.viz__line--ok { stroke: var(--kdi-ok); }
.viz__line--warn { stroke: var(--kdi-warn); }
.viz__notice { opacity: 0; transition: opacity .4s; }
.viz__notice.is-in { opacity: 1; }
.viz__notice-rule { stroke: var(--kdi-warn); stroke-dasharray: 2 4; opacity: .7; }
.viz__notice circle { fill: #070C18; stroke: var(--kdi-warn); stroke-width: 2.5; }
.viz__callout rect { fill: #1D1710; stroke: rgba(232,145,45,.6); }
.viz__callout text { fill: #E9C79C; font-size: 9.5px; }
.viz__callout .viz__callout-t { fill: #FFF3E3; font-family: var(--font); font-size: 12px; font-weight: 600; }
.kdi-pill { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.15rem 0.6rem; border-radius: 999px; border: 1px solid var(--kdi-ok); background: rgba(46,158,91,.14); text-transform: none; letter-spacing: 0.02em; transition: all .3s; }
.kdi-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--kdi-ok); }
.kdi-pill b { font-weight: 400; }
.kdi-pill[data-state="warn"] { border-color: var(--kdi-warn); background: rgba(232,145,45,.16); }
.kdi-pill[data-state="warn"] i { background: var(--kdi-warn); box-shadow: 0 0 0 4px rgba(232,145,45,.18); }
.panel__foot--kdi { align-items: center; }
.pf { margin-left: auto; display: grid; justify-items: end; gap: 0.15rem; }
.pf svg { width: 170px; height: auto; display: block; }
.pf span { font-family: var(--mono); font-size: 0.62rem; letter-spacing: .05em; text-transform: uppercase; color: #6F7B94; }
.pf text { font-family: var(--mono); font-size: 9px; fill: var(--stage-muted); }
.pf__curve { fill: none; stroke: #A3AEC2; stroke-width: 1.4; }
.pf__p { fill: var(--kdi-warn); opacity: .25; transition: opacity .3s; }
.pf.is-noticed .pf__p { opacity: 1; }
.pf__f { fill: var(--kdi-alarm); }

.wo { background: var(--paper-raised); color: var(--paper-ink); border-radius: 10px; padding: 1.1rem 1.25rem; font-size: 0.92rem; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.wo__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.6rem; }
.wo dl { margin: 0; display: grid; gap: 0.45rem; }
.wo__row { display: grid; grid-template-columns: 9.5rem 1fr; gap: 0.75rem; padding-top: 0.45rem; border-top: 1px solid var(--paper-line); }
.wo dt { color: var(--paper-muted); }
.wo dd { margin: 0; }
.wo__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.wo__btn { display: inline-block; padding: 0.4rem 0.95rem; border-radius: 999px; border: 1px solid var(--paper-line); font-weight: 600; transition: background-color .3s, color .3s, box-shadow .3s; }
.wo__btn--primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.wo__who { font-size: 0.82rem; color: var(--paper-muted); }
.wo__foot { margin: 0.8rem 0 0; font-size: 0.82rem; color: var(--paper-muted); }

/* Desktop cinematic */
.cine--on .cine__body { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 3rem; margin-top: 2.5rem; align-items: start; }
.cine--on .cine__stage {
  position: sticky; top: 92px; height: min(calc(100vh - 140px), 560px); border-radius: 12px; overflow: hidden;
  background: #03060D; border: 1px solid var(--stage-line);
}
.cine--on .cine__canvas { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .25s linear; }
.cine--on .cine__layer {
  position: absolute; inset: 0; display: grid; align-content: center; padding: 1.25rem 1.75rem 2.4rem;
  opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .45s ease; pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%, rgba(77,168,255,.10), transparent 60%), #03060D;
}
.cine--on .cine__layer.is-on { opacity: 1; transform: none; }
.cine--on .cine__layer .step__visual { margin: 0; }
.cine--on .cine__layer .step__visual > figcaption { display: none; }
.cine--on .cine__caption { position: absolute; left: 1rem; bottom: 0.75rem; margin: 0; z-index: 2; }
.cine--on .cine__dots { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); display: grid; gap: 0.55rem; z-index: 2; }
.cine--on .cine__dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 1px solid var(--stage-muted); background: transparent; cursor: pointer; }
.cine--on .cine__dots button[aria-current="step"] { background: var(--signal-on-dark); border-color: var(--signal-on-dark); }
.cine--on .cine__steps { display: block; margin: 0; }
.cine--on .cine__steps .step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; background: none; border: 0; padding: 0 0 0 1.25rem; border-left: 2px solid var(--stage-line); opacity: .35; transition: opacity .35s, border-color .35s; }
.cine--on .cine__steps .step:first-child { min-height: 60vh; }
.cine--on .cine__steps .step.is-active { opacity: 1; border-left-color: var(--signal-on-dark); }
.cine--on .cine__steps .step > .step__visual { display: none; }
.cine--on .wo__row { opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; }
.cine--on .wo__row.is-in { opacity: 1; transform: none; }
.cine--on .wo.is-approved .wo__btn--primary { background: var(--kdi-ok); border-color: var(--kdi-ok); box-shadow: 0 0 0 4px rgba(46,158,91,.25); }

/* Surface variants after the home re-alternation */
.paper .asset-card { background: var(--paper-raised); border-color: var(--paper-line); }
.paper .honesty { border-left-color: var(--link-on-paper); }
.stage .levels dd { color: var(--stage-muted); }
.stage .card--feature { border-color: var(--signal-on-dark); }
.stage .card--link:hover { border-color: var(--signal-on-dark); }
.stage .card--link .link-arrow { color: var(--signal-on-dark); }
.paper .facts li::before { background: var(--signal); }
.stage .wo .badge--project { color: #5A4A1E; background: #F7F2E4; border-color: #E2D6B0; }
.stage .wo .badge--roadmap { color: #4A5262; border-color: #8C95A6; }
.cine--on .cine__layer .viz__chips { display: none; }

/* ---- Hero video ---- */
.hero-video { position: relative; min-height: calc(100svh - 68px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; }
.hero-video__media { position: absolute; inset: 0; z-index: -1; background: var(--night); }
.hero-video__media video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; display: block; }
.hero-video__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,16,32,.15) 0%, rgba(10,16,32,0) 35%, rgba(10,16,32,.55) 75%, var(--night) 100%);
}
.hero-video__inner { padding-top: 4rem; padding-bottom: 2rem; }
.hero-video .hero__text { max-width: 40rem; }
.hero-video h1 { max-width: 14ch; text-shadow: 0 2px 30px rgba(0,0,0,.45); }
.hero-video .lead { color: #D3DBEA; }
.hero-video__meta { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1.25rem; }
.hero-video__toggle { font: inherit; font-family: var(--mono); font-size: 0.75rem; color: var(--stage-muted); background: none; border: 1px solid var(--stage-line); border-radius: 999px; padding: 0.3rem 0.8rem; cursor: pointer; }
.hero-video__toggle:hover { color: var(--stage-ink); border-color: var(--stage-muted); }
@media (min-width: 60rem) {
  /* The hero shot frames the engine in the right third: the mask keeps the engine lit, lets the bright
     engine room fall into the page night, and shades the left side for the headline. */
  .hero-video__media::after {
    background:
      radial-gradient(ellipse 48% 70% at 74% 58%, rgba(10,16,32,0) 0%, rgba(10,16,32,.3) 55%, rgba(10,16,32,.88) 100%),
      linear-gradient(90deg, rgba(10,16,32,.95) 0%, rgba(10,16,32,.78) 32%, rgba(10,16,32,0) 62%),
      linear-gradient(180deg, rgba(10,16,32,.65) 0%, rgba(10,16,32,0) 20%, rgba(10,16,32,0) 62%, var(--night) 100%);
  }
  .hero-video { justify-content: center; }
  .hero-video__meta { position: absolute; left: 0; right: 0; bottom: 0; }
}
@media (max-width: 59.99rem) {
  .hero-video__media::after { background: linear-gradient(180deg, rgba(10,16,32,.55) 0%, rgba(10,16,32,.72) 55%, var(--night) 100%); }
}

/* Teneuro: modello 3D girevole (solo quando catalogue/teneuro.yaml ha "model") */
.model-3d { margin: 0 0 2rem; }
.model-3d model-viewer { width: 100%; height: clamp(280px, 50vh, 520px); background: transparent; --poster-color: transparent; }
.model-3d .hotspot { border: 0; border-radius: 999px; padding: .25rem .6rem; font: inherit; font-size: .8rem; background: var(--accent, #1E90FF); color: #fff; cursor: default; }

/* KDI: alarm threshold, projection, simplified view for the maintenance team */
.viz__alarm line { stroke: var(--kdi-alarm); stroke-dasharray: 6 4; opacity: .8; }
.viz__alarm text { fill: #F0A39D !important; font-size: 9.5px; }
.viz__band-label { fill: #7FB4EA !important; font-size: 9px !important; }
.viz__proj { opacity: 0; transition: opacity .5s; }
.viz__proj.is-in { opacity: 1; }
.viz__proj path { fill: none; stroke: var(--kdi-warn); stroke-width: 1.6; stroke-dasharray: 3 4; opacity: .85; }
.viz__proj text { fill: #E9C79C !important; font-size: 9.5px; }
.health { display: grid; gap: 0.3rem; flex: 1 1 15rem; min-width: 0; }
.health__label { font-family: var(--mono); font-size: 0.62rem; letter-spacing: .05em; text-transform: uppercase; color: #6F7B94; }
.health__row { display: flex; gap: 0.7rem; align-items: center; padding: 0.55rem 0.7rem; border-radius: 10px; background: rgba(46,158,91,.10); border: 1px solid rgba(46,158,91,.35); transition: background .3s, border-color .3s; }
.health[data-state="warn"] .health__row { background: rgba(232,145,45,.12); border-color: rgba(232,145,45,.45); }
.health__lights { display: grid; gap: 4px; padding: 5px; border-radius: 8px; background: #05080F; }
.health__lights i { width: 10px; height: 10px; border-radius: 50%; opacity: .18; }
.health__lights .ok { background: var(--kdi-ok); }
.health__lights .warn { background: var(--kdi-warn); }
.health__lights .alarm { background: var(--kdi-alarm); }
.health[data-state="ok"] .health__lights .ok, .health[data-state="warn"] .health__lights .warn { opacity: 1; box-shadow: 0 0 8px currentColor; }
.health__row p { margin: 0; display: grid; gap: 0.1rem; font-size: 0.85rem; color: var(--stage-muted); line-height: 1.35; }
.health__row strong { color: var(--stage-ink); font-weight: 600; font-size: 0.9rem; }
.health__row { min-height: 5rem; }

/* ---- Asset sheet (templates/pages/en/asset.html) ---- */
.asset-hero h1 { max-width: 20ch; }
.asset-hero .eyebrow a { color: inherit; text-decoration: none; }
.asset-hero .eyebrow a:hover { text-decoration: underline; }
.fm-sheet { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
.fm-sheet__item { padding: 1.5rem; border: 1px solid var(--paper-line); border-radius: var(--radius); background: var(--paper-raised); }
.fm-sheet__head { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 0.9rem; align-items: baseline; }
.fm-sheet__head .impacts { grid-column: 2; }
.fm-sheet__n { font-family: var(--mono); font-size: 0.85rem; color: var(--paper-muted); }
.fm-sheet__head h3 { margin: 0; font-size: 1.1rem; font-weight: 400; }
.fm-sheet__mech { margin: 0.9rem 0 0; max-width: 52rem; }
.fm-sheet__facts { margin: 1rem 0 0; display: grid; gap: 0.75rem 1.5rem; font-size: 0.93rem; }
.fm-sheet__facts dt { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--paper-muted); }
.fm-sheet__facts dd { margin: 0.15rem 0 0; }
@media (min-width: 52rem) {
  .fm-sheet__mech, .fm-sheet__facts { margin-left: 1.9rem; }
  .fm-sheet__facts { grid-template-columns: 1.3fr 1fr 1fr; }
}
.also { margin-top: 2rem; }
.also h3 { font-size: 1.05rem; margin: 0 0 0.25rem; }
.plain-list { padding-left: 1.1rem; }
.plain-list li + li { margin-top: 0.4rem; }
.standards { margin: 1rem 0 0; }
.standards div + div { margin-top: 0.75rem; }
.standards dt { font-weight: 600; }
.standards dd { margin: 0.1rem 0 0; color: var(--paper-muted); }
.sources { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--stage-line); font-size: 0.9rem; }
.sources ul { padding-left: 1.1rem; }
.sector-tabs { scroll-margin-top: 5rem; }
/* Icons (media/icone → static/img/icons) */
.asset-card__icon { width: 64px; height: 64px; margin-bottom: 0.25rem; }
.sector-icon { width: 28px; height: 28px; vertical-align: -8px; margin-right: 0.5rem; }
.sector-tabs__tab { display: inline-flex; align-items: center; }
.sector-tabs__tab .sector-icon { vertical-align: 0; }
.sector-tabs__tab[aria-selected="true"] { background: #E7F2FD; border-color: var(--blue); color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.sector-tabs__tab[aria-selected="true"] .sector-panel__count { color: var(--paper-muted); }
.asset-hero__icon { width: 72px; height: 72px; display: block; margin: 0.5rem 0 0.75rem; }

/* ---- Inner page hero ---- */
.page-hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.page-hero h1 { max-width: 22ch; font-size: clamp(2rem, 4.4vw, 3.2rem); }

/* ---- Home: compact asset selector ---- */
.asset-rows { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.asset-row__link { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0.9rem; border: 1px solid var(--paper-line); border-radius: var(--radius); background: var(--paper-raised); color: var(--paper-ink); text-decoration: none; min-height: 3.6rem; }
a.asset-row__link:hover { border-color: var(--link-on-paper); }
.asset-row__icon { width: 36px; height: 36px; flex: none; }
.asset-row__name { font-weight: 600; flex: 1; }
.asset-row .badge { font-size: 0.68rem; }
.asset-row__go { color: var(--link-on-paper); font-weight: 600; }

/* ---- Connector finder ---- */
.levels--inline { display: grid; gap: 0.75rem 2rem; margin-top: 1.75rem; }
@media (min-width: 60rem) { .levels--inline { grid-template-columns: repeat(3, 1fr); } }
.levels--inline > div { display: grid; gap: 0.35rem; }
.levels--inline dt { margin: 0; }
.levels--inline dd { margin: 0; font-size: 0.92rem; }
.finder { display: grid; gap: 0.4rem; max-width: 40rem; }
.finder label { font-weight: 600; }
.finder__row { display: flex; gap: 0.6rem; }
.finder__row input { flex: 1; font: inherit; font-size: 1.05rem; padding: 0.75rem 0.9rem; border: 1px solid #C3C9D4; border-radius: 10px; background: #fff; color: var(--paper-ink); min-width: 0; }
.finder__row input:focus { outline: 3px solid rgba(30,144,255,.35); border-color: var(--signal); }
.finder__count { margin: 0; font-size: 0.85rem; color: var(--paper-muted); }
.system-list { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: 0.6rem; }
.system { display: flex; gap: 1.5rem; justify-content: space-between; align-items: flex-start; padding: 1rem 1.15rem; border: 1px solid var(--paper-line); border-radius: var(--radius); background: var(--paper-raised); }
.system[hidden] { display: none; }
.system__name { font-size: 1.05rem; margin: 0 0 0.2rem; }
.system__via { margin: 0; color: var(--paper-muted); font-size: 0.93rem; }
.system__pre, .system__where { margin: 0.45rem 0 0; font-size: 0.88rem; }
.system__pre span, .system__where span { font-family: var(--mono); font-size: 0.7rem; letter-spacing: .05em; text-transform: uppercase; color: var(--paper-muted); margin-right: 0.4rem; }
.system__side { display: grid; justify-items: end; gap: 0.6rem; flex: none; text-align: right; }
.system__side .link-arrow { margin: 0; font-size: 0.9rem; }
@media (max-width: 40rem) { .system { flex-direction: column; } .system__side { justify-items: start; text-align: left; } }
.finder__empty { margin-top: 2rem; padding: 1.5rem; border: 1px dashed #C3C9D4; border-radius: var(--radius); }
.finder__empty[hidden] { display: none; }

/* ---- How we work ---- */
.path { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; counter-reset: p; }
.path__step { position: relative; padding: 1.5rem 1.5rem 1.5rem 4.5rem; border: 1px solid var(--paper-line); border-radius: 12px; background: var(--paper-raised); }
.path__n { position: absolute; left: 1.4rem; top: 1.4rem; margin: 0; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-family: var(--mono); font-size: 0.95rem; }
.path__step h2 { font-size: 1.3rem; margin-bottom: 0.3rem; }
.path__step > p { color: var(--paper-muted); margin-bottom: 0.9rem; }
.path__cols { display: grid; gap: 1rem 2rem; }
@media (min-width: 48rem) { .path__cols { grid-template-columns: 1fr 1fr; } }
.path__cols h3 { font-family: var(--mono); font-size: 0.72rem; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--paper-muted); margin-bottom: 0.4rem; }
.path__cols ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.3rem; font-size: 0.95rem; }
.path + .actions { margin-top: 2rem; }

/* ---- Assessment ---- */
.assess { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 60rem) { .assess { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } .assess__result { position: sticky; top: 92px; } }
.assess__form .options { grid-template-columns: 1fr; }
.assess__result { display: grid; gap: 1rem; }
.assess__result .card h3 { font-size: 1rem; }
.assess__result .card ul { margin: 0; padding-left: 1.1rem; }
.assess__empty { padding: 1.5rem; border: 1px dashed #C3C9D4; border-radius: 12px; }
.assess__empty h2 { font-size: 1.2rem; }
.verdict { padding: 1.4rem 1.5rem; border-radius: 12px; border: 1px solid; }
.verdict h2 { font-size: 1.45rem; margin-bottom: 0.4rem; }
.verdict h3 { font-family: var(--mono); font-size: 0.72rem; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; margin: 1rem 0 0.4rem; color: inherit; opacity: .8; }
.verdict ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.25rem; }
.verdict__label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 0.4rem; }
.verdict--predictive { background: #EAF2FD; border-color: #B7D3F3; }
.verdict--pilot { background: #F3F5F9; border-color: #CBD3E1; }
.verdict--preventive { background: #F7F2E4; border-color: #E2D6B0; }

/* ---- Screenshot placeholders (Sibilla 2.0 demo, to come) ---- */
.shots { display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 48rem) { .shots { grid-template-columns: 1fr 1fr; } }
.shot { margin: 0; }
.shot--wide { margin-top: 2rem; }
.shot__frame { position: relative; display: grid; place-content: center; gap: 0.35rem; text-align: center; aspect-ratio: 16 / 10; border-radius: 10px; background: repeating-linear-gradient(135deg, #D9DDE4 0 14px, #D2D7DF 14px 28px); border: 1px solid #C3C9D4; color: #4A5262; padding: 2.2rem 1rem 1rem; }
.shot--wide .shot__frame { aspect-ratio: 21 / 8; }
.shot__bar { position: absolute; top: 0; left: 0; right: 0; height: 1.6rem; background: #C3C9D4; border-radius: 10px 10px 0 0; display: flex; gap: 6px; align-items: center; padding: 0 0.7rem; }
.shot__bar i { width: 8px; height: 8px; border-radius: 50%; background: #9AA3B2; }
.shot__label { font-weight: 600; font-size: 1rem; }
.shot__note { font-family: var(--mono); font-size: 0.72rem; color: #6B7383; }
.shot figcaption { margin-top: 0.6rem; font-size: 0.92rem; color: var(--paper-muted); }
.stage .shot__frame { background: repeating-linear-gradient(135deg, #1A2238 0 14px, #161E33 14px 28px); border-color: #2A3756; color: #A3AEC2; }
.stage .shot__bar { background: #222C45; }
.asset-row__text { flex: 1; display: grid; gap: 0.3rem; justify-items: start; min-width: 0; }
.asset-row__name { flex: none; line-height: 1.25; }
.path__step > .path__n { color: #fff; margin: 0; }

/* Products and demos hub (pages/en/products.html) and product pages */
.product-lead { padding: clamp(1.5rem, 4vw, 2.5rem); }
.product-lead h2 { margin-top: 0; max-width: 28ch; }
.editions { list-style: none; padding: 0; margin: 0.5rem 0 1.5rem; display: grid; gap: 0.5rem; }
@media (min-width: 48rem) { .editions { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
.editions li { padding: 0.75rem 1rem; border: 1px solid var(--paper-line); border-radius: var(--radius); }
.editions strong { display: block; }
.product-grid__title { margin-top: 3rem; }
.product-grid { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.product-card { display: flex; flex-direction: column; gap: 0.5rem; }
.product-card h3, .product-card p { margin: 0; }
.product-card__tagline { font-weight: 500; }
.product-card__meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.25rem 0; }
.product-card__label { margin: 0.5rem 0 0; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--paper-muted); }
.product-card__links { margin-top: auto !important; padding-top: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: 0.95rem; }
.shot img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--stage-line); }
.shot figcaption { margin-top: 0.5rem; font-size: 0.85rem; color: var(--stage-muted, #A3AEC2); }

/* Demo form: product picker (links, works without JavaScript) */
.product-picker { margin: -0.5rem 0 2rem; }
.product-picker__title { font-weight: 600; font-size: 0.95rem; margin: 0 0 0.5rem; }
.product-picker ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.product-picker a { display: inline-block; padding: 0.45rem 0.9rem; border: 1px solid var(--paper-line); border-radius: 999px; text-decoration: none; color: var(--paper-ink); background: var(--paper-raised); font-size: 0.95rem; }
.product-picker a:hover { border-color: var(--paper-ink); }
.product-picker a[aria-current="true"] { border: 2px solid var(--blue); font-weight: 600; padding: calc(0.45rem - 1px) calc(0.9rem - 1px); }

/* Reserved demo page (/<lang>/demo) */
.demo-login { max-width: 26rem; }
.demo-login .form + .form__info { margin-top: 1.5rem; }
.demo-bar { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.demo-bar form { margin: 0; }
.demo-console { display: grid; gap: 1.5rem; margin-top: 2rem; }
.demo-app__head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: start; justify-content: space-between; }
.demo-app h2 { margin: 0; }
.demo-app__label { font-size: 1rem; margin: 1.5rem 0 0.5rem; }
.demo-guests { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.demo-guests th, .demo-guests td { text-align: left; padding: 0.5rem 0.75rem 0.5rem 0; border-bottom: 1px solid var(--paper-line); vertical-align: middle; }
.demo-guests th { font-weight: 600; font-size: 0.85rem; color: var(--paper-muted); }
.demo-guests code { font-size: 1.05rem; letter-spacing: 0.1em; }
.demo-guests form { margin: 0; text-align: right; }
.demo-add { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: end; margin: 1.25rem 0 0.5rem; }
.demo-add .field { flex: 1 1 18rem; }
.demo-notice { margin-top: 0; }
.demo-code { letter-spacing: 0.3em; font-size: 1.2rem !important; max-width: 10rem; }
@media (max-width: 40rem) { .demo-guests th:nth-child(4), .demo-guests td:nth-child(4) { display: none; } }

/* Sibilla add-on modules (partials/module.html) */
.badge--activatable { color: #0B5E9E; background: transparent; border-color: #7DB8EE; }
.stage .badge--activatable { color: #9CCBFF; background: transparent; border-color: rgba(77,168,255,.6); }
.modules { display: grid; gap: 1.25rem; margin-top: 2rem; }
.capabilities { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 40rem) { .capabilities { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .capabilities { grid-template-columns: repeat(3, 1fr); } }
.capability h3 { margin-bottom: 0.25rem; font-size: 1.1rem; }
.capability p { font-size: 0.95rem; }
.capability p:last-child { margin-bottom: 0; }
@media (min-width: 48rem) { .modules { grid-template-columns: repeat(2, 1fr); } .module--wide { grid-column: 1 / -1; } }
.module h3 { margin-bottom: 0.25rem; }
.module__tagline { font-weight: 600; margin-top: 0; }
.module__details { display: grid; gap: 1rem 1.5rem; margin: 1.25rem 0; }
@media (min-width: 48rem) { .module__details { grid-template-columns: repeat(2, 1fr); } }
.module__details h4 { margin: 0 0 0.3rem; font-size: 1rem; }
.module__details p { margin: 0; font-size: 0.95rem; }
.module__io { display: grid; gap: 0.5rem 1.5rem; margin-top: 1rem; }
@media (min-width: 40rem) { .module__io { grid-template-columns: repeat(2, 1fr); } }
.module__io ul { margin: 0.4rem 0 0; padding-left: 1.1rem; font-size: 0.93rem; }
.module__io li + li { margin-top: 0.2rem; }
