:root {
  --bg: #07070a;
  --card: #0e0e13;
  --card-2: #13131a;
  --fg: #f4f2ee;
  --soft: #c9c7cf;
  --mute: #8b8a93;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --lime: #c8ff5a;
  --violet: #7b5cff;
  --orange: #ff6b4a;
  --amber: #ffc24a;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 22px;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 500 16px/1.5 "Inter Tight", system-ui, -apple-system, sans-serif;
  letter-spacing: -0.01em;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; border: 0; background: none; }
em { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 560px; margin: 0 auto; padding: 0 16px; }
.label, .mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute);
}

/* header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 16px 0 6px; }
.logo { font-size: 22px; font-weight: 600; letter-spacing: -0.05em; text-decoration: none; }
.logo b { color: var(--lime); font-weight: 600; }
.top .label a { text-decoration: none; }
.top .label b { color: var(--lime); font-weight: 500; }

/* hero */
.hero { position: relative; padding: 34px 0 26px; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -20px -16px; z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; left: -16px; right: -16px; top: 0; height: 2px; z-index: -1;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  box-shadow: 0 0 24px 4px rgba(200, 255, 90, 0.35);
  opacity: 0; animation: sweep 5s var(--ease) 0.6s infinite;
}
@keyframes sweep { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: 0.8; } 70% { opacity: 0.5; } 100% { transform: translateY(330px); opacity: 0; } }
.hero h1 { font-size: clamp(42px, 12.5vw, 66px); line-height: 0.95; font-weight: 600; letter-spacing: -0.055em; margin: 12px 0 14px; }
.hero h1 em { color: var(--lime); font-size: 1.08em; display: inline-block; min-width: 4.2ch; }
.lead { color: var(--soft); font-size: 17px; line-height: 1.45; max-width: 30em; }

.scan-form { display: flex; gap: 8px; margin-top: 22px; padding: 6px; background: var(--card); border: 1px solid var(--line-2); border-radius: 18px; transition: border-color 0.3s, box-shadow 0.3s; }
.scan-form:focus-within { border-color: rgba(200, 255, 90, 0.55); box-shadow: 0 0 0 4px rgba(200, 255, 90, 0.08); }
.scan-form input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; padding: 0 10px; font-size: 17px; }
.scan-form input::placeholder { color: #5d5c66; }
.hint { color: var(--mute); font-size: 13.5px; margin-top: 10px; }
.error { color: var(--orange); font-size: 14.5px; margin-top: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 14px; font-weight: 600; font-size: 16px; text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.25s, opacity 0.25s;
}
.btn:active { transform: scale(0.96); }
.btn.primary { background: var(--lime); color: #0b0d05; }
.btn.primary:disabled { background: #2a2c25; color: var(--mute); cursor: default; transform: none; }
.btn.ghost { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); }
.btn.wide { width: 100%; }

/* what we look at */
.how { display: grid; gap: 8px; padding: 6px 0 30px; }
.how div { display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.how i { font-style: normal; font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--lime); width: 22px; flex: none; }
.how strong { display: block; font-weight: 600; font-size: 15.5px; }
.how span { color: var(--mute); font-size: 14px; line-height: 1.35; display: block; }

/* scanning */
.scanning { padding: 30px 0 40px; text-align: center; }
.radar {
  width: 168px; height: 168px; margin: 0 auto 22px; border-radius: 50%; position: relative;
  background: radial-gradient(circle, transparent 0 32%, var(--line) 32.5% 33%, transparent 33.5% 65%, var(--line) 65.5% 66%, transparent 66.5%), var(--card);
  border: 1px solid var(--line-2); overflow: hidden;
}
.radar::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 270deg, rgba(200, 255, 90, 0.05) 300deg, rgba(200, 255, 90, 0.55) 360deg); animation: spin 1.6s linear infinite; }
.radar::after { content: "z"; position: absolute; inset: 0; display: grid; place-items: center; font-weight: 600; font-size: 34px; color: var(--lime); letter-spacing: -0.05em; }
@keyframes spin { to { transform: rotate(360deg); } }
.scan-lines { list-style: none; text-align: left; max-width: 340px; margin: 16px auto 0; display: grid; gap: 8px; }
.scan-lines li { display: flex; gap: 10px; align-items: center; color: var(--soft); font-size: 14.5px; animation: rise 0.5s var(--ease) both; }
.scan-lines li::before { content: ""; width: 14px; height: 14px; flex: none; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--lime); animation: spin 0.8s linear infinite; }
.scan-lines li.done { color: var(--mute); }
.scan-lines li.done::before { border: 0; animation: none; background: var(--lime); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.5l2.5 2.5L11 4.5' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.5l2.5 2.5L11 4.5' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* result */
.result { padding: 18px 0 30px; }
.score-card { position: relative; text-align: center; padding: 26px 18px 18px; border-radius: 28px; background: radial-gradient(120% 80% at 50% 0%, rgba(200, 255, 90, 0.09), transparent 60%), var(--card); border: 1px solid var(--line); overflow: hidden; }
.ring { width: 184px; height: 184px; display: block; margin: 0 auto; transform: rotate(-90deg); overflow: visible; }
.ring circle { fill: none; stroke-width: 9; }
.ring .track { stroke: rgba(255, 255, 255, 0.07); }
.ring .bar { stroke: var(--c, var(--lime)); stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; transition: stroke-dashoffset 1.6s var(--ease); filter: drop-shadow(0 0 10px var(--c, var(--lime))); }
.score-num { position: absolute; top: 26px; left: 0; right: 0; height: 184px; display: grid; place-content: center; }
.score-num span { font-size: 64px; font-weight: 600; letter-spacing: -0.06em; line-height: 1; font-variant-numeric: tabular-nums; }
.score-num small { display: block; color: var(--mute); font-size: 13px; font-family: "JetBrains Mono", monospace; margin-top: 2px; }
.verdict { font-size: 26px; font-weight: 600; letter-spacing: -0.04em; margin-top: 10px; }
.verdict em { color: var(--c, var(--lime)); }
.host { margin-top: 4px; text-transform: none; letter-spacing: 0.02em; font-size: 12.5px; word-break: break-all; }
.row { display: flex; gap: 8px; margin-top: 18px; }
.row .btn { flex: 1; min-height: 44px; font-size: 15px; padding: 0 12px; }

/* what Claude understands */
.ai-card { margin-top: 12px; padding: 20px 18px 16px; border-radius: 24px; background: linear-gradient(170deg, rgba(123, 92, 255, 0.16), transparent 55%), var(--card); border: 1px solid rgba(123, 92, 255, 0.35); }
.ai-card .label { display: flex; align-items: center; gap: 8px; color: #b9a8ff; }
.spark { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 12px 2px rgba(123, 92, 255, 0.8); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.ai-quote { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: 25px; line-height: 1.18; letter-spacing: -0.01em; margin: 10px 0 14px; min-height: 1.2em; }
.ai-quote::after { content: ""; display: inline-block; width: 2px; height: 0.9em; margin-left: 3px; vertical-align: -0.08em; background: var(--violet); animation: pulse 0.9s steps(1) infinite; }
.ai-quote.done::after { display: none; }
.ai-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.ai-cols > div { padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.ai-cols b { display: block; font-size: 12px; font-family: "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; margin-bottom: 6px; }
#ai-ok-box b { color: var(--lime); }
#ai-miss-box b { color: var(--orange); }
.ai-cols ul { list-style: none; display: grid; gap: 5px; }
.ai-cols li { font-size: 13.5px; line-height: 1.3; color: var(--soft); }
.ai-by { color: var(--mute); font-size: 12px; margin-top: 12px; }

.section-title { font-size: 21px; font-weight: 600; letter-spacing: -0.035em; margin: 28px 0 12px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.section-title .mono { font-size: 10.5px; }
.checks { list-style: none; display: grid; gap: 8px; }
.checks details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; animation: rise 0.6s var(--ease) both; }
.checks summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; min-height: 56px; }
.checks summary::-webkit-details-marker { display: none; }
.checks .dot { width: 26px; height: 26px; flex: none; border-radius: 9px; display: grid; place-items: center; font-size: 14px; font-weight: 700; color: #0b0d05; }
.checks .ok .dot { background: var(--lime); }
.checks .warn .dot { background: var(--amber); }
.checks .fail .dot { background: var(--orange); }
.checks .t { flex: 1; font-size: 15.5px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.checks .pts { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--mute); }
.checks .body { padding: 0 16px 16px 54px; color: var(--soft); font-size: 14.5px; line-height: 1.5; }
.checks .fix { margin-top: 8px; color: var(--fg); }
.checks .fix b { color: var(--lime); font-weight: 600; }
.checks details[open] summary .pts { color: var(--fg); }

.kit-card { position: relative; margin-top: 22px; padding: 24px 20px 20px; border-radius: 28px; background: linear-gradient(160deg, rgba(200, 255, 90, 0.14), rgba(123, 92, 255, 0.10) 60%, transparent), var(--card-2); border: 1px solid rgba(200, 255, 90, 0.35); overflow: hidden; }
.kit-card::after { content: ""; position: absolute; top: 0; left: -60%; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent); transform: skewX(-20deg); animation: shine 4.5s var(--ease) 1s infinite; pointer-events: none; }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.kit-card h2 { font-size: 30px; font-weight: 600; letter-spacing: -0.05em; line-height: 1.02; margin: 8px 0 14px; }
.kit-card h2 em { color: var(--lime); }
.kit-card ul { list-style: none; display: grid; gap: 9px; margin-bottom: 20px; }
.kit-card li { display: flex; gap: 10px; font-size: 15px; line-height: 1.35; color: var(--soft); }
.kit-card li::before { content: "→"; color: var(--lime); font-family: "JetBrains Mono", monospace; flex: none; }
.kit-card li b { color: var(--fg); font-weight: 600; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; color: var(--mute); font-size: 12.5px; line-height: 1.4; cursor: pointer; }
.consent input { width: 18px; height: 18px; flex: none; margin-top: 0; accent-color: var(--lime); }
.consent a { color: var(--soft); }
.consent.nudge { animation: nudge 0.4s var(--ease); color: var(--fg); }
@keyframes nudge { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.preview { position: relative; margin: 0 0 18px; border-radius: 18px; background: #050507; border: 1px solid var(--line-2); overflow: hidden; }
.preview-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.preview-top .mono { color: var(--lime); text-transform: none; letter-spacing: 0; font-size: 12.5px; }
.preview-body { position: relative; }
.preview pre { margin: 0; padding: 12px 12px 0; height: 230px; overflow: hidden; font: 400 11.5px/1.6 "JetBrains Mono", monospace; color: var(--soft); white-space: pre-wrap; word-break: break-word; }
.preview .blurred { display: block; filter: blur(4.5px); opacity: 0.8; user-select: none; -webkit-user-select: none; pointer-events: none; }
.preview-lock { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; align-items: center; gap: 8px; padding: 34px 12px 6px; background: linear-gradient(transparent, #050507 55%); font-size: 13.5px; font-weight: 600; }
.preview-lock svg { width: 16px; height: 16px; fill: none; stroke: var(--lime); stroke-width: 2.2; stroke-linecap: round; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 12px 12px; }
.chips span { font: 500 10.5px "JetBrains Mono", monospace; padding: 4px 8px; border-radius: 999px; background: rgba(200, 255, 90, 0.08); color: var(--lime); border: 1px solid rgba(200, 255, 90, 0.2); }
.price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.price strong { font-size: 40px; font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.price span { color: var(--mute); font-size: 14px; }

/* report by email */
.mail-card { margin-top: 12px; padding: 22px 18px 16px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); }
.mail-card h3 { font-size: 23px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; margin: 6px 0 6px; }
.mail-card h3 em { color: var(--lime); }
.mail-card .hint { margin-top: 0; }
.mail-card .scan-form { margin: 14px 0 12px; }
.mail-card .scan-form input { font-size: 16px; }
.mail-card .consent { margin-bottom: 8px; }
.mail-card.sent .scan-form, .mail-card.sent .consent { display: none; }
.mail-card.sent #mail-hint { color: var(--lime); font-size: 15px; }

/* vigilancia */
.watch-card .scan-form { margin: 4px 0 16px; }
.watch-card h2 { margin-bottom: 16px; }
.done-title { font-size: 40px; font-weight: 600; letter-spacing: -0.05em; line-height: 1; margin: 0 0 12px; }
.done-title em { color: var(--lime); }
.watch-offer { display: flex; gap: 14px; align-items: center; margin-top: 12px; padding: 16px; border-radius: 20px; background: linear-gradient(120deg, rgba(123, 92, 255, 0.14), transparent 70%), var(--card); border: 1px solid rgba(123, 92, 255, 0.3); text-decoration: none; transition: transform 0.25s var(--ease); }
.watch-offer:active { transform: scale(0.98); }
.watch-offer strong { display: block; font-size: 15.5px; font-weight: 600; letter-spacing: -0.02em; }
.watch-offer span { display: block; color: var(--mute); font-size: 13.5px; line-height: 1.35; margin-top: 2px; }
.watch-offer i { font-style: normal; color: #b9a8ff; font-size: 20px; margin-left: auto; }

/* kit page */
.kit-head { padding: 26px 0 8px; }
.kit-head h1 { font-size: clamp(34px, 10vw, 50px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; margin: 10px 0 12px; word-break: break-word; }
.kit-head h1 em { color: var(--lime); }
.pill { display: inline-flex; gap: 8px; align-items: center; padding: 7px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14px; }
.pill b { color: var(--c, var(--lime)); }
.note { margin: 16px 0; padding: 14px 16px; border-radius: 18px; background: rgba(200, 255, 90, 0.07); border: 1px solid rgba(200, 255, 90, 0.25); font-size: 14.5px; color: var(--soft); line-height: 1.45; }
.note b { color: var(--fg); }
.file { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px 16px; margin-bottom: 10px; }
.file-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.file-top .mono { color: var(--lime); text-transform: none; font-size: 13px; letter-spacing: 0; }
.badge { font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); color: var(--mute); white-space: nowrap; }
.file h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.03em; margin: 8px 0 4px; }
.file p { color: var(--soft); font-size: 14.5px; line-height: 1.45; }
.file .where { color: var(--fg); margin-top: 8px; }
.file .where::before { content: "Dónde: "; color: var(--lime); }
.file .tip { color: var(--mute); font-size: 13.5px; margin-top: 8px; }
.file pre { margin-top: 12px; max-height: 210px; overflow: auto; padding: 12px; border-radius: 14px; background: #050507; border: 1px solid var(--line); font: 400 12px/1.55 "JetBrains Mono", monospace; color: var(--soft); white-space: pre-wrap; word-break: break-word; }
.file .row { margin-top: 10px; }
.steps { list-style: none; counter-reset: s; display: grid; gap: 8px; }
.steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 52px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; color: var(--soft); font-size: 14.5px; line-height: 1.45; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 24px; height: 24px; border-radius: 8px; background: var(--lime); color: #0b0d05; display: grid; place-items: center; font: 600 13px "JetBrains Mono", monospace; }
.steps strong { display: block; color: var(--fg); font-weight: 600; font-size: 15.5px; margin-bottom: 2px; }
.steps code, .todo code { font-family: "JetBrains Mono", monospace; font-size: 12px; word-break: break-all; color: var(--fg); }
.todo ul { margin-top: 6px; padding-left: 16px; }
.center { text-align: center; padding: 40px 0; }
.center p { color: var(--soft); }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: 14.5px; font-weight: 600; white-space: nowrap; transition: 0.35s var(--ease); pointer-events: none; z-index: 10; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* footer + legal */
.foot { padding: 26px 0 calc(26px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--mute); font-size: 13.5px; }
.foot a { text-decoration: none; }
.foot b { color: var(--lime); font-weight: 500; }
.legal { padding: 24px 0 30px; }
.legal h1 { font-size: clamp(36px, 10vw, 52px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; margin: 10px 0 14px; }
.legal h2 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--soft); font-size: 15.5px; line-height: 1.6; }
.legal ul { padding-left: 18px; margin: 8px 0; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--fg); font-weight: 600; }
.legal a { border-bottom: 1px solid var(--line-2); text-decoration: none; }

@media (min-width: 720px) {
  .hero { padding-top: 70px; }
  .how { grid-template-columns: repeat(3, 1fr); }
  .how div { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
