/* Dory.mx — "Abismo" (v2026.10). Contract: DESIGN.md */
:root {
  --surface: #123F4E;
  --abyss: #02070B;
  --foam: #EEF5F3;
  --muted: #9DB5B8;
  --line: rgba(238, 245, 243, 0.14);
  --sonar: #8FF0DC;
  --lure: #FFB547;
  --panel: rgba(3, 13, 18, 0.86);
  --safe: #10b981;
  --warn: #ea580c;
  --risk: #dc2626;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(20px, 4vw, 64px);
  --gutter: clamp(16px, 2vw, 28px);
  --radius: 14px;
  --display: 'Clash Grotesk', 'Switzer', system-ui, sans-serif;
  --text: 'Switzer', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; } /* components set display; hidden must still win */

html { background: var(--abyss); -webkit-text-size-adjust: 100%; }
body {
  min-height: 100dvh;
  color: var(--foam);
  background: var(--abyss);
  font: 400 17px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
  overflow-x: clip;
}
::selection { background: var(--sonar); color: var(--abyss); }
a { color: inherit; }
code { font: 500 0.92em/1 var(--text); color: var(--lure); white-space: nowrap; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--sonar); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 50;
  padding: 10px 16px; border-radius: 999px;
  background: var(--foam); color: var(--abyss); font-weight: 600; text-decoration: none;
  translate: 0 -160%; transition: translate 240ms var(--ease);
}
.skip:focus-visible { translate: 0 0; }

/* ---------- GL canvas + fallback ---------- */
#abyss { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
main, .floor, .top, .gauge { position: relative; z-index: 1; }
html.no-gl #abyss { display: none; }
html.no-gl body {
  background:
    radial-gradient(40vmax 40vmax at 82% 32vh, rgba(255, 181, 71, 0.10), transparent 60%),
    linear-gradient(180deg, var(--surface) 0, #0B2B36 70vh, #05141B 160vh, var(--abyss) 300vh);
}

/* ---------- Buttons ---------- */
.btn {
  --fill: var(--foam); --ink: var(--abyss);
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px; border-radius: 999px; border: 1px solid var(--fill);
  background: var(--fill); color: var(--ink);
  font: 600 16px/1 var(--text); text-decoration: none; cursor: pointer;
  transition: scale 160ms var(--ease), background-color 240ms var(--ease), color 240ms var(--ease);
}
.btn span { display: inline-block; transition: translate 240ms var(--ease); }
.btn::after { /* sonar ping */
  content: ''; position: absolute; inset: -1px; border-radius: inherit;
  border: 1px solid var(--sonar); opacity: 0; scale: 1; pointer-events: none;
}
.btn:hover span { translate: 0 -2px; }
.btn:hover::after { animation: ping 900ms var(--ease) 1; }
.btn:active { scale: 0.97; }
.btn[disabled] { cursor: progress; opacity: 0.75; }
.btn-ghost { --fill: transparent; --ink: var(--foam); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--sonar); }
@keyframes ping { from { opacity: 0.8; scale: 1; } to { opacity: 0; scale: 1.18 1.45; } }

.link { color: var(--foam); text-underline-offset: 4px; text-decoration-color: var(--line); transition: text-decoration-color 240ms var(--ease), color 240ms var(--ease); }
.link:hover { color: var(--sonar); text-decoration-color: var(--sonar); }

/* ---------- Header ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  padding: 18px var(--pad);
  background: linear-gradient(180deg, rgba(2, 7, 11, 0.7), transparent);
  transition: translate 420ms var(--ease), background-color 300ms var(--ease);
}
.top.is-away { translate: 0 -110%; }
.top.is-scrolled { background: rgba(2, 7, 11, 0.9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--line); }
.top:focus-within { translate: 0 0; }
.wordmark { font: 600 26px/1 var(--display); letter-spacing: -0.04em; text-decoration: none; margin-right: auto; }
.wordmark span { color: var(--muted); font-weight: 500; }
.nav { display: flex; gap: 26px; }
.nav a { font-size: 15px; color: var(--muted); text-decoration: none; transition: color 240ms var(--ease); }
.nav a:hover { color: var(--foam); }
.top-cta { min-height: 40px; padding: 0 18px; font-size: 15px; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; padding: 10px 4px; font-size: 15px; color: var(--foam); }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px;
  display: grid; gap: 4px; padding: 10px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line);
}
.menu-panel a { padding: 10px 12px; border-radius: 8px; text-decoration: none; }
.menu-panel a:hover { background: rgba(143, 240, 220, 0.08); }

/* ---------- Depth gauge ---------- */
.gauge {
  position: fixed; right: calc(var(--pad) * 0.5); top: 50%; z-index: 15; translate: 0 -50%;
  display: grid; justify-items: end; gap: 6px; pointer-events: none;
  font-size: 12px; color: var(--muted);
}
.gauge-depth { font: 500 13px/1 var(--text); color: var(--foam); }
.gauge-track { position: relative; display: block; width: 1px; height: 34vh; margin-top: 8px; background: var(--line); overflow: hidden; }
.gauge-track b { position: absolute; left: -1px; top: 0; width: 3px; height: 14%; background: var(--sonar); will-change: transform; }

/* ---------- Shared section rhythm ---------- */
section, .floor { padding: clamp(96px, 16vh, 180px) var(--pad); }
h2 { font-size: clamp(2.6rem, 6.2vw, 5.6rem); line-height: 0.95; letter-spacing: -0.04em; }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.1; letter-spacing: -0.02em; }
.num { font: 500 13px/1 var(--text); color: var(--muted); }

.js [data-rise] { opacity: 0; translate: 0 28px; transition: opacity 900ms var(--ease), translate 900ms var(--ease); }
.js [data-rise].in { opacity: 1; translate: 0 0; }

/* ---------- 0 · Hero ---------- */
.hero {
  min-height: 100svh; overflow-x: clip; /* scrim pseudo-element bleeds past the edge on phones */
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: end;
  padding-top: 96px; padding-bottom: clamp(20px, 4vh, 48px);
}
.hero-copy { grid-column: 1 / 8; position: relative; }
.hero-copy.is-open, .hero-copy:has(#scan:not([hidden])) { grid-column: 1 / 12; }
.hero-copy::before { /* scrim so copy stays AA over the moving water */
  content: ''; position: absolute; inset: -12% -18% -10% -40%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(2, 7, 11, 0.62), transparent);
}
.kicker { font-size: 15px; color: var(--muted); margin-bottom: 14px; }
h1 {
  font-size: clamp(3.2rem, min(7.2vw, 12.5vh), 8rem); line-height: 0.9; letter-spacing: -0.045em;
  margin-left: -0.05em;
}
.lede { max-width: 60ch; margin-top: 18px; font-size: clamp(17px, 1.25vw, 19px); color: #CFE0DF; }

.probe {
  margin-top: 22px; border-radius: var(--radius); max-width: 680px; overflow: clip; /* clip, not hidden: the mail inside sticks while you read the reply */
  background: var(--panel); border: 1px solid var(--line);
}
.probe.is-open, .probe:has(#scan:not([hidden])) { max-width: 1180px; }
.probe-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 0 12px; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 4px; }
.tab {
  position: relative; padding: 10px 12px 12px; background: none; border: 0; cursor: pointer;
  font: 500 14px/1 var(--text); color: var(--muted); transition: color 240ms var(--ease);
}
.tab::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--sonar); scale: 0 1; transition: scale 320ms var(--ease); }
.tab:hover { color: var(--foam); }
.tab[aria-selected="true"] { color: var(--foam); }
.tab[aria-selected="true"]::after { scale: 1 1; }
#analizar, #scan { scroll-margin-top: 96px; } /* keep the tabs / scan bar clear of the fixed header */
.pane { padding: 8px; }
.probe-note { padding: 10px 16px 14px; font-size: 12.5px; line-height: 1.45; color: var(--muted); border-top: 1px solid var(--line); }

/* Inbox: a real client's list, on the glass panel */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.inbox-bar { display: flex; align-items: center; gap: 12px; padding: 4px 4px 8px; }
.inbox-folder { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.inbox-folder svg { width: 17px; height: 17px; color: var(--sonar); }
.inbox-folder b { min-width: 20px; padding: 2px 7px; border-radius: 999px; background: var(--lure); color: var(--abyss); font: 600 11px/1.3 var(--text); text-align: center; }
.inbox-folder b:empty { display: none; }
.inbox-search {
  display: flex; align-items: center; gap: 8px; width: min(240px, 52%); margin-left: auto; padding: 7px 12px; border-radius: 999px;
  background: rgba(238, 245, 243, 0.05); border: 1px solid var(--line); transition: border-color 240ms var(--ease), background-color 240ms var(--ease);
}
.inbox-search:hover { border-color: rgba(238, 245, 243, 0.28); }
.inbox-search:focus-within { border-color: var(--sonar); background: rgba(238, 245, 243, 0.07); }
.inbox-search svg { flex: none; width: 14px; height: 14px; color: var(--muted); }
.inbox-search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--foam); font: 400 13.5px/1.2 var(--text); }
.inbox-search input::placeholder { color: var(--muted); }
.inbox-search input::-webkit-search-cancel-button { filter: invert(0.7); }
.inbox-day { padding: 10px 12px 4px; font: 600 11px/1 var(--text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.inbox-empty { padding: 28px 12px; text-align: center; font-size: 14px; color: var(--muted); }
.inbox { list-style: none; display: grid; }
.inbox li + li { border-top: 1px solid rgba(238, 245, 243, 0.06); }
.mail {
  position: relative; width: 100%; display: grid; grid-template-columns: 38px 1fr auto; column-gap: 12px; row-gap: 2px;
  align-items: center; text-align: left; padding: 10px 12px; border-radius: 8px; cursor: pointer;
  background: rgba(238, 245, 243, 0.025); border: 1px solid transparent; color: var(--foam); font: inherit;
  transition: background-color 240ms var(--ease), border-color 240ms var(--ease), translate 240ms var(--ease), scale 160ms var(--ease);
}
.mail::before { /* unread lure-dot */
  content: ''; position: absolute; left: 3px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%;
  background: var(--lure); box-shadow: 0 0 10px var(--lure); transition: opacity 240ms var(--ease);
}
.mail:hover { background: rgba(238, 245, 243, 0.06); border-color: var(--line); translate: 4px 0; }
.mail:active { scale: 0.985; }
.mail.is-read { background: transparent; }
.mail.is-read::before { opacity: 0; }
.mail-avatar {
  grid-row: span 3; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(143, 240, 220, 0.08); color: var(--sonar); font: 700 10px/1 var(--text); letter-spacing: 0.02em;
}
.mail-from { font-weight: 600; font-size: 14.5px; }
.mail-time { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.mail-time svg { width: 13px; height: 13px; }
.mail:not(.is-read) .mail-time { color: var(--lure); }
.mail-subject, .mail-snippet { grid-column: 2 / -1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-subject { font-size: 14px; font-weight: 600; color: var(--foam); }
.mail-snippet { font-size: 13px; color: var(--muted); }
.mail.is-read .mail-from { font-weight: 500; color: #CFE0DF; }
.mail.is-read .mail-subject { font-weight: 400; color: #CFE0DF; }
.tag { display: inline-block; margin-right: 7px; padding: 1px 7px; border-radius: 4px; font: 500 11px/1.45 var(--text); font-style: normal; vertical-align: 1px; color: var(--tc); background: color-mix(in srgb, var(--tc) 16%, transparent); }
.tag[data-t="tax"] { --tc: var(--lure); }
.tag[data-t="bank"] { --tc: #8AB4FF; }
.tag[data-t="ship"] { --tc: #FFD166; }
.tag[data-t="work"] { --tc: var(--sonar); }

/* Paste */
.probe-label { display: block; font-weight: 500; font-size: 14px; margin: 8px 8px 10px; }
.probe textarea {
  display: block; width: 100%; min-height: 120px; resize: vertical; padding: 12px 14px; border-radius: 10px;
  background: rgba(238, 245, 243, 0.04); border: 1px solid var(--line); color: var(--foam);
  font: 400 14.5px/1.5 var(--text); transition: border-color 240ms var(--ease);
}
.probe textarea::placeholder { color: rgba(157, 181, 184, 0.75); }
.probe textarea:hover { border-color: rgba(238, 245, 243, 0.28); }
.probe textarea:focus-visible { outline: none; border-color: var(--sonar); }
.probe-actions { display: flex; align-items: center; gap: 16px; margin: 12px 0 4px; }
.paste-error { font-size: 13px; color: var(--lure); }

/* Scan view */
.scan { padding: 14px 16px 16px; animation: surface 600ms var(--ease) both; }
.scan-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.scan-back {
  background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer;
  color: var(--foam); font: 500 13.5px/1 var(--text);
  transition: border-color 240ms var(--ease), scale 160ms var(--ease);
}
.scan-back span { display: inline-block; transition: translate 240ms var(--ease); }
.scan-back:hover { border-color: var(--sonar); }
.scan-back:hover span { translate: -3px 0; }
.scan-back:active { scale: 0.97; }
.scan-status { font-size: 13px; color: var(--muted); }
.scan-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 18px; align-items: start; }

/* The mail stays on screen while the reply scrolls; a long mail scrolls inside its own paper. */
.mailview {
  position: sticky; top: 88px; max-height: calc(100dvh - 104px); overflow: auto;
  padding: 18px 20px; border-radius: 10px;
  background: rgba(238, 245, 243, 0.035); border: 1px solid var(--line);
  scrollbar-width: thin; scrollbar-color: rgba(238, 245, 243, 0.18) transparent;
}

/* Sonar thread: a line drawn from the marked phrase to its row in Dory's reply */
.thread { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; overflow: visible; pointer-events: none; }
.thread path {
  fill: none; stroke: var(--sonar); stroke-width: 1.5; stroke-linecap: round;
  stroke-dasharray: var(--len) var(--len); filter: drop-shadow(0 0 4px rgba(143, 240, 220, 0.55));
}
.thread.is-new path { animation: thread-in 520ms var(--ease) both; }
@keyframes thread-in { from { stroke-dashoffset: var(--len); } to { stroke-dashoffset: 0; } }
.thread circle { fill: var(--sonar); }
.thread .ping { fill: none; stroke: var(--sonar); transform-box: fill-box; transform-origin: center; }
.thread.is-new .ping { animation: ping-dot 900ms var(--ease) 1 both; }
@keyframes ping-dot { from { opacity: 0.9; scale: 1; } to { opacity: 0; scale: 4; } }
.mv-from { display: flex; gap: 10px; font-size: 14px; color: #DCE8E7; overflow-wrap: anywhere; }
.mv-k { color: var(--muted); }
.mv-subject { margin: 8px 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font: 600 1.2rem/1.25 var(--display); letter-spacing: -0.01em; }
.mv-body { font-size: 15px; line-height: 1.65; color: #CFE0DF; white-space: pre-wrap; overflow-wrap: anywhere; }
.mv-sweep { /* sonar sweep: full-height layer, band at its bottom, translated across (composite only) */
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent 72%, rgba(143, 240, 220, 0.16) 96%, rgba(143, 240, 220, 0.55) 100%);
}
.scan.is-scanning .mv-sweep { opacity: 1; animation: sweep 1.1s linear infinite; }
@keyframes sweep { from { translate: 0 -100%; } to { translate: 0 0; } }

.hit {
  position: relative; color: var(--foam); background: rgba(255, 181, 71, 0.16);
  border-bottom: 2px solid var(--lure); border-radius: 3px; padding: 0 2px;
  animation: hit-in 520ms var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms);
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease);
}
.hit::after {
  content: attr(data-n); position: relative; top: -0.55em; margin-left: 3px;
  font: 600 10px/1 var(--text); color: var(--abyss); background: var(--lure); border-radius: 999px; padding: 1px 4px;
}
.hit.lit { background: rgba(143, 240, 220, 0.2); border-bottom-color: var(--sonar); outline: 2px solid var(--sonar); outline-offset: 1px; }
@keyframes hit-in { from { background-color: transparent; border-bottom-color: transparent; } }

.dial { position: relative; width: 88px; height: 88px; flex: none; }
.dial svg { width: 100%; height: 100%; rotate: -90deg; }
.dial circle { fill: none; stroke-width: 8; }
.dial-track { stroke: rgba(238, 245, 243, 0.08); }
.dial-fill { stroke: var(--v); stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset 1200ms var(--ease), stroke 400ms var(--ease); }
.dial-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.dial-num b { font: 600 1.75rem/1 var(--display); letter-spacing: -0.03em; }
.dial-num span { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.verdict-advice { margin-top: 12px; font-size: 14.5px; color: #CFE0DF; }
.verdict-advice:empty { display: none; }

/* Inbox avatars wear the sender's colors, like a real client */
.mail[data-sample="sat"] .mail-avatar { background: #691C32; color: #F3E3C3; font: 700 11px/1 Georgia, serif; letter-spacing: 0.06em; box-shadow: inset 0 -3px 0 #BC955C; }
.mail[data-sample="banco"] .mail-avatar { background: #072146; color: #fff; font: italic 700 10.5px/1 Arial, sans-serif; }
.mail[data-sample="paquete"] .mail-avatar { background: #FFCC00; color: #D40511; font: italic 900 12px/1 'Arial Black', Arial, sans-serif; letter-spacing: -0.02em; }
.mail[data-sample="legit"] .mail-avatar { background: linear-gradient(135deg, #0f4c5c, #1d7f8c); color: #fff; font: 600 13px/1 var(--display); }

/* Sample mails: a white HTML "paper" inside the dark client */
.mv-body.is-html { white-space: normal; }
.em { background: #fff; color: #2b2f33; border-radius: 8px; overflow: hidden; font: 400 15px/1.6 Arial, Helvetica, sans-serif; }
.em p + p, .em p + .em-cta-row { margin-top: 12px; }
.em h3 { margin: 0 0 12px; font: 700 20px/1.25 Arial, Helvetica, sans-serif; letter-spacing: 0; color: #111; }
.em-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; }
.em-in { padding: 22px 24px 24px; }
.em-foot { padding: 14px 24px 16px; background: #f3f4f6; font-size: 12px; line-height: 1.5; color: #5b6470; }
.em-foot p + p { margin-top: 4px; }
.em-meta { margin-bottom: 10px; font-size: 12.5px; color: #6b7280; }
.em-red { color: #c0392b; font-weight: 700; }
.em-cta-row { margin: 18px 0 6px; }
.em-btn { display: inline-block; padding: 12px 24px; border-radius: 4px; font-weight: 700; color: #fff; cursor: default; }
.em-dest { display: block; margin-top: 10px; font-size: 12.5px; color: #6b7280; overflow-wrap: anywhere; }
.em .hit { color: inherit; background: rgba(255, 181, 71, 0.34); border-bottom-color: #d97706; }
.em .hit.lit { background: rgba(143, 240, 220, 0.5); outline-color: #0d9488; }
/* SAT */
.em-sat .em-top { background: #691C32; color: #fff; border-bottom: 4px solid #BC955C; }
.em-logo-sat { display: flex; align-items: center; gap: 10px; }
.em-logo-sat b { font: 700 22px/1 Georgia, serif; letter-spacing: 0.06em; }
.em-logo-sat small { max-width: 13ch; font-size: 10.5px; line-height: 1.2; opacity: 0.85; }
.em-gob { font: 700 12px/1 Georgia, serif; letter-spacing: 0.12em; color: #BC955C; }
.em-sat .em-btn { background: #691C32; }
/* BBVA */
.em-bbva .em-top { background: #072146; }
.em-logo-bbva { font: italic 700 24px/1 Arial, sans-serif; color: #fff; }
.em-top-note { font-size: 12px; color: #9fc3e6; }
.em-bbva h3 { color: #072146; }
.em-bbva .em-btn { background: #1973B8; }
.em-kv { margin: 12px 0; border: 1px solid #e5e7eb; border-radius: 6px; font-size: 13.5px; }
.em-kv div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 14px; }
.em-kv div + div { border-top: 1px solid #e5e7eb; }
.em-kv dt, .em-track dt { color: #6b7280; }
/* DHL */
.em-dhl .em-top { justify-content: flex-start; background: #FFCC00; }
.em-logo-dhl { font: italic 900 26px/1 'Arial Black', Arial, sans-serif; letter-spacing: -0.02em; color: #D40511; }
.em-tag { font: 700 12px/1 Arial, sans-serif; letter-spacing: 0.12em; text-transform: uppercase; color: #D40511; }
.em-dhl .em-btn { background: #D40511; }
.em-track { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 10px 0; padding: 10px 14px; border: 1px solid #f5e08a; border-radius: 6px; background: #fffbe6; font-size: 13.5px; }
.em-steps { list-style: none; display: flex; gap: 6px; margin: 12px 0; font-size: 12px; color: #6b7280; }
.em-steps li { flex: 1; padding-top: 7px; border-top: 3px solid #d1d5db; }
.em-steps .done { border-color: #16a34a; color: #166534; }
.em-steps .stop { border-color: #D40511; color: #D40511; font-weight: 700; }
/* Person-to-person mail with a real signature */
.em-plain { padding: 22px 24px; }
.em-plain ul { margin: 10px 0 10px 20px; }
.em-sig { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #e5e7eb; font-size: 13px; color: #4b5563; }
.em-sig b { display: block; font-size: 14px; color: #111; }
.em-sig span { display: block; }
.em-sig-mark { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: #0f4c5c; color: #fff; font: 700 14px/1 Georgia, serif; }
.em-att { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; padding: 8px 12px; border: 1px solid #e5e7eb; border-radius: 6px; font-size: 13px; }
.em-att-ico { padding: 6px; border-radius: 4px; background: #dc2626; color: #fff; font: 700 10px/1 Arial, sans-serif; }
.em-att small { display: block; color: #6b7280; }

/* Dory's reply: sits on the right column next to the analyzed mail */
.reply { --v: var(--muted); border-radius: 10px; overflow: hidden; background: rgba(238, 245, 243, 0.035); border: 1px solid var(--line); }
.reply[data-cat="SAFE"] { --v: var(--safe); }
.reply[data-cat="SUSPICIOUS"] { --v: var(--warn); }
.reply[data-cat="PHISHING"] { --v: var(--risk); }
.reply-head { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px; padding: 14px 16px 0; }
.reply-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--sonar); color: var(--abyss); font: 600 18px/1 var(--display); }
.reply-from { font-size: 13.5px; }
.reply-from span, .reply-to { color: var(--muted); }
.reply-to { font-size: 12px; }
.reply-badge { padding: 4px 9px; border-radius: 999px; border: 1px solid rgba(143, 240, 220, 0.35); font-size: 11px; color: var(--sonar); }
.reply-subject { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); font: 600 1rem/1.3 var(--display); }
.reply-tag { padding: 5px 9px; border-radius: 999px; background: color-mix(in srgb, var(--v) 45%, transparent); font: 600 11px/1 var(--text); letter-spacing: 0.08em; text-transform: uppercase; }
.report { display: grid; gap: 14px; padding: 16px; }
.report-detail { display: grid; gap: 14px; }
.report-band { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px 16px; padding: 14px 16px; border-radius: 10px; border-left: 3px solid var(--v); background: color-mix(in srgb, var(--v) 14%, transparent); }
.report-kicker { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.report-title { font: 600 1.3rem/1.15 var(--display); letter-spacing: -0.01em; }
.report-summary { font-size: 14.5px; color: #CFE0DF; }
.report q { color: var(--lure); quotes: '«' '»'; }
.report h3 { margin-bottom: -6px; font: 600 11.5px/1 var(--text); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.report-checks, .report-steps { list-style: none; display: grid; gap: 6px; }
.report-checks li { display: grid; grid-template-columns: 20px 1fr; align-items: start; gap: 10px; padding: 8px 10px; border-radius: 8px; border: 1px solid transparent; font-size: 13.5px; transition: border-color 200ms var(--ease); }
.report-checks i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font: normal 700 11px/1 var(--text); }
.report-checks .bad { background: color-mix(in srgb, var(--v) 9%, transparent); border-color: color-mix(in srgb, var(--v) 28%, transparent); cursor: pointer; }
.report-checks .bad i { background: var(--v); color: #fff; }
.report-checks .bad strong { display: block; font-weight: 600; }
.report-checks .bad small { display: block; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.report-checks li.lit { border-color: var(--sonar); background: rgba(143, 240, 220, 0.06); }
/* What came back clean folds into one line, so the hooks keep the stage */
.report-ok summary {
  list-style: none; display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 13.5px; color: var(--muted);
  transition: color 200ms var(--ease), background-color 200ms var(--ease);
}
.report-ok summary::-webkit-details-marker { display: none; }
.report-ok summary:hover { color: var(--foam); background: rgba(238, 245, 243, 0.04); }
.report-ok summary i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(16, 185, 129, 0.14); color: var(--safe); font: normal 700 11px/1 var(--text); }
.report-ok summary::after { content: ''; width: 7px; height: 7px; margin: 0 6px 3px 0; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; rotate: 45deg; transition: rotate 240ms var(--ease); }
.report-ok[open] summary::after { rotate: -135deg; margin-bottom: -3px; }
.report-ok .report-checks { gap: 2px; padding: 2px 0 6px 30px; }
.report-ok .ok { display: block; padding: 3px 10px; border: 0; font-size: 13px; color: var(--muted); }
.report-steps { counter-reset: step; }
.report-steps li { counter-increment: step; display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 14px; color: #DCE8E7; }
.report-steps li::before { content: counter(step); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); font: 600 11px/1 var(--text); color: var(--sonar); }
.report-sign { padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.report-sign b { color: var(--foam); }
@keyframes surface { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } } /* no blur: it repainted the whole open panel per frame */

/* Consent bar themed for the dark page (dory-consent.js reads these) */
:root {
  --dc-bg: rgba(3, 13, 18, 0.95); --dc-ink: var(--foam); --dc-muted: var(--muted); --dc-line: var(--line);
  --dc-accent: var(--foam); --dc-accent-ink: var(--abyss); --dc-link: var(--sonar); --dc-font: var(--text);
  --dc-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.6);
}

/* The second way in: forward the mail. Same panel as the probe, the address is the hero. */
.forward {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px 18px;
  max-width: 680px; margin-top: 14px; padding: 16px 20px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line);
}
.hero-copy.is-open .forward, .hero-copy:has(#scan:not([hidden])) .forward { max-width: 1180px; }
.forward-ico { width: 30px; height: 30px; color: var(--sonar); }
.forward-kicker { margin-bottom: 5px; font: 600 11px/1 var(--text); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.forward-title { max-width: 46ch; font-size: 15px; line-height: 1.45; color: #CFE0DF; }
.forward-addr { display: grid; justify-items: end; gap: 4px; }
.forward-legal { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.forward-legal a { color: var(--muted); text-underline-offset: 3px; }
.forward-legal a:hover { color: var(--sonar); }
.copy {
  position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px;
  background: rgba(143, 240, 220, 0.06); border: 1px solid rgba(143, 240, 220, 0.3); cursor: pointer;
  font: 600 clamp(17px, 1.5vw, 21px)/1 var(--display); letter-spacing: -0.02em; color: var(--foam);
  transition: color 240ms var(--ease), border-color 240ms var(--ease), scale 160ms var(--ease);
}
.copy svg { width: 16px; height: 16px; color: var(--muted); transition: color 240ms var(--ease); }
.copy::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; border: 1px solid var(--sonar); opacity: 0; pointer-events: none; }
.copy:hover { color: var(--sonar); border-color: var(--sonar); }
.copy:hover svg { color: var(--sonar); }
.copy:hover::after { animation: ping 900ms var(--ease) 1; }
.copy:active { scale: 0.97; }
.copy-status { min-height: 1.3em; font-size: 12.5px; color: var(--sonar); }

/* ---------- 1 · La carnada (sticky title + index list) ---------- */
.lure { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: start; }
.lure-head { grid-column: 1 / 5; position: sticky; top: 22vh; }
.lure-head p { margin-top: 22px; max-width: 38ch; color: #CFE0DF; font-size: 19px; }
.tactics { grid-column: 6 / 10; list-style: none; }
.tactics li {
  display: grid; grid-template-columns: 56px 1fr; column-gap: 12px; row-gap: 10px;
  padding: 34px 0; border-top: 1px solid var(--line);
}
.tactics li:last-child { border-bottom: 1px solid var(--line); }
.tactics .num { padding-top: 0.5em; grid-row: span 2; }
.tactics p { color: #CFE0DF; max-width: 46ch; }

/* ---------- 2 · El anzuelo (sticky stage, GL does the work) ---------- */
.hook { height: 260vh; padding: 0; }
.hook-stage {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: grid; align-content: end; padding: 0 var(--pad) 14vh;
}
.hook-lines { max-width: 34ch; position: relative; }
.hook-lines::before { content: ''; position: absolute; inset: -40% -30% -30% -40%; z-index: -1; background: radial-gradient(closest-side, rgba(2, 7, 11, 0.7), transparent); }
.hook-line { font: 500 clamp(1.3rem, 2.2vw, 1.9rem)/1.25 var(--display); letter-spacing: -0.02em; color: var(--muted); opacity: 0.12; translate: 0 14px; transition: opacity 700ms var(--ease), translate 700ms var(--ease), color 700ms var(--ease); }
.hook-line + .hook-line { margin-top: 10px; }
.hook-line.on { opacity: 1; translate: 0 0; color: var(--foam); }
.hook-line.big { font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: 0.95; letter-spacing: -0.04em; margin-top: 18px; }
.hook-line.big.on { color: var(--sonar); }
.hook-fallback { display: none; }

html.no-gl .hook { height: auto; padding: clamp(96px, 16vh, 180px) var(--pad); }
html.no-gl .hook-stage { position: static; height: auto; padding: 0; display: flex; gap: clamp(32px, 6vw, 96px); align-items: flex-end; }
html.no-gl .hook-fallback { display: block; width: clamp(90px, 12vw, 150px); height: auto; flex: none; }
html.no-gl .hook-line { opacity: 1; translate: 0 0; color: var(--foam); }
html.no-gl .hook-line.big { color: var(--sonar); }

/* ---------- 3 · Lo que ve Dory (definition grid) ---------- */
.signals-head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: end; }
.signals-head h2 { grid-column: 1 / 8; }
.signals-head p { grid-column: 9 / 13; color: #CFE0DF; }
.signal-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--gutter); margin-top: clamp(48px, 8vh, 88px); }
.signal-grid div { grid-column: span 2; padding: 24px 0 0; border-top: 1px solid var(--line); }
.signal-grid div:nth-child(4) { grid-column: 2 / span 2; }
.signal-grid dt { font: 600 1.4rem/1.1 var(--display); letter-spacing: -0.02em; margin-bottom: 10px; }
.signal-grid dd { color: #CFE0DF; font-size: 16px; }
.privacy { margin-top: clamp(48px, 8vh, 88px); max-width: 62ch; color: var(--muted); }
.privacy a { color: var(--foam); text-underline-offset: 4px; text-decoration-color: var(--sonar); }
.privacy a:hover { color: var(--sonar); }

/* ---------- 4 · Cómo usarlo (descending staircase) ---------- */
.stair { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); margin-top: clamp(48px, 8vh, 88px); }
.stair li { padding: 28px 0 0; border-top: 1px solid var(--line); }
.stair li:nth-child(2) { margin-top: 12vh; }
.stair li:nth-child(3) { margin-top: 24vh; }
.stair .num { display: block; font: 600 clamp(4rem, 8vw, 7rem)/0.8 var(--display); color: transparent; -webkit-text-stroke: 1px var(--muted); margin-bottom: 22px; letter-spacing: -0.04em; }
.stair p { margin-top: 10px; color: #CFE0DF; max-width: 34ch; }
.stair strong { color: var(--foam); font-weight: 600; }

/* ---------- 5 · Fondo ---------- */
.floor { position: relative; padding-bottom: clamp(28px, 4vh, 48px); overflow-x: clip; }
.floor-cta { max-width: 780px; }
.floor-cta p { margin-top: 18px; font-size: 19px; color: #CFE0DF; }
.floor-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 32px; }
.floor-links { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: var(--gutter); margin-top: clamp(72px, 12vh, 140px); }
.floor-links h3 { font: 500 13px/1 var(--text); color: var(--muted); margin-bottom: 14px; }
.floor-links a { display: block; padding: 5px 0; font-size: 15px; text-decoration: none; transition: color 240ms var(--ease), translate 240ms var(--ease); }
.floor-links a:hover { color: var(--sonar); translate: 4px 0; }
/* Neon tube. The pulse lives on the wrapper and the drop-shadows on the inner span: a composited element
   (opacity animation) re-runs its filters on the GPU every frame — that cost 17 fps at the floor. Painted once
   inside the wrapper's layer, the glow is free and only the opacity moves. */
.giant {
  position: relative;
  font: 600 clamp(9rem, 32vw, 32rem)/1.08 var(--display); letter-spacing: -0.06em;
  margin: clamp(40px, 8vh, 96px) 0 0 -0.04em; user-select: none;
  will-change: opacity; animation: neon-pulse 7s ease-in-out infinite;
}
.giant::before {
  content: ''; position: absolute; inset: 8% -6% -6% -2%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(48% 36% at 32% 60%, rgba(143, 240, 220, 0.13), rgba(35, 175, 158, 0.04) 55%, transparent 78%),
    radial-gradient(24% 22% at 48% 42%, rgba(255, 181, 71, 0.05), transparent 70%);
}
.giant span {
  position: relative; display: block; padding-bottom: 0.16em; color: transparent;
  -webkit-text-stroke: 1.5px rgba(175, 250, 234, 0.72);
  filter:
    drop-shadow(0 0 2px rgba(220, 255, 248, 0.7))
    drop-shadow(0 0 10px rgba(143, 240, 220, 0.5))
    drop-shadow(0 0 28px rgba(45, 200, 178, 0.32));
}
.giant span::after {
  content: 'dory'; position: absolute; inset: 0; padding-bottom: 0.16em; pointer-events: none; color: transparent;
  -webkit-text-stroke: 2px rgba(240, 255, 252, 0.96); opacity: 0.8;
  filter:
    drop-shadow(0 0 4px rgba(255, 255, 255, 0.9))
    drop-shadow(0 0 14px rgba(143, 240, 220, 0.85))
    drop-shadow(0 0 42px rgba(56, 210, 186, 0.52))
    drop-shadow(0 14px 36px rgba(255, 181, 71, 0.16));
}
@keyframes neon-pulse {
  0%, 100% { opacity: 0.62; }
  32% { opacity: 1; }
  58% { opacity: 0.86; }
  60% { opacity: 0.5; }
  62% { opacity: 1; }
  64% { opacity: 0.68; }
  66% { opacity: 1; }
  84% { opacity: 0.9; }
}
.legal { position: absolute; right: var(--pad); bottom: 22px; font-size: 13px; color: var(--muted); }

/* ---------- Anonimizador (/anonimizador) ---------- */
.page-anon .anon-hero { max-width: 1100px; padding: clamp(120px, 18vh, 180px) var(--pad) clamp(28px, 5vh, 48px); }
.page-anon .anon-hero h1 { font-size: clamp(2.8rem, 6.4vw, 6.4rem); }
.page-anon .anon-hero code { white-space: normal; }
.page-anon [data-k="id"] { --kc: var(--lure); }
.page-anon [data-k="money"] { --kc: #FF8A7A; }
.page-anon [data-k="name"] { --kc: var(--sonar); }
.page-anon [data-k="contact"] { --kc: #8AB4FF; }
.page-anon [data-k="secret"] { --kc: #C9A7FF; }
.page-anon [data-k="blk"] { --kc: var(--muted); }

.page-anon .bench { margin: 0 var(--pad); padding: 0; border-radius: var(--radius); overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.samples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.chip {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: none; cursor: pointer;
  color: var(--foam); font: 500 14px/1 var(--text);
  transition: border-color 240ms var(--ease), background-color 240ms var(--ease), scale 160ms var(--ease);
}
.chip:hover { border-color: var(--sonar); background: rgba(143, 240, 220, 0.06); }
.chip:active { scale: 0.97; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); }
.seg-btn { padding: 8px 14px; border-radius: 999px; border: 0; background: none; cursor: pointer; color: var(--muted); font: 500 14px/1 var(--text); transition: background-color 240ms var(--ease), color 240ms var(--ease); }
.seg-btn[aria-pressed="true"] { background: var(--foam); color: var(--abyss); }

.kinds { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--line); }
.kinds legend { float: left; margin-right: 4px; font-size: 14px; color: var(--muted); }
.kind {
  position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--kc) 45%, transparent); font-size: 13.5px;
  transition: border-color 240ms var(--ease), opacity 240ms var(--ease);
}
.kind input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.kind:has(input:focus-visible) { outline: 2px solid var(--sonar); outline-offset: 2px; }
.kind i { width: 8px; height: 8px; border-radius: 50%; background: var(--kc); }
.kind b { font-weight: 600; color: var(--kc); }
.kind b:empty { display: none; }
.kind:has(input:not(:checked)) { opacity: 0.5; border-color: var(--line); }
.kind:has(input:not(:checked)) i { background: transparent; box-shadow: inset 0 0 0 1px var(--kc); }

.restore summary em { font-style: normal; font-weight: 400; color: var(--muted); }
.step { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); font: 600 11px/1 var(--text); color: var(--sonar); }
.page-anon textarea, .page-anon .out {
  width: 100%; min-height: 320px; padding: 14px; border-radius: 10px; border: 1px solid var(--line);
  background: rgba(238, 245, 243, 0.035); color: var(--foam); font: 400 14px/1.65 ui-monospace, 'SF Mono', Consolas, monospace;
}
.page-anon textarea { display: block; resize: vertical; transition: border-color 240ms var(--ease); }
.page-anon textarea::placeholder { color: rgba(157, 181, 184, 0.75); }
.page-anon textarea:focus-visible { outline: none; border-color: var(--sonar); }
.page-anon .out { flex: 1; max-height: 520px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; transition: opacity 200ms var(--ease); }
.ph {
  padding: 1px 5px; border-radius: 4px; cursor: help; font-weight: 600; color: var(--kc);
  background: color-mix(in srgb, var(--kc) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--kc) 40%, transparent);
  animation: ph-in 420ms var(--ease) both;
}
.ph[data-k="blk"] { color: var(--muted); background: var(--muted); }
.ph.miss { --kc: var(--muted); cursor: default; }
.rv { padding: 0 4px; border-radius: 4px; color: var(--foam); background: color-mix(in srgb, var(--kc) 16%, transparent); border-bottom: 2px solid var(--kc); }
@keyframes ph-in { from { background-color: transparent; color: var(--foam); } }
.sheet-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.count { font-size: 13px; color: var(--muted); }
.page-anon .btn[disabled] { cursor: not-allowed; opacity: 0.45; }

.restore { border-top: 1px solid var(--line); }
.restore summary {
  display: flex; align-items: center; gap: 10px; padding: 16px; cursor: pointer; list-style: none;
  font: 600 15px/1.2 var(--text); transition: background-color 240ms var(--ease);
}
.restore summary::-webkit-details-marker { display: none; }
.restore summary::after { content: '+'; margin-left: auto; font: 400 22px/1 var(--text); color: var(--muted); transition: rotate 240ms var(--ease); }
.restore[open] summary::after { rotate: 45deg; }
.restore summary:hover { background: rgba(238, 245, 243, 0.03); }
.restore-body { display: grid; gap: 12px; padding: 0 16px 16px; }
.restore-note { font-size: 14px; color: #CFE0DF; }
.page-anon .restore textarea { min-height: 160px; }
.page-anon .out-restored { min-height: 0; max-height: 420px; }
#copyRestored { justify-self: start; }

.page-anon .anon-what { padding: clamp(80px, 12vh, 140px) var(--pad) 0; }

/* Anonimizador as an AI chat */
.chat-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.chat-id { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.chat-id i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #24404b, #3f6b78); font: 600 11px/1 var(--text); font-style: normal; }
.chat-id small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.chat-log { display: flex; flex-direction: column; gap: 18px; min-height: 300px; max-height: min(620px, calc(100svh - 380px)); overflow: auto; padding: 22px 16px; scrollbar-width: thin; } /* head + log + composer fit one laptop screen */
.page-anon .bench { scroll-margin-top: 92px; }
.msg { display: grid; gap: 6px; max-width: min(82%, 640px); animation: surface 500ms var(--ease) both; }
.msg-user { align-self: flex-end; justify-items: end; }
.msg-ai { align-self: flex-start; }
.bubble { padding: 12px 15px; border-radius: 18px; font-size: 14.5px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-user .bubble { background: rgba(143, 240, 220, 0.09); border: 1px solid rgba(143, 240, 220, 0.22); border-bottom-right-radius: 5px; }
.msg-ai .bubble { background: rgba(238, 245, 243, 0.05); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.bubble.is-restoring .rv { animation: rv-in 700ms var(--ease) both; }
@keyframes rv-in { from { background-color: rgba(143, 240, 220, 0.45); } }
.msg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 12px; color: var(--muted); }
.msg-meta button { padding: 2px 0; border: 0; background: none; cursor: pointer; color: var(--sonar); font: 500 12px/1.2 var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: transparent; transition: text-decoration-color 200ms var(--ease); }
.msg-meta button:hover { text-decoration-color: var(--sonar); }
.shield-tag { display: inline-flex; align-items: center; gap: 6px; color: #CFE0DF; }
.shield-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--sonar); box-shadow: 0 0 8px var(--sonar); }
.typing { display: inline-flex; gap: 5px; padding: 15px 16px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1s var(--ease) infinite; }
.typing i:nth-child(2) { animation-delay: 150ms; }
.typing i:nth-child(3) { animation-delay: 300ms; }
@keyframes blink { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
.composer { display: grid; gap: 10px; padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.composer-box { display: flex; align-items: flex-end; gap: 8px; padding: 8px 8px 8px 16px; border-radius: 22px; border: 1px solid var(--line); background: rgba(238, 245, 243, 0.04); transition: border-color 240ms var(--ease); }
.composer-box:focus-within { border-color: var(--sonar); }
.field { position: relative; flex: 1; min-width: 0; }
.page-anon .composer-box textarea, .ink { padding: 8px 0; font: 400 15px/1.5 var(--text); white-space: pre-wrap; overflow-wrap: break-word; }
.page-anon .composer-box textarea { position: relative; display: block; width: 100%; min-height: 0; max-height: 220px; border: 0; border-radius: 0; background: none; resize: none; }
.ink { position: absolute; inset: 0; overflow: hidden; color: transparent; pointer-events: none; }
.ink mark { color: transparent; border-radius: 3px; background: color-mix(in srgb, var(--kc) 24%, transparent); box-shadow: 0 2px 0 var(--kc); animation: ink-in 420ms var(--ease) both; }
@keyframes ink-in { from { background-color: transparent; box-shadow: 0 2px 0 transparent; } }
.send { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--foam); color: var(--abyss); cursor: pointer; transition: opacity 200ms var(--ease), scale 160ms var(--ease); }
.send:active { scale: 0.94; }
.send:disabled { opacity: 0.3; cursor: not-allowed; }
.send svg { width: 18px; height: 18px; }
.kinds.kinds-inline { padding: 0; border: 0; }

/* Extension pitch on /anonimizador */
.page-anon .ext { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(80px, 12vh, 140px) var(--pad) 0; }
.ext h2 { font-size: clamp(2.2rem, 4.6vw, 4.2rem); }
.ext-copy > p:not(.kicker):not(.ext-note):not(.ext-badge) { max-width: 54ch; margin-top: 18px; font-size: 17px; color: #CFE0DF; }
.ext-badge { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 5px 5px 5px 12px; border-radius: 999px; background: rgba(3, 13, 18, 0.92); border: 1px solid var(--line); font-size: 13px; }
.ext-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--risk); box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.25); }
.ext-badge b { color: var(--sonar); }
.ext-badge span { padding: 6px 11px; border-radius: 999px; background: var(--foam); color: var(--abyss); font-size: 12px; font-weight: 700; } /* same as the extension: the lure color is never a button */
.ext-points { display: grid; gap: 6px; margin: 18px 0 26px; padding-left: 20px; color: #CFE0DF; }
.ext-note { margin-top: 10px; font-size: 13px; color: var(--muted); }
.ext-steps { list-style: none; counter-reset: s; padding: clamp(18px, 2.4vw, 28px); border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.ext-steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 14px 0; font-size: 15px; color: #CFE0DF; }
.ext-steps li + li { border-top: 1px solid var(--line); }
.ext-steps li::before { content: counter(s); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); font: 600 12px/1 var(--text); color: var(--sonar); }
.ext-steps b { color: var(--foam); }

/* ---------- Inner pages (templates/_abismo.html) ---------- */
.page .nav a[aria-current="page"] { color: var(--foam); }
.page .top-cta[aria-current="page"] { border-color: var(--sonar); }
.page .page-hero { max-width: 1100px; padding: clamp(120px, 18vh, 180px) var(--pad) clamp(28px, 5vh, 48px); }
.page .page-hero h1 { font-size: clamp(2.8rem, 6.4vw, 6.4rem); }

/* ---------- Contacto ---------- */
.page .contact { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; padding: 0 var(--pad); }
.contact-card { padding: clamp(18px, 2.4vw, 32px); border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.contact-card form { display: grid; gap: 22px; }
.field { display: grid; align-content: start; gap: 8px; min-width: 0; border: 0; }
.field > label, .field legend { padding: 0; font-size: 14px; font-weight: 500; }
.field legend { margin-bottom: 8px; }
.field label em { font-style: normal; font-weight: 400; color: var(--muted); }
.contact-card input:not([type="radio"]):not([type="checkbox"]), .contact-card textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; background: rgba(238, 245, 243, 0.04); border: 1px solid var(--line);
  color: var(--foam); font: 400 15px/1.4 var(--text); transition: border-color 240ms var(--ease);
}
.contact-card input:hover, .contact-card textarea:hover { border-color: rgba(238, 245, 243, 0.28); }
.contact-card input:focus-visible, .contact-card textarea:focus-visible { outline: none; border-color: var(--sonar); }
.contact-card textarea { min-height: 110px; resize: vertical; }
.contact-card textarea::placeholder { color: rgba(157, 181, 184, 0.75); }
.contact-card [aria-invalid="true"] { border-color: var(--risk); outline: 2px solid color-mix(in srgb, var(--risk) 50%, transparent); outline-offset: 1px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pick label, .seg-size label { position: relative; cursor: pointer; }
.pick input, .seg-size input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.pick span {
  display: grid; align-content: start; gap: 2px; height: 100%; padding: 12px; border-radius: 10px; border: 1px solid var(--line);
  font-size: 12.5px; line-height: 1.35; color: var(--muted); transition: border-color 240ms var(--ease), background-color 240ms var(--ease);
}
.pick b { font-size: 14.5px; font-weight: 600; color: var(--foam); }
.pick label:hover span { border-color: rgba(238, 245, 243, 0.28); }
.pick input:checked + span { border-color: var(--sonar); background: rgba(143, 240, 220, 0.07); }
.pick input:focus-visible + span, .seg-size input:focus-visible + span { outline: 2px solid var(--sonar); outline-offset: 2px; }
.seg-size { display: flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); }
.seg-size label { flex: 1; }
.seg-size span { display: block; padding: 9px 4px; border-radius: 999px; text-align: center; font-size: 13.5px; color: var(--muted); transition: background-color 240ms var(--ease), color 240ms var(--ease); }
.seg-size input:checked + span { background: var(--foam); color: var(--abyss); font-weight: 600; }
.hint { font-size: 12.5px; color: var(--lure); }
.hint:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: #CFE0DF; cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--sonar); }
.consent a { color: var(--foam); text-underline-offset: 3px; text-decoration-color: var(--sonar); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-error { font-size: 14px; color: var(--lure); }
.done { display: grid; justify-items: start; gap: 14px; padding: 12px 0; animation: surface 600ms var(--ease) both; }
.done:focus { outline: none; }
.done-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(16, 185, 129, 0.16); color: var(--safe); font-size: 22px; font-weight: 700; }
.done h2 { font-size: clamp(2rem, 4vw, 3rem); }
.done p { max-width: 48ch; color: #CFE0DF; }
.done-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.contact-side { display: grid; gap: 18px; padding-top: 8px; }
.side-title { font: 600 12px/1 var(--text); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.next { list-style: none; counter-reset: n; margin-bottom: 18px; }
.next li { counter-increment: n; display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; row-gap: 4px; padding: 16px 0; border-top: 1px solid var(--line); }
.next li::before { content: counter(n); grid-row: span 2; font: 600 1.6rem/1 var(--display); color: transparent; -webkit-text-stroke: 1px var(--sonar); }
.next b { font: 600 1.15rem/1.2 var(--display); }
.next span { font-size: 15px; color: #CFE0DF; }
.channels { display: grid; gap: 12px; margin-bottom: 8px; }
.channels div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 15px; }
.channels dt { color: var(--muted); }
.channels a { color: var(--foam); text-decoration: none; transition: color 240ms var(--ease); }
.channels a:hover { color: var(--sonar); }
.side-note { font-size: 13.5px; color: var(--muted); }

.page [data-level="safe"] { --v: var(--safe); }
.page [data-level="warn"] { --v: var(--warn); }
.page [data-level="risk"] { --v: var(--risk); }

/* ---------- Cómo funciona ---------- */
.page .layers { padding: clamp(40px, 8vh, 80px) var(--pad) 0; }
.layer-list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }
.layer-list li { padding-top: 22px; border-top: 1px solid var(--line); }
.layer-n { display: block; margin-bottom: 18px; font: 600 clamp(3rem, 5vw, 4.5rem)/0.8 var(--display); letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1px var(--sonar); }
.layer-list h2 { margin-bottom: 10px; font-size: clamp(1.3rem, 1.8vw, 1.6rem); line-height: 1.15; letter-spacing: -0.02em; }
.layer-list p { font-size: 15.5px; color: #CFE0DF; }
.page .semaforo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; padding: clamp(80px, 12vh, 140px) var(--pad) 0; }
.sem-head { grid-column: 1 / -1; }
.sem-head p { max-width: 52ch; margin-top: 16px; color: #CFE0DF; }
.sem-sim {
  display: grid; gap: 14px; padding: clamp(20px, 3vw, 36px); border-radius: var(--radius); background: var(--panel);
  border: 1px solid color-mix(in srgb, var(--v) 40%, transparent); transition: border-color 300ms var(--ease);
}
.sem-label { font: 600 12px/1 var(--text); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.sem-score { font: 600 clamp(4rem, 9vw, 7rem)/0.9 var(--display); letter-spacing: -0.05em; }
.sem-score span { font-size: 0.3em; letter-spacing: 0; color: var(--muted); }
.sem-sim input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; margin: 8px 0 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(90deg, var(--safe) 0 25%, var(--warn) 25% 40%, var(--risk) 40% 100%);
}
.sem-sim input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--foam); border: 5px solid var(--v); }
.sem-sim input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--foam); border: 5px solid var(--v); }
.sem-sim input[type="range"]:focus-visible { outline: 2px solid var(--sonar); outline-offset: 6px; }
.sem-scale { position: relative; height: 14px; font-size: 11.5px; color: var(--muted); }
.sem-scale span { position: absolute; top: 0; translate: -50% 0; }
.sem-scale span:nth-child(1) { left: 0; translate: 0 0; }
.sem-scale span:nth-child(2) { left: 25%; }
.sem-scale span:nth-child(3) { left: 40%; }
.sem-scale span:nth-child(4) { right: 0; translate: 0 0; }
.sem-verdict { font-size: 16px; color: #CFE0DF; }
.sem-verdict b { display: block; margin-bottom: 4px; font: 600 1.4rem/1.1 var(--display); color: var(--v); transition: color 300ms var(--ease); }
.sem-levels { list-style: none; }
.sem-levels li { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.sem-levels b { display: flex; align-items: center; gap: 10px; font: 600 1.3rem/1.1 var(--display); }
.sem-levels b::before, .qa-levels li::before { content: ''; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--v); box-shadow: 0 0 0 4px color-mix(in srgb, var(--v) 25%, transparent); }
.sem-range { align-self: center; font-size: 13px; color: var(--muted); }
.sem-levels p { grid-column: 1 / -1; font-size: 15px; color: #CFE0DF; }

/* ---------- FAQ ---------- */
.faq-search {
  display: flex; align-items: center; gap: 10px; max-width: 520px; margin-top: 28px; padding: 12px 18px; border-radius: 999px;
  background: rgba(238, 245, 243, 0.05); border: 1px solid var(--line); transition: border-color 240ms var(--ease);
}
.faq-search:hover { border-color: rgba(238, 245, 243, 0.28); }
.faq-search:focus-within { border-color: var(--sonar); }
.faq-search svg { flex: none; width: 18px; height: 18px; color: var(--muted); }
.faq-search input { flex: 1; min-width: 0; border: 0; outline: none; background: none; color: var(--foam); font: 400 16px/1.3 var(--text); }
.faq-search input::placeholder { color: var(--muted); }
.page .faq { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; padding: clamp(24px, 4vh, 48px) var(--pad) 0; }
.faq-nav { position: sticky; top: 100px; display: grid; gap: 2px; }
.faq-nav a { padding: 8px 12px; border-radius: 8px; font-size: 15px; color: var(--muted); text-decoration: none; transition: color 240ms var(--ease), background-color 240ms var(--ease); }
.faq-nav a:hover { color: var(--foam); background: rgba(238, 245, 243, 0.04); }
.faq-groups { display: grid; gap: clamp(40px, 6vh, 64px); max-width: 820px; }
.faq-group { scroll-margin-top: 100px; }
.faq-group h2 { margin-bottom: 12px; font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -0.03em; }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 4px; cursor: pointer; list-style: none; font: 500 1.08rem/1.35 var(--text); transition: color 240ms var(--ease); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; flex: none; font: 400 22px/1 var(--text); color: var(--muted); transition: rotate 240ms var(--ease), color 240ms var(--ease); }
.qa[open] summary::after { rotate: 45deg; color: var(--sonar); }
.qa summary:hover { color: var(--sonar); }
.qa-a { display: grid; gap: 10px; max-width: 70ch; padding: 0 4px 20px; font-size: 15.5px; color: #CFE0DF; }
.qa-a ol, .qa-a ul { display: grid; gap: 6px; padding-left: 20px; }
.qa-a a { color: var(--foam); text-underline-offset: 3px; text-decoration-color: var(--sonar); }
.qa-a strong { color: var(--foam); }
.qa-a ul.qa-levels { padding-left: 0; list-style: none; }
.qa-levels li { display: flex; align-items: baseline; gap: 10px; }
.faq-empty { color: var(--muted); }

/* ---------- Legal (privacidad, términos) ---------- */
.legal-meta { margin-top: 16px; font-size: 14px; color: var(--muted); }
.page .legal-wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; padding: clamp(24px, 4vh, 48px) var(--pad) 0; }
.legal-toc { position: sticky; top: 100px; }
.legal-toc ol { list-style: none; display: grid; gap: 2px; margin-top: 12px; }
.legal-toc a { display: block; padding: 7px 10px; border-radius: 8px; font-size: 14px; color: var(--muted); text-decoration: none; transition: color 240ms var(--ease), background-color 240ms var(--ease); }
.legal-toc a:hover { color: var(--foam); background: rgba(238, 245, 243, 0.04); }
.legal-doc { display: grid; gap: clamp(40px, 6vh, 64px); max-width: 760px; }
.legal-doc section { display: grid; gap: 14px; scroll-margin-top: 100px; }
.legal-doc h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; letter-spacing: -0.02em; }
.section-title-num { display: block; margin-bottom: 8px; font: 600 13px/1 var(--text); letter-spacing: 0.1em; color: var(--sonar); }
.legal-doc p, .legal-doc li { font-size: 16px; line-height: 1.7; color: #CFE0DF; }
.legal-doc ul, .legal-doc ol { display: grid; gap: 8px; padding-left: 22px; }
.legal-doc strong { color: var(--foam); }
.legal-doc a { color: var(--foam); text-underline-offset: 3px; text-decoration-color: var(--sonar); }
.legal-doc code { white-space: normal; }
.callout-card { --v: var(--sonar); padding: 18px 20px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--v) 35%, transparent); background: color-mix(in srgb, var(--v) 7%, transparent); }
.callout-card.safe { --v: var(--safe); }
.callout-card.warning { --v: var(--warn); }
.callout-title { margin-bottom: 6px; font: 600 1.05rem/1.3 var(--display); color: var(--foam); }
.callout-desc { font-size: 15px; line-height: 1.65; color: #CFE0DF; }
.page-legal .shield-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.page-legal .shield-tag { padding: 4px 9px; border-radius: 6px; background: rgba(143, 240, 220, 0.08); border: 1px solid rgba(143, 240, 220, 0.25); color: var(--sonar); font: 600 12.5px/1.3 ui-monospace, Consolas, monospace; }
.page-legal .shield-tag::before { content: none; }
.privacy-brief { padding: 0 var(--pad) clamp(16px, 3vh, 32px); }
.brief-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); margin-top: 14px; }
.brief-grid li { display: grid; align-content: start; gap: 8px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.brief-grid li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--sonar); box-shadow: 0 0 10px var(--sonar); }
.brief-grid b { font: 600 1.05rem/1.25 var(--display); letter-spacing: -0.01em; }
.brief-grid span { font-size: 15px; line-height: 1.55; color: #CFE0DF; }
.data-table td:first-child { width: 20%; }
.data-table td { font-size: 14.5px; line-height: 1.5; }
.legal-doc .post-table-wrap { margin-right: calc(-1 * min(18vw, 240px)); } /* the table gets the room the prose doesn't need */
/* Unfilled legal data: impossible to miss, must be gone before deploying. */
mark.pending { padding: 1px 6px; border-radius: 4px; background: rgba(220, 38, 38, 0.18); color: #ffb4b4; box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.5); font-weight: 600; }

/* ---------- Blog (/blog, /blog/<slug>) ---------- */
.blog, .post-related { padding: clamp(24px, 4vh, 48px) var(--pad) 0; }
.blog-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.blog-list .is-lead { grid-column: 1 / -1; }
.blog-card {
  --cp: clamp(20px, 2.4vw, 32px);
  position: relative; display: grid; align-content: start; gap: 12px; height: 100%; padding: var(--cp); overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); text-decoration: none;
  transition: border-color 240ms var(--ease), translate 240ms var(--ease);
}
.blog-card:hover { border-color: rgba(143, 240, 220, 0.45); translate: 0 -3px; }
/* Real photos, pulled toward the water column so they sit in the abyss instead of on top of it */
.blog-thumb { display: block; width: calc(100% + 2 * var(--cp)); max-width: none; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  margin: calc(-1 * var(--cp)) calc(-1 * var(--cp)) 6px; filter: saturate(0.8) brightness(0.88); transition: filter 400ms var(--ease), scale 900ms var(--ease); }
.blog-card:hover .blog-thumb { filter: saturate(1) brightness(1); scale: 1.03; }
.is-lead .blog-card { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: clamp(24px, 3vw, 48px); align-items: center; }
.is-lead .blog-thumb { grid-row: 1 / span 4; width: calc(100% + var(--cp)); height: calc(100% + 2 * var(--cp)); margin: calc(-1 * var(--cp)) 0 calc(-1 * var(--cp)) calc(-1 * var(--cp)); aspect-ratio: auto; min-height: 320px; }
.draft-banner { margin: 0 var(--pad) 24px; padding: 12px 16px; border-radius: 10px; border: 1px dashed var(--lure); color: var(--lure); font-size: 14.5px; }
.post-cover { position: relative; max-width: 1240px; margin: 0 var(--pad) clamp(36px, 6vh, 64px); }
.post-cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); filter: saturate(0.85) brightness(0.92); }
.post-cover figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }
.post-cover figcaption a { color: var(--muted); text-underline-offset: 3px; }
.post-cover figcaption a:hover { color: var(--sonar); }
.blog-card h2, .blog-card h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.1; letter-spacing: -0.02em; }
.is-lead .blog-card { padding: clamp(28px, 4vw, 56px); }
.is-lead .blog-card h2 { max-width: 20ch; font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1; letter-spacing: -0.035em; }
.blog-card p { max-width: 60ch; font-size: 16px; color: #CFE0DF; }
.blog-tag { justify-self: start; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(143, 240, 220, 0.3); font-size: 12.5px; font-weight: 500; color: var(--sonar); }
.blog-meta { margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--muted); }
.blog-empty { color: var(--muted); }

.post-hero { max-width: 980px; padding: clamp(120px, 18vh, 180px) var(--pad) clamp(28px, 5vh, 48px); }
.post-hero h1 { font-size: clamp(2.4rem, 5.4vw, 5rem); line-height: 0.98; letter-spacing: -0.04em; }
.crumbs { display: flex; gap: 8px; margin-bottom: 18px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--sonar); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 20px; font-size: 14px; color: var(--muted); }
.post-body { display: grid; gap: 22px; max-width: 720px; padding: 0 var(--pad); }
.post-body > p, .post-body li { font-size: 18px; line-height: 1.7; color: #D7E6E5; }
.post-body h2 { margin-top: 26px; font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.1; letter-spacing: -0.025em; scroll-margin-top: 100px; }
.post-body h3 { margin-top: 8px; font-size: clamp(1.2rem, 1.8vw, 1.45rem); scroll-margin-top: 100px; }
.post-body strong { color: var(--foam); }
.post-body a:not(.btn) { color: var(--foam); text-underline-offset: 3px; text-decoration-color: var(--sonar); }
.post-body a:not(.btn):hover { color: var(--sonar); }
.post-cta .btn { text-decoration: none; }
.post-body ul, .post-body ol { display: grid; gap: 10px; padding-left: 24px; }
.post-body code { white-space: normal; }
/* Callout: something to remember. .warn for "if you already clicked". */
.post-note { --v: var(--sonar); padding: 18px 22px; border-radius: 12px; border-left: 3px solid var(--v); background: color-mix(in srgb, var(--v) 8%, transparent); font-size: 16.5px; line-height: 1.65; color: #D7E6E5; }
.post-note.warn { --v: var(--warn); }
.post-note strong:first-child { display: block; margin-bottom: 4px; font-family: var(--display); font-size: 1.1rem; }
/* Numbered steps: what to do, in order. */
.post-steps { list-style: none; counter-reset: st; padding-left: 0 !important; gap: 0 !important; }
.post-steps > li { counter-increment: st; position: relative; padding: 18px 0 18px 58px; border-top: 1px solid var(--line); }
.post-steps > li::before { content: counter(st); position: absolute; left: 0; top: 16px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(143, 240, 220, 0.4); font: 600 15px/1 var(--display); color: var(--sonar); }
/* Red flags: the bait, in the lure's color. */
.post-flags { list-style: none; padding-left: 0 !important; }
.post-flags > li { position: relative; padding-left: 28px; }
.post-flags > li::before { content: ''; position: absolute; left: 4px; top: 0.62em; width: 9px; height: 9px; border-radius: 50%; background: var(--lure); box-shadow: 0 0 10px rgba(255, 181, 71, 0.6); }
/* An illustrated sample of a fake email (never a live link). <mark> = the hook. */
.post-mail { margin: 6px 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; color: #2b2f33; font: 400 14px/1.5 Roboto, Arial, Helvetica, sans-serif; }
/* Gmail desktop reading view: subject + label, sender row, body, attachment card, reply pills. Everything is inert. */
.post-mail .gm-subj { display: flex; align-items: center; gap: 10px; padding: 16px 18px 4px; }
.post-mail .gm-title { flex: 1; min-width: 0; font: 400 20px/1.3 "Google Sans", Roboto, Arial, sans-serif; color: #1f1f1f; overflow-wrap: anywhere; }
.post-mail .gm-tag { flex: none; padding: 0 8px; border-radius: 4px; background: #e8eaed; color: #444746; font-size: 12px; line-height: 20px; }
.post-mail .gm-ico, .post-mail .gm-act { flex: none; display: flex; align-items: center; gap: 14px; }
.post-mail .gm-i { flex: none; width: 20px; height: 20px; background: #5f6368; -webkit-mask: var(--i) center / 20px no-repeat; mask: var(--i) center / 20px no-repeat; }
.post-mail .gm-i.print { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zm-3 11H8v-5h8v5zm3-7a1 1 0 110-2 1 1 0 010 2zm-1-9H6v4h12V3z'/%3E%3C/svg%3E"); }
.post-mail .gm-i.win { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 19H5V5h7V3H5a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z'/%3E%3C/svg%3E"); }
.post-mail .gm-i.star { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z'/%3E%3C/svg%3E"); }
.post-mail .gm-i.reply { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 9V5l-7 7 7 7v-4.1c5 0 8.5 1.6 11 5.1-1-5-4-10-11-11z'/%3E%3C/svg%3E"); }
.post-mail .gm-i.fwd { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 9V5l7 7-7 7v-4.1c-5 0-8.5 1.6-11 5.1 1-5 4-10 11-11z'/%3E%3C/svg%3E"); }
.post-mail .gm-i.more { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 8a2 2 0 100-4 2 2 0 000 4zm0 2a2 2 0 100 4 2 2 0 000-4zm0 6a2 2 0 100 4 2 2 0 000-4z'/%3E%3C/svg%3E"); }
.post-mail .gm-from { display: flex; align-items: flex-start; gap: 12px; padding: 10px 18px 6px; }
.post-mail .gm-av { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c, #1a73e8); color: #fff; font: 500 18px/1 Roboto, Arial, sans-serif; }
.post-mail .gm-who { flex: 1; min-width: 0; font-size: 14px; line-height: 20px; color: #5e5e5e; overflow-wrap: anywhere; }
.post-mail .gm-who b { color: #1f1f1f; font-weight: 700; }
.post-mail .gm-who small { display: block; font-size: 12px; }
.post-mail .gm-act { gap: 12px; font-size: 12px; color: #5e5e5e; white-space: nowrap; }
.post-mail .gm-att { padding: 8px 18px 4px; }
.post-mail .gm-att-h { margin-bottom: 8px; font-size: 12px; color: #5f6368; }
.post-mail .gm-file { display: flex; align-items: center; gap: 10px; width: max-content; max-width: 100%; padding: 10px 14px 10px 10px; border: 1px solid #dadce0; border-radius: 8px; background: #f8f9fa; color: #202124; font-size: 13px; line-height: 1.3; overflow-wrap: anywhere; }
.post-mail .gm-badge { flex: none; display: grid; place-items: center; min-width: 32px; height: 22px; padding: 0 4px; border-radius: 3px; background: var(--c); color: #fff; font: 700 10px/1 Arial, sans-serif; letter-spacing: 0.02em; }
.post-mail .gm-reply { display: flex; flex-wrap: wrap; gap: 12px; padding: 14px 18px 16px; }
.post-mail .gm-reply span { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px 0 14px; border: 1px solid #dadce0; border-radius: 18px; background: #f8f9fa; color: #444746; font-size: 14px; cursor: not-allowed; }
@media (max-width: 560px) { .post-mail .gm-from { flex-wrap: wrap; } .post-mail .gm-act { margin-left: 52px; } }
.post-mail .pm-head { display: grid; gap: 2px; padding: 12px 18px; background: #f3f4f6; border-bottom: 1px solid #e5e7eb; font-size: 13.5px; color: #4b5563; }
.post-mail strong { color: inherit; }
.post-mail .pm-head b { color: #111; font-weight: 600; }
.post-mail .pm-body { padding: 16px 18px; }
.post-mail .pm-body p + p { margin-top: 10px; }
.post-mail mark { color: inherit; background: rgba(255, 181, 71, 0.38); border-bottom: 2px solid #d97706; border-radius: 2px; padding: 0 2px; }
.post-mail .pm-btn { display: inline-block; margin-top: 12px; padding: 9px 18px; border-radius: 4px; background: #1f2937; color: #fff; font-weight: 700; }
/* A real sample with Dory's real verdict next to it */
.post-mail .pm-real { justify-self: start; margin-bottom: 4px; padding: 2px 8px; border-radius: 999px; background: #111827; color: #8FF0DC; font: 600 11px/1.6 var(--text); letter-spacing: 0.06em; text-transform: uppercase; }
.post-mail .pm-att { margin-top: 12px; font-size: 13.5px; color: #4b5563; }
.post-verdict { --v: var(--risk); overflow: hidden; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--v) 40%, transparent); background: color-mix(in srgb, var(--v) 7%, var(--panel)); }
.pv-band { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; white-space: nowrap; padding: 14px 18px; border-bottom: 1px solid color-mix(in srgb, var(--v) 30%, transparent); }
.pv-band span { font: 600 11.5px/1 var(--text); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.pv-band b { font: 600 1.25rem/1 var(--display); color: var(--foam); }
.pv-band i { margin-left: auto; font: normal 600 1.6rem/1 var(--display); color: var(--v); }
.pv-band small { font: 400 12px/1 var(--text); color: var(--muted); }
.post-verdict ul { list-style: none; display: grid; gap: 10px; padding: 16px 18px 6px !important; }
.post-verdict li { position: relative; padding-left: 22px; font-size: 15.5px !important; line-height: 1.55; }
.post-verdict li::before { content: ''; position: absolute; left: 2px; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--v); }
.post-verdict .pv-human { padding: 4px 18px 16px; font-size: 15px; color: #CFE0DF; }
.post-mail + figcaption, .post-figure figcaption { margin-top: -10px; font-size: 14px; color: var(--muted); }
.post-figure { display: grid; gap: 16px; }
/* Numbered pins tie each hook in the email to the Dory signal with the same number. */
.post-mail [data-n]::after, .post-verdict li[data-n]::before { content: attr(data-n); display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--risk); color: #fff; font: 700 11px/1 var(--text); }
.post-mail [data-n]::after { margin-left: 6px; vertical-align: 1px; }
.post-verdict li[data-n] { padding-left: 30px; }
.post-verdict li[data-n]::before { left: 0; top: 3px; }
.post-mail .pm-btn { cursor: not-allowed; }
.post-mail .pm-dest { display: block; margin-top: 6px; font-size: 13px; color: #6b7280; }
/* A real email rebuilt from its source: the original's Word fonts, colours and sizes (pt → px). Links are inert. */
.pm-word { font: 14.7px/1.25 Calibri, Carlito, "Segoe UI", sans-serif; color: #000; overflow-wrap: anywhere; }
.pm-word p + p { margin-top: 14px !important; }
.pm-word .w-const { font: 16px/21px Constantia, Georgia, serif; color: #737576; }
.pm-word .w-times { font: 18px/1.3 "Times New Roman", Times, serif; }
.pm-word .w-img { display: inline-block; width: 100px; height: 100px; border: 1.3px solid #000; background: #fff; vertical-align: bottom; cursor: not-allowed; }
.pm-word .w-link { color: #0000ee; text-decoration: underline; cursor: not-allowed; }
.pm-word .w-pre { font: 13.3px/21px "Courier New", Courier, monospace; }
.pm-word .w-courier { font-size: 14px; color: #505050; }
.pm-word .w-verdana { font: 12px/19px Verdana, Geneva, sans-serif; color: #000099; }
.pm-word .w-gap { margin-top: 36px !important; }
.pm-word .w-tahoma { font: 700 13.3px/1.3 Tahoma, Verdana, sans-serif; color: #0C56A0; }
.pm-word .w-arial { font: 14px/19px Arial, Helvetica, sans-serif; }
.pm-word .w-arial .w-link { color: #0A7791; }
.pm-word .w-fine { font: 10px/1.6 Verdana, Geneva, sans-serif; color: #7E7E7E; }
/* Brand logos in the rebuilt emails are the real vector files from static/logos, with their own fills. */
.real-logo { display: block; max-width: 100%; height: auto; }
/* DHL and cPanel SVGs are a 24x24 canvas with a thin wordmark in the middle: crop to it. */
.real-logo.crop { object-fit: cover; }
.pm-word .w-svg { display: block; width: 100%; height: auto; }
.pm-word table { width: 100%; border-collapse: collapse; }
.post-mail .pm-foot { display: grid; gap: 6px; padding: 12px 18px; border-top: 1px dashed #d1d5db; background: #fafafa; font-size: 13.5px; color: #4b5563; }
.post-mail .pm-foot b { color: #111; font-weight: 600; }
/* Wide screens: the email and its verdict side by side, breaking out of the text column. */
@media (min-width: 1100px) {
  .post-real { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px 28px; align-items: start; width: min(1180px, calc(100vw - 2 * var(--pad) - 16px)); }
  .post-real .post-mail { margin: 0; }
  .post-real .post-verdict { position: sticky; top: 100px; }
  .post-real figcaption { grid-column: 1 / -1; margin-top: 0; max-width: 720px; }
}
/* Comparison tables (real vs fake). */
.post-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.post-table th, .post-table td { padding: 12px 14px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; color: #D7E6E5; }
.post-table th { font: 600 12px/1.2 var(--text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-top: 0; }
.post-table-wrap { overflow-x: auto; }
.post-sources { font-size: 14px !important; color: var(--muted) !important; }
.post-sources a { color: var(--muted); }
.post-cta { display: grid; justify-items: start; gap: 12px; margin-top: 30px; padding: clamp(22px, 3vw, 36px); border-radius: var(--radius); border: 1px solid rgba(143, 240, 220, 0.3); background: var(--panel); }
.post-cta h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.post-cta p { color: #CFE0DF; }
.post-related { padding-top: clamp(64px, 10vh, 120px); }
.post-related h2 { margin-bottom: 22px; font-size: clamp(1.8rem, 3.4vw, 2.8rem); }

/* ---------- Responsive (composed for 390px) ---------- */
@media (max-width: 1100px) {
  .gauge { display: none; }        /* below this it overprints the right-hand columns */
  .blog-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brief-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-doc .post-table-wrap { margin-right: 0; }
  .reply-badge { display: none; }  /* the reply header can't fit avatar + address + badge */
  .hero-copy { grid-column: 1 / 10; }
  .hero-copy.is-open, .hero-copy:has(#scan:not([hidden])) { grid-column: 1 / -1; }
  .tactics { grid-column: 7 / 13; }
  .layer-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav, .gauge { display: none; }
  .menu { display: block; }
  .top { gap: 14px; padding-top: 14px; padding-bottom: 14px; }
  .hero { padding-top: 84px; align-items: start; }
  .hero-copy { grid-column: 1 / -1; }
  .hero-copy::before { inset: -6% -30% -6% -30%; }
  .kicker { margin-top: 13vh; font-size: 14px; }
  h1 { font-size: clamp(3rem, 14vw, 4.6rem); }
  .lede { font-size: 16px; margin-top: 14px; }
  .probe { margin-top: 18px; }
  .probe textarea { min-height: 100px; }
  .probe-actions { flex-direction: column; align-items: stretch; }
  .mail { padding: 9px 8px 9px 12px; }
  .scan-grid { grid-template-columns: 1fr; }
  .mailview { position: static; max-height: none; overflow: hidden; }
  .thread { display: none; }
  .forward { grid-template-columns: 1fr; padding: 16px; }
  .forward-ico { display: none; }
  .forward-addr { justify-items: start; }
  .copy { font-size: 17px; }
  .dial { width: 76px; height: 76px; }
  .dial-num b { font-size: 1.5rem; }
  .reply-badge { display: none; }
  .reply-head { grid-template-columns: 36px 1fr; }
  .em-in, .em-plain { padding: 16px; }
  .em-top, .em-foot { padding-inline: 16px; }
  .lure { display: block; }
  .lure-head { position: static; }
  .tactics { margin-top: 40px; }
  .hook-stage { padding-bottom: 10vh; }
  .signals-head { display: block; }
  .signals-head p { margin-top: 18px; }
  .signal-grid { grid-template-columns: 1fr; }
  .signal-grid div, .signal-grid div:nth-child(4) { grid-column: auto; }
  .stair { grid-template-columns: 1fr; }
  .stair li:nth-child(2), .stair li:nth-child(3) { margin-top: 0; }
  .stair li:nth-child(2) { margin-left: 12%; }
  .stair li:nth-child(3) { margin-left: 24%; }
  .floor-links { grid-template-columns: 1fr 1fr; }
  .legal { position: static; padding: 0 0 22px; }
  .page-anon .bench { margin: 0 12px; }
  .page-anon textarea, .page-anon .out { min-height: 200px; }
  .page .contact { grid-template-columns: 1fr; padding: 0 12px; }
  .grid2 { grid-template-columns: 1fr; }
  .pick { grid-template-columns: 1fr 1fr; }
  .layer-list { grid-template-columns: 1fr; }
  .page .semaforo { grid-template-columns: 1fr; }
  .page .faq { grid-template-columns: 1fr; }
  .page-anon .ext { grid-template-columns: 1fr; }
  .page .legal-wrap { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .faq-nav { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .faq-nav a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
  .blog-list { grid-template-columns: 1fr; }
  .brief-grid { grid-template-columns: 1fr; }
  .is-lead .blog-card { grid-template-columns: 1fr; }
  .is-lead .blog-thumb { grid-row: auto; width: calc(100% + 2 * var(--cp)); height: auto; margin: calc(-1 * var(--cp)) calc(-1 * var(--cp)) 6px; aspect-ratio: 16 / 9; min-height: 0; }
  .post-hero { padding-top: 110px; }
  .post-body > p, .post-body li { font-size: 17px; }
  .post-steps > li { padding-left: 50px; }
}

@media (hover: none) {
  .btn:hover span, .mail:hover, .scan-back:hover span, .floor-links a:hover { translate: none; }
  .btn:hover::after, .copy:hover::after { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 150ms !important; scroll-behavior: auto !important; }
  .js [data-rise] { opacity: 1; translate: none; }
}
