:root {
  color-scheme: light;
  --bg: #faf8fb;
  --paper: #f5f2f7;
  --surface: #ffffff;
  --line: #e8e3ec;
  --line-2: #d9d1e0;
  --ink: #15111a;
  --ink-2: #57505e;
  --ink-3: #6e6776;
  --purple: #80358a;
  --purple-mid: #8a4193;
  --purple-deep: #6c2486;
  --purple-dark: #3d1645;
  --purple-ink: #5b2364;
  --purple-soft: #c79bce;
  --purple-wash: #f4eaf6;
  --mint: #95e6c1;
  --mint-deep: #6fd1a4;
  --mint-ink: #0b7a57;
  --mint-wash: #e4f7ee;
  --warn: #b7791f;
  --warn-wash: #fbf1dc;
  --bad: #c2410c;
  --bad-wash: #fcede5;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, Consolas, monospace;
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --shadow: 0 1px 2px rgba(61, 22, 69, 0.05), 0 8px 28px -12px rgba(61, 22, 69, 0.18);
}
* {
  box-sizing: border-box;
}
html,
body {
  background: var(--bg);
}
body {
  font-family: var(--font);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-inline: clamp(16px, 4vw, 40px);
}
h1,
h2,
h3,
h4 {
  margin: 0;
  text-wrap: balance;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
p {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
a {
  color: var(--purple);
}
:focus-visible {
  outline: 3px solid var(--purple-soft);
  outline-offset: 2px;
  border-radius: 6px;
}
.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.wrap {
  max-width: 1120px;
  margin-inline: auto;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  font-weight: 500;
}
.lt {
  font-weight: 300;
}
.st {
  font-weight: 800;
}
.ac {
  font-weight: 800;
  color: var(--purple);
}

/* top bar */
.topbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: rgba(250, 248, 251, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  margin-inline: calc(-1 * clamp(16px, 4vw, 40px));
  padding: 12px clamp(16px, 4vw, 40px);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand img {
  height: 30px;
  width: auto;
  display: block;
}
.brand a {
  display: block;
}
.back {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
}
.back:hover {
  color: var(--purple);
}
.brand .sep {
  width: 1px;
  height: 22px;
  background: var(--line-2);
}
.brand .prod {
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
  white-space: nowrap;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  padding: 14px 22px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.15s,
    background 0.15s,
    box-shadow 0.15s;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(128, 53, 138, 0.7);
}
.btn-primary:hover {
  background: var(--purple-deep);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover {
  background: var(--surface);
  color: var(--ink);
}
.btn-light {
  background: #fff;
  color: var(--purple-dark);
}
.btn-light:hover {
  background: var(--mint-wash);
}
.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
}
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn svg {
  width: 18px;
  height: 18px;
}

section.screen {
  padding-block: clamp(28px, 5vw, 56px);
}

/* landing */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(36px, 5.4vw, 60px);
  margin-top: 14px;
}
.hero .lead {
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--ink-2);
  margin-top: 18px;
  max-width: 52ch;
}
.hero .cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero .facts {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 26px;
  color: var(--ink-2);
  font-size: 14px;
}
.hero .facts span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--mint-wash);
  color: var(--mint-ink);
  display: inline-grid;
  place-items: center;
  flex: none;
}
.check svg {
  width: 11px;
  height: 11px;
}

.preview {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 22px;
  position: relative;
}
.preview .ex {
  position: absolute;
  top: -11px;
  right: 18px;
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 6px;
  letter-spacing: 0.06em;
}
.pv-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}
.pv-head h3 {
  font-size: 18px;
}
.pv-head .mono {
  font-size: 11px;
  color: var(--ink-3);
}
.pv-body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
  padding-top: 18px;
}
.pv-fronts {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.pv-front {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--paper);
  font-size: 14px;
}
.pv-front b {
  font-weight: 600;
}
.pv-front .mono {
  font-size: 12px;
  color: var(--ink-2);
}

.how {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.how-item {
  padding: 22px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
}
.how-item .n {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--purple);
  font-weight: 600;
}
.how-item h3 {
  font-size: 18px;
  margin-top: 10px;
}
.how-item p {
  color: var(--ink-2);
  font-size: 15px;
  margin-top: 6px;
}

/* wizard */
.wiz {
  max-width: 760px;
  margin-inline: auto;
}
.progress {
  display: flex;
  gap: 6px;
  margin-bottom: 26px;
}
.progress i {
  flex: 1;
  height: 5px;
  border-radius: 99px;
  background: var(--line);
}
.progress i.on {
  background: var(--purple);
}
.progress i.done {
  background: var(--mint-deep);
}
.wiz-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.wiz-head h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  margin-top: 8px;
}
.wiz-head p {
  color: var(--ink-2);
  margin-top: 6px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow);
  margin-top: 22px;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 20px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.field.full {
  grid-column: 1/-1;
}
.field > label,
.field > .lbl {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.field .hint {
  font-weight: 400;
  color: var(--ink-3);
  font-size: 13px;
}
.inp {
  width: 100%;
  border: 1px solid var(--line-2);
  background: var(--bg);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.inp:focus {
  outline: none;
  border-color: var(--purple);
  background: #fff;
  box-shadow: 0 0 0 3px var(--purple-wash);
}
textarea.inp {
  min-height: 88px;
  resize: vertical;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  border: 1px solid var(--line-2);
  background: var(--surface);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 14px;
  cursor: pointer;
  color: var(--ink-2);
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}
.chip:hover {
  border-color: var(--purple-soft);
  color: var(--ink);
}
.chip[aria-pressed="true"] {
  background: var(--purple-wash);
  border-color: var(--purple);
  color: var(--purple-dark);
  font-weight: 600;
}
.chip[aria-pressed="true"]::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--purple);
}
.err {
  color: var(--bad);
  font-size: 13px;
  min-height: 0;
}
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--ink-2);
}
.consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--purple);
  flex: none;
}
.wiz-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.linkbtn {
  background: none;
  border: 0;
  color: var(--purple);
  font-weight: 600;
  cursor: pointer;
  padding: 6px 0;
  font-size: 14px;
}

/* running */
.run-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
}
.run-head h2 {
  font-size: clamp(26px, 3.6vw, 40px);
  margin-top: 10px;
}
.run-head p {
  color: var(--ink-2);
  margin-top: 8px;
  max-width: 60ch;
}
.overall {
  min-width: 220px;
}
.overall .num {
  font-family: var(--mono);
  font-size: 40px;
  font-weight: 600;
  color: var(--purple-dark);
  line-height: 1;
  text-align: right;
}
.bar {
  height: 8px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
  margin-top: 10px;
}
.bar > i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--purple);
  border-radius: inherit;
  transition: width 0.4s ease;
}
.agents {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.agent {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}
.agent.working {
  border-color: var(--purple-soft);
  box-shadow: 0 10px 30px -18px rgba(128, 53, 138, 0.6);
}
.agent.done {
  border-color: #bfe9d5;
}
.agent-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.av {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--purple-wash);
  color: var(--purple);
  display: grid;
  place-items: center;
  flex: none;
  position: relative;
}
.av svg {
  width: 22px;
  height: 22px;
}
.agent.working .av::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 15px;
  border: 2px solid var(--purple);
  opacity: 0;
  animation: ping 1.6s ease-out infinite;
}
.agent.done .av {
  background: var(--mint-wash);
  color: var(--mint-ink);
}
@keyframes ping {
  0% {
    opacity: 0.6;
    transform: scale(0.92);
  }
  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}
.agent-name {
  font-weight: 700;
  font-size: 15px;
}
.agent-role {
  font-size: 13px;
  color: var(--ink-3);
}
.pill {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink-3);
  white-space: nowrap;
}
.agent.working .pill {
  background: var(--purple-wash);
  color: var(--purple);
}
.agent.done .pill {
  background: var(--mint-wash);
  color: var(--mint-ink);
}
.tasks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
  font-size: 14px;
}
.tasks li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: var(--ink-3);
}
.tasks li .dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
  flex: none;
  margin-top: 3px;
  display: grid;
  place-items: center;
}
.tasks li.now {
  color: var(--ink);
}
.tasks li.now .dot {
  border-color: var(--purple);
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}
.tasks li.ok {
  color: var(--ink-2);
}
.tasks li.ok .dot {
  border-color: var(--mint-deep);
  background: var(--mint);
}
.tasks li.ok .dot::after {
  content: "";
  width: 6px;
  height: 3px;
  border-left: 1.5px solid var(--purple-dark);
  border-bottom: 1.5px solid var(--purple-dark);
  transform: rotate(-45deg) translate(0, -1px);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.stream {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
  background: var(--paper);
  border-radius: 8px;
  padding: 8px 10px;
  height: 52px;
  overflow: hidden;
  line-height: 1.5;
  word-break: break-all;
}
.feed {
  margin-top: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px 20px;
}
.feed h3 {
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.feed ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.feed li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  animation: rise 0.45s ease both;
}
.feed li .who {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--purple);
  background: var(--purple-wash);
  padding: 2px 7px;
  border-radius: 5px;
  margin-top: 2px;
  white-space: nowrap;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* presence fields */
.linkrow {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.linkrow .inp {
  flex: 1;
  min-width: 0;
}
.linkrow .inp:disabled {
  opacity: 0.55;
  background: var(--paper);
}
.linkrow .chip {
  flex: none;
}
.linkstat {
  font-size: 13px;
  min-height: 18px;
}
.linkstat .okk {
  color: var(--mint-ink);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  word-break: break-all;
}
.linkstat .muted {
  color: var(--ink-3);
}
.chip.zero {
  border-style: dashed;
  padding: 11px 16px;
}

/* report */
.rep-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.doc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.doc-sec {
  padding: clamp(22px, 4vw, 44px);
  border-top: 1px solid var(--line);
}
.doc-sec:first-child {
  border-top: 0;
}
.doc-sec > h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  margin-top: 8px;
}
.doc-sec > .sub {
  color: var(--ink-2);
  margin-top: 6px;
  max-width: 68ch;
}
.rep-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.rep-meta .mono {
  font-size: 12px;
  color: var(--ink-3);
}
.rep-title {
  font-size: clamp(30px, 4.4vw, 48px);
  margin-top: 18px;
}
.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.tag {
  font-size: 13px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-2);
}
.score-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  margin-top: 30px;
}
.gauge {
  position: relative;
  width: 200px;
  height: 200px;
}
.gauge svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.gauge .val {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
}
.gauge .val b {
  font-family: var(--mono);
  font-size: 56px;
  font-weight: 600;
  line-height: 1;
  color: var(--purple-dark);
  display: block;
}
.gauge .val small {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
}
.level-name {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.level-name span {
  color: var(--purple);
}
.summary {
  font-size: 17px;
  color: var(--ink-2);
  margin-top: 10px;
  max-width: 62ch;
}
.scale {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 20px;
  max-width: 560px;
}
.scale div {
  font-size: 12px;
  color: var(--ink-3);
}
.scale div i {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: var(--line);
  margin-bottom: 6px;
}
.scale div.on {
  color: var(--purple-dark);
  font-weight: 700;
}
.scale div.on i {
  background: var(--purple);
}
.scale div.past i {
  background: var(--purple-soft);
}
.dims {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 40px;
  margin-top: 24px;
}
.dim-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.dim-top b {
  font-weight: 600;
  font-size: 15px;
}
.dim-top .mono {
  font-size: 14px;
  font-weight: 600;
}
.dim .bar {
  height: 10px;
}
.dim p {
  font-size: 13.5px;
  color: var(--ink-3);
  margin-top: 6px;
}
.dim.low .bar > i {
  background: var(--bad);
}
.dim.mid .bar > i {
  background: #d9a441;
}
.dim.high .bar > i {
  background: var(--mint-deep);
}
.finds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}
.find {
  padding: 18px;
  border-radius: var(--r);
  background: var(--paper);
}
.find h3 {
  font-size: 16px;
  margin-top: 10px;
}
.find p {
  font-size: 14.5px;
  color: var(--ink-2);
  margin-top: 6px;
}
.find .sev {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--bad-wash);
  color: var(--bad);
}
.find .sev.m {
  background: var(--warn-wash);
  color: var(--warn);
}
.entry {
  background: var(--purple-dark);
  color: #fff;
  border-radius: var(--r-lg);
  padding: clamp(22px, 3.4vw, 36px);
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: center;
}
.entry .eyebrow {
  color: var(--mint);
}
.entry h3 {
  font-size: clamp(22px, 2.8vw, 30px);
  margin-top: 10px;
}
.entry p {
  color: #e4d6e8;
  margin-top: 10px;
}
.entry .kv {
  display: grid;
  gap: 10px;
}
.entry .kv div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding-bottom: 10px;
  font-size: 14px;
}
.entry .kv div span:first-child {
  color: #c9b3cf;
}
.entry .kv b {
  font-weight: 600;
  text-align: right;
}
.entry .kv .mint {
  color: var(--mint);
}
.tbl-wrap {
  overflow-x: auto;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
}
table.pres {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 620px;
}
table.pres th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  padding: 12px 16px;
  background: var(--paper);
  letter-spacing: 0.02em;
}
table.pres td {
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}
table.pres td b {
  font-weight: 600;
}
table.pres td.lnk {
  font-size: 12.5px;
  color: var(--purple-ink);
  word-break: break-all;
}
table.pres td.chk {
  color: var(--ink-2);
}
.st-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  white-space: nowrap;
}
.st-pill.ok {
  background: var(--mint-wash);
  color: var(--mint-ink);
}
.st-pill.none {
  background: var(--bad-wash);
  color: var(--bad);
}
.st-pill.na {
  background: var(--paper);
  color: var(--ink-3);
}
.demo-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-3);
}
.demo-note b {
  font-family: var(--mono);
  font-size: 11px;
  background: var(--mint-wash);
  color: var(--mint-ink);
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 4px;
}
.comps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}
.comp {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.comp h3 {
  font-size: 17px;
  line-height: 1.3;
}
.comp p {
  font-size: 14px;
  color: var(--ink-2);
}
.comp .look {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.comp .look b {
  color: var(--ink);
  font-weight: 600;
}
.ctype {
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink-2);
}
.ctype.declarado {
  background: var(--purple-wash);
  color: var(--purple-dark);
}
.ctype.identificado {
  background: var(--warn-wash);
  color: var(--warn);
}
.fronts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.front-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.front-h {
  padding-bottom: 10px;
  border-bottom: 2px solid var(--purple);
}
.front-h b {
  font-size: 18px;
  font-weight: 800;
  display: block;
}
.front-h span {
  font-size: 13px;
  color: var(--ink-3);
}
.ini {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
}
.ini.is-entry {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-wash);
}
.ini h4 {
  font-size: 15.5px;
  line-height: 1.3;
}
.ini p {
  font-size: 14px;
  color: var(--ink-2);
}
.ini .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.badge {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink-2);
  white-space: nowrap;
}
.badge.fast {
  background: var(--mint-wash);
  color: var(--mint-ink);
  font-weight: 600;
}
.badge.hi {
  background: var(--purple-wash);
  color: var(--purple-dark);
  font-weight: 600;
}
.badge.star {
  background: var(--purple);
  color: #fff;
  font-weight: 600;
}
.empty-front {
  font-size: 14px;
  color: var(--ink-3);
  padding: 14px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
}
.road {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 24px;
  counter-reset: ph;
}
.phase {
  position: relative;
  padding-top: 22px;
}
.phase::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  right: -14px;
  height: 2px;
  background: var(--line-2);
}
.phase:last-child::before {
  right: 0;
}
.phase::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--purple);
}
.phase.first::after {
  background: var(--purple);
}
.phase .mono {
  font-size: 12px;
  color: var(--purple);
  font-weight: 600;
}
.phase h4 {
  font-size: 16px;
  margin-top: 6px;
}
.phase p {
  font-size: 14px;
  color: var(--ink-2);
  margin-top: 4px;
}
.qs {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 10px;
  counter-reset: q;
}
.qs li {
  counter-increment: q;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 16px;
  padding: 14px 16px;
  background: var(--paper);
  border-radius: 12px;
}
.qs li::before {
  content: counter(q);
  font-family: var(--mono);
  font-weight: 600;
  color: var(--purple);
  min-width: 14px;
}
.cta-band {
  background: var(--purple);
  color: #fff;
  padding: clamp(26px, 4vw, 44px);
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 24px;
  align-items: center;
}
.cta-band h2 {
  font-size: clamp(24px, 3vw, 34px);
}
.cta-band p {
  color: #ebddee;
  margin-top: 8px;
  max-width: 52ch;
}
.cta-band .row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cta-band img {
  height: 26px;
  width: auto;
  margin-bottom: 16px;
  display: block;
}
.fine {
  font-size: 12.5px;
  color: var(--ink-3);
  padding: 18px clamp(22px, 4vw, 44px);
  background: var(--paper);
}
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  opacity: 0;
  transition: all 0.3s;
  z-index: 50;
  max-width: calc(100vw - 32px);
  display: flex;
  gap: 10px;
  align-items: center;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast .check {
  background: var(--mint);
  color: var(--purple-dark);
}

@media (max-width: 900px) {
  .hero,
  .score-grid,
  .entry,
  .cta-band,
  .run-head {
    grid-template-columns: 1fr;
  }
  .agents,
  .fronts,
  .finds,
  .comps {
    grid-template-columns: 1fr 1fr;
  }
  .how {
    grid-template-columns: 1fr 1fr;
  }
  .road {
    grid-template-columns: 1fr 1fr;
    row-gap: 26px;
  }
  .phase:nth-child(2)::before {
    right: 0;
  }
  .overall .num {
    text-align: left;
  }
  .gauge {
    margin-inline: auto;
  }
}
@media (max-width: 620px) {
  .fields,
  .dims,
  .agents,
  .fronts,
  .finds,
  .how,
  .road,
  .comps {
    grid-template-columns: 1fr;
  }
  .linkrow {
    flex-wrap: wrap;
  }
  .phase::before {
    right: 0;
  }
  .pv-body {
    grid-template-columns: 1fr;
  }
  .brand .sep,
  .brand .prod {
    display: none;
  }
  .btn {
    white-space: normal;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
@media print {
  .topbar,
  .rep-actions,
  .toast,
  .lang-w {
    display: none !important;
  }
  .doc {
    box-shadow: none;
    border: 0;
  }
}

/* producción */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-alert {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bad-wash);
  color: var(--bad);
  font-size: 14.5px;
}
.form-alert a {
  color: inherit;
  font-weight: 600;
}
.wait-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-2);
  background: var(--paper);
  border-radius: 12px;
  padding: 12px 16px;
}
.rev {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--mint-ink);
  background: var(--mint-wash);
  padding: 2px 6px;
  border-radius: 5px;
  vertical-align: middle;
}
.comp .url {
  font-family: var(--mono);
  font-size: 12px;
  word-break: break-all;
  color: var(--purple-ink);
  text-decoration: none;
}
.comp .url:hover {
  text-decoration: underline;
}


@media (max-width: 640px) {
  .wiz-nav {
    padding-bottom: 78px;
  }
}

/* ── Pie legal + enlace de la casilla de autorización ── */
.consent a {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.dx-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  padding: 28px 20px 90px;
  border-top: 1px solid #e4e7ef;
  font-size: 12.5px;
}
.dx-legal a {
  color: #5c6577;
  text-decoration: none;
  transition: color 0.2s ease-out;
}
.dx-legal a:hover {
  color: var(--purple);
}
.dx-legal a:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
  border-radius: 4px;
}
