/* LCA Quantum Shield — interfaz */

:root {
  --bg: #060a14;
  --bg-2: #0a1020;
  --panel: rgba(14, 21, 40, 0.72);
  --panel-solid: #0e1528;
  --panel-2: rgba(22, 31, 56, 0.6);
  --border: rgba(148, 163, 230, 0.13);
  --border-strong: rgba(148, 163, 230, 0.24);
  --text: #e8ecfb;
  --text-2: #b6bfdc;
  --muted: #7f8aae;
  --teal: #5eead4;
  --indigo: #818cf8;
  --violet: #a78bfa;
  --grad: linear-gradient(100deg, #5eead4 0%, #818cf8 55%, #c084fc 100%);

  --critical: #fb5a78;
  --high: #fb923c;
  --medium: #facc15;
  --low: #60a5fa;
  --ok: #34d399;

  --radius: 18px;
  --radius-sm: 11px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", var(--font);
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(1200px 700px at 50% -10%, #111a36 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; margin: 0; }
code, .mono { font-family: var(--mono); }

/* Fondo: retícula (guiño a la criptografía basada en retículos, como ML-KEM) */
#lattice {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: -2; opacity: 0.9;
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 30%, #000 30%, transparent 85%);
          mask-image: radial-gradient(ellipse 90% 75% at 50% 30%, #000 30%, transparent 85%);
}
.glow { position: fixed; z-index: -1; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.glow-a { width: 520px; height: 520px; left: -160px; top: 80px; background: rgba(94, 234, 212, 0.10); }
.glow-b { width: 620px; height: 620px; right: -200px; top: -120px; background: rgba(129, 140, 248, 0.13); }

/* Navegación */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 56px);
  backdrop-filter: blur(14px) saturate(140%);
  background: linear-gradient(to bottom, rgba(6, 10, 20, 0.82), rgba(6, 10, 20, 0.45));
  border-bottom: 1px solid rgba(148, 163, 230, 0.07);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; }
.brand-orbits { transform-origin: 16px 15.2px; animation: spin 14s linear infinite; }
.brand-text { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.brand-lca {
  font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  text-decoration: none; color: var(--text-2); font-size: 14px;
  padding: 7px 13px; border-radius: 999px; transition: background 0.2s, color 0.2s;
}
.nav-links a:hover { background: rgba(148, 163, 230, 0.1); color: var(--text); }
.nav-links a.active { background: rgba(129, 140, 248, 0.16); color: var(--text); box-shadow: inset 0 0 0 1px rgba(129, 140, 248, 0.3); }

main { width: min(1160px, 100% - 40px); margin: 0 auto; }

/* Hero */
.hero { text-align: center; padding: clamp(56px, 11vh, 120px) 0 56px; transition: padding 0.5s; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; letter-spacing: 0.04em; color: var(--text-2);
  padding: 7px 15px 7px 12px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(14, 21, 40, 0.6);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.6); animation: pulse 2.2s infinite; }
.hero h1 {
  font-size: clamp(38px, 6.4vw, 74px); line-height: 1.02; font-weight: 700;
  margin: 26px auto 20px; max-width: 900px;
}
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 640px; margin: 0 auto 38px; font-size: clamp(16px, 1.7vw, 18.5px); color: var(--text-2); }

.scan-box {
  position: relative; display: flex; align-items: center; gap: 8px;
  max-width: 620px; margin: 0 auto; padding: 8px 8px 8px 20px;
  border-radius: 18px; background: rgba(12, 18, 36, 0.86);
  border: 1px solid var(--border-strong);
  box-shadow: 0 0 0 6px rgba(129, 140, 248, 0.05), 0 30px 80px -30px rgba(94, 234, 212, 0.25);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.scan-box::before {
  content: ""; position: absolute; inset: -1px; border-radius: 19px; padding: 1px;
  background: var(--grad); opacity: 0; transition: opacity 0.3s;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.scan-box:focus-within::before { opacity: 1; }
.scan-box:focus-within { box-shadow: 0 0 0 6px rgba(129, 140, 248, 0.1), 0 30px 80px -24px rgba(94, 234, 212, 0.35); }
.scan-box.shake { animation: shake 0.4s; }
.scan-icon { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.6; }
.scan-box input {
  flex: 1; min-width: 0; background: none; border: 0; outline: 0;
  color: var(--text); font: 500 17px var(--mono); padding: 12px 4px;
}
.scan-box input::placeholder { color: #4f5a80; }
.scan-box button {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; border-radius: 12px; padding: 13px 22px;
  font-weight: 600; font-size: 15px; color: #061018;
  background: var(--grad); background-size: 160% 100%; background-position: 0 0;
  transition: background-position 0.4s, transform 0.15s, filter 0.2s;
}
.scan-box button:hover { background-position: 100% 0; }
.scan-box button:active { transform: scale(0.97); }
.scan-box button:disabled { filter: grayscale(0.6) brightness(0.8); cursor: wait; }
.scan-box button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.examples { margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.examples button {
  margin-left: 6px; padding: 4px 11px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(14, 21, 40, 0.5);
  font: 12.5px var(--mono); color: var(--text-2); transition: border-color 0.2s, color 0.2s;
}
.examples button:hover { border-color: var(--teal); color: var(--teal); }

.trust {
  list-style: none; padding: 0; margin: 48px 0 0;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 30px;
  font-size: 13.5px; color: var(--muted);
}
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { width: 16px; height: 16px; fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Modo compacto con un análisis en curso */
body.scanning .hero { padding: 34px 0 30px; }
body.scanning .hero h1 { font-size: clamp(26px, 3.4vw, 36px); margin: 16px auto 22px; }
body.scanning .lead, body.scanning .trust, body.scanning .eyebrow { display: none; }

/* Tarjetas */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px) saturate(130%);
  padding: 26px;
}
.card h3 { font-size: 18px; font-weight: 600; }
.kicker {
  margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.center { text-align: center; }
.muted { color: var(--muted); }
.fine { font-size: 12.5px; color: var(--muted); }

/* Progreso */
.progress { max-width: 680px; margin: 0 auto 60px; animation: rise 0.45s ease both; }
.progress-card { padding: 30px; }
.progress-head { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.progress-head h2 { font-family: var(--mono); font-size: 20px; font-weight: 500; letter-spacing: 0; word-break: break-all; }
.atom { position: relative; width: 58px; height: 58px; flex: none; }
.atom span {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid rgba(94, 234, 212, 0.55); border-left-color: transparent; border-right-color: transparent;
  animation: spin 1.6s linear infinite;
}
.atom span:nth-child(1) { transform: rotateX(70deg); }
.atom span:nth-child(2) { border-color: rgba(129, 140, 248, 0.7); border-left-color: transparent; border-right-color: transparent; animation-duration: 2.1s; animation-direction: reverse; }
.atom span:nth-child(3) { border-color: rgba(192, 132, 252, 0.6); border-top-color: transparent; border-bottom-color: transparent; animation-duration: 2.6s; }
.atom i { position: absolute; inset: 24px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 18px var(--teal); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.step {
  display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 12px; color: var(--muted);
  transition: background 0.3s, color 0.3s;
}
.step.running { background: rgba(129, 140, 248, 0.07); color: var(--text); }
.step.done { color: var(--text-2); }
.step-icon { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; }
.step.pending .step-icon { border: 1.5px dashed rgba(148, 163, 230, 0.3); }
.step.running .step-icon { border: 2px solid rgba(129, 140, 248, 0.25); border-top-color: var(--indigo); animation: spin 0.8s linear infinite; }
.step.done .step-icon { background: rgba(52, 211, 153, 0.15); }
.step.done .step-icon svg { width: 12px; height: 12px; fill: none; stroke: var(--ok); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; animation: pop 0.35s ease; }
.step-detail { font: 12.5px var(--mono); color: var(--muted); text-align: right; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step.done .step-detail { color: var(--teal); animation: fade 0.4s ease; }
.progress-bar { margin-top: 20px; height: 3px; border-radius: 3px; background: rgba(148, 163, 230, 0.1); overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: var(--grad); transition: width 0.5s ease; }

/* Error */
.error-box { max-width: 680px; margin: 0 auto 60px; animation: rise 0.4s ease both; }
.error-box .card { display: flex; gap: 16px; align-items: flex-start; border-color: rgba(251, 90, 120, 0.35); }
.error-box svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--critical); stroke-width: 1.8; stroke-linecap: round; }
.error-box p { margin: 6px 0 0; color: var(--text-2); }

/* Resultados */
.results { display: grid; gap: 22px; margin-bottom: 90px; scroll-margin-top: 92px; }
.results > * { animation: rise 0.6s cubic-bezier(.2, .7, .2, 1) both; min-width: 0; }
.results > *:nth-child(2) { animation-delay: 0.05s; }
.results > *:nth-child(3) { animation-delay: 0.12s; }
.results > *:nth-child(4) { animation-delay: 0.18s; }
.results > *:nth-child(5) { animation-delay: 0.24s; }
.results > *:nth-child(6) { animation-delay: 0.3s; }
.results > *:nth-child(n+7) { animation-delay: 0.36s; }

.results-bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.results-bar h2 { font-family: var(--mono); font-weight: 500; font-size: clamp(22px, 3vw, 30px); letter-spacing: -0.01em; word-break: break-all; }
.results-bar .meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
.actions { display: flex; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 11px; font-size: 14px; font-weight: 500;
  border: 1px solid var(--border-strong); background: rgba(22, 31, 56, 0.7);
  transition: border-color 0.2s, background 0.2s;
}
.btn:hover { border-color: var(--teal); }
.btn.primary { border: 0; color: #061018; font-weight: 600; background: var(--grad); }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.grid-top { display: grid; grid-template-columns: 360px 1fr; gap: 22px; }
.score-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 30px 26px; position: relative; overflow: hidden; }
.score-card::before {
  content: ""; position: absolute; width: 300px; height: 300px; top: -40px; border-radius: 50%;
  background: radial-gradient(circle, var(--grade-glow, rgba(94, 234, 212, .18)), transparent 65%);
}
.gauge { position: relative; width: 230px; height: 230px; }
.gauge svg { width: 100%; height: 100%; transform: rotate(135deg); }
.gauge .track { fill: none; stroke: rgba(148, 163, 230, 0.1); stroke-width: 14; stroke-linecap: round; }
.gauge .value { fill: none; stroke-width: 14; stroke-linecap: round; transition: stroke-dashoffset 1.6s cubic-bezier(.2, .8, .2, 1); filter: drop-shadow(0 0 10px var(--grade-color)); }
.gauge .ticks line { stroke: rgba(148, 163, 230, 0.22); stroke-width: 1.5; }
.gauge-center { position: absolute; inset: 0; display: grid; place-content: center; }
.gauge-num { font: 700 68px/1 var(--display); letter-spacing: -0.04em; }
.gauge-of { font-size: 13px; color: var(--muted); margin-top: 4px; }
.grade-chip {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 4px;
  padding: 7px 16px 7px 7px; border-radius: 999px; font-weight: 600;
  background: color-mix(in srgb, var(--grade-color) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--grade-color) 40%, transparent);
  color: var(--grade-color);
}
.grade-letter { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--grade-color); color: #061018; font: 700 15px var(--display); }
.score-headline { margin: 16px 0 0; color: var(--text-2); font-size: 14.5px; max-width: 290px; position: relative; }
.score-label { margin-top: 18px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

.summary-card { display: flex; flex-direction: column; gap: 18px; }
.summary-card p { margin: 0; color: var(--text-2); font-size: 15.5px; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.kpi {
  display: flex; gap: 13px; align-items: center; padding: 14px 16px; border-radius: 14px;
  background: var(--panel-2); border: 1px solid var(--border);
}
.kpi-icon { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; }
.kpi-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kpi.good .kpi-icon { background: rgba(52, 211, 153, 0.12); color: var(--ok); }
.kpi.bad .kpi-icon { background: rgba(251, 90, 120, 0.12); color: var(--critical); }
.kpi.warn .kpi-icon { background: rgba(250, 204, 21, 0.12); color: var(--medium); }
.kpi.neutral .kpi-icon { background: rgba(148, 163, 230, 0.1); color: var(--text-2); }
.kpi-label { font-size: 12px; color: var(--muted); }
.kpi-value { font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.kpi-sub { font-size: 12px; color: var(--muted); }
.sev-counts { display: flex; gap: 8px; flex-wrap: wrap; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap;
  color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 32%, transparent);
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.sev-critical { --c: var(--critical); }
.sev-high { --c: var(--high); }
.sev-medium { --c: var(--medium); }
.sev-low { --c: var(--low); }
.sev-ok { --c: var(--ok); }

.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head p { margin: 0; font-size: 13.5px; color: var(--muted); }

/* Desglose */
.bars { display: grid; gap: 16px; }
.bar-row { display: grid; grid-template-columns: 250px 1fr 64px; gap: 18px; align-items: center; }
.bar-name { font-size: 14px; font-weight: 500; }
.bar-what { font-size: 12px; color: var(--muted); line-height: 1.4; }
.bar-track { height: 10px; border-radius: 10px; background: rgba(148, 163, 230, 0.09); overflow: hidden; }
.bar-fill { height: 100%; width: 0; border-radius: 10px; background: var(--grad); transition: width 1.2s cubic-bezier(.2, .8, .2, 1); }
.bar-row.na .bar-track { background: repeating-linear-gradient(135deg, rgba(148,163,230,.08) 0 6px, transparent 6px 12px); }
.bar-val { font: 500 13.5px var(--mono); text-align: right; color: var(--text-2); }

/* Línea de tiempo */
.timeline { position: relative; padding: 70px 0 64px; margin: 0 10px; }
.tl-axis { position: relative; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--teal), var(--indigo) 55%, var(--critical)); }
.tl-fog {
  position: absolute; top: 34px; bottom: 30px; right: 0; border-radius: 12px;
  background: repeating-linear-gradient(135deg, rgba(251, 90, 120, 0.07) 0 8px, transparent 8px 16px);
  border: 1px dashed rgba(251, 90, 120, 0.25);
}
.tl-fog span { position: absolute; top: -26px; right: 8px; font-size: 11.5px; color: var(--critical); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.tl-mark { position: absolute; top: 50%; transform: translate(-50%, -50%); }
.tl-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--bg-2); border: 3px solid var(--indigo); }
.tl-mark.today .tl-dot { width: 18px; height: 18px; border-color: var(--teal); box-shadow: 0 0 0 6px rgba(94, 234, 212, 0.15), 0 0 20px var(--teal); }
.tl-mark.danger .tl-dot { border-color: var(--critical); }
.tl-label { position: absolute; left: 50%; transform: translateX(-50%); width: 150px; text-align: center; font-size: 12px; line-height: 1.35; color: var(--text-2); }
.tl-label b { display: block; font: 600 14px var(--display); color: var(--text); }
.tl-mark.up .tl-label { bottom: 26px; }
.tl-mark.down .tl-label { top: 26px; }
.tl-mark.today .tl-label b { color: var(--teal); }
.tl-mark.danger .tl-label b { color: var(--critical); }

/* Hallazgos */
.findings { display: grid; gap: 10px; }
.finding { border: 1px solid var(--border); border-radius: 14px; background: var(--panel-2); overflow: hidden; transition: border-color 0.2s; }
.finding[open] { border-color: var(--border-strong); }
.finding summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 4px 1fr auto; gap: 16px; align-items: center;
  padding: 16px 18px 16px 0;
}
.finding summary::-webkit-details-marker { display: none; }
.finding .sev-rail { align-self: stretch; background: var(--c); border-radius: 0 4px 4px 0; opacity: 0.9; }
.finding-title { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.finding-sum { color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.chev { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; transition: transform 0.25s; }
.finding[open] .chev { transform: rotate(180deg); }
.finding-body { padding: 4px 22px 20px 20px; display: grid; gap: 14px; animation: fade 0.3s ease; }
.finding-body h4 { margin: 0 0 4px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.finding-body p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.snips { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #070c18; }
.snip-tabs { display: flex; gap: 2px; padding: 6px; border-bottom: 1px solid var(--border); background: rgba(14, 21, 40, 0.8); flex-wrap: wrap; }
.snip-tab { border: 0; background: none; padding: 6px 12px; border-radius: 8px; font-size: 12.5px; color: var(--muted); }
.snip-tab.active { background: rgba(129, 140, 248, 0.16); color: var(--text); }
.snip-pane { position: relative; }
.snip-pane pre { margin: 0; padding: 16px 18px; overflow-x: auto; font: 13px/1.65 var(--mono); color: #c6f6ec; }
.copy {
  position: absolute; top: 9px; right: 9px; padding: 5px 10px; border-radius: 8px; font-size: 12px;
  border: 1px solid var(--border-strong); background: rgba(22, 31, 56, 0.9); color: var(--text-2);
}
.copy:hover { color: var(--teal); border-color: var(--teal); }

/* Inventario criptográfico */
.inv-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.inv-chip {
  display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center;
  padding: 14px 16px; border-radius: 14px; background: var(--panel-2);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
}
.inv-chip b { grid-row: span 2; font: 700 32px/1 var(--display); color: var(--c); }
.inv-chip span { font-weight: 600; font-size: 14px; }
.inv-chip small { font-size: 12px; color: var(--muted); line-height: 1.3; }
.inv-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; }
.inv-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.inv-table th {
  text-align: left; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
  color: var(--muted); padding: 12px 14px; background: rgba(14, 21, 40, 0.6); border-bottom: 1px solid var(--border); white-space: nowrap;
}
.inv-table td { padding: 11px 14px; border-bottom: 1px dashed var(--border); vertical-align: top; color: var(--text-2); }
.inv-table tr:last-child td { border-bottom: 0; }
.inv-table tbody tr:hover td { background: rgba(129, 140, 248, 0.04); }
.inv-alg { color: var(--text); font-size: 13px; white-space: nowrap; }
.inv-table td small { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); line-height: 1.4; max-width: 300px; }
.inv-where { display: flex; flex-wrap: wrap; gap: 4px; }
.inv-where .chip { font-size: 11px; padding: 2px 7px; }
.inv-prio { font-weight: 600; white-space: nowrap; }
.inv-table .inv-broken { color: var(--critical); }
.inv-table .inv-classic { color: var(--high); }
.inv-table .inv-symmetric, .inv-table .inv-hash { color: var(--muted); }
.inv-table .inv-pq { color: var(--ok); }
.inv-foot { margin: 14px 0 0; }

/* Plan */
.plan { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.phase { position: relative; padding: 22px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--border); }
.phase::before { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 2px; background: var(--phase-c); border-radius: 2px; }
.phase:nth-child(1) { --phase-c: var(--critical); }
.phase:nth-child(2) { --phase-c: var(--indigo); }
.phase:nth-child(3) { --phase-c: var(--teal); }
.phase-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; gap: 8px; }
.phase-h h4 { margin: 0; font: 600 16px var(--display); }
.phase-h span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.phase ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.phase li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; font-size: 13.5px; color: var(--text-2); line-height: 1.45; }
.phase li::before { content: ""; width: 12px; height: 12px; margin-top: 3px; border-radius: 4px; border: 1.5px solid var(--phase-c); }

/* Detalle técnico */
.tech { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tech-box { padding: 20px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--border); min-width: 0; }
.tech-box h4 { margin: 0 0 14px; font: 600 15px var(--display); display: flex; align-items: center; gap: 9px; }
.tech-box h4 svg { width: 17px; height: 17px; fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip { font: 500 12px var(--mono); padding: 4px 10px; border-radius: 8px; border: 1px solid var(--border); color: var(--muted); }
.chip.good { color: var(--ok); border-color: rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.07); }
.chip.bad { color: var(--critical); border-color: rgba(251, 90, 120, 0.35); background: rgba(251, 90, 120, 0.07); }
.chip.off { text-decoration: line-through; opacity: 0.55; }
dl.kv { margin: 0; display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px; font-size: 13.5px; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; font-family: var(--mono); font-size: 12.5px; color: var(--text-2); word-break: break-word; }
.grp { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.grp:last-child { border-bottom: 0; }
.grp .mono { font-size: 12.5px; }
.yes { color: var(--ok); font-weight: 700; }
.no { color: #4f5a80; font-weight: 700; }
.tag { font-size: 11px; padding: 2px 8px; border-radius: 6px; background: rgba(148, 163, 230, 0.1); color: var(--muted); }

/* Alcance */
.score-label span { letter-spacing: 0.1em; color: var(--teal); }
.scope-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.scope-col { padding: 18px 20px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--border); }
.scope-col h4 { margin: 0 0 12px; font: 600 15px var(--display); }
.scope-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.scope-col li { display: grid; grid-template-columns: 20px 1fr; gap: 6px; font-size: 13.5px; color: var(--text-2); }
.scope-col li::before { font-weight: 700; }
.scope-col.seen h4 { color: var(--ok); }
.scope-col.seen li::before { content: "✓"; color: var(--ok); }
.scope-col.unseen h4 { color: var(--muted); }
.scope-col.unseen li::before { content: "?"; color: var(--muted); }
.scope-note { margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; font-size: 13.5px; color: var(--text-2); background: rgba(129, 140, 248, 0.08); border-left: 3px solid var(--indigo); }
.scope-note b { color: var(--text); }

/* Llamado a la acción */
.cta {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px;
  background: linear-gradient(120deg, rgba(94, 234, 212, 0.10), rgba(129, 140, 248, 0.12) 50%, rgba(192, 132, 252, 0.10));
  border-color: rgba(129, 140, 248, 0.3);
}
.cta h3 { font-size: 22px; margin-bottom: 6px; }
.cta p { margin: 0; color: var(--text-2); }
.disclaimer { text-align: center; font-size: 12.5px; color: var(--muted); max-width: 760px; margin: 0 auto; }

/* Vistas (secciones del sitio) */
.view { animation: fade 0.35s ease; }
.view > section { margin-bottom: 26px; }
.page-head { text-align: center; padding: 56px 0 18px; }
.page-head h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; margin: 6px auto 16px; max-width: 820px; }
.page-head .lead { margin-bottom: 10px; }
.section-title { font-size: clamp(22px, 2.6vw, 30px); margin: 18px 0 8px; }
.section-sub { color: var(--text-2); margin: 0 0 18px; max-width: 820px; }
.card-title { font-size: 20px; margin-bottom: 14px; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 860px; margin: 44px auto 0; }
.pillar {
  display: grid; gap: 4px; padding: 16px 18px; border-radius: 14px; text-decoration: none; text-align: left;
  background: rgba(14, 21, 40, 0.55); border: 1px solid var(--border); transition: border-color 0.2s, transform 0.2s;
}
.pillar:hover { border-color: var(--teal); transform: translateY(-2px); }
.pillar b { font: 600 15px var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pillar span { font-size: 13px; color: var(--text-2); }
body.scanning .pillars { display: none; }

.example-hero { display: grid; grid-template-columns: 96px 1fr; gap: 26px; align-items: start; padding: 32px; }
.example-icon { width: 96px; height: 96px; border-radius: 24px; display: grid; place-items: center; background: rgba(94, 234, 212, 0.08); border: 1px solid rgba(94, 234, 212, 0.25); }
.example-icon svg { width: 52px; height: 52px; fill: none; stroke: var(--teal); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.example-hero h2 { margin-bottom: 12px; }
.example-hero p { color: var(--text-2); margin: 0 0 12px; }
.example-moral { font: 600 18px var(--display); color: var(--text) !important; margin: 16px 0 0 !important; }

.examples-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.ex { display: flex; flex-direction: column; gap: 8px; padding: 22px; }
.ex-years { font: 700 26px var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ex h3 { font-size: 16px; }
.ex p { margin: 0; color: var(--text-2); font-size: 13.5px; flex: 1; }
.ex-risk { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.ex-risk.high { color: var(--high); background: rgba(251, 146, 60, 0.12); }
.ex-risk.mid { color: var(--medium); background: rgba(250, 204, 21, 0.12); }
.ex-risk.low { color: var(--ok); background: rgba(52, 211, 153, 0.12); }

/* Línea de tiempo vertical (página «Por qué ahora») */
.vtl { list-style: none; margin: 0; padding: 0 0 0 8px; position: relative; }
.vtl::before { content: ""; position: absolute; left: 157px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--teal), var(--indigo) 50%, var(--critical)); opacity: 0.6; }
.vtl-item { display: grid; grid-template-columns: 136px 1fr; gap: 40px; position: relative; padding: 0 0 22px; }
.vtl-item::before {
  content: ""; position: absolute; left: 143px; top: 6px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg-2); border: 3px solid var(--indigo);
}
.vtl-item.done::before { background: var(--indigo); }
.vtl-item.now::before { border-color: var(--teal); background: var(--teal); box-shadow: 0 0 0 6px rgba(94, 234, 212, 0.15), 0 0 18px var(--teal); }
.vtl-item.warn::before { border-color: var(--high); }
.vtl-item.danger::before { border-color: var(--critical); }
.vtl-date { font: 600 15px var(--display); text-align: right; color: var(--text-2); padding-top: 2px; }
.vtl-item.now .vtl-date { color: var(--teal); }
.vtl-item.danger .vtl-date { color: var(--critical); }
.vtl-item > div { padding: 16px 20px; border-radius: 14px; background: var(--panel); border: 1px solid var(--border); backdrop-filter: blur(12px); }
.vtl-item.now > div { border-color: rgba(94, 234, 212, 0.4); }
.vtl-item h3 { font-size: 16px; margin-bottom: 6px; }
.vtl-item p { margin: 0 0 10px; color: var(--text-2); font-size: 14px; }
.vtl-tag { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; color: var(--indigo); background: rgba(129, 140, 248, 0.12); }
.vtl-tag.us { color: var(--muted); background: rgba(148, 163, 230, 0.1); }
.vtl-item.now .vtl-tag { color: var(--teal); background: rgba(94, 234, 212, 0.12); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.checks, .crosses { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li, .crosses li { position: relative; padding-left: 28px; color: var(--text-2); font-size: 14px; }
.checks li::before, .crosses li::before { position: absolute; left: 2px; top: 0; font-weight: 700; }
.checks li::before { content: "✓"; color: var(--ok); }
.crosses li::before { content: "✕"; color: var(--critical); }
.crosses b { color: var(--text); }
.not-card { border-color: rgba(251, 90, 120, 0.25); }

.source-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.source-list a {
  display: block; padding: 12px 16px; border-radius: 12px; text-decoration: none; font-size: 14px; color: var(--text-2);
  background: var(--panel-2); border: 1px solid var(--border); transition: border-color 0.2s, color 0.2s;
}
.source-list a::after { content: " ↗"; color: var(--teal); }
.source-list a:hover { border-color: var(--teal); color: var(--text); }
.source-list b { color: var(--text); }

.cta-band { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; text-decoration: none;
  background: linear-gradient(120deg, rgba(94, 234, 212, 0.10), rgba(129, 140, 248, 0.12) 50%, rgba(192, 132, 252, 0.10)); }
.cta-band h2 { font-size: 22px; margin-bottom: 6px; }
.cta-band p { margin: 0; color: var(--text-2); }
.cta-band .btn { text-decoration: none; white-space: nowrap; }

/* Casos de estudio */
.cases { display: grid; gap: 18px; }
.case { border-top: 3px solid var(--c); }
.case-head { display: flex; gap: 20px; align-items: center; margin-bottom: 18px; }
.case-head h2 { font-size: 22px; }
.case-sub { margin: 2px 0 0; color: var(--muted); }
.case-grade {
  width: 86px; height: 86px; flex: none; border-radius: 50%; display: grid; place-content: center; text-align: center;
  border: 3px solid var(--c); box-shadow: 0 0 24px color-mix(in srgb, var(--c) 30%, transparent);
}
.case-grade b { font: 700 32px/1 var(--display); color: var(--c); }
.case-grade span { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.case-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.case h3 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.case .plainlist { color: var(--text-2); font-size: 14px; display: grid; gap: 6px; }
.case .checks, .case .crosses { gap: 8px; }
.case .checks + .crosses { margin-top: 8px; }
.plain-box {
  margin-top: 18px; padding: 14px 18px; border-radius: 12px; font-size: 14.5px; color: var(--text);
  background: rgba(94, 234, 212, 0.07); border-left: 3px solid var(--teal);
}
.plainlist { margin: 0; padding-left: 18px; }

/* Privacidad y términos */
.legal h3 { font-size: 14px; margin: 18px 0 8px; color: var(--text); }
.legal p { color: var(--text-2); font-size: 14px; margin: 0 0 8px; }
.legal-contact a, .footer a { color: var(--teal); }

/* Explicado simple */
.glossary { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.gl { padding: 22px; }
.gl-emoji { font-size: 28px; line-height: 1; }
.gl h3 { font-size: 16px; margin: 12px 0 8px; }
.gl p { margin: 0; color: var(--text-2); font-size: 14px; }
.gl b { color: var(--high); font-weight: 600; }
.faq { display: grid; gap: 10px; }
.faq-item { padding: 0; }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 600; font-size: 15.5px; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--teal); font-size: 20px; line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0; padding: 0 22px 20px; color: var(--text-2); }

/* Pestañas del informe */
.tabs {
  position: sticky; top: 68px; z-index: 10; display: flex; gap: 4px; padding: 6px; overflow-x: auto;
  border-radius: 14px; background: rgba(10, 16, 32, 0.88); border: 1px solid var(--border); backdrop-filter: blur(14px);
}
.tab {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  border: 0; background: none; padding: 9px 16px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--text-2);
  transition: background 0.2s, color 0.2s;
}
.tab:hover { color: var(--text); background: rgba(148, 163, 230, 0.08); }
.tab.active { color: #061018; background: var(--grad); font-weight: 600; }
.tab-n { font-size: 11.5px; padding: 1px 7px; border-radius: 999px; background: rgba(148, 163, 230, 0.16); }
.tab.active .tab-n { background: rgba(6, 16, 24, 0.2); }
.pane { display: none; gap: 22px; }
.pane.active { display: grid; animation: fade 0.3s ease; }
button.pill { font-family: inherit; cursor: pointer; }
.link-btn { border: 0; background: none; color: var(--teal); font-size: 13px; font-weight: 600; padding: 3px 4px; }
.link-btn:hover { text-decoration: underline; }

/* Avisos de validación */
.notice {
  display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start;
  padding: 14px 18px; border-radius: 14px; font-size: 13.5px; color: var(--text-2);
  background: rgba(250, 204, 21, 0.06); border: 1px solid rgba(250, 204, 21, 0.28);
}
.notice svg { width: 20px; height: 20px; fill: none; stroke: var(--medium); stroke-width: 2; stroke-linecap: round; margin-top: 1px; }
.notice b { color: var(--text); }
.plain { padding: 14px 16px; border-radius: 12px; background: rgba(94, 234, 212, 0.07); border-left: 3px solid var(--teal); }
.plain h4 { color: var(--teal) !important; }
.plain p { color: var(--text) !important; }
.snip-notice { padding: 10px 14px; font-size: 12.5px; color: var(--medium); background: rgba(250, 204, 21, 0.06); border-bottom: 1px solid var(--border); }

/* Secciones informativas */
.info { padding: 70px 0 10px; scroll-margin-top: 10px; }
.info h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 34px; }
.hndl { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; padding: 40px; }
.hndl h2 { margin-bottom: 16px; }
.hndl p { color: var(--text-2); margin: 0 0 12px; }
.hndl-visual { display: grid; gap: 22px; }
.hndl-row { display: grid; grid-template-columns: 56px 1fr 110px; align-items: center; gap: 12px; font-size: 12.5px; }
.hndl-year { font: 600 13px var(--display); color: var(--teal); }
.hndl-row.future .hndl-year { color: var(--critical); }
.hndl-line { position: relative; height: 2px; background: linear-gradient(90deg, rgba(94,234,212,.5), rgba(129,140,248,.5)); }
.hndl-row.future .hndl-line { background: linear-gradient(90deg, rgba(251,90,120,.2), rgba(251,90,120,.7)); }
.packet { position: absolute; top: -4px; width: 10px; height: 10px; border-radius: 3px; background: var(--indigo); box-shadow: 0 0 12px var(--indigo); animation: travel 3s linear infinite; }
.packet:nth-child(2) { animation-delay: 1s; }
.packet:nth-child(3) { animation-delay: 2s; }
.unlock { position: absolute; top: -5px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--critical); box-shadow: 0 0 14px var(--critical); animation: travel 3s ease-in infinite 1.5s; }
.hndl-vault { text-align: center; padding: 8px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--panel-2); color: var(--text-2); }
.hndl-vault.open { border-color: rgba(251, 90, 120, 0.4); color: var(--critical); }

.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.how { position: relative; overflow: hidden; transition: transform 0.3s, border-color 0.3s; }
.how:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.how-n { font: 700 46px/1 var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0.85; }
.how h3 { margin: 18px 0 10px; }
.how p { margin: 0; color: var(--text-2); font-size: 14.5px; }

.method { padding: 30px; }
.method-rows { display: grid; gap: 14px; margin-bottom: 24px; }
.m-row { display: grid; grid-template-columns: 260px 1fr 52px; gap: 18px; align-items: center; }
.m-row b { font-weight: 600; font-size: 14.5px; }
.m-row small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.m-bar { height: 8px; border-radius: 8px; background: rgba(148, 163, 230, 0.09); overflow: hidden; }
.m-bar span { display: block; height: 100%; background: var(--grad); border-radius: 8px; }
.m-pts { font: 600 14px var(--mono); text-align: right; color: var(--teal); }
.grades { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.g { padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; border: 1px solid; }
.g-A { color: var(--ok); border-color: rgba(52, 211, 153, .35); }
.g-B { color: var(--teal); border-color: rgba(94, 234, 212, .35); }
.g-C { color: var(--medium); border-color: rgba(250, 204, 21, .35); }
.g-D { color: var(--high); border-color: rgba(251, 146, 60, .35); }
.g-E { color: var(--critical); border-color: rgba(251, 90, 120, .35); }

.footer {
  width: min(1160px, 100% - 40px); margin: 80px auto 0; padding: 28px 0 40px;
  border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--text-2);
}

#toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0;
  padding: 10px 18px; border-radius: 12px; font-size: 13.5px; pointer-events: none;
  background: var(--panel-solid); border: 1px solid var(--border-strong); box-shadow: var(--shadow);
  transition: opacity 0.25s, transform 0.25s;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

.print-only { display: none; }

/* Animaciones */
@keyframes spin { to { transform: rotate(360deg); } }
.atom span:nth-child(1) { animation-name: spin-x; }
@keyframes spin-x { from { transform: rotateX(70deg) rotate(0); } to { transform: rotateX(70deg) rotate(360deg); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.55); } 70% { box-shadow: 0 0 0 10px rgba(94, 234, 212, 0); } 100% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
@keyframes travel { from { left: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { left: calc(100% - 10px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Responsive */
@media (max-width: 960px) {
  .grid-top, .hndl, .scope-grid, .two-col, .cta-band, .case-cols { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .plan, .how-grid { grid-template-columns: 1fr; }
  .tech { grid-template-columns: 1fr; }
  .bar-row, .m-row { grid-template-columns: 1fr 56px; }
  .bar-row .bar-track, .m-row .m-bar { grid-column: 1 / -1; grid-row: 2; }
  .cta { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 16px; }
  .nav-links { overflow-x: auto; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { font-size: 13px; padding: 6px 11px; white-space: nowrap; }
  .tabs { top: 104px; }
  .vtl::before { left: 9px; }
  .vtl-item { grid-template-columns: 1fr; gap: 6px; padding-left: 34px; }
  .vtl-item::before { left: 2px; }
  .vtl-date { text-align: left; }
  .example-hero { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr; }
  .scan-box { padding-left: 14px; }
  .scan-box button span { display: none; }
  .timeline { transform: scale(0.85); margin: 0 -20px; }
  .tl-label { width: 100px; }
}

/* Informe impreso / PDF */
@media print {
  @page { size: A4; margin: 14mm 12mm; }
  :root {
    --text: #0d1326; --text-2: #2f3854; --muted: #5d6685;
    --panel: #fff; --panel-2: #f6f7fb; --border: #dfe3ef; --border-strong: #cdd3e6;
  }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { background: #fff; color: var(--text); font-size: 12px; }
  #lattice, .glow, .nav, .hero, .info, .footer, #progress, #error, .actions, #toast, .copy, .snip-tabs, .no-print { display: none !important; }
  main { width: 100%; }
  .print-only { display: block; }
  .results { gap: 14px; margin: 0; }
  .results > * { animation: none !important; }
  .card { box-shadow: none; backdrop-filter: none; background: #fff; padding: 18px; break-inside: avoid; }
  .pane { display: grid !important; gap: 14px; }
  .pane + .pane, .pane + .notice { margin-top: 6px; }
  .pane-title { font: 600 17px var(--display); margin: 8px 0 0; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
  .link-btn, .tabs { display: none !important; }
  .notice { background: #fffbea; border-color: #e9d27a; break-inside: avoid; }
  .plain { background: #eefaf7; }
  .finding, .phase, .tech-box, .inv-table tr { break-inside: avoid; }
  .inv-table-wrap { overflow: visible; }
  .inv-table th { background: #f0f2f8; }
  .grid-top { grid-template-columns: 250px 1fr; }
  .gauge { width: 170px; height: 170px; }
  .gauge-num { font-size: 50px; }
  .gauge .value { filter: none; transition: none; }
  .bar-fill { transition: none; }
  .snips { background: #f6f7fb; }
  .snip-pane[hidden] { display: block !important; }
  .snip-pane pre { color: #10304a; white-space: pre-wrap; }
  .snip-pane::before { content: attr(data-label); display: block; padding: 8px 18px 0; font-size: 11px; color: var(--muted); }
  .timeline { padding: 58px 0 52px; }
  .tl-dot { background: #fff; }
  .cta { background: #f6f7fb; }
  .report-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 2px solid #0d1326; margin-bottom: 4px; }
  .report-head .brand-text { font-size: 16px; color: #0d1326; }
  .report-head .rh-title { font: 600 18px var(--display); }
}
