

:root {
  
  --ink-900: #07101c;
  --ink-800: #0b1830;
  --ink-700: #112442;
  --ink-600: #193459;
  --ink-line: rgba(141, 178, 220, .16);
  --ice: #eaf2fb;
  --ice-2: #b7c9dc;
  --ice-3: #7f98b3;
  
  --paper: #f3f6fa;
  --paper-2: #ffffff;
  --paper-3: #e7edf5;
  --text: #0b1a2c;
  --text-2: #4a5d73;
  --line: #d5dfea;
  
  --accent: #2eb6f0;
  --accent-strong: #0a98d4;
  --accent-deep: #076a98;
  --accent-ink: #06192b;
  --accent-soft: rgba(46, 182, 240, .14);
  
  --ok: #22c55e;
  --ok-soft: rgba(34, 197, 94, .16);
  --warn: #f5a524;
  --warn-soft: rgba(245, 165, 36, .18);
  --alert: #ef4444;
  --alert-soft: rgba(239, 68, 68, .16);
  
  --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  
  --max: 1120px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --radius: 16px;
  --radius-sm: 10px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink-800);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.band { padding-block: clamp(56px, 8vw, 104px); }
.band > .wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.band--ink { background: var(--ink-800); color: var(--ice); color-scheme: dark; }
.band--ink-deep { background: var(--ink-900); color: var(--ice); color-scheme: dark; }
.band--paper { background: var(--paper); color: var(--text); }
.band--paper-2 { background: var(--paper-2); color: var(--text); }
.band--tight { padding-block: clamp(36px, 5vw, 64px); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
.band--paper .eyebrow, .band--paper-2 .eyebrow { color: var(--accent-deep); }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.125rem, 5.4vw, 3.875rem); font-weight: 800; }
h2 { font-size: clamp(1.6875rem, 3.6vw, 2.625rem); font-weight: 800; }
h3 { font-size: clamp(1.125rem, 2vw, 1.3125rem); font-weight: 700; letter-spacing: -.01em; }
.sub { font-size: clamp(1.125rem, 2.1vw, 1.375rem); font-weight: 600; margin: 12px 0 0; letter-spacing: -.01em; }
.band--ink .sub, .band--ink-deep .sub { color: var(--accent); }
.band--paper .sub, .band--paper-2 .sub { color: var(--accent-deep); }
.lead { font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); color: var(--text-2); max-width: 62ch; margin: 16px 0 0; }
.band--ink .lead, .band--ink-deep .lead { color: var(--ice-2); }
p { margin: 0; }
.muted { color: var(--text-2); }
.band--ink .muted, .band--ink-deep .muted { color: var(--ice-3); }
.accent { color: var(--accent); }
.band--paper .accent, .band--paper-2 .accent { color: var(--accent-deep); }
.num { font-variant-numeric: tabular-nums; }
.section-head { max-width: 760px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }

.topbar {
  background: var(--ink-900);
  color: var(--ice-3);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-align: center;
  padding: 8px var(--gutter-r) 8px var(--gutter-l);
  border-bottom: 1px solid var(--ink-line);
}
.topbar b { color: var(--accent); font-weight: 500; }
.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  padding: 10px var(--gutter-r) 0 var(--gutter-l);
  background: linear-gradient(var(--ink-800), rgba(11, 24, 48, 0));
  pointer-events: none;
}
.nav__pill {
  pointer-events: auto;
  max-width: var(--max);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 8px 10px 8px 16px;
  border-radius: 999px;
  background: rgba(11, 24, 48, .78);
  border: 1px solid var(--ink-line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ice);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: .14em; font-size: 1.0625rem; }
.logo svg { width: 26px; height: 26px; }
.nav__links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav__links a {
  text-decoration: none;
  font-size: 0.8438rem;
  font-weight: 600;
  color: var(--ice-2);
  padding: 8px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.nav__links a:hover { color: var(--ice); background: rgba(255, 255, 255, .06); }
.nav__toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--ink-line);
  color: var(--ice);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__pill.open { border-radius: 24px; flex-wrap: wrap; }
  .nav__pill.open .nav__links { display: flex; flex-direction: column; align-items: stretch; width: 100%; padding: 8px 0 4px; margin-left: 0; }
  .nav__pill.open .nav__links a { padding: 10px 12px; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #4cc3f5; }
.band--paper .btn--primary, .band--paper-2 .btn--primary { background: var(--accent-strong); color: #fff; }
.band--paper .btn--primary:hover, .band--paper-2 .btn--primary:hover { background: var(--accent-deep); }
.btn--ghost { background: transparent; color: var(--ice); border-color: rgba(255, 255, 255, .22); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.band--paper .btn--ghost, .band--paper-2 .btn--ghost { color: var(--text); border-color: var(--line); }
.band--paper .btn--ghost:hover, .band--paper-2 .btn--ghost:hover { border-color: var(--accent-deep); color: var(--accent-deep); }
.btn--small { padding: 9px 14px; font-size: 0.875rem; }
.btn--nav { padding: 9px 16px; font-size: 0.875rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; align-items: center; }
.cta-note { font-size: 0.875rem; color: var(--ice-3); margin-top: 10px; }
.band--paper .cta-note, .band--paper-2 .cta-note { color: var(--text-2); }
.link { color: var(--accent); font-weight: 700; text-decoration: none; }
.band--paper .link, .band--paper-2 .link { color: var(--accent-deep); }
.link:hover { text-decoration: underline; }

.hero { padding-block: clamp(40px, 6vw, 72px) clamp(48px, 6vw, 80px); position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(46, 182, 240, .18), transparent 60%),
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
  pointer-events: none;
}
.hero > .wrap { position: relative; }
.hero__head { max-width: 820px; margin-inline: auto; text-align: center; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--ink-line);
  background: rgba(255, 255, 255, .04);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ice-2);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); } 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.hero h1 { margin-top: 22px; }
.hero .claim { margin-top: 14px; font-size: clamp(1.1875rem, 2.4vw, 1.625rem); font-weight: 700; color: var(--accent); letter-spacing: -.01em; }
.hero .lead { margin-inline: auto; text-align: center; }
.hero .cta-row { justify-content: center; }

.win {
  background: var(--ink-900);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .04);
  overflow: hidden;
  color: var(--ice);
  color-scheme: dark;
}
.win__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--ink-line);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ice-3);
  background: rgba(255, 255, 255, .02);
}
.win__dots { display: inline-flex; gap: 6px; }
.win__dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.win__dots i:nth-child(1) { background: var(--alert); }
.win__dots i:nth-child(2) { background: var(--warn); }
.win__dots i:nth-child(3) { background: var(--ok); }
.win__tag {
  margin-left: auto;
  font-size: 0.6875rem;
  letter-spacing: .12em;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--ink-line);
  color: var(--accent);
}
.win__tag--live { color: var(--ok); border-color: rgba(34, 197, 94, .35); }
.win__tag .dot { width: 6px; height: 6px; display: inline-block; margin-right: 6px; vertical-align: 1px; }

.sim { margin-top: clamp(32px, 4vw, 48px); }
.sim__body { display: grid; grid-template-columns: 1.15fr .85fr; }
@media (max-width: 820px) { .sim__body { grid-template-columns: 1fr; } }
.sim__points { padding: 16px 18px 18px; border-right: 1px solid var(--ink-line); min-width: 0; }
@media (max-width: 820px) { .sim__points { border-right: 0; border-bottom: 1px solid var(--ink-line); } }
.sim__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--ice-3); margin-bottom: 12px; flex-wrap: wrap; }
.sim__clock { font-size: 1.75rem; color: var(--ice); font-weight: 500; letter-spacing: .02em; }
.sim__clock small { font-size: 0.75rem; color: var(--ice-3); margin-left: 8px; letter-spacing: .1em; }
.pt { display: grid; grid-template-columns: 1fr auto auto; gap: 10px 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--ink-line); }
.pt:first-of-type { border-top: 0; }
.pt__name { font-weight: 700; font-size: 0.9375rem; }
.pt__place { font-size: 0.75rem; color: var(--ice-3); font-family: var(--font-mono); }
.pt__val { font-family: var(--font-mono); font-size: 1.25rem; font-variant-numeric: tabular-nums; min-width: 92px; text-align: right; }
.pt__val .trend { font-size: 0.8125rem; color: var(--ice-3); margin-left: 4px; }
.pt__val.is-warn { color: var(--warn); }
.pt__val.is-alert { color: var(--alert); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
  min-width: 150px;
  justify-content: center;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip--ok { color: var(--ok); background: var(--ok-soft); border-color: rgba(34, 197, 94, .3); }
.chip--warn { color: var(--warn); background: var(--warn-soft); border-color: rgba(245, 165, 36, .35); }
.chip--alert { color: var(--alert); background: var(--alert-soft); border-color: rgba(239, 68, 68, .35); }
.chip--mute { color: var(--ice-3); background: rgba(255, 255, 255, .04); border-color: var(--ink-line); }
.chip--mute::before { background: var(--ice-3); animation: blink 1.2s steps(2) infinite; }
@media (max-width: 480px) {
  .pt { grid-template-columns: 1fr auto; }
  .pt .chip { grid-column: 1 / -1; justify-content: flex-start; min-width: 0; }
}
.sim__reg { margin-top: 12px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--ice-3); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sim__reg b { color: var(--ice-2); font-weight: 500; }
.sim__feed { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; background: linear-gradient(180deg, rgba(46, 182, 240, .05), transparent 40%); }
.sim__feedhead { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ice-3); display: flex; justify-content: space-between; align-items: center; }
.sim__feedhead b { color: var(--ice); font-weight: 600; }
.msgs { display: flex; flex-direction: column; gap: 10px; min-height: 250px; justify-content: flex-end; }
.msg {
  background: var(--ink-700);
  border: 1px solid var(--ink-line);
  border-left: 3px solid var(--ice-3);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.875rem;
  line-height: 1.45;
  animation: rise .45s ease both;
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.msg__state { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: .1em; text-transform: uppercase; display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.msg__state time { color: var(--ice-3); letter-spacing: 0; }
.msg__to { margin-top: 6px; font-size: 0.75rem; color: var(--ice-3); font-family: var(--font-mono); }
.msg--ok { border-left-color: var(--ok); } .msg--ok .msg__state { color: var(--ok); }
.msg--warn { border-left-color: var(--warn); } .msg--warn .msg__state { color: var(--warn); }
.msg--alert { border-left-color: var(--alert); background: rgba(239, 68, 68, .08); } .msg--alert .msg__state { color: var(--alert); }
.msg--info .msg__state { color: var(--ice-2); }
.sim__legend { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--ice-3); text-align: center; padding: 10px 14px; border-top: 1px solid var(--ink-line); letter-spacing: .04em; }
@media (prefers-reduced-motion: reduce) { .msg { animation: none; } .dot { animation: none; } }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 28px; }
@media (max-width: 860px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.kpi { background: rgba(255, 255, 255, .03); border: 1px solid var(--ink-line); border-radius: var(--radius-sm); padding: 16px 18px; min-width: 0; }
.kpi b { display: block; font-size: clamp(1.5rem, 2.6vw, 1.875rem); font-weight: 800; color: var(--accent); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi span { display: block; font-size: 0.8125rem; color: var(--ice-2); margin-top: 4px; line-height: 1.4; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 22px; align-items: center; }
.chips .label { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ice-3); margin-right: 6px; }
.chips span:not(.label) { font-family: var(--font-mono); font-size: 0.75rem; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--ink-line); color: var(--ice-2); background: rgba(255, 255, 255, .03); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split > * { min-width: 0; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; font-size: 1rem; }
.checks li b { display: block; }
.checks .ico { width: 30px; height: 30px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.checks .ico svg { width: 16px; height: 16px; }

.topo { padding: 18px; display: grid; gap: 0; }
.node {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--ink-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .025);
}
.node--hub { border-color: rgba(46, 182, 240, .45); background: rgba(46, 182, 240, .07); box-shadow: 0 0 0 4px rgba(46, 182, 240, .06); }
.node--opt { border-style: dashed; opacity: .85; }
.node .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--ink-700); color: var(--accent); }
.node .ico svg { width: 20px; height: 20px; }
.node b { display: block; font-size: 0.9375rem; }
.node small { display: block; font-family: var(--font-mono); font-size: 0.75rem; color: var(--ice-3); margin-top: 2px; }
.badge { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: .12em; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--ink-line); color: var(--ok); white-space: nowrap; }
.badge--accent { color: var(--accent); }
.badge--muted { color: var(--ice-3); }
.wire { position: relative; height: 34px; margin-left: 35px; width: 2px; background: linear-gradient(var(--ink-line), var(--ink-line)); }
.wire::after {
  content: "";
  position: absolute;
  left: -3px;
  top: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: travel 2.4s linear infinite;
}
.wire--radio::after { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.wire--radio { background: repeating-linear-gradient(var(--ink-line) 0 4px, transparent 4px 8px); }
@keyframes travel { from { top: -8px; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { top: 100%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wire::after { animation: none; top: 40%; } }
@media (max-width: 480px) { .node { grid-template-columns: 40px 1fr; } .node .badge { grid-column: 2; justify-self: start; } }

.tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.tab {
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--ink-line);
  color: var(--ice-2);
  border-radius: 12px;
  padding: 10px 18px;
  cursor: pointer;
  display: grid;
  text-align: left;
  min-width: 150px;
}
.tab small { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ice-3); }
.tab b { font-size: 0.9375rem; }
.tab[aria-selected="true"] { border-color: var(--accent); color: var(--ice); background: rgba(46, 182, 240, .1); }
.tabpanel {
  margin-top: 18px;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(46, 182, 240, .12), rgba(46, 182, 240, 0) 55%), var(--ink-900);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  padding: 26px;
}
@media (max-width: 900px) { .tabpanel { grid-template-columns: 1fr; } }
.tabpanel > * { min-width: 0; }
.tabpanel h3 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.02em; }
.tabpanel .kind { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.tabpanel .desc { color: var(--ice-2); margin-top: 10px; }
.tabpanel ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; font-size: 0.9375rem; }
.tabpanel li { padding-left: 18px; position: relative; }
.tabpanel li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.term { font-family: var(--font-mono); font-size: 0.8125rem; line-height: 1.55; min-height: 240px; padding: 14px 16px; display: flex; flex-direction: column; }
.term__lines { display: grid; gap: 4px; align-content: start; flex: 1; }
.term__line { color: var(--ice-2); white-space: pre-wrap; word-break: break-word; animation: rise .35s ease both; }
.term__line .t { color: var(--ice-3); margin-right: 8px; }
.t-ok { color: var(--ok); } .t-warn { color: var(--warn); } .t-alert { color: var(--alert); } .t-info { color: var(--accent); }
.term__cursor { width: 8px; height: 15px; background: var(--accent); display: inline-block; animation: blink 1s steps(2) infinite; margin-top: 4px; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .term__line { animation: none; } .term__cursor { animation: none; } }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 36px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }
.card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-deep); display: grid; place-items: center; }
.card .ico svg { width: 20px; height: 20px; }
.card h3 { margin-top: 4px; }
.card .claim { font-weight: 700; color: var(--accent-deep); font-size: 0.9375rem; }
.card p { color: var(--text-2); font-size: 0.9375rem; }
.card--state { border-top: 0; }
.card--state .state { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.card--state .state::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent); }
.card--ok .state { color: #15803d; } .card--warn .state { color: #b45309; } .card--alert .state { color: #b91c1c; }
.card--ok { background: linear-gradient(180deg, rgba(34, 197, 94, .07), transparent 60%), var(--paper-2); }
.card--warn { background: linear-gradient(180deg, rgba(245, 165, 36, .09), transparent 60%), var(--paper-2); }
.card--alert { background: linear-gradient(180deg, rgba(239, 68, 68, .07), transparent 60%), var(--paper-2); }
.card .tag { align-self: flex-start; font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: .14em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: var(--paper-3); color: var(--text-2); }
.card .tag--in { background: rgba(34, 197, 94, .14); color: #15803d; }
.card .tag--opt { background: var(--accent-soft); color: var(--accent-deep); }
.note { margin-top: 22px; font-size: 0.9375rem; color: var(--text-2); max-width: 70ch; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; counter-reset: step; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 24px 24px 24px 72px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 22px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-strong);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-family: var(--font-mono);
}
.step h3 { font-size: 1.125rem; }
.step p { color: var(--text-2); font-size: 0.9375rem; margin-top: 6px; }

.calc { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }
.calc > * { min-width: 0; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.875rem; color: var(--ice-2); font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--ink-line);
  background: rgba(255, 255, 255, .04);
  color: var(--ice);
  font: inherit;
  font-variant-numeric: tabular-nums;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(46, 182, 240, .2); }
.calc__fields { display: grid; gap: 14px; }
.calc__out { padding: 22px; }
.calc__big { font-size: clamp(2.125rem, 5vw, 3.375rem); font-weight: 800; letter-spacing: -.03em; color: var(--warn); line-height: 1; font-variant-numeric: tabular-nums; }
.calc__big small { font-size: 1rem; font-weight: 600; color: var(--ice-2); letter-spacing: 0; margin-left: 8px; }
.calc__txt { margin-top: 10px; color: var(--ice-2); font-size: 0.9375rem; }
.calc__txt b { color: var(--ice); }
.bar { margin-top: 18px; height: 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; display: flex; }
.bar i { display: block; height: 100%; }
.bar .on { background: var(--accent); }
.bar .off { background: var(--warn); }
.bar-legend { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--ice-3); margin-top: 8px; letter-spacing: .06em; }
.bar-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }

.table-wrap { overflow-x: auto; margin-top: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 0.9375rem; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); font-weight: 600; background: var(--paper); }
th.kryo, td.kryo { background: var(--accent-soft); }
th.kryo { color: var(--accent-deep); }
tr:last-child td { border-bottom: 0; }
td.kryo { font-weight: 600; }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
@media (max-width: 760px) { .vs { grid-template-columns: 1fr; } }
.vs .card ul { margin: 6px 0 0; padding-left: 18px; color: var(--text-2); font-size: 0.9375rem; display: grid; gap: 6px; }
.vs .card--kryo { border-color: var(--accent-strong); box-shadow: 0 0 0 4px var(--accent-soft); }

.faq { margin-top: 32px; display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--accent-deep); font-size: 1.25rem; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 0 18px; color: var(--text-2); font-size: 0.9375rem; max-width: 70ch; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
@media (max-width: 700px) { .form { grid-template-columns: 1fr; } }
.form .full { grid-column: 1 / -1; }
.form .actions { grid-column: 1 / -1; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.form .field small { color: var(--ice-3); font-size: 0.75rem; }
.form-ok { margin-top: 28px; padding: 20px; border: 1px solid rgba(34, 197, 94, .4); background: var(--ok-soft); border-radius: 12px; color: var(--ice); }

.footer { background: var(--ink-900); color: var(--ice-2); font-size: 0.875rem; padding-block: 48px 110px; border-top: 1px solid var(--ink-line); }
.footer .wrap { max-width: var(--max); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4, .footer .h4 { margin: 0 0 12px; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ice-3); font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; color: var(--ice-2); }
.footer a:hover { color: var(--accent); }
.footer .tagline { margin-top: 14px; max-width: 42ch; color: var(--ice-3); }
.footer .tagline b { color: var(--accent); font-weight: 600; }
.footer__legal { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--ink-line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 0.75rem; color: var(--ice-3); }
.footer__legal a { color: var(--ice-3); }

.assist { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 60; display: grid; justify-items: end; gap: 10px; }
.assist__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--ink-line);
  background: rgba(11, 24, 48, .92);
  color: var(--ice);
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
  backdrop-filter: blur(10px);
}
.assist__btn .dot { width: 9px; height: 9px; }
.assist__panel {
  width: min(430px, calc(100vw - var(--gutter-l) - var(--gutter-r)));
  max-height: min(70vh, 640px);
  overflow: auto;
  background: var(--ink-900);
  color: var(--ice);
  color-scheme: dark;
  border: 1px solid var(--ink-line);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  padding: 18px;
  display: grid;
  gap: 12px;
}
.assist__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.assist__head b { font-size: 0.9375rem; }
.assist__head small { display: block; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--ice-3); letter-spacing: .06em; margin-top: 2px; }
.assist__close { background: none; border: 1px solid var(--ink-line); color: var(--ice-2); border-radius: 999px; width: 32px; height: 32px; cursor: pointer; }
.assist__q { display: grid; gap: 6px; }
.assist__q button {
  text-align: left;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--ink-line);
  color: var(--ice);
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.875rem;
}
.assist__q button:hover, .assist__q button[aria-pressed="true"] { border-color: var(--accent); background: rgba(46, 182, 240, .1); }
.assist__a { background: var(--ink-700); border: 1px solid var(--ink-line); border-radius: 12px; padding: 12px 14px; font-size: 0.875rem; line-height: 1.5; color: var(--ice-2); }
.assist__a b { color: var(--ice); display: block; margin-bottom: 4px; }
.assist__foot { font-size: 0.8125rem; color: var(--ice-3); display: grid; gap: 8px; }
.assist__foot code { font-family: var(--font-mono); color: var(--ice); user-select: all; }
@media (max-width: 520px) { .assist__btn span.txt { display: none; } .assist__btn { padding: 12px; } }

.scenarios { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 28px; }
.scen {
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--ink-line);
  color: var(--ice-2);
  border-radius: 12px;
  padding: 10px 16px;
  cursor: pointer;
  display: grid;
  text-align: left;
  min-width: 150px;
}
.scen small { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ice-3); }
.scen b { font-size: 0.875rem; }
.scen[aria-pressed="true"] { border-color: var(--accent); color: var(--ice); background: rgba(46, 182, 240, .1); }
.sim--scen { margin-top: 18px; }
.outcomes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
@media (max-width: 860px) { .outcomes { grid-template-columns: 1fr; } }
.out { background: rgba(255, 255, 255, .03); border: 1px solid var(--ink-line); border-radius: var(--radius-sm); padding: 16px 18px; min-width: 0; }
.out b { display: block; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; font-weight: 500; }
.out--no b { color: var(--ok); }
.out p { color: var(--ice-2); font-size: 0.875rem; line-height: 1.5; }
.fail { margin-top: 32px; }
.fail .table-wrap { background: rgba(255, 255, 255, .02); border-color: var(--ink-line); }
.fail table { font-size: 0.875rem; color: var(--ice-2); }
.fail th { background: rgba(255, 255, 255, .03); color: var(--ice-3); border-color: var(--ink-line); }
.fail td { border-color: var(--ink-line); }
.fail td:first-child { color: var(--ice); font-weight: 600; }
.fail .rule { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ice-3); margin-top: 10px; }
.fail .rule b { color: var(--accent); font-weight: 500; }

.kit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; margin-top: 32px; }
@media (max-width: 900px) { .kit { grid-template-columns: 1fr; } }
.kit > * { min-width: 0; }
.kit__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .kit__grid { grid-template-columns: 1fr; } }
.kit__grid .field input { padding: 10px 12px; }
.kit__opts { display: grid; gap: 10px; margin-top: 16px; }
.kit__opts label { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9375rem; color: var(--ice-2); cursor: pointer; }
.kit__opts input { margin-top: 4px; accent-color: var(--accent); }
.kit__opts b { color: var(--ice); font-weight: 600; }
.kit__out { padding: 22px; }
.kit__out ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.kit__out li { padding-left: 26px; position: relative; font-size: 0.9375rem; color: var(--ice-2); line-height: 1.45; }
.kit__out li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 14px; border-radius: 50%; background: var(--ok-soft); border: 1px solid rgba(34, 197, 94, .5); }
.kit__out li b { color: var(--ice); font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.kit__out li em { font-style: normal; color: var(--ice-3); font-size: 0.8125rem; }
.kit__note { margin-top: 16px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--ice-3); line-height: 1.5; }
.box { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 28px; }
@media (max-width: 760px) { .box { grid-template-columns: 1fr; } }
.box .kpi b { font-size: 0.75rem; font-family: var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.box .kpi ul { margin: 10px 0 0; padding-left: 18px; color: var(--ice-2); font-size: 0.875rem; display: grid; gap: 4px; }

.lab { display: grid; grid-template-columns: .9fr 1.1fr; gap: 20px; margin-top: 32px; align-items: start; }
@media (max-width: 900px) { .lab { grid-template-columns: 1fr; } }
.lab > * { min-width: 0; }
.lab__form { padding: 22px; display: grid; gap: 14px; }
.lab__form h3 { font-size: 1.125rem; }
.lab__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .lab__row { grid-template-columns: 1fr; } }
.label {
  background: #fbfbf7;
  color: #111;
  border-radius: 6px;
  padding: 14px 16px 12px;
  font-family: var(--font-mono);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(0, 0, 0, .06);
  position: relative;
  max-width: 340px;
  transition: transform .2s ease;
}
.label.flash { transform: scale(1.02); }
.label__name { font-family: var(--font-sans); font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; line-height: 1.1; margin-bottom: 8px; color: #111; }
.label__rows { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; font-size: 0.75rem; }
.label__rows span:nth-child(odd) { color: #666; letter-spacing: .08em; }
.label__rows b { font-weight: 600; color: #111; }
.label__exp { margin-top: 8px; padding: 6px 8px; border: 2px solid #111; border-radius: 4px; display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 0.875rem; }
.label__exp small { font-weight: 500; letter-spacing: .1em; font-size: 0.625rem; color: #444; }
.label__bar { margin-top: 10px; height: 26px; background: repeating-linear-gradient(90deg, #111 0 2px, transparent 2px 4px, #111 4px 5px, transparent 5px 8px, #111 8px 11px, transparent 11px 13px); border-radius: 2px; opacity: .85; }
.label__code { font-size: 0.625rem; letter-spacing: .14em; color: #555; margin-top: 4px; display: flex; justify-content: space-between; }
.lab__out { display: grid; gap: 12px; }
.inv { padding: 14px 18px 16px; }
.inv__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--ice-3); margin-bottom: 8px; flex-wrap: wrap; }
.inv__head b { color: var(--ice); font-size: 0.9375rem; font-family: var(--font-sans); }
.inv__row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 8px 14px; align-items: center; padding: 8px 0; border-top: 1px solid var(--ink-line); font-size: 0.875rem; }
.inv__x { font: 600 0.75rem/1 var(--font-mono); color: var(--ice-3); background: transparent; border: 1px solid var(--ink-line); border-radius: 999px; padding: 7px 10px; cursor: pointer; white-space: nowrap; }
.inv__x:hover { color: var(--ice); border-color: var(--ice-3); }
.inv__log { font-family: var(--font-mono); font-size: 0.7188rem; color: var(--ice-3); margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--ink-line); line-height: 1.5; }
@media (max-width: 600px) { .inv__row { grid-template-columns: 1fr auto; } .inv__row > div { grid-column: 1; } .inv__row .chip { grid-column: 2; grid-row: 1; min-width: 0; justify-self: end; } .inv__row .when { grid-column: 1; grid-row: 2; } .inv__row .inv__x { grid-column: 2; grid-row: 2; justify-self: end; } }
.inv__row:first-of-type { border-top: 0; }
.inv__row small { display: block; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--ice-3); }
.inv__row .when { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ice-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.inv__row .chip { min-width: 118px; }
@media (max-width: 480px) { .inv__row { grid-template-columns: 1fr auto; } .inv__row .chip { grid-column: 1 / -1; justify-content: flex-start; min-width: 0; } }
.inv__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.lab__feed { padding: 14px 18px 16px; }
.lab__feed .msgs { min-height: 0; }

.sec { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; margin-top: 36px; align-items: start; }
@media (max-width: 900px) { .sec { grid-template-columns: 1fr; } }
.sec > * { min-width: 0; }
.news {
  background: var(--ink-900);
  color: var(--ice);
  color-scheme: dark;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  padding: 24px;
  display: grid;
  gap: 14px;
  box-shadow: 0 24px 60px rgba(11, 24, 48, .25);
}
.news__kicker { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--alert); display: flex; gap: 10px; flex-wrap: wrap; }
.news__kicker span + span::before { content: "·"; margin-right: 10px; color: var(--ice-3); }
.news h3 { font-size: clamp(1.25rem, 2.4vw, 1.625rem); line-height: 1.2; }
.news p { color: var(--ice-2); font-size: 0.9375rem; }
.news__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 520px) { .news__facts { grid-template-columns: 1fr; } }
.news__facts div { border: 1px solid var(--ink-line); border-radius: 10px; padding: 10px 12px; background: rgba(255, 255, 255, .03); }
.news__facts b { display: block; font-size: 1.25rem; color: var(--ice); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.news__facts span { font-size: 0.75rem; color: var(--ice-3); font-family: var(--font-mono); }
.news blockquote { margin: 0; padding: 10px 14px; border-left: 3px solid var(--warn); background: rgba(245, 165, 36, .08); border-radius: 0 10px 10px 0; font-size: 0.9375rem; color: var(--ice); }
.news blockquote cite { display: block; font-style: normal; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--ice-3); margin-top: 4px; }
.news__src { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ice-3); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.news__src a { color: var(--accent); font-weight: 600; text-decoration: none; font-family: var(--font-sans); font-size: 0.875rem; }
.news__src a:hover { text-decoration: underline; }
.sec__cards { display: grid; gap: 12px; }
.sec__cards .card { padding: 18px 20px; gap: 6px; }
.sec__cards .card h3 { font-size: 1.0625rem; margin-top: 0; }
.sec__cards .card .ico { width: 34px; height: 34px; }
.sec__cards .card .ico svg { width: 18px; height: 18px; }
.checklist { margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); padding: 20px 24px; display: grid; gap: 10px; }
.checklist h3 { font-size: 1rem; }
.checklist ol { margin: 0; padding-left: 20px; color: var(--text-2); font-size: 0.9375rem; display: grid; gap: 6px; }
.checklist .src { margin-top: 2px; }

.reveal { transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.pre { opacity: 0; transform: translateY(16px); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .reveal.pre { opacity: 1; transform: none; } .reveal { transition: none; } }

.ref { margin-top: 24px; }
.ref table { min-width: 0; }
.ref td:last-child { font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.src { margin-top: 12px; font-size: 0.8125rem; color: var(--text-2); }
.list-cols { columns: 2; column-gap: 32px; margin: 20px 0 0; padding-left: 18px; color: var(--text-2); font-size: 0.9375rem; }
@media (max-width: 600px) { .list-cols { columns: 1; } }
.list-cols li { break-inside: avoid; margin-bottom: 8px; }
.crumb { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ice-3); margin-bottom: 14px; }
.crumb a { color: var(--ice-3); text-decoration: none; }
.crumb a:hover { color: var(--accent); }

.pic { display: block; width: 100%; height: auto; color: var(--text); }

:root { --il-ink: #0B1A2C; --il-mark: #0B1A2C; --il-fn: #076A98; --il-acc: #2EB6F0; --il-ink2: #4A5D73; --il-steelA: #EEF2F7; --il-steelB: #C2CCD8; --il-steelC: #9AA8B8; --il-whiteA: #FFFFFF; --il-whiteB: #DCE4ED; --il-paper: #FFFFFF; --il-paper2: #F3F6FA; --il-cardA: #E3CFB2; --il-cardB: #C9AE86; --il-cardC: #B2956B; --il-ok: #15803D; --il-warn: #A16207; --il-alert: #B91C1C; --il-gap: #4A5D73; --il-okSoft: #DCFCE7; --il-warnSoft: #FEF3C7; --il-alertSoft: #FEE2E2; }
.band--ink, .band--ink-deep, .win, .scen, .esempio { --il-ink: #EAF2FB; --il-fn: #2EB6F0; --il-ink2: #B7C9DC; --il-steelA: #6F819A; --il-steelB: #3E5068; --il-steelC: #2A3A52; --il-whiteA: #F4F8FC; --il-whiteB: #C4D2E2; --il-paper: #F4F8FC; --il-paper2: #DCE6F1; --il-cardA: #C6A67E; --il-cardB: #A4845C; --il-cardC: #846743; --il-ok: #22C55E; --il-warn: #F5A524; --il-alert: #EF4444; --il-gap: #7F98B3; --il-okSoft: #14532D; --il-warnSoft: #5A3A05; --il-alertSoft: #5A1515; }
.band--ink .card, .band--ink-deep .card, .band--paper .card, .band--paper-2 .card { }
.band--paper .win, .band--paper-2 .win { }
.story { margin-top: 30px; }
.story__title { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); margin: 0 0 14px; }
.band--ink .story__title, .band--ink-deep .story__title { color: var(--ice-3); }
.story__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr)); gap: 14px; counter-reset: st; }
.story__step { position: relative; counter-increment: st; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 14px 16px; min-width: 0; transition: border-color .35s ease, box-shadow .35s ease; }
.band--ink .story__step, .band--ink-deep .story__step { background: rgba(255, 255, 255, .03); border-color: var(--ink-line); }
.story__step::before { content: counter(st); position: absolute; top: 10px; left: 12px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 600 0.6875rem/1 var(--font-mono); color: var(--text-2); border: 1px solid var(--line); transition: background .35s ease, color .35s ease; }
.band--ink .story__step::before, .band--ink-deep .story__step::before { color: var(--ice-2); border-color: var(--ink-line); }
.story__step .pic { max-height: 112px; margin: 18px auto 10px; }
.story__step b { display: block; font-size: 0.9375rem; font-weight: 700; letter-spacing: -.01em; color: var(--text); margin-bottom: 4px; }
.story__step span { display: block; font-size: 0.8125rem; line-height: 1.45; color: var(--text-2); }
.band--ink .story__step b, .band--ink-deep .story__step b { color: var(--ice); }
.band--ink .story__step span, .band--ink-deep .story__step span { color: var(--ice-2); }
.story__step.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.story__step.on::before { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.story__step:not(:last-child)::after { content: ""; position: absolute; right: -11px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--text-2); border-top: 2px solid var(--text-2); transform: translateY(-50%) rotate(45deg); opacity: .5; }
.band--ink .story__step:not(:last-child)::after, .band--ink-deep .story__step:not(:last-child)::after { border-color: var(--ice-3); opacity: .9; }
@media (max-width: 1000px) { .story__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } .story__step::after { display: none; } }
@media (max-width: 600px) { .story__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .story__step { padding: 12px 12px 14px; } .story__step .pic { max-height: 86px; margin-top: 16px; } .story__step b { font-size: 0.875rem; } .story__step span { font-size: 0.7812rem; } }
@media (prefers-reduced-motion: reduce) { .story__step { transition: none; } }
.step .pic { width: auto; height: 96px; margin: 0 0 10px -8px; }
.creed .section-head { max-width: 860px; }
.creed__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.creed__item { border: 1px solid var(--ink-line); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); padding: 18px 20px; background: rgba(255, 255, 255, .03); min-width: 0; }
.creed__item b { display: block; font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; color: var(--ice); margin-bottom: 6px; }
.creed__item span { display: block; font-size: 0.9062rem; line-height: 1.5; color: var(--ice-2); }
.creed__item small { display: block; margin-top: 10px; font-family: var(--font-mono); font-size: 0.7188rem; color: var(--ice-3); }
@media (max-width: 860px) { .creed__grid { grid-template-columns: 1fr; } }
.card > .pic { width: auto; height: 76px; margin: 10px 0 4px -6px; }
.box .kpi > .pic { width: auto; height: 76px; margin: 0 0 8px -6px; }
@media (max-width: 600px) { .story__step:last-child:nth-child(odd) { grid-column: 1 / -1; } }

@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/fonts/manrope-latin.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/plexmono-400-latin.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/plexmono-500-latin.woff2") format("woff2"); }

.band--paper .btn--primary, .band--paper-2 .btn--primary { background: var(--accent-deep); color: #fff; }
.band--paper .btn--primary:hover, .band--paper-2 .btn--primary:hover { background: #055a82; }
th.kryo { color: #05527a; }

.logo .logo-wm { width: auto; height: 17px; }
.logo svg:first-child { width: 26px; height: 26px; }
.footer .logo { color: var(--ice); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 12px; }

.link-btn { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
.footer__legal a, .footer__legal .link-btn { color: var(--ice-2); }

.crumbs { background: var(--ink-800); color: var(--ice-3); font-family: var(--font-mono); font-size: 0.75rem; }
.crumbs .wrap { max-width: var(--max); margin-inline: auto; padding: 14px var(--gutter-r) 0 var(--gutter-l); }
.crumbs a { color: var(--ice-3); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

.page-head { padding-block: clamp(36px, 5vw, 64px) clamp(44px, 6vw, 72px); position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: -40% -10% auto; height: 120%; background: radial-gradient(60% 60% at 70% 20%, rgba(46, 182, 240, .16), transparent 70%); pointer-events: none; }
.page-head > .wrap { position: relative; }
.page-head h1 { margin-top: 14px; font-size: clamp(1.875rem, 4.2vw, 3rem); }
.page-head .lead { color: var(--ice-2); }
.page-head .cta-row { margin-top: 22px; }
.page-head .muted { color: var(--ice-3); }

.narrow { max-width: 780px; }
.mt { margin-top: 22px; }
.center { text-align: center; }
.muted { color: var(--text-2); }
.band--ink .muted, .band--ink-deep .muted { color: var(--ice-3); }
.small { font-size: 0.875rem; }
.src { font-size: 0.8125rem; color: var(--text-2); }
.band--ink .src, .band--ink-deep .src { color: var(--ice-3); }
.band--paper .card h3, .band--paper-2 .card h3 { font-size: 1.125rem; margin: 10px 0 4px; }
.card--pain { border-top: 3px solid var(--alert); }
.card--pain h3 { color: #b91c1c; }
.card ul { padding-left: 18px; color: var(--text-2); font-size: 0.9375rem; display: grid; gap: 6px; margin: 10px 0 0; }
.band--paper ul:not([class]), .band--paper-2 ul:not([class]) { color: var(--text-2); display: grid; gap: 6px; padding-left: 20px; }
.band--paper ul:not([class]) b, .band--paper-2 ul:not([class]) b { color: var(--text); }
.band--paper .lead, .band--paper-2 .lead { color: var(--text-2); }
.band--paper h2 + p, .band--paper-2 h2 + p { max-width: 70ch; }
.band--paper p, .band--paper-2 p { max-width: 72ch; }
.cta-band { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: var(--ink-900); color: var(--ice); color-scheme: dark; border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.cta-band h2 { font-size: clamp(1.375rem, 2.6vw, 1.875rem); margin: 0; }
.cta-band p { color: var(--ice-2); margin: 8px 0 0; }
.cta-band .btn--primary { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }
ol.steps { list-style: none; padding: 0; counter-reset: step; }
ol.steps > li { position: relative; padding: 18px 18px 18px 64px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-sm); counter-increment: step; }
.band--ink ol.steps > li, .band--ink-deep ol.steps > li { background: rgba(255, 255, 255, .03); border-color: var(--ink-line); }
ol.steps > li::before { content: counter(step); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; display: grid; place-items: center; font-size: 0.875rem; }
ol.steps > li h3 { margin: 0 0 4px; font-size: 1.0625rem; }
ol.steps > li p { margin: 0; font-size: 0.9375rem; color: var(--text-2); }
.band--ink ol.steps > li p, .band--ink-deep ol.steps > li p { color: var(--ice-2); }
.table-wrap--plain { border: 0; background: transparent; margin-top: 12px; }
.table-wrap--plain table { min-width: 0; }
.band--paper .faq, .band--paper-2 .faq { margin-top: 24px; }
.band--ink .checks li, .band--ink-deep .checks li { color: var(--ice-2); }
.band--ink .checks li b, .band--ink-deep .checks li b { color: var(--ice); }
.prose p + p { margin-top: 12px; }
.prose h2 { margin-top: 40px; }
.prose h3 { margin-top: 28px; }

@media (max-width: 720px) {
  table { min-width: 0; }
  .table-wrap:has(table.stack) { overflow: visible; border: 0; background: transparent; }
  table.stack { min-width: 0; display: block; }
  table.stack thead { display: none; }
  table.stack tbody, table.stack tr { display: block; }
  table.stack tr { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; padding: 6px 0; display: flex; flex-direction: column; }
  table.stack td { display: grid; grid-template-columns: 1fr; gap: 2px; border-bottom: 1px dashed var(--line); padding: 10px 14px; }
  table.stack td:last-child { border-bottom: 0; }
  table.stack td::before { content: attr(data-label); font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
  table.stack td:first-child { font-weight: 700; font-size: 1rem; }
  table.stack td:first-child::before { display: none; }
  table.stack td.kryo { order: -1; background: var(--accent-soft); border-radius: 8px; margin: 6px 10px 2px; border-bottom: 0; }
  table.stack td.kryo::before { color: var(--accent-deep); }
  table.stack td:first-child { order: -2; }
  .band--ink table.stack tr, .band--ink-deep table.stack tr { background: rgba(255, 255, 255, .04); border-color: var(--ink-line); }
  .band--ink table.stack td, .band--ink-deep table.stack td { border-color: var(--ink-line); color: var(--ice); }
  .band--ink table.stack td::before, .band--ink-deep table.stack td::before { color: var(--ice-3); }
}

.consent { position: fixed; right: 12px; left: auto; bottom: 12px; z-index: 60; max-width: 420px; margin: 0; background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; box-shadow: 0 16px 40px rgba(3, 10, 20, .28); display: grid; grid-template-columns: 1fr auto; gap: 10px 14px; align-items: center; font-size: 0.875rem; }
.consent p { margin: 0; }
.consent a { color: var(--accent-deep); }
.consent__btns { display: flex; gap: 8px; }
.consent .btn--primary { background: var(--accent-deep); color: #fff; }
.consent .btn--ghost { color: var(--text); border-color: var(--line); }
@media (max-width: 560px) { .consent { left: 12px; right: 12px; max-width: none; grid-template-columns: 1fr; } .consent__btns .btn { flex: 1; } }
body.page-contatti .assist { display: none; }
body.consent-open .mobile-cta, body.consent-open .assist { display: none; }

.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px var(--gutter-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gutter-l); background: rgba(7, 16, 28, .92); backdrop-filter: blur(8px); border-top: 1px solid var(--ink-line); transition: transform .25s ease; }
  .mobile-cta .btn { display: block; text-align: center; width: 100%; }
  .mobile-cta.is-hidden { transform: translateY(110%); }
  .assist { bottom: 74px; }
  body.page-contatti .mobile-cta { display: none; }
}

.hp { position: absolute; left: -9999px; }
.files { display: grid; gap: 8px; }
.files input[type="file"] { padding: 10px 12px; font-size: 0.875rem; }
.field input[type="file"] { color: var(--ice-2); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.875rem; color: var(--ice-2); }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); }
.check a { color: var(--accent); }
.form.win { padding: 22px; }
.form .muted.small { margin: 0; font-size: 0.8125rem; }
.form .muted.small a { color: var(--ice-2); }
button, input, select, textarea { font-family: inherit; }

.areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 32px; }
@media (max-width: 1000px) { .areas { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .areas { grid-template-columns: 1fr; } }
.area { display: flex; flex-direction: column; gap: 10px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 20px; min-width: 0; }
.band--ink .area, .band--ink-deep .area { background: rgba(255, 255, 255, .03); border-color: var(--ink-line); }
.area__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.area__head .tag { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: .14em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: var(--paper-3); color: var(--text-2); }
.area .tag--in { background: rgba(34, 197, 94, .14); color: #15803d; }
.area .tag--opt { background: var(--accent-soft); color: var(--accent-deep); }
.band--ink .area .tag--opt, .band--ink-deep .area .tag--opt { color: var(--accent); }
.band--ink .area .tag--in, .band--ink-deep .area .tag--in { color: var(--ok); }
.area h3 { margin: 0; font-size: 1.125rem; }
.area p { margin: 0; font-size: 0.9375rem; color: var(--text-2); }
.band--ink .area p, .band--ink-deep .area p { color: var(--ice-2); }
.area .pic { max-width: 160px; }
.reading { margin-top: auto; border-radius: 10px; padding: 10px 12px; background: var(--ink-900); color: var(--ice); font-family: var(--font-mono); font-size: 0.75rem; display: grid; gap: 4px; }
.reading__val { font-size: 1.25rem; font-weight: 500; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; gap: 2px; }
.reading__val small { font-size: 0.6875rem; color: var(--ice-3); }
.reading__state { display: inline-flex; align-items: center; gap: 6px; font-size: 0.6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ice-2); }
.reading__state { color: var(--ok); }
.reading__state.is-warn { color: var(--warn); }
.reading__state.is-alert::before { background: var(--alert); box-shadow: 0 0 0 3px var(--alert-soft); }
.reading__note { color: var(--ice-3); font-size: 0.6875rem; }
.areas-legend { margin-top: 12px; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }

.card--state .how { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-2); margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }

.reg { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
@media (max-width: 800px) { .reg { grid-template-columns: 1fr; } }
.reg .card ul { margin-top: 10px; }
.reg .card .ref { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-deep); }
.callout { margin-top: 24px; padding: 18px 20px; border-left: 4px solid var(--accent-strong); background: var(--paper-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 0.9375rem; color: var(--text-2); max-width: 80ch; }
.callout b { color: var(--text); }

.illus { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ice-3); }
.band--paper .illus, .band--paper-2 .illus { color: var(--text-2); }

@media print { .mobile-cta, .consent, .assist, .topbar { display: none !important; } }
.yesno { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 28px; }
@media (max-width: 1000px) { .yesno { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .yesno { grid-template-columns: 1fr; } }
.yesno .kpi b { font-size: 0.75rem; font-family: var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.yesno .kpi b.no { color: var(--ice-3); }
.yesno .kpi span { font-size: 0.9375rem; color: var(--ice); margin-top: 8px; }
.yesno .kpi span em { font-style: normal; color: var(--ice-2); }

.nav__links a.btn--primary { color: var(--accent-ink); }
.nav__links a.btn--primary:hover { color: var(--accent-ink); background: #4cc3f5; }
.chips .label { background: none; border: 0; padding: 0; box-shadow: none; border-radius: 0; }
.band--paper .pill, .band--paper-2 .pill { color: var(--accent-deep); background: var(--accent-soft); border-color: transparent; }
.band--ink .table-wrap th, .band--ink-deep .table-wrap th { color: var(--text-2); }
.card .tag--in, .area .tag--in { color: #116b32; }
.chip--alert { color: #ff7b7b; }
@media (max-width: 640px) { .topbar .extra { display: none; } }

.form-error { margin: 0; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(239, 68, 68, .55); background: rgba(239, 68, 68, .12); color: #ffd7d7; font-size: 0.875rem; line-height: 1.5; }
.form-error[hidden] { display: none; }
.form .muted.small[data-foto-help] { margin-top: 6px; }
.form [data-foto-tot] { font-family: var(--font-mono); color: var(--ice-2); }
.form button[disabled] { opacity: .7; cursor: progress; }

.segs .kind { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-deep); margin: 0 0 8px; }
.segs .card .link { display: inline-block; margin-top: 12px; }
@media (max-width: 980px) { .segs.grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .segs.grid-4 { grid-template-columns: 1fr; } }

.esempio { position: fixed; inset: 0; z-index: 90; background: rgba(4, 10, 20, .72); display: flex; align-items: center; justify-content: center; padding: 16px; }
.esempio[hidden] { display: none; }
.esempio__box { background: var(--ink-800); color: var(--ice); border: 1px solid var(--ink-line); border-radius: 18px; max-width: 720px; width: 100%; max-height: calc(100vh - 32px); overflow: auto; padding: 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.esempio__head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.esempio__head h2 { font-size: 1.5rem; margin: 4px 0 0; color: var(--ice); }
.esempio__head .eyebrow { margin: 0; }
.esempio__close { background: none; border: 1px solid var(--ink-line); color: var(--ice); border-radius: 50%; width: 36px; height: 36px; font-size: 1.375rem; line-height: 1; cursor: pointer; flex: none; }
.esempio__lead { color: var(--ice-2); font-size: 0.9375rem; margin: 12px 0 16px; }
.esempio__feed { display: grid; gap: 10px; }
.esempio .msg { margin: 0; }
.esempio .msg__top { display: flex; justify-content: space-between; gap: 10px; font-size: 0.875rem; }
.esempio .msg__top span { font-family: var(--font-mono); color: var(--ice-3); font-size: 0.75rem; }
.esempio .msg p { margin: 6px 0 4px; font-size: 0.875rem; line-height: 1.5; }
.esempio .msg small { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--ice-3); }
.esempio .msg--warn .msg__top b { color: var(--warn); } .esempio .msg--alert .msg__top b { color: #ff7b7b; } .esempio .msg--ok .msg__top b { color: var(--ok); } .esempio .msg--info .msg__top b { color: var(--accent); }
.esempio__notes { margin-top: 16px; display: grid; gap: 6px; font-size: 0.875rem; color: var(--ice-2); }
.esempio__notes p { margin: 0; }
.esempio__foot { margin-top: 18px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
body.esempio-open { overflow: hidden; }
.footer .link-btn { color: inherit; }
@media (max-width: 560px) { .esempio { padding: 0; align-items: flex-end; } .esempio__box { border-radius: 18px 18px 0 0; max-height: 92vh; padding: 18px; } }

.form .more { grid-column: 1 / -1; border: 1px dashed var(--ink-line); border-radius: 12px; padding: 10px 14px; }
.form .more summary { cursor: pointer; font-size: 0.875rem; color: var(--ice-2); list-style: none; }
.form .more summary::-webkit-details-marker { display: none; }
.form .more summary::before { content: "+ "; color: var(--accent); font-weight: 700; }
.form .more[open] summary::before { content: "− "; }
.form .more__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; }
.form .more__grid .full { grid-column: 1 / -1; }
.form .muted.small .link-btn { color: var(--ice-2); }
@media (max-width: 640px) { .form .more__grid { grid-template-columns: 1fr; } }

.integra { margin-top: 24px; }
.scen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.scen { background: var(--ink-700); border: 1px solid var(--ink-line); border-radius: var(--radius); padding: 22px; min-width: 0; }
.scen h3 { font-size: 1.125rem; margin: 0 0 12px; color: var(--ice); }
.scen ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.scen li { position: relative; padding-left: 30px; font-size: 0.875rem; line-height: 1.5; color: var(--ice-2); counter-increment: s; }
.scen li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink-600); color: var(--accent); font-family: var(--font-mono); font-size: 0.75rem; display: grid; place-items: center; }
.scen li b { display: block; color: var(--ice); font-size: 0.75rem; letter-spacing: .08em; text-transform: uppercase; font-family: var(--font-mono); margin-bottom: 2px; }
.scen--cta { background: var(--ink-800); border-color: rgba(46, 182, 240, .4); }
.scen--cta p { color: var(--ice-2); font-size: 0.9375rem; }
.scen--cta .note { font-size: 0.8125rem; color: var(--ice-3); margin-top: 14px; }
@media (max-width: 980px) { .scen-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .scen-grid { grid-template-columns: 1fr; } }

.segs--featured { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; margin-top: 36px; }
.segs__rest { display: grid; gap: 16px; }
.card--featured { border-color: var(--accent-deep); box-shadow: 0 0 0 1px rgba(7, 106, 152, .25) inset; }
.card--featured h3 { font-size: 1.5rem; }
.ticks { margin: 6px 0 4px; padding: 0; list-style: none; display: grid; gap: 6px; }
.ticks li { font-size: 0.875rem; color: var(--text-2); padding-left: 20px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-deep); font-weight: 700; }
.caso dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: 0.875rem; }
.caso dt { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-deep); padding-top: 3px; }
.caso dd { margin: 0; color: var(--text-2); }
@media (max-width: 900px) { .segs--featured { grid-template-columns: 1fr; } }

@media (max-width: 480px) { .cta-row .btn, .page-head .btn, .hero .btn { white-space: normal; text-align: center; max-width: 100%; } }

.ic { width: 1em; height: 1em; display: inline-block; vertical-align: -.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico .ic, .checks .ico .ic { width: 20px; height: 20px; }
.ico--grid { display: grid !important; grid-template-columns: 1fr 1fr; gap: 2px; padding: 4px; }
.ico--grid .ic { width: 14px; height: 14px; }
.state .ic, .chip .ic, .reading__state .ic { width: 14px; height: 14px; stroke-width: 2.4; flex: none; }
.card--state .state::before { display: none; }
.chip::before { display: none; }
.chip { gap: 6px; }
.chip--gap { color: var(--ice-3); background: rgba(255, 255, 255, .04); border-color: var(--ink-line); }
.band--paper .chip--ok, .band--paper-2 .chip--ok { color: #15803D; }
.band--paper .chip--warn, .band--paper-2 .chip--warn { color: #A16207; }
.band--paper .chip--alert, .band--paper-2 .chip--alert { color: #B91C1C; }
.band--paper .card--state .state, .band--paper-2 .card--state .state { }
.card--ok .state { color: #15803D; } .card--warn .state { color: #A16207; } .card--alert .state { color: #B91C1C; }
.band--ink .card--ok .state, .band--ink-deep .card--ok .state { color: var(--ok); }
.band--ink .card--warn .state, .band--ink-deep .card--warn .state { color: var(--warn); }
.band--ink .card--alert .state, .band--ink-deep .card--alert .state { color: var(--alert); }
.illus-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.illus-pair figure { margin: 0; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.illus-pair figcaption { font-size: 0.875rem; color: var(--text-2); margin-top: 8px; }
.illus-pair figcaption b { color: var(--text); }
.illus-pair .pic { max-width: 260px; margin: 0 auto; }
@media (max-width: 600px) { .illus-pair { grid-template-columns: 1fr; } }

.area > .pic { width: auto; height: 104px; margin: 8px 0 6px -4px; }
.card > .pic { height: 92px; }
.box .kpi > .pic { height: 92px; }
.step .pic { height: 104px; }
@media (max-width: 600px) { .area > .pic, .card > .pic, .box .kpi > .pic, .step .pic { height: 84px; } }

main p, main li, main dd { max-width: 78ch; }
.center p, .section-head.center p { margin-inline: auto; }
.split > *, .grid-2 > *, .grid-3 > *, .grid-4 > *, .card, .area, .kpi { min-width: 0; }
.card .table-wrap, .table-wrap--plain { overflow-x: auto; max-width: 100%; }
.card table, .table-wrap--plain table, .ref table { min-width: 0; width: 100%; }
td, th { overflow-wrap: anywhere; }
.btn, .btn--small, .consent .btn, .nav__links .btn, .inv__x, .lab .btn, .assist__btn { min-height: 44px; }
.btn--small { padding: 10px 14px; }
.assist__close, .esempio__close { width: 44px; height: 44px; }
.link, .link-btn { display: inline-block; padding: 12px 0; margin: -12px 0; }
.footer .link-btn, .footer a { padding: 12px 0; margin: -12px 0; display: inline-block; }
.logo { padding: 9px 0; margin: -9px 0; }
.kit__opts label { min-height: 44px; align-items: center; }
.kit__opts input[type="checkbox"], .form .check input[type="checkbox"] { width: 22px; height: 22px; flex: none; accent-color: var(--accent); }
.form .check { min-height: 44px; align-items: center; display: flex; gap: 10px; }
.form .more summary { min-height: 44px; display: flex; align-items: center; }
.files input[type="file"] { min-height: 44px; }
.inv__x { padding: 12px 14px; }
@media (max-width: 480px) {
  .btn { white-space: normal; text-align: center; }
  .form { grid-template-columns: 1fr; }
  .form.win { padding: 16px; }
  .cta-band { padding: 20px 16px; }
  .consent { left: 8px; right: 8px; }
}
@media (max-width: 1100px) { .scen-grid { grid-template-columns: 1fr 1fr; } }
.scen .cta-row .btn { white-space: normal; }
@media (max-width: 640px) { .scen-grid { grid-template-columns: 1fr; } }

@media (max-height: 480px) { .esempio__box { max-height: 100vh; border-radius: 0; } .assist__panel { max-height: 80vh; overflow: auto; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
@media (max-width: 820px) { body.kb-open .mobile-cta, body.kb-open .assist { display: none !important; } }

h1, h2, h3, p, li, summary, label, dt, dd, figcaption, .kpi span, .node small { overflow-wrap: anywhere; }
.btn { white-space: normal; text-align: center; }
.nav__links a { white-space: normal; }
.consent__btns { flex-wrap: wrap; }
.consent__btns .btn { flex: 1 1 140px; }
.win__bar { flex-wrap: wrap; gap: 6px 10px; }
.win__tag, .badge, .chip, .illus, .tag, .pill { white-space: normal; max-width: 100%; }
.kit__grid, .lab__row, .form, .form .more__grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.form .full, .form .actions, .form .more, .form .more__grid .full { grid-column: 1 / -1; }
.areas { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.kpis { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.scen-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-3, .grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.story__steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.story__step:not(:last-child)::after { display: none; }
.segs--featured { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.split { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.calc { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.sim__body { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.vs { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.box { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.kit { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.yesno, .creed__grid, .sec, .sec__cards, .reg { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.pt { grid-template-columns: minmax(0, 1fr) auto; }
.pt .chip { grid-column: 1 / -1; justify-content: flex-start; min-width: 0; }
.cta-band { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.cta-band > div:last-child { justify-self: start; }
@media (min-width: 761px) { .cta-band { grid-template-columns: 1fr auto; } .cta-band > div:last-child { justify-self: end; } }
.illus-pair { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.win, .lab__form, .lab__out, .label, .inv, .inv__row { min-width: 0; max-width: 100%; }
.label { width: auto; }
.sim__clock { font-size: clamp(1.25rem, 6vw, 1.75rem); }
.inv__row { grid-template-columns: minmax(0, 1fr) auto; }
.inv__row .chip, .inv__row .inv__x { max-width: 100%; }
@media (max-width: 360px) { .win { padding: 14px; } .form.win { padding: 14px; } }
.area__head { flex-wrap: wrap; }
.illus { white-space: normal; }
.node { grid-template-columns: 40px minmax(0, 1fr) auto; }
@media (max-width: 900px) { .node { grid-template-columns: 40px minmax(0, 1fr); } .node .badge { grid-column: 2; justify-self: start; } }
.consent { max-width: min(420px, calc(100vw - 24px)); }
.consent__btns .btn { flex: 1 1 120px; min-width: 0; }
@media (min-width: 600px) { .pt { grid-template-columns: minmax(0, 1fr) auto auto; } .pt .chip { grid-column: auto; justify-content: center; } }

.scen__pic { width: 122px; height: 84px; margin: -4px 0 10px -6px; }
.scen--cta .scen__pic { width: 105px; height: 72px; }
.esempio__title { display: flex; gap: 14px; align-items: center; min-width: 0; }
.esempio__pic { width: 93px; height: 64px; flex: 0 0 93px; }
.esempio__title > div { min-width: 0; flex: 1 1 auto; }
.illus-trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; margin: 24px 0 4px; }
.illus-trio figure { margin: 0; background: var(--ink-700); border: 1px solid var(--ink-line); border-radius: var(--radius); padding: 14px 16px; display: grid; grid-template-columns: 88px 1fr; gap: 12px; align-items: center; min-width: 0; }
.illus-trio .pic { width: 88px; height: auto; }
.illus-trio figcaption { font-size: 0.9375rem; color: var(--ice-2, var(--ice)); line-height: 1.4; }
.illus-trio figcaption b { color: var(--ice); }
@media (max-width: 420px) { .scen__pic { width: 105px; height: 72px; } .esempio__pic { width: 76px; height: 52px; flex-basis: 76px; } .illus-trio figure { grid-template-columns: 72px 1fr; } .illus-trio .pic { width: 72px; } }

.nav__lang { display: inline-flex; align-items: center; gap: 0; margin: 0 4px; padding: 2px; border: 1px solid var(--ink-line); border-radius: 999px; }
.nav__links .nav__lang a { font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 500; letter-spacing: .04em; padding: 5px 6px; min-height: 0; line-height: 1; color: var(--ice-3); }
.nav__links .nav__lang a[aria-current="true"] { color: var(--ice); background: rgba(255, 255, 255, .10); }
@media (max-width: 860px) {
  .nav__pill.open .nav__lang { align-self: flex-start; margin: 6px 0 4px; }
  .nav__pill.open .nav__links .nav__lang a { padding: 10px 11px; font-size: 0.8125rem; }
}
.langs { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.langs a { color: var(--ice-2); }
.langs a[aria-current="true"] { color: var(--ice); text-decoration: none; font-weight: 600; }
@media (min-width: 861px) and (max-width: 1180px) {
  .nav__lang { display: none; }
}

@media (min-width: 861px) and (max-width: 960px) {
  html:lang(de) .nav__links, html:lang(fr) .nav__links { display: none; }
  html:lang(de) .nav__toggle, html:lang(fr) .nav__toggle { display: inline-flex; }
  html:lang(de) .nav__pill.open, html:lang(fr) .nav__pill.open { border-radius: 24px; flex-wrap: wrap; }
  html:lang(de) .nav__pill.open .nav__links, html:lang(fr) .nav__pill.open .nav__links { display: flex; flex-direction: column; align-items: stretch; width: 100%; padding: 8px 0 4px; margin-left: 0; }
  html:lang(de) .nav__pill.open .nav__links a, html:lang(fr) .nav__pill.open .nav__links a { padding: 10px 12px; }
  html:lang(de) .nav__pill.open .nav__lang, html:lang(fr) .nav__pill.open .nav__lang { display: inline-flex; align-self: flex-start; margin: 6px 0 4px; }
}

.tag, .win__tag, .chips .label, .footer__grid .h4 { font-size: 0.75rem; }
.cta-band .eyebrow { color: var(--accent); }
.btn--small { min-height: 44px; }
.footer__legal a, .footer__legal button, .crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.check, .kit__opts label { min-height: 44px; align-items: center; }
.card .tag, .area__head .tag { font-size: 0.75rem; }
body .consent .btn, body .consent__btns .btn { min-height: 44px; }
