/* ============================================================
   Steelter — Web corporativa
   Estilos compartidos: landing + páginas de detalle
   Construido sobre /assets/colors_and_type.css
   ============================================================ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

/* Layout ----------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-inline: var(--space-8);
}
.container-narrow {
  max-width: 920px;
  margin: 0 auto;
  padding-inline: var(--space-8);
}
section { padding-block: 96px; }
@media (max-width: 720px) {
  section { padding-block: 64px; }
  .container, .container-narrow { padding-inline: 20px; }
}

/* Header ----------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--motion-base);
}
.site-header.scrolled { border-bottom-color: var(--border); }
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 32px; width: auto; display: block; }
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.01em;
  position: relative;
  padding-block: 6px;
}
.nav a:hover { color: var(--brand-primary); }
.nav a.active { color: var(--brand-primary); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--brand-accent);
}
.nav-extras { display: none; }
.header-right { display: flex; align-items: center; gap: var(--space-4); }

/* Hamburger toggle (mobile only) */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  gap: 4px;
  transition: border-color var(--motion-quick);
}
.nav-toggle:hover { border-color: var(--brand-accent); }
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--brand-primary);
  border-radius: 1px;
  transition: transform 220ms cubic-bezier(0.2,0,0,1), opacity 200ms;
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile breakpoint */
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .header-right > .lang-toggle { display: none; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 240ms cubic-bezier(0.2,0,0,1), opacity 200ms;
    visibility: hidden;
  }
  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }
  .nav a {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    font-size: 17px;
  }
  .nav a:last-of-type { border-bottom: 0; }
  .nav a.active::after { display: none; }
  .nav-extras {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    margin-top: 4px;
  }
  .nav-extras .lang-toggle { display: inline-flex; }
}

@media (max-width: 560px) {
  .site-header-inner { height: 64px; gap: 8px; }
  .brand img { height: 26px; }
  .header-right { gap: 8px; }
  .header-right .btn-primary {
    padding-inline: 14px;
    font-size: 14px;
    height: 40px;
  }
}

@media (max-width: 420px) {
  .header-right .btn-primary {
    padding-inline: 12px;
    font-size: 13px;
  }
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  background: var(--white);
  font-size: 12px;
  font-weight: 600;
}
.lang-toggle button {
  border: 0;
  background: transparent;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--fg-muted);
  cursor: pointer;
  font: inherit;
  letter-spacing: 0.04em;
}
.lang-toggle button.active {
  background: var(--brand-primary);
  color: var(--white);
}

/* Buttons ---------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding-inline: 22px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--motion-quick), color var(--motion-quick),
              border-color var(--motion-quick), transform var(--motion-quick),
              box-shadow var(--motion-quick);
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand-primary);
  color: var(--white);
}
.btn-primary:hover { background: var(--azul01-800); }
.btn-primary:active { background: var(--azul01-700); transform: translateY(1px); }
.btn-primary:focus-visible { outline: none; box-shadow: var(--shadow-focus); }

.btn-secondary {
  background: var(--white);
  color: var(--brand-primary);
  border-color: var(--border-strong);
}
.btn-secondary:hover { border-color: var(--brand-primary); }

.btn-ghost {
  background: transparent;
  color: var(--brand-primary);
  padding-inline: 12px;
}
.btn-ghost:hover { color: var(--azul01-700); }

.btn-on-dark {
  background: var(--brand-accent);
  color: var(--azul01-900);
}
.btn-on-dark:hover { background: var(--azul01-300); }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-primary);
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: gap var(--motion-quick), color var(--motion-quick);
}
.btn-link:hover { gap: 12px; color: var(--azul01-700); }
.btn-link .arrow { transition: transform var(--motion-quick); }

/* Eyebrow / chips -------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-accent);
}
.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--brand-accent);
  display: inline-block;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding-inline: 12px;
  border-radius: 999px;
  background: var(--surface-tinted);
  color: var(--brand-primary);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--azul01-100);
}

/* Hero ------------------------------------------------------- */
.hero {
  padding-top: 96px;
  padding-bottom: 64px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
}
.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -2px;
  font-weight: 700;
  color: var(--fg-strong);
  margin: 24px 0 24px;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--brand-accent); }
.hero p.lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 540px;
  margin: 0 0 32px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 36px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  color: var(--fg-muted);
  font-size: 13px;
  font-weight: 600;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .check {
  width: 16px; height: 16px;
  display: inline-grid; place-items: center;
  border-radius: 999px;
  background: var(--brand-accent);
  color: white;
  font-size: 10px;
}

/* Hero visual ------------------------------------------------ */
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 560px;
}

/* Section header --------------------------------------------- */
.section-header {
  max-width: 760px;
  margin-bottom: 64px;
}
.section-header.center { margin-inline: auto; text-align: center; }
.section-header h2 {
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.08;
  letter-spacing: -1.4px;
  font-weight: 700;
  color: var(--fg-strong);
  margin: 16px 0 16px;
  text-wrap: balance;
}
.section-header p {
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg-muted);
  margin: 0;
  text-wrap: pretty;
}

/* Metrics strip ---------------------------------------------- */
.metrics {
  background: var(--bg-inverse);
  color: var(--white);
  padding-block: 56px;
}
.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 900px) { .metrics-row { grid-template-columns: repeat(2, 1fr); } }
.metric-num {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -1.5px;
  color: var(--brand-accent);
}
.metric-label {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
  max-width: 220px;
}

/* Module rows ------------------------------------------------ */
.modules {
  background: var(--bg);
  padding-block: 80px 120px;
}
.module-row {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: center;
  padding-block: 64px;
  border-top: 1px solid var(--border);
}
.module-row:first-of-type { border-top: 0; }
.module-row.reverse { grid-template-columns: 7fr 5fr; }
.module-row.reverse .module-text { order: 2; }
.module-row.reverse .module-viz  { order: 1; }
@media (max-width: 980px) {
  .module-row, .module-row.reverse {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .module-row.reverse .module-text { order: 1; }
  .module-row.reverse .module-viz  { order: 2; }
}
.module-text h3 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -1px;
  font-weight: 700;
  color: var(--fg-strong);
  margin: 16px 0 16px;
  text-wrap: balance;
}
.module-text .promise {
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg-muted);
  margin: 0 0 24px;
  text-wrap: pretty;
}
.module-num {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-accent);
}
.module-num .n {
  font-size: 14px;
  color: var(--brand-primary);
}
.bullets {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bullets li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg);
}
.bullets li::before {
  content: "";
  width: 18px; height: 18px;
  margin-top: 3px;
  border-radius: 999px;
  background: var(--azul01-50);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2321A6DF' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='3 8.5 6.5 12 13 5'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

/* Module viz card -------------------------------------------- */
.viz-card {
  position: relative;
  background: var(--surface-tinted);
  border-radius: 24px;
  padding: 32px;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border: 1px solid var(--azul01-100);
}
.viz-card.dark {
  background: var(--azul01-900);
  border-color: var(--azul01-800);
  color: var(--white);
}
.viz-card.aqua {
  background: var(--aqua01-50);
  border-color: var(--aqua01-100);
}
.viz-card.subtle {
  background: var(--blanco01-50);
  border-color: var(--border);
}
.viz-card .caption {
  position: absolute;
  bottom: 20px; left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.viz-card.dark .caption { color: rgba(255,255,255,0.7); }
.viz-card .caption .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--brand-accent); }

/* "Cómo funciona" steps -------------------------------------- */
.how {
  background: var(--bg-subtle);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--motion-base), transform var(--motion-base);
}
.step:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.step .step-num {
  font-size: 56px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -2.5px;
  color: var(--brand-accent);
  margin-bottom: 24px;
  font-feature-settings: "tnum";
}
.step h4 {
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--fg-strong);
  margin: 0 0 8px;
  letter-spacing: -0.4px;
}
.step p { margin: 0; color: var(--fg-muted); line-height: 1.55; font-size: 15px; }

/* Testimonial ------------------------------------------------ */
.testimonial {
  background: var(--azul01-900);
  color: var(--white);
}
.testimonial-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 900px) { .testimonial-inner { grid-template-columns: 1fr; } }
.testimonial blockquote {
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.8px;
  color: var(--white);
  margin: 0;
  text-wrap: balance;
}
.testimonial blockquote::before {
  content: "“";
  display: block;
  font-size: 80px;
  line-height: 0.8;
  color: var(--brand-accent);
  margin-bottom: 12px;
  font-family: Georgia, serif;
}
.testimonial cite {
  display: block;
  font-style: normal;
  margin-top: 24px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.02em;
}
.testimonial cite strong { color: var(--white); display: block; font-weight: 700; font-size: 16px; margin-bottom: 2px; }

/* Logos strip ------------------------------------------------ */
.logos {
  padding-block: 64px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.logos-label {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: 40px;
}

/* Logo carousel (marquee) ------------------------------------ */
.logo-marquee {
  display: flex;
  flex-direction: column;
  gap: 20px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logo-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: logoScroll 80s linear infinite;
  will-change: transform;
}
.logo-track.reverse {
  animation-direction: reverse;
  animation-duration: 95s;
}
.logo-marquee:hover .logo-track { animation-play-state: paused; }
@keyframes logoScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 10px)); }
}
.logo-chip {
  flex: 0 0 auto;
  width: 168px;
  height: 94px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--motion-base), transform var(--motion-base), border-color var(--motion-base);
}
.logo-chip img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.logo-chip:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--azul01-200);
  transform: translateY(-2px);
}

@media (max-width: 560px) {
  .logo-chip { width: 132px; height: 74px; }
  .logo-marquee { gap: 14px; }
  .logo-track { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .logo-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
  }
  .logo-marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .logo-chip.dup { display: none; }
}

/* CTA final -------------------------------------------------- */
.cta-final {
  background: var(--surface-tinted);
  padding-block: 96px;
}
.cta-card {
  background: var(--bg-inverse);
  color: var(--white);
  border-radius: 28px;
  padding: 64px 64px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 900px) {
  .cta-card { grid-template-columns: 1fr; padding: 40px; }
}
.cta-card h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -1.2px;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 16px;
  text-wrap: balance;
}
.cta-card p {
  color: rgba(255,255,255,0.75);
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
  max-width: 480px;
}
.cta-card .cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-self: end;
  min-width: 240px;
}
@media (max-width: 900px) { .cta-card .cta-actions { justify-self: start; min-width: 0; } }
.cta-card .cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}
.cta-card .cta-bg svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.cta-card .cta-actions { position: relative; z-index: 2; }
.cta-card > div:first-child { position: relative; z-index: 2; }
.cta-card .btn-on-dark {
  height: 52px;
  font-size: 16px;
  background: var(--brand-accent);
  color: var(--azul01-900);
  opacity: 1;
}
.cta-card .btn-on-dark:hover { background: var(--azul01-300); }
.cta-card .cta-ghost {
  color: rgba(255,255,255,0.85);
  justify-content: flex-start;
  padding-inline: 0;
}
.cta-card .cta-ghost:hover { color: var(--brand-accent); }

/* Footer ----------------------------------------------------- */
.site-footer {
  background: var(--bg-inverse);
  color: var(--white);
  padding-block: 64px 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
.footer-brand img { height: 28px; width: auto; display: block; }
.footer-brand p {
  margin: 20px 0 0;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  line-height: 1.6;
  max-width: 280px;
}
.footer-partner {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
  max-width: 280px;
}
.footer-partner .enisa-logo {
  height: 56px;
  width: auto;
  display: block;
  opacity: 0.95;
}
.footer-col h5 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin: 0 0 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--motion-quick);
}
.footer-col a:hover { color: var(--brand-accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom a { color: inherit; text-decoration: none; margin-left: 24px; }
.footer-bottom a:hover { color: var(--brand-accent); }

/* Card hover effect when full row is clickable --------------- */
.module-row.is-link { cursor: default; }

/* Reveal on scroll ------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms cubic-bezier(0.2,0,0,1), transform 600ms cubic-bezier(0.2,0,0,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   COMPETENCY SCALE (Steelter methodology)
   Replaces simple progress bars whenever we plot a single
   competency value (0–100). The track is divided in four
   zones — Bajo / Moderado / Alto / Extremo — and we mark the
   value with a dot, because both extremes (close to 0 OR 100)
   can be non-positive in Steelter's framework.
   ============================================================ */
.comp-scale-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.comp-line {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.comp-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 8px;
  font-size: 12px;
  line-height: 1.2;
}
.comp-head .comp-name {
  font-weight: 600; color: var(--fg);
}
.comp-head .comp-val {
  font-weight: 700; color: var(--brand-primary);
  font-feature-settings: "tnum"; font-size: 13px;
}
.comp-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg,
    rgba(201,138,27,0.20) 0%,
    rgba(201,138,27,0.08) 22%,
    rgba(33,166,223,0.14) 28%,
    rgba(33,166,223,0.32) 50%,
    rgba(33,166,223,0.14) 72%,
    rgba(201,138,27,0.08) 78%,
    rgba(201,138,27,0.20) 100%);
}
.comp-track .tick {
  position: absolute; top: -2px; bottom: -2px; width: 1px;
  background: rgba(11,11,11,0.10);
  pointer-events: none;
}
.comp-track .tick.q1 { left: 25%; }
.comp-track .tick.q2 { left: 50%; }
.comp-track .tick.q3 { left: 75%; }
.comp-track .comp-ideal {
  position: absolute; top: -1px; bottom: -1px;
  background: rgba(33,166,223,0.18);
  border-radius: 999px;
  border-left: 1.5px solid var(--brand-accent);
  border-right: 1.5px solid var(--brand-accent);
  pointer-events: none;
}
.comp-track .comp-dot {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 18px; height: 18px;
  border-radius: 999px;
  background: var(--brand-primary);
  border: 3px solid white;
  box-shadow: 0 2px 6px rgba(0,64,101,0.28);
  z-index: 2;
  transition: left 400ms cubic-bezier(0.2,0,0,1), background 200ms;
}
.comp-track .comp-dot.outside,
.comp-track .comp-dot.warn { background: var(--warning); }
.comp-zones {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-top: 4px;
}
.comp-zones span { text-align: center; opacity: 0.7; }
.comp-zones span:first-child { text-align: left; }
.comp-zones span:last-child { text-align: right; }

/* Dark variant for use inside dark surfaces */
.comp-scale-dark .comp-track {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.06) 0%,
    rgba(255,255,255,0.05) 22%,
    rgba(33,166,223,0.22) 28%,
    rgba(33,166,223,0.42) 50%,
    rgba(33,166,223,0.22) 72%,
    rgba(255,255,255,0.05) 78%,
    rgba(255,255,255,0.06) 100%);
}
.comp-scale-dark .comp-track .tick { background: rgba(255,255,255,0.14); }
.comp-scale-dark .comp-head .comp-name { color: rgba(255,255,255,0.9); }
.comp-scale-dark .comp-head .comp-val { color: var(--brand-accent); }
.comp-scale-dark .comp-zones span { color: rgba(255,255,255,0.4); }
.comp-scale-dark .comp-track .comp-dot { box-shadow: 0 2px 6px rgba(0,0,0,0.5); }

/* Utility ---------------------------------------------------- */
.u-text-center { text-align: center; }
.u-hide { display: none !important; }
