/* PersonaLab SV — tokens alineados al logo (#5eb0ff → #005fb8) */
:root {
  --logo-light: #5eb0ff;
  --logo-mid: #2f8fe0;
  --accent: #005fb8;
  --accent-deep: #004a91;
  --text: #122033;
  --muted: #526074;
  --line: rgba(0, 95, 184, 0.14);
  --bg0: #e4f0fb;
  --bg1: #f3f7fb;
  --surface: rgba(255, 255, 255, 0.78);
  --font: "Sora", "Segoe UI", Candara, sans-serif;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --space-1: 0.35rem;
  --space-2: 0.7rem;
  --space-3: 1.1rem;
  --space-4: 1.75rem;
  --space-5: 2.75rem;
  --radius: 8px;
  --radius-mark: 8px;
  --wrap: min(960px, calc(100% - 2rem));
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: var(--bg1);
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 100;
  padding: 0.45rem 0.75rem;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus { top: 0.75rem; }

a { color: var(--accent-deep); }
a:hover { color: var(--accent); }

.shell { min-height: 100vh; }

.wrap {
  width: var(--wrap);
  margin: 0 auto;
}

.wrap:last-child { padding-bottom: var(--space-5); }

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(228, 240, 251, 0.82);
  backdrop-filter: blur(16px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(243, 247, 251, 0.94);
  box-shadow: 0 8px 24px rgba(18, 32, 51, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 0.85rem 0;
}

.brand a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}

.mark {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: var(--radius-mark);
  display: block;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 95, 184, 0.22);
}

.brand strong {
  display: block;
  font-family: var(--display);
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  font-weight: 650;
  line-height: 1.1;
}

.brand small {
  display: block;
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 500;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
}

.nav-link:hover { color: var(--accent-deep); }

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: linear-gradient(145deg, var(--logo-mid) 0%, var(--accent) 70%);
  color: #fff;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.55rem 1.05rem;
  border-radius: 7px;
  border: 1px solid transparent;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 95, 184, 0.2);
  transition:
    background 0.18s var(--ease),
    border-color 0.18s var(--ease),
    color 0.18s var(--ease),
    box-shadow 0.18s var(--ease),
    transform 0.18s var(--ease);
}

.btn:hover {
  background: linear-gradient(145deg, var(--accent) 0%, var(--accent-deep) 80%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 95, 184, 0.24);
  transform: translateY(-1px);
}

.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: wait; box-shadow: none; transform: none; }

.btn-lg {
  padding: 0.7rem 1.25rem;
  font-size: 0.92rem;
}

.btn:focus-visible,
.nav-link:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--logo-light);
  outline-offset: 2px;
}

.btn-quiet {
  background: rgba(255, 255, 255, 0.62);
  color: var(--accent);
  border-color: rgba(0, 95, 184, 0.28);
  box-shadow: none;
}

.btn-quiet:hover {
  background: rgba(94, 176, 255, 0.16);
  color: var(--accent-deep);
  border-color: rgba(0, 95, 184, 0.42);
  box-shadow: none;
}

/* —— Full-bleed hero —— */
.hero-plane {
  position: relative;
  isolation: isolate;
  min-height: min(78vh, 40rem);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: scale(1.02);
  animation: drift 18s var(--ease) infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(243, 247, 251, 0.9) 0%, rgba(243, 247, 251, 0.62) 38%, rgba(243, 247, 251, 0.18) 72%, rgba(243, 247, 251, 0.05) 100%),
    linear-gradient(180deg, rgba(228, 240, 251, 0.2) 0%, transparent 45%, rgba(243, 247, 251, 0.42) 100%);
  pointer-events: none;
}

.hero {
  position: relative;
  z-index: 2;
  width: var(--wrap);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vh, 5.5rem) 0 clamp(2.4rem, 5vh, 3.4rem);
  max-width: 38rem;
}

.eyebrow {
  margin: 0 0 var(--space-2);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.03em;
}

.hero h1 {
  margin: 0 0 var(--space-2);
  font-family: var(--display);
  font-size: clamp(2.15rem, 4.6vw, 3.05rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 650;
  max-width: 14ch;
}

.hero .lede {
  margin: 0 0 var(--space-3);
  color: #3a4658;
  font-size: 1.08rem;
  line-height: 1.55;
  max-width: 38ch;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.95rem;
}

.hero-secondary { font-size: 0.92rem; }

.trust-line {
  margin: var(--space-3) 0 0;
  max-width: 36rem;
  padding: 0.75rem 0 0.75rem 0.95rem;
  border-left: 3px solid var(--logo-light);
  color: #334255;
  font-size: 0.9rem;
  line-height: 1.5;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.55), transparent 90%);
}

.trust-line strong {
  color: var(--accent-deep);
  font-weight: 650;
}

.page-note {
  margin: var(--space-3) 0 0;
  max-width: 46rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.page-note a { font-weight: 600; text-decoration: none; }
.page-note a:hover { text-decoration: underline; }

.reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: rise 0.7s var(--ease) forwards;
}

.reveal-delay-1 { animation-delay: 0.08s; }
.reveal-delay-2 { animation-delay: 0.16s; }
.reveal-delay-3 { animation-delay: 0.24s; }
.reveal-delay-4 { animation-delay: 0.32s; }

/* —— Sections —— */
.section {
  margin-top: var(--space-5);
}

.section-head {
  margin: 0 0 var(--space-3);
  max-width: 40rem;
}

.section-head h2 {
  margin: 0 0 var(--space-1);
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* —— Steps —— */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.steps li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: var(--space-3) 0 0;
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--logo-light), var(--accent)) 1;
}

.step-n {
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--logo-light), var(--accent));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 95, 184, 0.2);
}

.steps strong {
  display: block;
  margin-bottom: 0.28rem;
  font-size: 0.94rem;
  font-weight: 650;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

/* —— Metrics —— */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(94, 176, 255, 0.1), transparent 42%),
    var(--surface);
  backdrop-filter: blur(8px);
}

.metrics article {
  padding: var(--space-3);
  border-right: 1px solid var(--line);
  opacity: 0;
  transform: translateY(6px);
  animation: rise 0.55s var(--ease) forwards;
}

.metrics article:last-child { border-right: none; }
.metrics article:nth-child(2) { animation-delay: 0.06s; }
.metrics article:nth-child(3) { animation-delay: 0.12s; }
.metrics article:nth-child(4) { animation-delay: 0.18s; }

.metrics span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 0.4rem;
}

.metrics strong {
  display: block;
  min-height: 1.7rem;
  font-family: var(--display);
  font-size: 1.7rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  font-weight: 650;
  line-height: 1.1;
}

.metrics strong.is-loading {
  color: transparent;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    rgba(0, 95, 184, 0.08),
    rgba(94, 176, 255, 0.2),
    rgba(0, 95, 184, 0.08)
  );
  background-size: 200% 100%;
  animation: shimmer 1.1s linear infinite;
}

.metrics-meta {
  margin: var(--space-2) 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.metrics-meta span { color: var(--text); font-weight: 600; }

/* —— Coverage table —— */
.table-wrap {
  overflow: auto;
  max-height: 22rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

th, td {
  text-align: left;
  padding: 0.58rem 0.4rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

th {
  position: sticky;
  top: 0;
  background: rgba(243, 247, 251, 0.96);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

td:nth-child(2),
td:nth-child(3),
th:nth-child(2),
th:nth-child(3) {
  width: 4rem;
  font-variant-numeric: tabular-nums;
}

.bar {
  display: block;
  height: 0.34rem;
  border-radius: 2px;
  background: rgba(0, 95, 184, 0.12);
  overflow: hidden;
  max-width: 10rem;
}

.bar > i {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  background: linear-gradient(90deg, var(--logo-light), var(--accent));
  border-radius: 2px;
  transform-origin: left;
  transform: scaleX(0);
  animation: grow 0.7s var(--ease) 0.12s forwards;
}

/* —— Access form —— */
.access {
  padding-top: var(--space-1);
}

.access-form {
  display: grid;
  gap: var(--space-2);
  max-width: 34rem;
  padding: var(--space-3);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(18, 32, 51, 0.04);
}

.access-form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 650;
}

.access-form input,
.access-form textarea {
  width: 100%;
  border: 1px solid rgba(0, 95, 184, 0.16);
  border-radius: 8px;
  padding: 0.68rem 0.8rem;
  font: inherit;
  font-size: 0.92rem;
  color: var(--text);
  background: #fff;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.access-form input::placeholder,
.access-form textarea::placeholder {
  color: #8a95a8;
  opacity: 1;
}

.access-form textarea {
  min-height: 4.6rem;
  resize: vertical;
}

.access-form .row {
  display: grid;
  gap: var(--space-2);
}

@media (min-width: 640px) {
  .access-form .row { grid-template-columns: 1fr 1fr; }
}

.check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.45;
  font-weight: 500;
}

.check input {
  margin-top: 0.18rem;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.access-form input:focus,
.access-form textarea:focus {
  border-color: rgba(94, 176, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(94, 176, 255, 0.22);
}

.access-form input.is-invalid,
.access-form textarea.is-invalid {
  border-color: #c53b35;
  box-shadow: 0 0 0 3px rgba(197, 59, 53, 0.12);
}

.check a { font-weight: 600; text-decoration: none; }
.check a:hover { text-decoration: underline; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.form-msg {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
  min-height: 1.2em;
}

.form-msg.ok { color: #0b6a3a; font-weight: 600; }
.form-msg.err { color: #a12622; font-weight: 600; }

/* —— Footer —— */
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.74rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--accent-deep);
  text-decoration: underline;
}

/* —— Legal page —— */
.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin: 0 0 var(--space-3);
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
}

.legal-toc a {
  color: var(--accent-deep);
  text-decoration: none;
  font-weight: 600;
}

.legal-toc a:hover { text-decoration: underline; }

.legal {
  font-size: 0.9rem;
  line-height: 1.55;
}

.legal h1 {
  margin: var(--space-4) 0 var(--space-1);
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  letter-spacing: -0.02em;
  font-weight: 650;
}

.legal .meta {
  margin: 0 0 var(--space-3);
  color: var(--muted);
  font-size: 0.78rem;
}

.legal h2 {
  margin: var(--space-4) 0 var(--space-2);
  font-size: 1.05rem;
  font-weight: 650;
  scroll-margin-top: 4.5rem;
}

.legal h3 {
  margin: var(--space-3) 0 var(--space-1);
  font-size: 0.92rem;
  font-weight: 650;
}

.legal p { margin: 0 0 0.7rem; color: #2a2a2a; }
.legal li { margin: 0 0 0.35rem; color: #2a2a2a; }
.legal ul, .legal ol { margin: 0 0 0.85rem; padding-left: 1.2rem; }

.legal .clause {
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.9rem;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.legal .notice {
  margin: 0 0 var(--space-3);
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.legal .notice strong { color: var(--text); }

/* —— Motion —— */
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes grow {
  to { transform: scaleX(1); }
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

@keyframes drift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.05) translate3d(-1.2%, -0.6%, 0); }
}

@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; gap: var(--space-2); }
  .hero h1 { max-width: none; }
  .hero-veil {
    background:
      linear-gradient(180deg, rgba(243, 247, 251, 0.9) 0%, rgba(243, 247, 251, 0.78) 55%, rgba(243, 247, 251, 0.88) 100%);
  }
}

@media (max-width: 720px) {
  .metrics { grid-template-columns: 1fr 1fr; }
  .metrics article:nth-child(2) { border-right: none; }
  .metrics article:nth-child(1),
  .metrics article:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
  .header-inner { align-items: flex-start; }
  .hero-plane { min-height: auto; }
  .access-form { padding: var(--space-2); }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .metrics article,
  .bar > i,
  .metrics strong.is-loading,
  .reveal,
  .hero-visual {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
  .metrics strong.is-loading {
    color: var(--muted);
    background: rgba(0, 95, 184, 0.08);
  }
  .btn:hover { transform: none; }
}
