/* Forsvar landing — design system */
:root {
  --bg: #F9F9F9;
  --paper: #EFEEE8;
  --ink: #223350;
  --ink-2: #2c4063;
  --neutral: #35373E;
  --neutral-2: #5a5d68;
  --neutral-3: #9a9ca5;
  --line: #1f2a3d1a;
  --line-strong: #1f2a3d33;
  --accent: #CC9E37;
  --accent-soft: #cc9e3722;
  --on-ink: #f6f4ee;
  --on-ink-dim: #c2c8d4;
  --on-ink-line: #ffffff1a;
  --radius: 4px;
  --radius-lg: 10px;
  --max: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Montserrat Alternates', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--neutral);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============ Wordmark ============ */
.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
}
.wordmark.on-dark { color: #fff; }

/* ============ Type ============ */
.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--neutral-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.kicker .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.on-ink .kicker { color: var(--on-ink-dim); }

h1, h2, h3, h4 { color: var(--ink); margin: 0; font-weight: 600; letter-spacing: -0.02em; }
.on-ink h1, .on-ink h2, .on-ink h3, .on-ink h4 { color: #fff; }

h1.display {
  font-size: clamp(44px, 6.4vw, 88px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.035em;
}
.hero-headline {
  max-width: 22ch;
  font-size: clamp(48px, 7.2vw, 104px);
  line-height: 1.0;
}
.hero-headline-narrow {
  max-width: 13ch;
}
.hero-headline .hero-line-2 {
  /* Escala con el h1 (clamp): antes 66px fijo ~63.5% del máx 104px del bloque principal */
  font-size: 0.635em;
  line-height: 1.05;
  display: inline-block;
  color: var(--neutral-2);
}
.hero-lower {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  margin-top: clamp(40px, 5vw, 64px);
}
@media (max-width: 980px) { .hero-lower { grid-template-columns: 1fr; } }
.hero-lower > * {
  min-width: 0;
}
h2.section {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
h3.card-title {
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.lead { font-size: clamp(16px, 1.3vw, 19px); color: var(--neutral-2); max-width: 60ch; }
.on-ink .lead { color: var(--on-ink-dim); }

.accent-mark { color: var(--accent); }
.ink-mark { color: var(--ink); }
.underline-mark {
  background-image: linear-gradient(transparent 78%, var(--accent-soft) 78% 96%, transparent 96%);
  padding: 0 0.05em;
}

/* ============ Typed cursor ============ */
.typed-cursor {
  display: inline-block;
  width: 3px;
  background: currentColor;
  margin-left: 6px;
  vertical-align: baseline;
  height: 0.85em;
  animation: typed-blink 0.6s steps(1) infinite;
}
@keyframes typed-blink {
  0%, 49.9% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 15px;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #1a2942; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.on-ink .btn-primary { background: var(--accent); color: #1a1a1a; }
.on-ink .btn-primary:hover { background: #e0b145; }
.on-ink .btn-ghost { color: #fff; border-color: var(--on-ink-line); }
.on-ink .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #223350;
  border-bottom: 1px solid #ffffff14;
}
.site-header .container.row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  min-width: 0;
  gap: 12px;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.header-leading {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:hover { background: #ffffff12; }
.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Tres barras → icono cerrar vía transform */
.nav-toggle-bars {
  position: relative;
  display: block;
  width: 20px;
  height: 14px;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.2s ease, top 0.2s ease, bottom 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { bottom: 0; }
.nav-toggle-bars {
  background: linear-gradient(currentColor, currentColor) center/100% 2px no-repeat;
  transition: background-size 0.2s ease;
}

.nav-toggle--open .nav-toggle-bars {
  background-size: 0 0, 0 0;
}
.nav-toggle--open .nav-toggle-bars::before {
  top: 6px;
  transform: rotate(45deg);
}
.nav-toggle--open .nav-toggle-bars::after {
  bottom: 6px;
  transform: rotate(-45deg);
}

.nav-backdrop {
  display: none;
}

.nav { display: flex; align-items: center; gap: 6px; }
.nav-item {
  position: relative;
  padding: 10px 14px;
  font-size: 14px;
  color: #c2c8d4;
  border-radius: 6px;
  display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer;
}
.nav-item:hover { background: #ffffff10; color: #fff; }
.nav-item .chev { width: 10px; height: 10px; opacity: .55; transition: transform .2s ease; }
.nav-item[data-open="true"] .chev { transform: rotate(180deg); }
.lang-pill {
  margin-left: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  padding: 6px 10px;
  border: 1px solid #ffffff22;
  border-radius: 999px;
  display: inline-flex; gap: 8px;
}
.lang-pill button {
  background: transparent; border: 0; padding: 2px 4px; color: #ffffff66;
}
.lang-pill button.active { color: #fff; }

.megamenu {
  position: absolute;
  top: 64px;
  left: 50%;
  transform: translateX(calc(-50% + var(--megamenu-shift, 0px))) translateY(-6px);
  width: min(960px, 92vw);
  background: #223350;
  border: 1px solid #ffffff14;
  border-radius: 14px;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.4);
  padding: 22px;
  display: none;
  opacity: 0;
  transition: opacity .15s ease, transform .15s ease;
}
.nav-item[data-open="true"] .megamenu {
  display: grid;
  opacity: 1;
  transform: translateX(calc(-50% + var(--megamenu-shift, 0px))) translateY(0);
}
.megamenu .col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--neutral-3);
  text-transform: uppercase;
  margin-bottom: 12px;
}
/* El título de columna como enlace no debe usar el padding de .megamenu a (desalineaba columnas) */
.megamenu a.col-title {
  padding: 0;
  border-radius: 0;
}
.megamenu a.col-title:hover {
  background: transparent;
  color: #e0b145;
}
.megamenu { color: #c2c8d4; border-color: #ffffff14; }
.megamenu .col-title { color: #e0b145; }
.megamenu a:hover { background: #ffffff10; color: #fff; }
.megamenu a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  margin: 0;
}
.megamenu a strong { display: block; color: #fff; font-weight: 500; margin-bottom: 2px; }
.megamenu a span { color: #ffffff80; font-size: 12px; }

@media (max-width: 1023px) {
  .site-header { z-index: 100; }
  .nav-toggle { display: inline-flex; }
  .nav-backdrop {
    display: block;
    position: fixed;
    top: 69px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(15, 22, 38, 0.45);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .nav {
    position: fixed;
    z-index: 1;
    left: 0;
    right: 0;
    top: 69px;
    bottom: 0;
    padding: 12px max(var(--gutter), env(safe-area-inset-left, 0px)) 24px max(var(--gutter), env(safe-area-inset-right, 0px));
    padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow-y: auto;
    background: #223350;
    border-top: 1px solid #ffffff18;
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.25);
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .nav.nav--open {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
  }
  .nav-item {
    flex-wrap: wrap;
    align-items: center;
    padding: 14px 12px;
    border-radius: 8px;
    width: 100%;
  }
  .lang-pill {
    margin-left: 0;
    margin-top: 16px;
    align-self: flex-start;
  }
  .megamenu {
    position: static;
    left: auto;
    top: auto;
    width: 100%;
    max-width: none;
    transform: none;
    margin-top: 8px;
    padding: 14px;
    border-radius: 10px;
    box-shadow: none;
    grid-template-columns: 1fr !important;
  }
  .nav-item[data-open="true"] .megamenu {
    display: grid;
    transform: none;
    opacity: 1;
  }
  .megamenu a span { font-size: 11px; line-height: 1.35; }
}

/* ============ Sections ============ */
section { padding: clamp(72px, 9vw, 140px) 0; }
.section-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head.center {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}
.section-head .lead { margin-top: 20px; }
@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; gap: 18px; align-items: start; }
}

/* On-ink section */
.on-ink {
  background: var(--ink);
  color: var(--on-ink);
}
.on-ink * { border-color: var(--on-ink-line); }
.on-paper { background: var(--paper); }

/* ============ Hero ============ */
.hero {
  padding-top: clamp(48px, 7vw, 90px);
  padding-bottom: clamp(40px, 5vw, 60px);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero-lower-left {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
}
.hero h1 .line { display: block; }
.hero h1 .line-2 { color: var(--neutral-2); }
.hero-sub {
  margin-top: 28px;
  font-size: 18px;
  color: var(--neutral-2);
  max-width: min(46ch, 100%);
  min-width: 0;
}
.hero-cta {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
  min-width: 0;
}
.hero-meta {
  margin-top: 56px;
  display: flex; flex-wrap: wrap; gap: 36px 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-meta .item { max-width: 22ch; }
@media (max-width: 640px) {
  .hero-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
  .hero-meta .item {
    max-width: min(22ch, 100%);
    min-width: 0;
  }
  .hero-meta .item:nth-child(1) { order: 1; }
  .hero-meta .item:nth-child(2) { order: 3; }
  .hero-meta .item:nth-child(3) { order: 2; }
}
.hero-meta .num {
  font-family: var(--font-display);
  font-size: 36px; font-weight: 600; color: var(--ink);
  letter-spacing: -0.02em; line-height: 1;
}
.hero-meta .lbl { margin-top: 8px; font-size: 13px; color: var(--neutral-2); }

/* Hero visual: layered dashboard */
.hero-visual {
  position: relative;
  aspect-ratio: 4/3;
  min-height: 420px;
  width: 100%;
}
.dash-card {
  position: absolute;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 30px 60px -25px rgba(20,30,55,0.22), 0 1px 0 #1f2a3d10;
  border: 1px solid var(--line);
  overflow: hidden;
}
.dash-card.front { inset: 8% 0 0 12%; transform: rotate(-1.2deg); z-index: 2; }
.dash-card.back  { inset: 0 12% 14% 0; transform: rotate(1.5deg); z-index: 1; opacity: .96; }
.dash-card img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }

.hero-decor {
  position: absolute;
  right: -6%;
  top: 4%;
  width: 38%;
  height: 92%;
  pointer-events: none;
  opacity: .7;
}

/* Decorative bar pattern (inspired by, but distinct from, logo geometry) */
.bar-pattern {
  width: 100%; height: 100%;
  background-image: repeating-linear-gradient(
    180deg,
    var(--accent) 0 2px,
    transparent 2px 14px
  );
  mask-image: linear-gradient(180deg, transparent 0%, #000 40%, #000 80%, transparent 100%);
}

/* ============ Cards / grids ============ */
.cards-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 980px) {
  .cards-3 { grid-template-columns: 1fr; }
  .cards-2 { grid-template-columns: 1fr; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; flex-direction: column;
  min-height: 220px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 16px 40px -22px rgba(20,30,55,0.18);
}
.card .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.card p { color: var(--neutral-2); font-size: 14.5px; line-height: 1.55; margin: 10px 0 0; }
.card .foot {
  margin-top: auto;
  padding-top: 22px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--neutral-3);
}

.on-ink .card {
  background: #ffffff08;
  border-color: var(--on-ink-line);
}
.on-ink .card:hover { background: #ffffff10; border-color: #ffffff30; }
.on-ink .card p { color: var(--on-ink-dim); }
.on-ink .card .foot { color: var(--on-ink-dim); }

/* ============ Capabilities (icon-less feature list) ============ */
.feat-row-v2 {
  padding: clamp(48px, 6vw, 80px) 0;
  border-top: 1px solid var(--line);
}
.on-ink .feat-row-v2 { border-top-color: var(--on-ink-line); }
.feat-head { max-width: 60ch; margin-bottom: 32px; }
.feat-head h3 {
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.feat-body {
  display: flex;
  gap: clamp(28px, 4vw, 64px);
  align-items: flex-start;
}
.feat-text { flex: 1 1 0; min-width: 0; }
.feat-media { flex: 1.1 1 0; min-width: 0; align-self: stretch; display: flex; }
.feat-media > * { width: 100%; }
.feat-text p { color: var(--neutral-2); font-size: 16px; max-width: 56ch; margin: 0; }
.on-ink .feat-text p { color: var(--on-ink-dim); }
@media (max-width: 900px) {
  .feat-body { flex-direction: column !important; }
}
.feat-bullets {
  margin-top: 22px;
  display: grid; gap: 10px;
}
.feat-bullets li {
  list-style: none;
  display: grid; grid-template-columns: 24px 1fr;
  gap: 10px;
  font-size: 14.5px;
  padding: 8px 0;
  border-top: 1px dashed var(--line);
}
.feat-bullets li:first-child { border-top: 0; padding-top: 0; }
.on-ink .feat-bullets li { border-top-color: var(--on-ink-line); }
.feat-bullets .tick {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0;
  margin-top: 2px;
}

/* ============ Industry chips ============ */
.chip-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 900px) { .chip-grid { grid-template-columns: repeat(2, 1fr); } }
.chip {
  background: var(--bg);
  padding: 28px 22px;
  min-height: 120px;
  display: flex; flex-direction: column; justify-content: space-between;
  cursor: pointer; transition: background .2s ease;
}
.chip:hover { background: #fff; }
.chip .name { font-weight: 500; color: var(--ink); font-size: 16px; }
.chip .meta { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; color: var(--neutral-3); text-transform: uppercase; }

/* ============ FAQ ============ */
.faq-item {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
  font-size: 19px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.faq-q .plus {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  font-size: 16px; color: var(--ink);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.faq-item[data-open="true"] .plus { transform: rotate(45deg); background: var(--ink); color: #fff; border-color: var(--ink); }
.faq-a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .25s ease;
}
.faq-a > div { overflow: hidden; }
.faq-item[data-open="true"] .faq-a { grid-template-rows: 1fr; }
.faq-item[data-open="true"] .faq-a > div { padding-top: 14px; }
.faq-a p { color: var(--neutral-2); margin: 0; font-size: 15.5px; max-width: 70ch; }

/* ============ Blog ============ */
.blog-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.blog-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.blog-card .thumb {
  aspect-ratio: 16/10;
  background: var(--paper);
  position: relative;
  overflow: hidden;
}
.blog-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-card .body { padding: 22px 24px 26px; }
.blog-card .meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--neutral-3); text-transform: uppercase; }
.blog-card h3 { font-size: 19px; margin-top: 8px; line-height: 1.25; }
.blog-card .read { margin-top: 18px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--ink); text-transform: uppercase; }

/* ============ CTA ============ */
.cta-wrap {
  background: var(--ink);
  color: var(--on-ink);
  border-radius: 18px;
  padding: clamp(48px, 6vw, 80px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-wrap::before {
  content: "";
  position: absolute; right: -10%; top: -20%;
  width: 60%; height: 140%;
  background: radial-gradient(closest-side, var(--accent-soft), transparent);
}
@media (max-width: 820px) { .cta-wrap { grid-template-columns: 1fr; } }
.cta-wrap h2 { color: #fff; }
.cta-wrap p { color: var(--on-ink-dim); margin-top: 14px; max-width: 50ch; }
.cta-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; position: relative; z-index: 1; }
@media (max-width: 820px) { .cta-actions { justify-content: flex-start; } }

/* ============ Footer ============ */
.site-footer {
  background: var(--ink);
  color: var(--on-ink-dim);
  padding: 64px 0 32px;
}
.site-footer .grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 900px) {
  .site-footer .grid { grid-template-columns: 1fr 1fr; }
}
.site-footer h4 {
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 500;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--on-ink-dim); font-size: 14px; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-see-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.site-footer .footer-see-all .arrow { flex-shrink: 0; }
.site-footer .baseline {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--on-ink-line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12.5px;
  font-family: var(--font-mono);
  letter-spacing: .08em;
  color: var(--on-ink-dim);
}

/* ============ Marquee / logo strip ============ */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  background: var(--bg);
}
.strip .row {
  display: flex; align-items: center; justify-content: space-between; gap: 36px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; color: var(--neutral-3);
  text-transform: uppercase;
  flex-wrap: wrap;
}
.strip .row span { white-space: nowrap; }

/* ============ Marquee for FAQ category etc ============ */
.tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--neutral-2);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 12px;
  display: inline-block;
}
.on-ink .tag { color: var(--on-ink-dim); border-color: var(--on-ink-line); }

/* ============ Pipeline visual ============ */
.pipeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid var(--on-ink-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 40px;
}
@media (max-width: 900px) { .pipeline { grid-template-columns: 1fr 1fr; } }
.pipeline .step {
  padding: 24px 22px 28px;
  border-right: 1px solid var(--on-ink-line);
  position: relative;
  min-height: 180px;
}
.pipeline .step:last-child { border-right: 0; }
.pipeline .step .n {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .16em;
  color: var(--accent);
  text-transform: uppercase;
}
.pipeline .step .t {
  color: #fff; margin-top: 16px; font-size: 18px; font-weight: 500; letter-spacing: -0.01em;
}
.pipeline .step .d { color: var(--on-ink-dim); margin-top: 10px; font-size: 13.5px; line-height: 1.55; }

/* ============ KYC Visual ============ */
.kyc-visual {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  min-height: 360px;
  font-family: var(--font-sans);
  position: relative;
  overflow: hidden;
}
.kyc-visual::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, transparent 0 22px, #1f2a3d04 22px 23px);
  pointer-events: none;
}
.kyc-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--neutral-3);
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
  position: relative;
}
.kyc-status { color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.kyc-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-soft);
  animation: kyc-pulse 1.6s ease-in-out infinite;
}
@keyframes kyc-pulse {
  0% { box-shadow: 0 0 0 0 var(--accent-soft); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.kyc-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr 1.1fr;
  gap: 10px;
  flex: 1;
  position: relative;
}
@media (max-width: 1100px) {
  .kyc-grid { grid-template-columns: 1fr 1fr; }
  .kyc-decision { grid-column: span 2; }
}
.kyc-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: flex; flex-direction: column;
  gap: 10px;
  position: relative;
}
.kyc-card-label {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}

/* Doc */
.kyc-doc-body { display: flex; flex-direction: column; gap: 10px; flex: 1; justify-content: space-between; }
.kyc-id-card {
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
  padding: 10px;
  display: grid;
  grid-template-columns: 36px 1fr;
  grid-template-rows: auto auto;
  gap: 6px 10px;
  position: relative;
}
.kyc-id-photo {
  grid-row: span 2;
  width: 36px; height: 44px;
  background: linear-gradient(135deg, #ffffff14, #ffffff04);
  border: 1px solid #ffffff22;
  border-radius: 3px;
}
.kyc-id-lines { display: flex; flex-direction: column; gap: 4px; padding-top: 2px; }
.kyc-id-lines .ln { height: 4px; background: #ffffff22; border-radius: 2px; }
.kyc-id-lines .w50 { width: 50%; } .kyc-id-lines .w70 { width: 70%; }
.kyc-id-lines .w80 { width: 80%; } .kyc-id-lines .w90 { width: 90%; }
.kyc-id-mrz {
  grid-column: 1 / -1;
  height: 12px;
  background: repeating-linear-gradient(90deg, #ffffff33 0 3px, transparent 3px 5px);
  border-radius: 2px;
  margin-top: 2px;
}
.kyc-ocr {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 8px; align-items: center;
  font-family: var(--font-mono); font-size: 10.5px;
  color: var(--neutral-2); letter-spacing: .08em;
}
.kyc-bar { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.kyc-bar-fill { height: 100%; background: var(--accent); }
.kyc-pct { color: var(--ink); font-weight: 500; }

/* Selfie */
.kyc-selfie-body { display: flex; flex-direction: column; align-items: center; gap: 10px; flex: 1; justify-content: center; }
.kyc-face { width: 100%; max-width: 110px; height: auto; }
.kyc-checks { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.kyc-check {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .08em;
  color: var(--neutral-2);
  display: flex; gap: 6px; align-items: center;
}
.kyc-check.ok span { color: var(--accent); font-weight: 600; }

/* Decision */
.kyc-decision-body { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.kyc-score { display: flex; gap: 12px; align-items: center; }
.kyc-score-ring { position: relative; width: 60px; height: 60px; }
.kyc-score-num {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700; color: var(--ink);
}
.kyc-score-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; color: var(--neutral-3); text-transform: uppercase; margin-bottom: 4px; }
.kyc-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .14em;
  padding: 4px 8px;
  border-radius: 4px;
}
.kyc-pill.ok { background: var(--accent-soft); color: var(--ink); border: 1px solid var(--accent); }
.kyc-pill.alert {
  background: rgba(204, 158, 55, 0.16);
  color: #6b4f0f;
  border: 1px solid rgba(204, 158, 55, 0.55);
}
.kyc-pill.reject {
  background: rgba(180, 60, 70, 0.10);
  color: rgba(140, 40, 50, 0.95);
  border: 1px solid rgba(180, 60, 70, 0.45);
}
.kyc-meta-rows { display: flex; flex-direction: column; gap: 4px; }
.kyc-meta-rows > div {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10.5px;
  padding: 5px 0;
  border-top: 1px dashed var(--line);
}
.kyc-meta-rows > div:first-child { border-top: 0; }
.kyc-meta-rows > div :first-child { color: var(--neutral-3); letter-spacing: .08em; text-transform: uppercase; }
.kyc-meta-rows > div :last-child { color: var(--ink); }

.kyc-footer {
  display: flex; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--neutral-3); letter-spacing: .1em; text-transform: uppercase;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  position: relative;
}

/* ============ Risk Engine Visual ============ */
.risk-grid { grid-template-columns: 0.95fr 1.15fr 1fr; }
@media (max-width: 1100px) {
  .risk-grid { grid-template-columns: 1fr 1fr; }
  .risk-grid .kyc-decision { grid-column: span 2; }
}

.risk-event { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.risk-amount {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1;
}
.risk-amount-cents { color: var(--neutral-3); font-size: 14px; font-weight: 600; }
.risk-amount em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--neutral-3);
  letter-spacing: .14em;
  margin-left: 4px;
  vertical-align: 4px;
}
.risk-event-rows { display: flex; flex-direction: column; gap: 4px; }
.risk-event-rows > div {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10.5px;
  padding: 5px 0;
  border-top: 1px dashed var(--line);
}
.risk-event-rows > div:first-child { border-top: 0; }
.risk-event-rows > div :first-child {
  color: var(--neutral-3); letter-spacing: .08em; text-transform: uppercase;
}
.risk-event-rows > div :last-child { color: var(--ink); }
.risk-event-rows .mono { font-family: var(--font-mono); }

.risk-rules { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.risk-rule {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}
.risk-rule.triggered {
  border-color: var(--accent);
  background: linear-gradient(to right, var(--accent-soft) 0 3px, #fff 3px 100%);
}
.risk-rule-head {
  display: flex; justify-content: space-between; align-items: center;
}
.risk-rule-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 3px;
  font-weight: 500;
}
.risk-rule-tag.tag-velocity {
  background: rgba(60, 100, 180, 0.10);
  color: rgba(40, 70, 140, 0.95);
}
.risk-rule-tag.tag-morphing {
  background: rgba(180, 60, 70, 0.10);
  color: rgba(140, 40, 50, 0.95);
}
.risk-rule-tag.tag-advanced {
  background: rgba(40, 130, 80, 0.10);
  color: rgba(20, 90, 50, 0.95);
}
.risk-rule-status {
  width: 18px; height: 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
}
.risk-rule-status.ok { background: var(--accent-soft); color: var(--ink); }
.risk-rule-status.flag { background: var(--accent); color: #fff; }
.risk-rule-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
  margin-top: 2px;
}
.risk-rule-cond {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--neutral-3);
  letter-spacing: .04em;
}

/* ============ Anomaly Visual ============ */
.anom-grid { grid-template-columns: 0.75fr 1.3fr 1fr; }
@media (max-width: 1100px) {
  .anom-grid { grid-template-columns: 1fr 1fr; }
  .anom-grid .anom-detect-card { grid-column: span 2; }
}

.anom-stats {
  display: flex; flex-direction: column;
  flex: 1;
  justify-content: center;
}
.anom-stat {
  display: flex; flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  border-top: 1px dashed var(--line);
}
.anom-stat:first-child { border-top: 0; padding-top: 4px; }
.anom-stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.anom-stat-lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--neutral-3);
  text-transform: uppercase;
}

.anom-chart-body {
  display: flex; flex-direction: column;
  gap: 10px;
  flex: 1;
  justify-content: space-between;
}
.anom-chart {
  width: 100%;
  height: 110px;
  display: block;
}
.anom-chart-axis {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--neutral-3);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.anom-detect-body {
  display: flex; flex-direction: column;
  gap: 12px;
  flex: 1;
}
.anom-detect-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 10px;
}
.anom-pattern-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(140, 40, 50, 0.95);
  background: rgba(180, 60, 70, 0.10);
  padding: 3px 7px;
  border-radius: 3px;
  margin-bottom: 6px;
}
.anom-pattern-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.anom-multiplier {
  display: flex; flex-direction: column;
  gap: 4px;
  padding: 10px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}
.anom-multiplier-num {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
}
.anom-multiplier-num em {
  font-style: normal;
  font-size: 18px;
  color: var(--neutral-2);
  margin-left: 2px;
}
.anom-multiplier-lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--neutral-3);
  text-transform: uppercase;
}

/* ============ Cases Visual ============ */
.cases-grid { grid-template-columns: 0.95fr 1.2fr 1fr; }
@media (max-width: 1100px) {
  .cases-grid { grid-template-columns: 1fr 1fr; }
  .cases-grid .case-ai-card { grid-column: span 2; }
}

.cases-list { display: flex; flex-direction: column; flex: 1; }
.case-row {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  border-top: 1px dashed var(--line);
  font-size: 11.5px;
}
.case-row:first-child { border-top: 0; }
.case-row.active {
  background: var(--accent-soft);
  border-radius: 4px;
  padding-left: 8px;
  padding-right: 8px;
  border-top-color: transparent;
}
.case-row.active + .case-row { border-top-color: transparent; }
.case-id {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink);
  letter-spacing: .04em;
  font-weight: 500;
}
.case-sev {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.case-sev-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.case-sev.sev-high       { color: rgba(140, 40, 50, 0.95); }
.case-sev.sev-high   .case-sev-dot { background: rgba(180, 60, 70, 0.9); }
.case-sev.sev-medium     { color: rgba(140, 100, 30, 0.95); }
.case-sev.sev-medium .case-sev-dot { background: var(--accent); }
.case-sev.sev-low        { color: rgba(20, 90, 50, 0.9); }
.case-sev.sev-low    .case-sev-dot { background: rgba(40, 130, 80, 0.85); }
.case-name { color: var(--ink); font-size: 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case-sla {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--neutral-3);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.case-detail { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.case-detail-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 10px;
}
.case-detail-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.case-detail-meta {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  color: var(--neutral-3);
  text-transform: uppercase;
  margin-top: 2px;
}

.case-team { display: flex; flex-direction: column; gap: 4px; }
.case-team-row {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 10.5px;
  padding: 5px 0;
  border-top: 1px dashed var(--line);
}
.case-team-row:first-child { border-top: 0; }
.case-team-row :first-child {
  color: var(--neutral-3); letter-spacing: .08em; text-transform: uppercase;
}
.case-team-row :last-child { color: var(--ink); font-family: var(--font-sans); font-size: 12px; }
.case-asignee { display: inline-flex; align-items: center; gap: 6px; }
.case-avatar {
  display: inline-grid; place-items: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0;
}

.case-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  padding: 6px 0 2px;
}
.case-timeline::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: var(--line-strong);
  z-index: 0;
}
.case-step {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  gap: 6px;
  z-index: 1;
}
.case-step-mark {
  width: 18px; height: 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 10px;
  font-family: var(--font-mono);
  background: #fff;
}
.case-step.done .case-step-mark {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}
.case-step.active .case-step-mark {
  background: #fff;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.case-step.active .case-step-mark::after {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.case-step.pending .case-step-mark {
  background: #fff;
  border: 1px solid var(--line-strong);
  color: var(--neutral-3);
}
.case-step-name {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .1em;
  color: var(--neutral-2);
  text-transform: uppercase;
}
.case-step.active .case-step-name { color: var(--ink); }
.case-step.pending .case-step-name { color: var(--neutral-3); }

.case-sla-block { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.case-sla-meta {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  color: var(--neutral-3);
  text-transform: uppercase;
}
.case-sla-meta :last-child { color: var(--ink); }
.case-sla-bar {
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.case-sla-fill {
  height: 100%;
  background: linear-gradient(to right, var(--accent-soft), var(--accent));
}

.case-ai { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.case-ai-tag {
  display: inline-block;
  width: fit-content;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  padding: 3px 7px;
  border-radius: 3px;
}
.case-ai-text {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--neutral);
  margin: 0;
  padding: 12px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}
.case-ai-actions {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto;
}
.case-ai-meta {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  color: var(--neutral-3);
  text-transform: uppercase;
}

/* ============ Compliance Visual ============ */
.compliance-grid { grid-template-columns: 0.95fr 1.2fr 0.95fr; }
.compliance-grid > .kyc-card { min-width: 0; }
@media (max-width: 1100px) {
  .compliance-grid { grid-template-columns: 1fr 1fr; }
  .compliance-grid .report-card { grid-column: span 2; }
}

/* Audit log */
.audit-log { display: flex; flex-direction: column; flex: 1; }
.audit-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  border-top: 1px dashed var(--line);
}
.audit-row:first-child { border-top: 0; padding-top: 2px; }
.audit-icon {
  width: 18px; height: 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 600;
  flex-shrink: 0;
  line-height: 1;
}
.audit-icon.icon-create { background: var(--accent-soft); color: var(--ink); border: 1px solid var(--accent); }
.audit-icon.icon-edit   { background: var(--paper); color: var(--neutral-2); border: 1px solid var(--line-strong); }
.audit-icon.icon-flag   { background: rgba(180, 60, 70, 0.10); color: rgba(140, 40, 50, 0.95); border: 1px solid rgba(180, 60, 70, 0.45); }
.audit-icon.icon-export { background: rgba(40, 130, 80, 0.10); color: rgba(20, 90, 50, 0.95); border: 1px solid rgba(40, 130, 80, 0.45); }
.audit-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.audit-event {
  font-size: 11.5px;
  color: var(--ink);
  letter-spacing: -0.005em;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.audit-meta {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .1em;
  color: var(--neutral-3);
  text-transform: uppercase;
  line-height: 1.3;
}
.audit-meta .audit-actor { color: var(--ink); }

/* Narrative */
.narrative { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.narrative-section {
  padding: 5px 0;
  border-top: 1px dashed var(--line);
  min-width: 0;
}
.narrative-section:first-child { border-top: 0; padding-top: 1px; }
.narrative-h {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .14em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 2px;
}
.narrative-section p {
  margin: 0;
  font-size: 10.5px;
  line-height: 1.35;
  color: var(--ink);
}
.narrative-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 6px;
  margin-top: auto;
  border-top: 1px dashed var(--line);
}

/* Report */
.report { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; }
.report-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 8px;
  min-width: 0;
}
.report-head > div { min-width: 0; }
.report-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.report-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .1em;
  color: var(--neutral-3);
  text-transform: uppercase;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.report-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}
.report-stat {
  display: flex; flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 2px;
  border-right: 1px solid var(--line);
  min-width: 0;
}
.report-stat:last-child { border-right: 0; }
.report-stat-num {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.report-stat-lbl {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: .12em;
  color: var(--neutral-3);
  text-transform: uppercase;
}
.report-formats {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: auto;
}
.report-format {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--ink);
  background: #fff;
}

/* ============ Machine Learning Visual ============ */
.ml-grid { grid-template-columns: 0.95fr 1.2fr 1fr; }
.ml-grid > .kyc-card { min-width: 0; }
@media (max-width: 1100px) {
  .ml-grid { grid-template-columns: 1fr 1fr; }
  .ml-grid .ml-explain-card { grid-column: span 2; }
}

/* Models list */
.ml-models { display: flex; flex-direction: column; flex: 1; }
.ml-model {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-top: 1px dashed var(--line);
  min-width: 0;
}
.ml-model:first-child { border-top: 0; padding-top: 2px; }
.ml-model-icon {
  width: 18px; height: 18px;
  display: grid; place-items: center;
  border-radius: 4px;
  font-size: 11px;
  font-family: var(--font-mono);
  flex-shrink: 0;
  line-height: 1;
}
.ml-model-icon.icon-classify { background: var(--accent-soft); color: var(--ink); border: 1px solid var(--accent); }
.ml-model-icon.icon-regress  { background: rgba(60, 100, 180, 0.10); color: rgba(40, 70, 140, 0.95); border: 1px solid rgba(60, 100, 180, 0.45); }
.ml-model-icon.icon-graph    { background: rgba(40, 130, 80, 0.10); color: rgba(20, 90, 50, 0.95); border: 1px solid rgba(40, 130, 80, 0.45); }
.ml-model-body { flex: 1; min-width: 0; }
.ml-model-name {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ml-model-meta {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .1em;
  color: var(--neutral-3);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ml-model-status {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ml-model-status.on    { background: rgba(40, 130, 80, 0.85); }
.ml-model-status.draft { background: var(--neutral-3); }

/* Distribution chart */
.ml-dist-body {
  display: flex; flex-direction: column;
  gap: 6px;
  flex: 1;
  justify-content: space-between;
}
.ml-chart {
  width: 100%;
  height: 100px;
  display: block;
}
.ml-dist-axis {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--neutral-3);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ml-dist-legend {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--neutral-2);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ml-leg-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 2px;
  margin-right: 5px;
  vertical-align: middle;
}
.ml-leg-dot.legit { background: rgba(34, 51, 80, 0.55); }
.ml-leg-dot.fraud { background: var(--accent); }

/* Feature importance + drift */
.ml-explain { display: flex; flex-direction: column; flex: 1; }
.ml-feat {
  padding: 5px 0;
  border-top: 1px dashed var(--line);
  min-width: 0;
}
.ml-feat:first-child { border-top: 0; padding-top: 2px; }
.ml-feat-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 4px;
  gap: 8px;
}
.ml-feat-name {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ml-feat-val {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--accent);
  font-weight: 500;
  flex-shrink: 0;
}
.ml-feat-bar {
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.ml-feat-bar-fill {
  height: 100%;
  background: linear-gradient(to right, var(--accent-soft), var(--accent));
}
.ml-drift {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--neutral-3);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ml-drift-val { color: var(--ink); }
.ml-drift-val em {
  font-style: normal;
  color: rgba(20, 90, 50, 0.9);
  margin-left: 4px;
}

/* ============ Device Intelligence Visual ============ */
.device-grid { grid-template-columns: 0.95fr 1fr 1fr; }
.device-grid > .kyc-card { min-width: 0; }
@media (max-width: 1100px) {
  .device-grid { grid-template-columns: 1fr 1fr; }
}

.device-fp { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.device-hash {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
  word-break: break-all;
}
.device-hash em {
  font-style: normal;
  color: var(--neutral-3);
  font-weight: 400;
  margin: 0 2px;
}
.device-trust {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--line);
}
.device-events {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--neutral-3);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.device-signals { display: flex; flex-direction: column; flex: 1; }
.device-signal {
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px;
  color: var(--ink);
  padding: 5px 0;
  border-top: 1px dashed var(--line);
}
.device-signal:first-child { border-top: 0; padding-top: 1px; }
.device-signal-mark {
  width: 16px; height: 16px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 9px;
  font-weight: 600;
  font-family: var(--font-mono);
  flex-shrink: 0;
  line-height: 1;
}
.device-signal.ok .device-signal-mark { background: var(--accent-soft); color: var(--ink); border: 1px solid var(--accent); }
.device-signal.flag .device-signal-mark { background: var(--accent); color: #fff; border: 1px solid var(--accent); }

/* ============ Digital Profile Visual ============ */
.profile-grid { grid-template-columns: 0.95fr 1.1fr 0.95fr; }
.profile-grid > .kyc-card { min-width: 0; }
@media (max-width: 1100px) {
  .profile-grid { grid-template-columns: 1fr 1fr; }
}

.profile-email { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.profile-email-addr {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  font-weight: 500;
  word-break: break-all;
}
.profile-email-addr em { font-style: normal; color: var(--neutral-3); }

.profile-sources { display: flex; flex-direction: column; flex: 1; }
.profile-source {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0;
  border-top: 1px dashed var(--line);
  min-width: 0;
}
.profile-source:first-child { border-top: 0; padding-top: 1px; }
.profile-source-icon {
  width: 22px; height: 22px;
  border-radius: 4px;
  display: grid; place-items: center;
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 600;
  flex-shrink: 0;
  line-height: 1;
}
.profile-source-icon.icon-li  { background: rgba(60, 100, 180, 0.10); color: rgba(40, 70, 140, 0.95); border: 1px solid rgba(60, 100, 180, 0.45); }
.profile-source-icon.icon-x   { background: var(--paper); color: var(--ink); border: 1px solid var(--line-strong); }
.profile-source-icon.icon-gh  { background: var(--paper); color: var(--neutral-2); border: 1px solid var(--line-strong); font-size: 9px; }
.profile-source-icon.icon-web { background: var(--accent-soft); color: var(--ink); border: 1px solid var(--accent); }
.profile-source-body { flex: 1; min-width: 0; }
.profile-source-name {
  font-size: 11.5px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.3;
}
.profile-source-meta {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .1em;
  color: var(--neutral-3);
  text-transform: uppercase;
}
.profile-source-na {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--neutral-3);
  letter-spacing: .14em;
}

.profile-adverse { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.profile-adverse-stat {
  display: flex; flex-direction: column; gap: 4px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}
.profile-adverse-num {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
}
.profile-adverse-lbl {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--neutral-3);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.profile-adverse-foot { margin-top: auto; }

/* ============ Geo Intelligence Visual ============ */
.geo-grid { grid-template-columns: 1.05fr 1fr 0.95fr; }
.geo-grid > .kyc-card { min-width: 0; }
@media (max-width: 1100px) {
  .geo-grid { grid-template-columns: 1fr 1fr; }
}

.geo-map { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.geo-svg {
  width: 100%;
  background: var(--paper);
  border-radius: 6px;
  border: 1px solid var(--line);
  flex: 1;
  min-height: 140px;
}
.geo-legend {
  display: flex; gap: 12px; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--neutral-2);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.geo-leg-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 2px;
  margin-right: 5px;
  vertical-align: middle;
}
.geo-leg-dot.lo { background: rgba(40, 130, 80, 0.55); }
.geo-leg-dot.md { background: rgba(204, 158, 55, 0.85); }
.geo-leg-dot.hi { background: rgba(180, 60, 70, 0.7); }

.geo-zones { display: flex; flex-direction: column; flex: 1; }
.geo-zone {
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px;
  color: var(--ink);
  padding: 5px 0;
  border-top: 1px dashed var(--line);
}
.geo-zone:first-child { border-top: 0; padding-top: 1px; }
.geo-zone-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.geo-zone-dot.lo { background: rgba(40, 130, 80, 0.85); }
.geo-zone-dot.md { background: var(--accent); }
.geo-zone-dot.hi { background: rgba(180, 60, 70, 0.85); }

/* ============ User 360 Visual ============ */
.user360-grid { grid-template-columns: 1fr 1.15fr 1fr; }
.user360-grid > .kyc-card { min-width: 0; }
@media (max-width: 1100px) {
  .user360-grid { grid-template-columns: 1fr 1fr; }
  .user360-grid > .kyc-card:nth-child(3) { grid-column: span 2; }
}

.u360-profile { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.u360-head {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}
.u360-avatar {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.u360-name-block { min-width: 0; }
.u360-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.u360-meta {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  color: var(--neutral-3);
  text-transform: uppercase;
  margin-top: 2px;
}

.u360-graph { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.u360-svg {
  width: 100%;
  background: var(--paper);
  border-radius: 6px;
  border: 1px solid var(--line);
  flex: 1;
  min-height: 160px;
}
.u360-graph-legend {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--neutral-3);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
}

.u360-ai { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.u360-ai-text {
  font-size: 11px;
  line-height: 1.45;
  color: var(--ink);
  margin: 0;
  padding: 8px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}
.u360-ai-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto;
}

/* ============ Risk Matrix Visual ============ */
.matrix-grid { grid-template-columns: 1fr 1.05fr 0.95fr; }
.matrix-grid > .kyc-card { min-width: 0; }
@media (max-width: 1100px) {
  .matrix-grid { grid-template-columns: 1fr 1fr; }
  .matrix-grid > .kyc-card:nth-child(3) { grid-column: span 2; }
}

.matrix-factors { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.matrix-factor {
  display: flex; flex-direction: column; gap: 6px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}
.matrix-factor:first-child { border-top: 0; padding-top: 0; }
.matrix-factor-head {
  display: flex; justify-content: space-between; align-items: center;
}
.matrix-factor-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.matrix-tag-crit {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(180, 60, 70, 0.10);
  color: rgba(140, 40, 50, 0.95);
  border: 1px solid rgba(180, 60, 70, 0.45);
}
.matrix-factor-score {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0;
}
.matrix-bar {
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.matrix-bar-fill {
  height: 100%;
  background: linear-gradient(to right, var(--accent-soft), var(--accent));
}
.matrix-factor.is-critical .matrix-bar-fill {
  background: linear-gradient(to right, rgba(180,60,70,0.25), rgba(180,60,70,0.7));
}

.matrix-sub { display: flex; flex-direction: column; flex: 1; }
.matrix-sub-row {
  padding: 7px 0;
  border-top: 1px dashed var(--line);
}
.matrix-sub-row:first-child { border-top: 0; padding-top: 1px; }
.matrix-sub-name {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--neutral-3);
  text-transform: uppercase;
  margin-bottom: 3px;
}
.matrix-sub-foot {
  display: flex; justify-content: space-between; align-items: center;
}
.matrix-sub-val {
  font-size: 12px;
  color: var(--ink);
  font-weight: 500;
}
.matrix-sub-score {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
}

.matrix-final { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.matrix-final-num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
}
.matrix-final-num em {
  font-style: normal;
  font-size: 18px;
  color: var(--neutral-3);
  font-weight: 500;
  margin-left: 2px;
}
.matrix-final-note {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  color: var(--neutral-3);
  text-transform: uppercase;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--line);
}
.matrix-final .kyc-pill { width: fit-content; }

/* ============ Tx Monitoring Visual ============ */
.tx-grid { grid-template-columns: 1.05fr 1.1fr 0.95fr; }
.tx-grid > .kyc-card { min-width: 0; }
@media (max-width: 1100px) {
  .tx-grid { grid-template-columns: 1fr 1fr; }
  .tx-grid > .kyc-card:nth-child(3) { grid-column: span 2; }
}

.tx-graph { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tx-svg {
  width: 100%;
  background: var(--paper);
  border-radius: 6px;
  border: 1px solid var(--line);
  flex: 1;
  min-height: 160px;
}
.tx-graph-legend {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--neutral-2);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.tx-leg-line {
  display: inline-block;
  width: 16px; height: 0;
  border-top: 1.5px solid;
  margin-right: 5px;
  vertical-align: middle;
}
.tx-leg-line.normal { border-color: var(--neutral-3); }
.tx-leg-line.susp   { border-color: var(--accent); border-style: dashed; }

/* ============ ATO Visual (digital activity · modificaciones) ============ */
.ato-grid { grid-template-columns: 1fr 1fr 1.15fr; }
.ato-grid > .kyc-card { min-width: 0; }
@media (max-width: 1100px) {
  .ato-grid { grid-template-columns: 1fr 1fr; }
  .ato-grid > .kyc-card:nth-child(3) { grid-column: span 2; }
}

.ato-sessions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ato-session {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  display: flex; flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.ato-session.current {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.ato-session-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px;
}
.ato-session-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .14em;
  color: var(--neutral-3);
  text-transform: uppercase;
}
.ato-session-time {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1;
}
.ato-session-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--neutral-2);
  letter-spacing: .04em;
}

.ato-impossible {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  color: rgba(140, 40, 50, 0.95);
  text-transform: uppercase;
}
.ato-impossible-tag {
  width: 16px; height: 16px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 10px;
  font-weight: 600;
  font-family: var(--font-mono);
  background: rgba(180, 60, 70, 0.15);
  color: rgba(140, 40, 50, 0.95);
  border: 1px solid rgba(180, 60, 70, 0.45);
  flex-shrink: 0;
}

.ato-changes { display: flex; flex-direction: column; flex: 1; }
.ato-change {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px dashed var(--line);
  min-width: 0;
}
.ato-change:first-child { border-top: 0; padding-top: 1px; }
.ato-change-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--neutral-3);
  letter-spacing: .04em;
}
.ato-change-field {
  font-size: 12px;
  color: var(--ink);
  font-weight: 500;
}
.ato-change-diff {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--accent);
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}

/* ============ Login Visual (digital activity · inicio de sesión) ============ */
.login-grid { grid-template-columns: 1fr 0.95fr 1.1fr; }
.login-grid > .kyc-card { min-width: 0; }
@media (max-width: 1100px) {
  .login-grid { grid-template-columns: 1fr 1fr; }
  .login-grid > .kyc-card:nth-child(3) { grid-column: span 2; }
}

.login-attempt { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.login-user {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}
.login-avatar {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.login-user-block { min-width: 0; }
.login-username {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.login-time {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  color: var(--neutral-3);
  text-transform: uppercase;
  margin-top: 2px;
}

.login-stepup { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.login-stepup-title {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.login-ladder { padding: 4px 0 0; }

/* ============ Register Visual (digital activity · registro) ============ */
.register-grid { grid-template-columns: 1fr 0.95fr 1.1fr; }
.register-grid > .kyc-card { min-width: 0; }
@media (max-width: 1100px) {
  .register-grid { grid-template-columns: 1fr 1fr; }
  .register-grid > .kyc-card:nth-child(3) { grid-column: span 2; }
}

.register-form { display: flex; flex-direction: column; flex: 1; }
.register-field {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px dashed var(--line);
  min-width: 0;
}
.register-field:first-child { border-top: 0; padding-top: 1px; }
.register-field-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  color: var(--neutral-3);
  text-transform: uppercase;
}
.register-field-value {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}
.register-field-mark {
  width: 16px; height: 16px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 9px;
  font-weight: 600;
  font-family: var(--font-mono);
  flex-shrink: 0;
}
.register-field-mark.ok   { background: var(--accent-soft); color: var(--ink); border: 1px solid var(--accent); }
.register-field-mark.flag { background: var(--accent); color: #fff; border: 1px solid var(--accent); }

/* ============ Product Request Visual (digital activity · solicitud) ============ */
.product-grid { grid-template-columns: 1fr 1.1fr 1fr; }
.product-grid > .kyc-card { min-width: 0; }
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
  .product-grid > .kyc-card:nth-child(3) { grid-column: span 2; }
}

.product-request { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-type {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}
.product-type-icon {
  width: 30px; height: 30px;
  border-radius: 6px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}
.product-type-block { min-width: 0; }
.product-type-name {
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-type-meta {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  color: var(--neutral-3);
  text-transform: uppercase;
  margin-top: 3px;
}
.product-amount {
  display: flex; align-items: baseline; gap: 6px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}
.product-amount-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.product-amount-cur {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--neutral-3);
  letter-spacing: .14em;
}

.product-dims { display: flex; flex-direction: column; flex: 1; }
.product-dim {
  padding: 6px 0;
  border-top: 1px dashed var(--line);
  min-width: 0;
}
.product-dim:first-child { border-top: 0; padding-top: 1px; }
.product-dim-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 4px;
  gap: 8px;
}
.product-dim-head :first-child {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  color: var(--neutral-2);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-dim-head :last-child {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  font-weight: 600;
}
.product-bar {
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.product-bar-fill {
  height: 100%;
  background: linear-gradient(to right, var(--accent-soft), var(--accent));
}

/* ============ Payment Visual (transactional · pagos) ============ */
.pay-grid { grid-template-columns: 1.05fr 0.95fr 1.1fr; }
.pay-grid > .kyc-card { min-width: 0; }
@media (max-width: 1100px) {
  .pay-grid { grid-template-columns: 1fr 1fr; }
  .pay-grid > .kyc-card:nth-child(3) { grid-column: span 2; }
}

.pay-body { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pay-amount {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
  display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap;
}
.pay-amount em {
  font-style: normal;
  color: var(--neutral-3);
  font-size: 16px;
  font-weight: 600;
}
.pay-cur {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--neutral-3);
  letter-spacing: .14em;
  margin-left: 4px;
}
.pay-card {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink);
  letter-spacing: .04em;
  font-weight: 500;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}

/* ============ Transfer Visual (transactional · transferencias) ============ */
.transfer-grid { grid-template-columns: 1.15fr 1fr 1fr; }
.transfer-grid > .kyc-card { min-width: 0; }
@media (max-width: 1100px) {
  .transfer-grid { grid-template-columns: 1fr 1fr; }
  .transfer-grid > .kyc-card:nth-child(3) { grid-column: span 2; }
}

.transfer-body { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.transfer-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 6px;
  align-items: stretch;
}
.transfer-account {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  display: flex; flex-direction: column; gap: 3px;
  min-width: 0;
}
.transfer-account.current {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.transfer-account-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .14em;
  color: var(--neutral-3);
  text-transform: uppercase;
}
.transfer-account-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.transfer-account-meta {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .08em;
  color: var(--neutral-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.transfer-arrow {
  align-self: center;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--accent);
  font-weight: 600;
}
.transfer-amount {
  display: flex; align-items: baseline; gap: 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.transfer-amount-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.transfer-amount-cur {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--neutral-3);
  letter-spacing: .14em;
}
.transfer-amount-time {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--neutral-3);
  letter-spacing: .1em;
}

.transfer-graph { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.transfer-svg {
  width: 100%;
  background: var(--paper);
  border-radius: 6px;
  border: 1px solid var(--line);
  flex: 1;
  min-height: 140px;
}
.transfer-graph-legend {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--neutral-3);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
}

/* ============ Withdrawal Visual (transactional · retiros) ============ */
.withdraw-grid { grid-template-columns: 1fr 1fr 1.15fr; }
.withdraw-grid > .kyc-card { min-width: 0; }
@media (max-width: 1100px) {
  .withdraw-grid { grid-template-columns: 1fr 1fr; }
  .withdraw-grid > .kyc-card:nth-child(3) { grid-column: span 2; }
}

.withdraw-body { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.withdraw-amount {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
  display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap;
}
.withdraw-amount em {
  font-style: normal;
  color: var(--neutral-3);
  font-size: 16px;
  font-weight: 600;
}
.withdraw-cur {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--neutral-3);
  letter-spacing: .14em;
  margin-left: 4px;
}
.withdraw-clock {
  margin-top: auto;
  display: flex; flex-direction: column; gap: 4px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--neutral-3);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.withdraw-clock-bar {
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.withdraw-clock-fill {
  height: 100%;
  background: linear-gradient(to right, var(--accent-soft), rgba(180, 60, 70, 0.7));
}

.withdraw-trace { display: flex; flex-direction: column; flex: 1; }
.withdraw-event {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px dashed var(--line);
  min-width: 0;
}
.withdraw-event:first-child { border-top: 0; padding-top: 1px; }
.withdraw-event-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--neutral-3);
  letter-spacing: .04em;
}
.withdraw-event-name {
  font-size: 12px;
  color: var(--ink);
  font-weight: 500;
}
.withdraw-event-meta {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}

/* ============ Promo Visual (transactional · promociones) ============ */
.promo-grid { grid-template-columns: 1fr 1.15fr 1fr; }
.promo-grid > .kyc-card { min-width: 0; }
@media (max-width: 1100px) {
  .promo-grid { grid-template-columns: 1fr 1fr; }
  .promo-grid > .kyc-card:nth-child(3) { grid-column: span 2; }
}

.promo-body { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.promo-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.promo-amount {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}

.promo-cluster { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.promo-svg {
  width: 100%;
  background: var(--paper);
  border-radius: 6px;
  border: 1px solid var(--line);
  flex: 1;
  min-height: 150px;
}
.promo-cluster-legend {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--neutral-3);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
}

/* ============ Striped placeholder ============ */
.placeholder {
  background:
    repeating-linear-gradient(135deg, #1f2a3d10 0 6px, transparent 6px 12px),
    var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .14em; color: var(--neutral-2);
  text-transform: uppercase;
  text-align: center;
  padding: 24px;
}

/* ============ Subtle decor border ============ */
.divider-rule {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .16em; color: var(--neutral-3); text-transform: uppercase;
  margin-bottom: 18px;
}
.divider-rule::before { content: ""; width: 24px; height: 1px; background: var(--accent); }

/* ============ Logo wordmark with bird placeholder ============ */
.logo-link { display: flex; align-items: center; gap: 10px; }
.logo-eagle {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}
.logo-mark {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: var(--ink);
  color: var(--accent);
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
}
.on-dark .logo-mark { background: #fff; color: var(--ink); }

/* Tooling */
.eyebrow-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap; gap: 14px;
}
