/* Evalyza landing: design prototype
   Brand tokens from "Logo y marca/evalyza-hoja-de-marca.png" */

:root {
  --tinta: #121633;
  --tinta-2: #1a1f45;
  --tinta-3: #252b5c;
  --tinta-line: #2c3366;
  --coral: #ff5a36;
  --ambar: #ffb020;
  --turquesa: #14b8a6;
  --niebla: #f4f5fa;
  --gris: #8a8fb0;

  /* Dark theme: page ground is a deeper step of Tinta */
  --bg: #0b0e24;
  --bg-2: #0e1230;
  --paper: #161b42;
  --ink: #eceefa;
  --ink-soft: #a3a8c9;
  --line: #232a55;
  --on-tinta: #eceefa;
  --on-tinta-soft: #a3a8c9;

  --grad: linear-gradient(90deg, var(--coral), var(--ambar));

  --r-panel: 24px;
  --r-inner: 14px;
  --r-pill: 999px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --f-display: "Lexend", ui-sans-serif, system-ui, sans-serif;
  --f-body: "Lexend", ui-sans-serif, system-ui, sans-serif;
  --f-mono: "Spline Sans Mono", ui-monospace, "SF Mono", monospace;

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(88px, 11vw, 152px);

  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16.5px;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--ambar); color: var(--tinta); }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; text-underline-offset: 0.2em; }

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px;
  border: 0; border-radius: var(--r-pill);
  font-family: var(--f-display); font-weight: 600; font-size: 16px; letter-spacing: -0.01em;
  white-space: nowrap; cursor: pointer; text-decoration: none;
  transition: transform 160ms var(--ease-out), box-shadow 200ms ease, background-color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--grad);
  color: var(--tinta);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 6px 14px -8px rgba(0, 0, 0, 0.55);
}
.btn-dark { background: var(--on-tinta); color: var(--tinta); }
.btn-small { height: 42px; padding: 0 18px; font-size: 15px; }
.btn .ph { font-size: 18px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 10px 20px -10px rgba(0, 0, 0, 0.65); }
  .btn:hover .ph-arrow-right { transform: translateX(3px); }
  .btn-dark:hover { background: #ffffff; }
}
.btn[disabled] { cursor: progress; opacity: 0.85; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 14, 36, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: block; margin: -12px -14px; }
.brand img { height: 58px; width: auto; }
.nav-links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; font-size: 15px; font-weight: 500; }
.nav-links a { text-decoration: none; color: var(--ink-soft); transition: color 150ms ease; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 104px); }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero h1 { font-size: clamp(2.6rem, 4.6vw, 4.25rem); font-weight: 600; }
.hero h1 .mark { position: relative; white-space: nowrap; display: inline-block; padding-bottom: 0.08em; }
.hero h1 .mark::after {
  content: ""; position: absolute; left: 0.02em; right: 0.02em; bottom: -0.16em;
  height: 0.13em; border-radius: var(--r-pill); background: var(--grad);
  transform-origin: left center; transform: scaleX(1);
}
.js .hero h1 .mark::after { animation: bar-in 900ms var(--ease-out) 250ms both; }
@keyframes bar-in { from { transform: scaleX(0.08); opacity: 0.2; } }
.hero-sub { margin-top: 36px; font-size: 19px; line-height: 1.55; color: var(--ink-soft); max-width: 34ch; }

.join { margin-top: 36px; max-width: 500px; }
.join label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.join-row {
  display: flex; gap: 6px; padding: 6px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-pill);
  box-shadow: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.join-row:focus-within { border-color: var(--ambar); }
.join-row input {
  flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 16px 0 18px; font-size: 16px; outline: none;
}
.join-row input::placeholder { color: var(--on-tinta-soft); }
.join-row .btn { height: 48px; }
.field-msg { min-height: 22px; margin-top: 8px; font-size: 14px; color: var(--ink-soft); }
.field-msg.is-error { color: #ff8a6e; }
.field-msg.is-ok { color: #4fe0cf; }

@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .join-row { flex-direction: column; border-radius: var(--r-panel); padding: 8px; }
  .join-row input { height: 48px; padding: 0 12px; }
  .join-row .btn { width: 100%; }
}

/* ---------- Tinta panel (product surface) ---------- */
.panel {
  background: var(--tinta); color: var(--on-tinta);
  border-radius: var(--r-panel);
  border: 1px solid var(--tinta-line);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(255, 255, 255, 0.06) inset;
  position: relative; overflow: hidden;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 22px; border-bottom: 1px solid var(--tinta-line);
}
.panel-title { display: flex; align-items: center; gap: 12px; font-family: var(--f-display); font-weight: 500; font-size: 15px; }
.panel-title img { width: 30px; height: 30px; border-radius: 10px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
  border-radius: var(--r-pill); font-size: 12px; font-weight: 500; letter-spacing: 0.01em; white-space: nowrap;
}
.tag-sample { background: var(--tinta-3); color: var(--on-tinta-soft); }
.tag-ok { background: rgba(20, 184, 166, 0.16); color: #4fe0cf; }
.tag-watch { background: rgba(255, 176, 32, 0.16); color: #ffc85a; }
.tag-crit { background: rgba(255, 90, 54, 0.18); color: #ff8a6e; }

/* Hero console */
.console-body { display: grid; grid-template-columns: 0.9fr 1.1fr; min-height: 430px; }
.agents { padding: 20px 18px 22px 22px; border-right: 1px solid var(--tinta-line); display: flex; flex-direction: column; gap: 6px; }
.col-label { font-size: 12px; color: var(--on-tinta-soft); margin-bottom: 8px; }
.agent {
  display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center;
  padding: 10px; border-radius: var(--r-inner);
  transition: background-color 300ms ease;
}
.agent.is-active { background: var(--tinta-2); }
.agent-icon {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--tinta-3); color: var(--on-tinta-soft); font-size: 18px;
  transition: background-color 300ms ease, color 300ms ease;
}
.agent.is-active .agent-icon { background: var(--ambar); color: var(--tinta); }
.agent.is-done .agent-icon { background: rgba(20, 184, 166, 0.18); color: #4fe0cf; }
.agent-name { font-size: 14px; font-weight: 500; line-height: 1.3; }
.agent-status { font-size: 12.5px; color: var(--on-tinta-soft); line-height: 1.35; font-family: var(--f-mono); }

.feed { padding: 20px 22px 22px; display: flex; flex-direction: column; min-width: 0; }
.findings { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.finding {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 11px 12px; border-radius: var(--r-inner); background: var(--tinta-2);
  font-size: 13.5px; line-height: 1.4;
}
.js .finding { opacity: 0; transform: translateY(8px); filter: blur(3px); }
.finding.is-in { opacity: 1; transform: none; filter: none; transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out), filter 420ms var(--ease-out); }

.scores { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; gap: 9px; }
.score-row { display: grid; grid-template-columns: 96px 1fr 30px; gap: 12px; align-items: center; font-size: 13px; }
.score-row span:first-child { color: var(--on-tinta-soft); }
.bar { height: 8px; border-radius: var(--r-pill); position: relative; }
.bar::before { /* dotted guide instead of a filled track */
  content: ""; position: absolute; inset: 3px 0; border-top: 2px dotted var(--tinta-line);
}
.bar i {
  position: absolute; inset: 0 auto 0 0; border-radius: inherit; width: var(--v);
  transform-origin: left center;
}
.js .bar i { transform: scaleX(0); }
.bar.is-in i { transform: scaleX(1); transition: transform 900ms var(--ease-out); }
.c-ok { background: var(--turquesa); }
.c-watch { background: var(--ambar); }
.c-crit { background: var(--coral); }
.score-row .mono { text-align: right; color: var(--on-tinta); }

.console-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 22px; border-top: 1px solid var(--tinta-line); font-size: 13px; color: var(--on-tinta-soft);
}
.replay {
  border: 0; background: transparent; color: var(--on-tinta-soft); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: var(--r-pill);
  transition: background-color 150ms ease, color 150ms ease, transform 160ms var(--ease-out);
}
.replay:hover { background: var(--tinta-2); color: var(--on-tinta); }
.replay:active { transform: scale(0.97); }
.progress-text .mono { color: var(--on-tinta); }

@media (max-width: 640px) {
  .console-body { grid-template-columns: 1fr; }
  .agents { border-right: 0; border-bottom: 1px solid var(--tinta-line); display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
  .agents .col-label { grid-column: 1 / -1; }
  .agent { grid-template-columns: 28px 1fr; gap: 8px; padding: 8px; }
  .agent-icon { width: 28px; height: 28px; font-size: 15px; }
  .agent-status { display: none; }
  .score-row { grid-template-columns: 84px 1fr 28px; }
}

/* ---------- Sources marquee ---------- */
.sources { padding: 0 0 var(--section); }
.sources p { text-align: center; color: var(--ink-soft); font-size: 15px; margin-bottom: 28px; }

/* ---------- Section heads ---------- */
.section { padding: var(--section) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { font-size: clamp(2.1rem, 3.8vw, 3.4rem); }
.section-head p { margin-top: 20px; font-size: 18px; color: var(--ink-soft); max-width: 58ch; }

/* ---------- Scroll story ---------- */
.story { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); }
.story-steps { display: flex; flex-direction: column; }
.step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; }
.step:first-child { min-height: 52vh; justify-content: flex-start; padding-top: 12px; }
.step:last-child { min-height: 60vh; }
.step-verb {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-display); font-weight: 600; font-size: clamp(1.9rem, 3vw, 2.6rem); letter-spacing: -0.03em; line-height: 1.1;
  color: #5a6190; transition: color 300ms ease;
}
.step-verb::before {
  content: ""; width: 64px; height: 14px; border-radius: var(--r-pill); background: var(--tinta-3);
  transform: scaleX(0.69); transform-origin: left center;
  transition: background 300ms ease, transform 400ms var(--ease-out);
}
.step.is-active .step-verb { color: var(--ink); }
.step.is-active .step-verb::before { background: var(--grad); transform: none; }
.step p { margin-top: 16px; font-size: 18px; color: var(--ink-soft); max-width: 42ch; }
.step .inline-stage { display: none; }

.stage-wrap { position: sticky; top: 112px; height: min(600px, calc(100vh - 150px)); align-self: start; }
.stage { height: 100%; display: flex; flex-direction: column; }
.stage-screens { position: relative; flex: 1; }
.screen {
  position: absolute; inset: 0; padding: 22px;
  opacity: 0; transform: translateY(10px) scale(0.99); filter: blur(4px); pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease, filter 140ms ease;
}
.screen.is-active {
  opacity: 1; transform: none; filter: none; pointer-events: auto;
  transition: opacity 320ms var(--ease-out) 110ms, transform 420ms var(--ease-out) 110ms, filter 320ms var(--ease-out) 110ms;
}

/* Screen: listen */
.chat { display: flex; flex-direction: column; gap: 12px; }
.bubble { max-width: 84%; padding: 12px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45; }
.bubble small { display: block; font-size: 11.5px; color: var(--on-tinta-soft); margin-bottom: 4px; }
.bubble.agent-b { background: var(--tinta-2); border-bottom-left-radius: 6px; }
.bubble.person-b { background: var(--tinta-3); align-self: flex-end; border-bottom-right-radius: 6px; }
.docs { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.doc {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: var(--r-pill);
  border: 1px solid var(--tinta-line); font-size: 13px; color: var(--on-tinta-soft);
}
.doc .ph { color: var(--ambar); font-size: 16px; }

/* Screen: sort */
.areas-map { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.area-bin { background: var(--tinta-2); border-radius: var(--r-inner); padding: 12px 14px; }
.area-bin header { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 500; margin-bottom: 10px; }
.area-bin header .mono { color: var(--on-tinta-soft); font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chips i { display: block; height: 8px; width: 22px; border-radius: var(--r-pill); background: var(--tinta-line); }
.chips i.h { background: var(--gris); }

/* Screen: score (heatmap) */
.heat { display: grid; grid-template-columns: 112px repeat(4, 1fr); gap: 6px; font-size: 12.5px; align-items: center; }
.heat .hd { color: var(--on-tinta-soft); text-align: center; font-size: 11.5px; }
.heat .rl { color: var(--on-tinta); font-size: 13px; }
.cell { height: 40px; border-radius: 10px; display: grid; place-items: center; font-family: var(--f-mono); font-size: 12px; color: var(--tinta); font-weight: 500; }
.cell.s1 { background: var(--coral); }
.cell.s2 { background: var(--ambar); }
.cell.s3 { background: #7fd8cd; }
.cell.s4 { background: var(--turquesa); }
.legend { display: flex; gap: 16px; margin-top: 18px; font-size: 12.5px; color: var(--on-tinta-soft); flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 16px; height: 8px; border-radius: var(--r-pill); display: inline-block; }

/* Screen: recommend */
.recs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: rec; }
.rec { background: var(--tinta-2); border-radius: var(--r-inner); padding: 14px 16px; display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.rec::before {
  counter-increment: rec; content: counter(rec);
  width: 28px; height: 28px; border-radius: 9px; background: var(--tinta-3); display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 13px; color: var(--on-tinta);
}
.rec:first-child::before { background: var(--on-tinta); color: var(--tinta); }
.rec strong { display: block; font-weight: 500; font-size: 14.5px; line-height: 1.35; }
.rec .meta { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; }
  .stage-wrap { display: none; }
  .step, .step:first-child, .step:last-child { min-height: 0; padding: 28px 0; }
  .step-verb { color: var(--ink); }
  .step-verb::before { background: var(--grad); transform: none; }
  .step .inline-stage { display: block; margin-top: 24px; }
  .inline-stage .screen { position: relative; opacity: 1; transform: none; filter: none; }
}

/* ---------- Framework radar ---------- */
.framework-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.radar-box { position: relative; }
.radar { width: 100%; height: auto; overflow: visible; }
.radar .ring { fill: none; stroke: var(--line); stroke-width: 1; }
.radar .axis { stroke: var(--line); stroke-width: 1; transition: stroke 200ms ease; }
.radar .axis.is-on { stroke: var(--ink); stroke-width: 1.5; }
.radar .expected { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 5 5; }
.radar .actual { fill: rgba(20, 184, 166, 0.22); stroke: var(--turquesa); stroke-width: 2.5; stroke-linejoin: round; }
.radar .pt { fill: var(--paper); stroke: var(--turquesa); stroke-width: 2.5; }
.radar .pt.is-on { fill: var(--turquesa); }
.radar text { font-family: var(--f-body); font-size: 13px; fill: var(--ink-soft); cursor: pointer; }
.radar text.is-on { fill: var(--ink); font-weight: 600; }
.radar-legend { display: flex; justify-content: center; gap: 24px; font-size: 14px; color: var(--ink-soft); margin-top: 12px; flex-wrap: wrap; }
.radar-legend span { display: inline-flex; align-items: center; gap: 8px; }
.sw-actual { width: 18px; height: 10px; border-radius: var(--r-pill); background: var(--turquesa); }
.sw-expected { width: 18px; height: 0; border-top: 2px dashed var(--ink); }

.segmented {
  display: inline-flex; padding: 4px; gap: 2px; border-radius: var(--r-pill);
  background: var(--paper); border: 1px solid var(--line); position: relative;
}
.segmented button {
  position: relative; z-index: 1; border: 0; background: transparent; cursor: pointer;
  height: 40px; padding: 0 18px; border-radius: var(--r-pill); font-size: 15px; font-weight: 500; color: var(--ink-soft);
  transition: color 200ms ease;
}
.segmented button[aria-pressed="true"] { color: var(--tinta); }
.segmented .thumb {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; border-radius: var(--r-pill); background: var(--on-tinta);
  transition: transform 300ms var(--ease-out);
}
.fw-controls { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.fw-controls label { font-size: 14px; font-weight: 500; }

.area-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; list-style: none; margin: 0; padding: 0; }
.area-btn {
  width: 100%; text-align: left; border: 1px solid transparent; background: transparent; cursor: pointer;
  padding: 10px 14px; border-radius: var(--r-inner);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 15px; font-weight: 500; color: var(--ink);
  transition: background-color 150ms ease, border-color 150ms ease;
}
.area-btn .mono { font-size: 13px; color: var(--ink-soft); font-weight: 400; }
.area-btn:hover { background: var(--paper); }
.area-btn[aria-pressed="true"] { background: var(--paper); border-color: var(--ink-soft); }
.area-detail { margin-top: 20px; padding: 22px 24px; border-radius: var(--r-panel); background: var(--paper); border: 1px solid var(--line); min-height: 196px; }
.area-detail h3 { font-size: 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.area-detail ul { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.area-detail li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 15.5px; color: var(--ink-soft); line-height: 1.45; }
.area-detail li .ph { color: var(--turquesa); font-size: 18px; margin-top: 2px; }
.swap { transition: opacity 180ms ease, filter 180ms ease; }
.swap.is-swapping { opacity: 0; filter: blur(2px); }
.tag-light-ok { background: rgba(20, 184, 166, 0.16); color: #4fe0cf; }
.tag-light-watch { background: rgba(255, 176, 32, 0.16); color: #ffc85a; }
.tag-light-crit { background: rgba(255, 90, 54, 0.18); color: #ff8a6e; }

@media (max-width: 900px) {
  .framework-grid { grid-template-columns: 1fr; }
  .radar-box { max-width: 520px; margin: 0 auto; width: 100%; }
}
@media (max-width: 460px) { .area-list { grid-template-columns: 1fr; } }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile { border-radius: var(--r-panel); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 14px; overflow: hidden; position: relative; }
.tile h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); }
.tile p { font-size: 16px; max-width: 40ch; }
.t-config { grid-column: span 4; background: var(--paper); border: 1px solid var(--line); }
.t-config p { color: var(--ink-soft); }
.t-track { grid-column: span 2; background: var(--tinta); color: var(--on-tinta); }
.t-track p { color: var(--on-tinta-soft); }
.t-privacy { grid-column: span 2; background: var(--paper); border: 1px solid var(--line); }
.t-privacy p { color: var(--ink-soft); }
.t-portfolio { grid-column: span 4; background: var(--tinta); color: var(--on-tinta); }
.t-portfolio p { color: var(--on-tinta-soft); }

.config { margin-top: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); padding-top: 18px; }
.config div { padding: 0 16px; border-left: 1px solid var(--line); }
.config div:first-child { padding-left: 0; border-left: 0; }
.config small { display: block; font-size: 13px; color: var(--ink-soft); }
.config b { display: block; font-family: var(--f-display); font-weight: 500; font-size: 18px; margin-top: 4px; letter-spacing: -0.01em; }
@media (max-width: 720px) { .config { grid-template-columns: 1fr 1fr; row-gap: 16px; } .config div:nth-child(3) { padding-left: 0; border-left: 0; } }

.trend { margin-top: auto; }
.trend svg { width: 100%; height: auto; }
.trend .ln { fill: none; stroke: var(--turquesa); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.trend .dt { fill: var(--tinta); stroke: var(--turquesa); stroke-width: 3; }
.trend text { fill: var(--on-tinta-soft); font-family: var(--f-mono); font-size: 12px; }
.trend .val { fill: var(--on-tinta); }

.lock { width: 56px; height: 56px; border-radius: 16px; background: var(--niebla); display: grid; place-items: center; font-size: 28px; color: var(--tinta); }

.portfolio-heat { margin-top: auto; display: grid; grid-template-columns: 110px repeat(5, 1fr); gap: 6px; font-size: 12.5px; align-items: center; }
.portfolio-heat .hd { text-align: center; color: var(--on-tinta-soft); font-size: 12px; }
.portfolio-heat .rl { font-weight: 500; }
.portfolio-heat .cell { height: 30px; border: 0; color: var(--tinta); }
.portfolio-heat .cell.s1 { background: var(--coral); }
.portfolio-heat .cell.s2 { background: var(--ambar); }
.portfolio-heat .cell.s3 { background: #7fd8cd; }
.portfolio-heat .cell.s4 { background: var(--turquesa); }

@media (max-width: 900px) {
  .t-config, .t-portfolio { grid-column: span 6; }
  .t-track, .t-privacy { grid-column: span 3; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .t-config, .t-portfolio, .t-track, .t-privacy { grid-column: auto; }
  .portfolio-heat { grid-template-columns: 84px repeat(5, 1fr); }
}

/* ---------- Close: self-check + waitlist ---------- */
.close { padding: 0 0 var(--section); }
.close-panel { padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
.close-panel h2 { font-size: clamp(2rem, 3.4vw, 3rem); color: var(--on-tinta); }
.close-panel > div > p { margin-top: 16px; color: var(--on-tinta-soft); font-size: 17px; max-width: 46ch; }
.quiz { margin-top: 32px; display: flex; flex-direction: column; gap: 22px; }
.q legend { font-size: 15px; font-weight: 500; margin-bottom: 10px; padding: 0; }
.q { border: 0; margin: 0; padding: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills button {
  height: 40px; padding: 0 16px; border-radius: var(--r-pill); cursor: pointer;
  border: 1px solid var(--tinta-line); background: transparent; color: var(--on-tinta); font-size: 14.5px;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 160ms var(--ease-out);
}
.pills button:hover { border-color: var(--gris); }
.pills button:active { transform: scale(0.97); }
.pills button[aria-pressed="true"] { background: var(--on-tinta); color: var(--tinta); border-color: var(--on-tinta); }

.result {
  margin-top: 28px; padding: 18px 20px; border-radius: var(--r-inner); background: var(--tinta-2);
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start;
}
.result .result-icon { width: 44px; height: 44px; border-radius: var(--r-inner); background: var(--on-tinta); display: grid; place-items: center; color: var(--tinta); font-size: 22px; }
.result small { display: block; color: var(--on-tinta-soft); font-size: 13px; }
.result strong { display: block; font-family: var(--f-display); font-weight: 600; font-size: 21px; letter-spacing: -0.02em; margin-top: 2px; }
.result p { color: var(--on-tinta-soft); font-size: 14.5px; margin-top: 6px; }

.waitlist {
  background: var(--paper); color: var(--ink); border-radius: 20px; padding: clamp(22px, 3vw, 34px);
  display: flex; flex-direction: column; gap: 16px; align-self: start;
}
.waitlist h3 { font-size: 24px; }
.waitlist > p { color: var(--ink-soft); font-size: 15.5px; margin-top: -6px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field select {
  height: 50px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--tinta-line); background: var(--paper); font-size: 16px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field input::placeholder { color: var(--on-tinta-soft); }
.field input:focus, .field select:focus { outline: none; border-color: var(--ambar); box-shadow: 0 0 0 3px rgba(255, 176, 32, 0.18); }
.field input[aria-invalid="true"] { border-color: #ff8a6e; }
.field .err { font-size: 13.5px; color: #ff8a6e; min-height: 0; }
.waitlist .btn { width: 100%; margin-top: 4px; }
.privacy-note { font-size: 13.5px; color: var(--ink-soft); display: flex; gap: 8px; align-items: flex-start; }
.privacy-note .ph { font-size: 16px; margin-top: 3px; }

.btn .spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(18, 22, 51, 0.25); border-top-color: var(--tinta); animation: spin 600ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-label { transition: filter 200ms ease, opacity 200ms ease; display: inline-flex; align-items: center; gap: 10px; }

.success { display: none; text-align: left; }
.waitlist.is-done form { display: none; }
.waitlist.is-done .success { display: flex; flex-direction: column; gap: 12px; }
.success .check { width: 52px; height: 52px; border-radius: 16px; background: rgba(20, 184, 166, 0.16); color: #4fe0cf; display: grid; place-items: center; font-size: 28px; }
.success p { color: var(--ink-soft); }

@media (max-width: 900px) { .close-panel { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); }
.faq-grid h2 { font-size: clamp(2rem, 3.2vw, 2.8rem); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; font-family: var(--f-display); font-weight: 500; font-size: 19px; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ph { font-size: 20px; transition: transform 250ms var(--ease-out); flex: none; }
.faq details[open] summary .ph { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-soft); max-width: 60ch; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { padding: 40px 0 48px; border-top: 1px solid var(--line); }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; font-size: 14px; color: var(--ink-soft); }
.footer nav { display: flex; gap: 24px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .finding, .js .bar i { opacity: 1; transform: none; filter: none; }
  .screen { transition: opacity 200ms ease; transform: none; filter: none; }
  .js .hero h1 .mark::after { animation: none; }
}

/* ---------- Small-screen fixes ---------- */
.story-steps, .story-grid > * { min-width: 0; }
@media (max-width: 520px) {
  .nav .btn-small { height: 38px; padding: 0 14px; font-size: 14px; }
  .brand img { height: 50px; }
  .heat { grid-template-columns: 78px repeat(4, minmax(0, 1fr)); gap: 4px; }
  .heat .hd { font-size: 11px; letter-spacing: -0.01em; }
  .heat .rl { font-size: 12px; }
  .screen { padding: 16px; }
  .areas-map { gap: 8px; }
  .area-bin { padding: 10px 12px; }
  .radar text { font-size: 19px; }
  .segmented button { padding: 0 14px; }
}

/* ---------- Review fixes ---------- */
.tile-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.tag-sample-light { background: var(--tinta-3); color: var(--on-tinta-soft); }

/* Sources strip (replaces logo marquee) */
.sources-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; }
.source { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px; border-radius: var(--r-pill); background: var(--paper); border: 1px solid var(--line); font-size: 15px; font-weight: 400; }
.source .ph { font-size: 20px; color: var(--turquesa); }

/* Evidence-linked finding (privacy tile) */
.evidence { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.evidence .claim { padding: 12px 14px; border-radius: var(--r-inner); background: var(--tinta-2); font-size: 14.5px; line-height: 1.4; }
.evidence .src { display: flex; flex-wrap: wrap; gap: 6px; }
.evidence .src span { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: var(--r-pill); border: 1px solid var(--line); font-size: 12.5px; color: var(--ink-soft); }
.evidence .src .ph { font-size: 14px; color: var(--turquesa); }

/* Waitlist flattened onto the Tinta panel */
.waitlist { background: transparent; color: var(--on-tinta); padding: 0; border-radius: 0; }
.waitlist h3 { color: var(--on-tinta); }
.waitlist-intro { color: var(--on-tinta-soft); font-size: 15.5px; margin-top: -6px; }
.waitlist .field input, .waitlist .field select { background: var(--tinta-2); border-color: var(--tinta-line); color: var(--on-tinta); }
.waitlist .field input::placeholder { color: var(--on-tinta-soft); }
.waitlist .field input:focus, .waitlist .field select:focus { border-color: var(--ambar); box-shadow: 0 0 0 3px rgba(255, 176, 32, 0.18); }
.waitlist .field .err { color: #ff8a6e; }
.waitlist .privacy-note, .waitlist .success p { color: var(--on-tinta-soft); }
.waitlist .success h3 { color: var(--on-tinta); }
.waitlist .success .check { background: rgba(20, 184, 166, 0.16); color: #4fe0cf; }
.result strong { margin-top: 0; }
@media (max-width: 900px) { .contact { border-left: 0; padding-left: 0; border-top: 1px solid var(--tinta-line); padding-top: 32px; } }
/* Primary button on Tinta: neutral elevation, no coloured glow */
.panel .btn-primary, .panel .btn-primary:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 6px 14px -8px rgba(0, 0, 0, 0.5); }

/* Stage: content centred in its frame, running report strip at the foot */
.screen { display: flex; flex-direction: column; justify-content: center; }
.stage-foot { display: flex; align-items: center; gap: 16px; padding: 16px 22px; border-top: 1px solid var(--tinta-line); font-size: 12.5px; color: var(--on-tinta-soft); }
.build-track { display: flex; gap: 6px; flex: none; }
.build-track i { width: 34px; height: 8px; border-radius: var(--r-pill); background: var(--tinta-3); transition: background-color 300ms ease; }
.build-track i.is-on { background: var(--turquesa); }

/* ---------- Languages, call request ---------- */
[hidden] { display: none !important; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 12px;
  border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--paper); cursor: pointer;
  transition: border-color 150ms ease;
}
.lang:hover, .lang:focus-within { border-color: var(--ink-soft); }
.lang select {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent; cursor: pointer;
  font-family: var(--f-display); font-weight: 500; font-size: 14px; padding: 0 18px 0 22px; margin: 0 -18px 0 -22px; height: 40px; outline: none;
}
.lang .ph { font-size: 16px; pointer-events: none; }
.lang .ph-caret-down { font-size: 12px; }
.lang:focus-within { outline: 2px solid var(--coral); outline-offset: 2px; }

.btn-ghost {
  margin-top: 14px; height: 46px; padding: 0 20px; background: transparent; color: var(--ink);
  border: 1px solid var(--tinta-line); font-weight: 500;
}
.btn-ghost .ph { font-size: 18px; }
@media (hover: hover) and (pointer: fine) { .btn-ghost:hover { border-color: var(--ink-soft); background: var(--paper); } }

.contact { display: flex; flex-direction: column; gap: 24px; align-self: start; border-left: 1px solid var(--tinta-line); padding-left: clamp(24px, 4vw, 56px); }
.segmented-dark { background: var(--tinta-2); border-color: var(--tinta-line); align-self: flex-start; }
.segmented-dark button { color: var(--on-tinta-soft); }
.segmented-dark button[aria-pressed="true"] { color: var(--tinta); }
.segmented-dark .thumb { background: var(--on-tinta); }
.form-stack { display: flex; flex-direction: column; gap: 16px; }
.phone-row { display: grid; grid-template-columns: 96px 1fr; gap: 8px; }
.phone-row select, .phone-row input {
  height: 50px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--tinta-line); background: var(--tinta-2); color: var(--on-tinta); font-size: 16px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.phone-row input::placeholder { color: var(--on-tinta-soft); }
.phone-row select:focus, .phone-row input:focus { outline: none; border-color: var(--ambar); box-shadow: 0 0 0 3px rgba(255, 176, 32, 0.18); }
.phone-row input[aria-invalid="true"], .waitlist .field input[aria-invalid="true"] { border-color: #ff8a6e; }

@media (max-width: 520px) {
  .lang { height: 38px; padding: 0 10px; }
  .lang .ph-globe { display: none; }
  .lang select { padding-left: 0; margin-left: 0; }
  .nav-actions { gap: 6px; }
  .lang .ph-caret-down { display: none; }
  .nav .brand img { height: 44px; }
  .btn-ghost { width: 100%; }
}
@media (max-width: 380px) { .nav-cta { display: none; } }
/* Longer headlines in fr/de/it */
html:is([lang="fr"], [lang="de"], [lang="it"]) .hero h1 { font-size: clamp(2.3rem, 3.9vw, 3.6rem); }

/* ---------- Dark theme refinements ---------- */
.t-config, .t-privacy { background: var(--paper); border-color: var(--tinta-line); }
.t-track, .t-portfolio { border: 1px solid var(--tinta-line); }
.lang select option, .field select option { background: var(--tinta); color: var(--on-tinta); }

/* ---------- Consent checkbox ---------- */
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 13.5px; line-height: 1.45; color: var(--ink-soft); cursor: pointer; }
.consent input {
  appearance: none; -webkit-appearance: none; margin: 1px 0 0; width: 20px; height: 20px; border-radius: 6px;
  border: 1.5px solid var(--gris); background: transparent; display: grid; place-items: center; cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, transform 160ms var(--ease-out);
}
.consent input::after { content: ""; width: 10px; height: 6px; border: 2px solid var(--tinta); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px) scale(0.6); opacity: 0; transition: opacity 120ms ease, transform 160ms var(--ease-out); }
.consent input:checked { background: var(--turquesa); border-color: var(--turquesa); }
.consent input:checked::after { opacity: 1; transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.consent input:active { transform: scale(0.94); }
.consent input:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
.consent input[aria-invalid="true"] { border-color: #ff8a6e; }
.consent a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gris); text-underline-offset: 3px; }
.consent a:hover { text-decoration-color: var(--ink); }
.join .consent { margin-top: 12px; max-width: 460px; }

/* ---------- Legal pages ---------- */
.legal { padding: clamp(40px, 6vw, 72px) 0 var(--section); }
.legal-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.legal-toc { position: sticky; top: 104px; max-height: calc(100vh - 128px); overflow: auto; padding-right: 8px; }
.legal-toc-title { font-size: 13px; color: var(--ink-soft); margin-bottom: 12px; }
.legal-toc ol, .legal-toc-mobile ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; counter-reset: toc; }
.legal-toc a, .legal-toc-mobile a {
  display: grid; grid-template-columns: 26px 1fr; gap: 4px; padding: 7px 10px; border-radius: 10px;
  font-size: 14px; line-height: 1.35; color: var(--ink-soft); text-decoration: none; counter-increment: toc;
  transition: background-color 150ms ease, color 150ms ease;
}
.legal-toc a::before, .legal-toc-mobile a::before { content: counter(toc) "."; font-family: var(--f-mono); font-size: 12.5px; color: var(--gris); padding-top: 1px; }
.legal-toc a:hover { color: var(--ink); background: var(--paper); }
.legal-toc a[aria-current] { color: var(--ink); background: var(--paper); }
.legal-toc a[aria-current]::before { color: var(--ambar); }

.legal-doc { max-width: 74ch; }
.legal-back { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--ink-soft); text-decoration: none; margin-bottom: 28px; transition: color 150ms ease; }
.legal-back:hover { color: var(--ink); }
.legal-doc h1 { font-size: clamp(2.3rem, 4.2vw, 3.6rem); }
.legal-date { margin-top: 14px; font-family: var(--f-mono); font-size: 13.5px; color: var(--ink-soft); }
.legal-pending {
  margin-top: 24px; display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 14px 16px; border-radius: var(--r-inner);
  background: rgba(255, 176, 32, 0.08); border: 1px solid rgba(255, 176, 32, 0.3); color: #ffd48a; font-size: 14.5px; line-height: 1.5;
}
.legal-pending .ph { font-size: 20px; margin-top: 1px; }
.legal-intro { margin-top: 36px; padding-bottom: 8px; }
.legal-intro p { font-size: 18px; color: var(--ink); }
.legal-doc p, .legal-doc li { color: #cfd2e8; font-size: 16.5px; line-height: 1.75; }
.legal-doc p + p, .legal-doc ul + p, .legal-doc p + ul { margin-top: 14px; }
.legal-section { padding-top: 48px; scroll-margin-top: 96px; }
.legal-section h2 { font-size: clamp(1.35rem, 2vw, 1.6rem); letter-spacing: -0.02em; margin-bottom: 16px; display: flex; gap: 10px; align-items: baseline; }
.legal-num { font-size: 0.8em; color: var(--ambar); font-weight: 400; }
.legal-doc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.legal-doc ul li { position: relative; padding-left: 26px; }
.legal-doc ul li::before { content: ""; position: absolute; left: 2px; top: 0.78em; width: 12px; height: 4px; border-radius: var(--r-pill); background: var(--tinta-line); }
.legal-doc a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gris); text-underline-offset: 3px; }
mark.todo { background: rgba(255, 176, 32, 0.16); color: #ffc85a; padding: 1px 6px; border-radius: 6px; font-weight: 500; }
.legal-note { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px !important; color: var(--ink-soft) !important; }
.legal-other { margin-top: 16px; }
.legal-other a { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-display); font-weight: 500; text-decoration: none; }
.legal-other a .ph { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .legal-other a:hover .ph { transform: translateX(3px); } }

.legal-toc-mobile { display: none; margin-top: 24px; border: 1px solid var(--line); border-radius: var(--r-inner); background: var(--paper); }
.legal-toc-mobile summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; font-weight: 500; font-size: 15px; }
.legal-toc-mobile summary::-webkit-details-marker { display: none; }
.legal-toc-mobile[open] summary .ph { transform: rotate(180deg); }
.legal-toc-mobile summary .ph { transition: transform 200ms var(--ease-out); }
.legal-toc-mobile ol { padding: 0 8px 10px; }

@media (max-width: 900px) {
  .legal-grid { grid-template-columns: 1fr; }
  .legal-toc { display: none; }
  .legal-toc-mobile { display: block; }
}
/* Consent label must win over the generic form-label rules */
.join label.consent, .field label.consent { display: grid; font-size: 13.5px; font-weight: 400; margin-bottom: 0; color: var(--ink-soft); }

/* ---------- Theme toggle (dark is the default) ---------- */
.theme-toggle {
  position: relative; width: 42px; height: 42px; flex: none; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer;
  display: grid; place-items: center;
  transition: border-color 150ms ease, transform 160ms var(--ease-out);
}
.theme-toggle:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .theme-toggle:hover { border-color: var(--ink-soft); } }
.theme-toggle .ph {
  grid-area: 1 / 1; font-size: 19px;
  transition: opacity 200ms var(--ease-out), transform 260ms var(--ease-out), filter 200ms var(--ease-out);
}
/* Dark theme shows the sun (go light); light theme shows the moon (go dark) */
.theme-toggle .ph-moon { opacity: 0; transform: rotate(-60deg) scale(0.6); filter: blur(2px); }
:root[data-theme="light"] .theme-toggle .ph-sun { opacity: 0; transform: rotate(60deg) scale(0.6); filter: blur(2px); }
:root[data-theme="light"] .theme-toggle .ph-moon { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) { .theme-toggle .ph { transition: opacity 150ms ease; transform: none !important; filter: none !important; } }
@media (max-width: 520px) { .theme-toggle { width: 38px; height: 38px; } }

/* All colours change in one frame when the theme switches */
.theme-switching, .theme-switching *, .theme-switching *::before, .theme-switching *::after { transition: none !important; }

/* Logo per theme */
.logo-on-light { display: none !important; }
:root[data-theme="light"] .logo-on-light { display: block !important; }
:root[data-theme="light"] .logo-on-dark { display: none !important; }

/* ---------- Light theme (the original Niebla look) ---------- */
:root[data-theme="light"] {
  --bg: #f4f5fa;
  --bg-2: #f4f5fa;
  --paper: #ffffff;
  --ink: var(--tinta);
  --ink-soft: #4d5378;
  --line: #e2e4ef;
  color-scheme: light;
}
:root[data-theme="light"] .btn-dark { background: var(--tinta); color: var(--on-tinta); }
@media (hover: hover) and (pointer: fine) { :root[data-theme="light"] .btn-dark:hover { background: var(--tinta-3); } }
:root[data-theme="light"] .nav { background: rgba(244, 245, 250, 0.82); }
:root[data-theme="light"] .join-row:focus-within { border-color: var(--tinta); }
:root[data-theme="light"] .join-row input::placeholder { color: #6b7194; }
:root[data-theme="light"] .field-msg.is-error { color: #c7361a; }
:root[data-theme="light"] .field-msg.is-ok { color: #0c7f73; }
:root[data-theme="light"] .panel { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255, 255, 255, 0.06) inset; }
:root[data-theme="light"] .btn-primary { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 6px 14px -8px rgba(0, 0, 0, 0.25); }
:root[data-theme="light"] .step-verb { color: #b9bdd6; }
:root[data-theme="light"] .step-verb::before { background: #dfe1ee; }
:root[data-theme="light"] .step.is-active .step-verb, :root[data-theme="light"] .step.is-active .step-verb { color: var(--ink); }
:root[data-theme="light"] .step.is-active .step-verb::before { background: var(--grad); }
:root[data-theme="light"] .radar .ring, :root[data-theme="light"] .radar .axis { stroke: #d9dcea; }
:root[data-theme="light"] .radar .axis.is-on { stroke: var(--tinta); }
:root[data-theme="light"] .segmented:not(.segmented-dark) .thumb { background: var(--tinta); }
:root[data-theme="light"] .segmented:not(.segmented-dark) button[aria-pressed="true"] { color: var(--on-tinta); }
:root[data-theme="light"] .area-btn[aria-pressed="true"] { border-color: var(--tinta); }
:root[data-theme="light"] .tag-light-ok { background: rgba(20, 184, 166, 0.14); color: #0b6f64; }
:root[data-theme="light"] .tag-light-watch { background: rgba(255, 176, 32, 0.2); color: #8a5a00; }
:root[data-theme="light"] .tag-light-crit { background: rgba(255, 90, 54, 0.14); color: #b3321a; }
:root[data-theme="light"] .tag-sample-light { background: var(--bg); color: var(--ink-soft); border: 1px solid var(--line); }
:root[data-theme="light"] .t-config, :root[data-theme="light"] .t-privacy { border-color: var(--line); }
:root[data-theme="light"] .source .ph, :root[data-theme="light"] .evidence .src .ph { color: var(--tinta); }
:root[data-theme="light"] .evidence .claim { background: var(--bg); }
:root[data-theme="light"] .lang:hover, :root[data-theme="light"] .lang:focus-within { border-color: var(--tinta); }
:root[data-theme="light"] .lang select option { background: #ffffff; color: var(--tinta); }
:root[data-theme="light"] .btn-ghost { border-color: #cfd2e3; }
@media (hover: hover) and (pointer: fine) {
  :root[data-theme="light"] .btn-ghost:hover, :root[data-theme="light"] .theme-toggle:hover { border-color: var(--tinta); }
}
/* Consent checkbox on the light ground (inside the Tinta panel it keeps the dark styling) */
:root[data-theme="light"] .join .consent input { border-color: #8a8fb0; }
/* Legal pages */
:root[data-theme="light"] .legal-doc p, :root[data-theme="light"] .legal-doc li { color: #3d4366; }
:root[data-theme="light"] .legal-intro p { color: var(--ink); }
:root[data-theme="light"] .legal-note { color: var(--ink-soft) !important; }
:root[data-theme="light"] .legal-num, :root[data-theme="light"] .legal-toc a[aria-current]::before { color: #b26b00; }
:root[data-theme="light"] mark.todo { background: rgba(255, 176, 32, 0.22); color: #6b4500; }
:root[data-theme="light"] .legal-pending { background: rgba(255, 176, 32, 0.12); border-color: rgba(255, 176, 32, 0.45); color: #6b4500; }
:root[data-theme="light"] .legal-doc ul li::before { background: #cfd2e3; }
