/* ==========================================================================
   Leak Database — global stylesheet
   Theme: light by default, dark when the device prefers it, and either one
   forced by <html data-theme="dark|light"> (set from the ld_theme cookie).
   ========================================================================== */

:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-2: #efede6;
  --text: #15171b;
  --muted: #5a6069;
  --border: #dedad0;
  --accent: #c2410c;
  --accent-hover: #a8380a;
  --on-accent: #ffffff;
  --accent-soft: rgba(194, 65, 12, .09);
  --good: #15803d;
  --bad: #b91c1c;
  --code-bg: #15171b;
  --code-text: #e7e9ec;
  --grid-line: rgba(21, 23, 27, .05);
  --shadow: 0 1px 2px rgba(20, 20, 20, .04), 0 12px 32px -12px rgba(20, 20, 20, .14);
  --scrim: rgba(10, 12, 16, .45);

  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 64px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1117;
    --surface: #141a22;
    --surface-2: #1a212b;
    --text: #e8eaed;
    --muted: #9aa3ae;
    --border: #27303b;
    --accent: #ff7a45;
    --accent-hover: #ff915f;
    --on-accent: #1a0d06;
    --accent-soft: rgba(255, 122, 69, .12);
    --good: #4ade80;
    --bad: #f87171;
    --code-bg: #0a0d12;
    --code-text: #e7e9ec;
    --grid-line: rgba(255, 255, 255, .04);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
    --scrim: rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1117;
  --surface: #141a22;
  --surface-2: #1a212b;
  --text: #e8eaed;
  --muted: #9aa3ae;
  --border: #27303b;
  --accent: #ff7a45;
  --accent-hover: #ff915f;
  --on-accent: #1a0d06;
  --accent-soft: rgba(255, 122, 69, .12);
  --good: #4ade80;
  --bad: #f87171;
  --code-bg: #0a0d12;
  --code-text: #e7e9ec;
  --grid-line: rgba(255, 255, 255, .04);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
  --scrim: rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); }
@media (min-width: 768px) { .container { padding-inline: 32px; } }
.narrow { max-width: 820px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; transition: top .15s; }
.skip-link:focus { top: 12px; color: var(--on-accent); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font: 600 .75rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  --_bg: var(--surface); --_fg: var(--text); --_bd: var(--border);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .65rem 1.2rem;
  font: 600 .95rem/1 var(--font); text-decoration: none; white-space: nowrap;
  color: var(--_fg); background: var(--_bg); border: 1px solid var(--_bd); border-radius: var(--radius-sm);
  cursor: pointer; transition: background .15s, border-color .15s, transform .1s, color .15s;
}
.btn:hover { color: var(--_fg); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.btn-primary { --_bg: var(--accent); --_fg: var(--on-accent); --_bd: var(--accent); }
.btn-primary:hover { --_bg: var(--accent-hover); --_bd: var(--accent-hover); }
.btn-ghost { --_bg: transparent; }
.btn-ghost:hover { --_bg: var(--surface-2); }
.btn-sm { min-height: 38px; padding: .5rem .9rem; font-size: .875rem; }
.btn-lg { min-height: 54px; padding: .9rem 1.5rem; font-size: 1rem; }
.btn-block { width: 100%; }

.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: 10px;
  cursor: pointer; transition: background .15s, border-color .15s;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
@media (max-width: 479px) { .hide-sm { display: none; } }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark { width: 32px; height: 32px; flex: none; }
.bm-bg { fill: var(--text); }
.bm-drop { fill: var(--accent); }
.bm-line { fill: none; stroke: var(--bg); stroke-width: 1.8; stroke-linecap: round; }
.brand-name { font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; }
.brand-name span { font-weight: 500; color: var(--muted); margin-left: 1px; }

/* theme toggle icons */
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}

/* hamburger */
.burger { position: relative; width: 18px; height: 12px; }
.burger span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s, opacity .2s; }
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 5px; }
.burger span:nth-child(3) { top: 10px; }
.menu-toggle[aria-expanded="true"] .burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Drawer ---------- */
.drawer-scrim { position: fixed; inset: 0; z-index: 49; background: var(--scrim); opacity: 0; transition: opacity .25s; }
.drawer-scrim.is-open { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50;
  width: min(360px, 88vw); display: flex; flex-direction: column;
  background: var(--surface); border-left: 1px solid var(--border); box-shadow: var(--shadow);
  padding: 16px max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) 20px;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
  overflow-y: auto; overscroll-behavior: contain;
}
.drawer.is-open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.drawer-title { font: 600 .75rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.drawer-list { list-style: none; margin: 0; padding: 0; }
.drawer-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 4px; border-bottom: 1px solid var(--border);
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 1.05rem;
}
a.drawer-link:hover, a.drawer-link[aria-current="page"] { color: var(--accent); }
.drawer-link.is-soon { color: var(--muted); cursor: default; font-weight: 500; }
.drawer-link em { font: 600 .65rem/1 var(--mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; padding: 4px 7px; border: 1px solid var(--border); border-radius: 999px; }
.drawer-foot { margin-top: auto; padding-top: 24px; display: grid; gap: 10px; }
.drawer-user { margin: 0 0 4px; font-size: .9rem; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 10vw, 120px) 0 clamp(56px, 8vw, 96px); }
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 6vw, 4rem); max-width: 16ch; margin-bottom: .45em; letter-spacing: -.035em; }
.hl { color: var(--accent); position: relative; white-space: nowrap; }
.lede { font-size: clamp(1.02rem, 2vw, 1.2rem); color: var(--muted); max-width: 60ch; margin-bottom: 2.2rem; }

.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--accent-soft); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---------- Search card ---------- */
.search-card {
  width: 100%; max-width: 680px; text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px);
  padding: 10px; box-shadow: var(--shadow);
}
.search-types { display: flex; gap: 4px; border: 0; margin: 0 0 8px; padding: 4px; background: var(--surface-2); border-radius: var(--radius-sm); }
.search-types input { position: absolute; opacity: 0; pointer-events: none; }
.search-types label {
  flex: 1; text-align: center; padding: 9px 8px; border-radius: 7px; cursor: pointer;
  font-weight: 600; font-size: .9rem; color: var(--muted); transition: background .15s, color .15s;
}
.search-types label:hover { color: var(--text); }
.search-types input:checked + label { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.search-types input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 1px; }

.search-row { display: flex; gap: 8px; }
.search-input {
  flex: 1; min-width: 0; height: 54px; padding: 0 16px;
  font: 500 1.05rem/1 var(--font); color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
.search-input::placeholder { color: var(--muted); opacity: .75; }
.search-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search-input.is-invalid { border-color: var(--bad); }
@media (max-width: 559px) {
  .search-card { padding: 12px; }
  .search-row { flex-direction: column; gap: 10px; }
  /* In a column layout "flex: 1" collapses the input's height — size it explicitly */
  .search-input { flex: none; width: 100%; height: 58px; font-size: 1.0625rem; padding: 0 18px; }
  .search-row .btn { width: 100%; height: 56px; }
}
.search-hint { display: flex; align-items: center; gap: 6px; margin: 10px 6px 4px; font-size: .82rem; color: var(--muted); }
.search-hint svg { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--good); stroke-width: 2; }
.search-hint.is-error { color: var(--bad); }
.search-hint.is-error svg { stroke: var(--bad); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Stats ---------- */
.stats { border-block: 1px solid var(--border); background: var(--surface); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 28px 12px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat-value { font: 700 clamp(1.4rem, 3.4vw, 2.2rem)/1.1 var(--mono); letter-spacing: -.03em; margin: 0 0 6px; font-variant-numeric: tabular-nums; }
.stat-soon { font: 600 .85rem/1.2 var(--font); color: var(--muted); letter-spacing: 0; }
.stat-label { margin: 0; color: var(--muted); font-size: .85rem; }
@media (max-width: 599px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat { padding: 18px 12px; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--border); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--surface-2); }
.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2, .biz h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.step-num { display: block; font: 700 .85rem/1 var(--mono); color: var(--accent); margin-bottom: 20px; }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--muted); margin: 0; }

.keep-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.keep-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.keep-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin-bottom: 1rem; }
.keep-card h3 svg { width: 26px; height: 26px; padding: 4px; border-radius: 8px; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.keep-yes h3 svg { stroke: var(--good); background: color-mix(in srgb, var(--good) 14%, transparent); }
.keep-no h3 svg { stroke: var(--bad); background: color-mix(in srgb, var(--bad) 14%, transparent); }
.keep-card ul { list-style: none; margin: 0; padding: 0; }
.keep-card li { padding: 10px 0; border-top: 1px solid var(--border); color: var(--muted); }
.keep-card li:first-child { border-top: 0; }

/* ---------- Business ---------- */
.biz { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .biz { grid-template-columns: 1fr 1.05fr; } }
.biz-copy > p { color: var(--muted); font-size: 1.05rem; }
.ticks { list-style: none; margin: 0 0 28px; padding: 0; }
.ticks li { position: relative; padding: 6px 0 6px 28px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.biz-code { background: var(--code-bg); color: var(--code-text); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); min-width: 0; }
.code-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.code-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); }
.code-bar em { margin-left: 10px; font: 500 .75rem/1 var(--mono); font-style: normal; opacity: .55; }
.biz-code pre { margin: 0; padding: 20px; overflow-x: auto; font: 400 .84rem/1.7 var(--mono); }
.c-k { color: #ff9e64; font-weight: 700; } .c-s { color: #7ee787; } .c-p { color: #79c0ff; }
.c-c { color: #a5d6ff; } .c-b { color: #ff7b72; } .c-n { color: #d2a8ff; }

/* ---------- FAQ ---------- */
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; position: relative;
  font-weight: 600; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 20px 20px; margin: 0; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { padding: clamp(56px, 8vw, 96px) 0; }
.cta-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--text); color: var(--bg); border-radius: calc(var(--radius) + 6px);
  padding: clamp(28px, 5vw, 56px);
}
.cta h2 { font-size: clamp(1.5rem, 3.6vw, 2.3rem); margin: 0; max-width: 18ch; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 max(28px, env(safe-area-inset-bottom)); font-size: .92rem; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .footer-brand { grid-column: auto; } }
.footer-brand p { color: var(--muted); max-width: 42ch; margin-top: 14px; }
.footer-h { font: 600 .72rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--text); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: .84rem; }
.footer-base p { margin: 0; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .drawer, .drawer-scrim, .search-card, .cta, .biz-code { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ==========================================================================
   Search results
   ========================================================================== */
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.results-hero { padding: clamp(40px, 7vw, 80px) 0 clamp(32px, 5vw, 56px); }
.results-web { padding-top: clamp(32px, 5vw, 56px); }

.verdict {
  --_c: var(--muted);
  display: flex; gap: 20px; align-items: flex-start;
  padding: clamp(20px, 4vw, 32px); border-radius: calc(var(--radius) + 4px);
  background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--_c); box-shadow: var(--shadow);
}
.verdict-bad { --_c: var(--bad); background: color-mix(in srgb, var(--bad) 6%, var(--surface)); }
.verdict-good { --_c: var(--good); background: color-mix(in srgb, var(--good) 6%, var(--surface)); }
.verdict-icon { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--_c) 14%, transparent); }
.verdict-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--_c); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.verdict-kicker { font: 700 .75rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--_c); margin: 4px 0 10px; }
.verdict h1 { font-size: clamp(1.6rem, 4.6vw, 2.5rem); margin-bottom: .35em; }
.verdict-sub { color: var(--muted); margin: 0; overflow-wrap: anywhere; }
.verdict-sub .mono { color: var(--text); font-weight: 600; }
@media (max-width: 479px) { .verdict { flex-direction: column; gap: 14px; } }

.summary { display: grid; grid-template-columns: repeat(4, 1fr); margin: 20px 0 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.summary > div { padding: 18px 16px; }
.summary > div + div { border-left: 1px solid var(--border); }
.summary dt { font-size: .78rem; color: var(--muted); margin-bottom: 6px; }
.summary dd { margin: 0; font: 700 1.15rem/1.2 var(--mono); letter-spacing: -.02em; }
@media (max-width: 699px) {
  .summary { grid-template-columns: 1fr 1fr; }
  .summary > div:nth-child(3) { border-left: 0; }
  .summary > div:nth-child(n+3) { border-top: 1px solid var(--border); }
}
.caveat { margin: 18px 4px 0; font-size: .92rem; color: var(--muted); }

/* ---------- Exposure web ---------- */
.xweb-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); padding: clamp(8px, 2vw, 24px); box-shadow: var(--shadow); }
.xweb { width: 100%; height: auto; max-height: 620px; margin-inline: auto; overflow: visible; }
.xweb-ring { fill: none; stroke: var(--border); stroke-width: 1; stroke-dasharray: 3 5; }
.xweb-strand { fill: color-mix(in srgb, var(--accent) 4%, transparent); stroke: var(--border); stroke-width: 1.2; }
.xweb-spoke { stroke: var(--muted); stroke-opacity: .35; stroke-width: 1.4; }
.xweb-spoke.is-recent { stroke: var(--accent); stroke-opacity: .7; stroke-width: 1.8; }
.xweb-core-halo { fill: var(--accent-soft); }
.xweb-core { fill: var(--text); }
.xweb-core-icon { fill: none; stroke: var(--bg); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.xweb-node circle { fill: var(--surface-2); stroke: var(--muted); stroke-width: 1.6; transition: r .15s, fill .15s; }
.xweb-node.is-recent circle { fill: var(--accent); stroke: var(--accent); }
.xweb-node:hover circle, .xweb-node:focus-visible circle { r: 21; stroke: var(--accent); stroke-width: 2.5; }
.xweb-node:focus { outline: none; }
.xweb-num { font: 700 13px var(--mono); fill: var(--text); pointer-events: none; }
.xweb-node.is-recent .xweb-num { fill: var(--on-accent); }
.xweb-label { font: 600 14px var(--font); fill: var(--text); }
.xweb-date { font: 500 12px var(--mono); fill: var(--muted); }
.xweb-more { font: 600 13px var(--font); fill: var(--muted); }
/* Phones get the compact web (numbers only — they match the timeline) */
.xweb-compact { display: none; }
.is-numbered .xweb-num { font-size: 19px; }
.xweb-wrap.has-legend { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .xweb-wrap.has-legend { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.xweb-legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 12px; }
.xweb-legend a { display: grid; grid-template-columns: 30px 1fr; column-gap: 10px; align-items: center; padding: 7px 8px; border-radius: 8px; color: var(--text); text-decoration: none; }
.xweb-legend a:hover { background: var(--surface-2); color: var(--text); }
.xl-num { grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 700 .78rem/1 var(--mono); border: 1.5px solid var(--muted); }
.xl-name { font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xl-date { font: 500 .75rem/1.3 var(--mono); color: var(--muted); }
@media (max-width: 599px) { .xweb-legend { display: none; } }
.xweb-compact .xweb-node:hover circle, .xweb-compact .xweb-node:focus-visible circle { r: 27; }
@media (max-width: 599px) {
  .xweb-full { display: none; }
  .xweb-compact { display: block; }
}

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent), var(--border)); border-radius: 2px; }
.tl-item { position: relative; padding-left: 58px; margin-bottom: 20px; scroll-margin-top: calc(var(--header-h) + 24px); }
.tl-item:last-child { margin-bottom: 0; }
.tl-dot {
  position: absolute; left: 0; top: 18px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font: 700 .9rem/1 var(--mono);
  background: var(--surface); color: var(--text); border: 2px solid var(--accent);
  box-shadow: 0 0 0 5px var(--surface-2);
}
.tl-item:target .tl-card { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow); }
.tl-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(18px, 3vw, 26px); transition: border-color .2s, box-shadow .2s; }
.tl-head { margin-bottom: 14px; }
.tl-date { margin: 0 0 6px; font: 700 .8rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.tl-date .is-unknown { color: var(--muted); }
.tl-head h3 { font-size: 1.25rem; margin: 0 0 4px; overflow-wrap: anywhere; }
.tl-records { margin: 0; font-size: .88rem; color: var(--muted); }
.tl-label { margin: 0 0 8px; font: 600 .72rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tl-text { color: var(--muted); }
.chips { list-style: none; margin: 0 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: .82rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.tl-advice { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 12px; }
.tl-advice summary { cursor: pointer; font-weight: 600; color: var(--accent); list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 32px; }
.tl-advice summary::-webkit-details-marker { display: none; }
.tl-advice summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.tl-advice[open] summary::after { transform: rotate(-135deg); }
.tl-advice p { margin: 8px 0 0; color: var(--muted); }
@media (max-width: 479px) {
  .timeline::before { left: 15px; }
  .tl-item { padding-left: 46px; }
  .tl-dot { width: 32px; height: 32px; font-size: .8rem; top: 20px; }
}

/* ---------- Search again ---------- */
.search-again { display: flex; flex-direction: column; align-items: center; text-align: center; }
.search-again h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 20px; }

/* ---------- Home statistics (live) ---------- */
.stats-grid.stats-4 { grid-template-columns: repeat(4, 1fr); }
.stats-foot { margin: 0 auto; padding-top: 14px; padding-bottom: 16px; border-top: 1px solid var(--border); text-align: center; font-size: .88rem; color: var(--muted); }
.stats-foot strong { color: var(--text); font-family: var(--mono); }
@media (max-width: 759px) {
  .stats-grid.stats-4 { grid-template-columns: 1fr 1fr; }
  .stats-4 .stat { padding: 20px 10px; border-left: 0; border-top: 0; }
  .stats-4 .stat:nth-child(even) { border-left: 1px solid var(--border); }
  .stats-4 .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
}

.recent { padding-bottom: 0; }
.recent-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.recent-card { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); padding: 18px 20px; }
.recent-date { margin: 0 0 6px; font: 700 .75rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.recent-card h3 { font-size: 1.08rem; margin: 0 0 4px; overflow-wrap: anywhere; }
.recent-records { margin: 0; font-size: .86rem; color: var(--muted); }

/* ---------- Members-only breach details ---------- */
.gate { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-bottom: 28px; padding: 20px 22px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border)); border-radius: var(--radius); box-shadow: var(--shadow); }
.gate-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); }
.gate-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.gate-copy { flex: 1 1 260px; }
.gate-copy p { margin: 0; color: var(--muted); font-size: .92rem; }
.gate-copy .gate-title { color: var(--text); font-weight: 700; font-size: 1.02rem; margin-bottom: 4px; }
.gate-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 479px) { .gate-actions { width: 100%; } .gate-actions .btn { flex: 1; } }

.chips .chip-locked { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); color: var(--accent); }
.tl-teaser .tl-label { margin-bottom: 6px; }
.teaser-text { margin: 0; color: var(--muted); }
.teaser-lock { margin: 10px 0 0; font-size: .88rem; font-weight: 600; }

/* ==========================================================================
   Content pages: legal documents, contact, breach statistics
   ========================================================================== */
.doc-hero { padding: clamp(40px, 7vw, 80px) 0 clamp(24px, 4vw, 40px); border-bottom: 1px solid var(--border); }
.doc-hero h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.03em; }
.doc-meta { font: 600 .8rem/1 var(--mono); color: var(--muted); margin-bottom: 1.2rem; }
.lede-sm { font-size: 1.08rem; color: var(--muted); max-width: 68ch; margin: 0; }
.todo { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); font: 600 .85em var(--mono); padding: 1px 6px; border-radius: 4px; }

.doc-layout { display: grid; gap: 40px; padding-top: 40px; padding-bottom: 80px; }
@media (min-width: 960px) { .doc-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 56px; } }
.doc-toc { align-self: start; }
@media (min-width: 960px) { .doc-toc { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; } }
.doc-toc-h { font: 600 .72rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.doc-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; border-left: 1px solid var(--border); }
.doc-toc li { counter-increment: toc; }
.doc-toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: .88rem; }
.doc-toc a::before { content: counter(toc) ". "; font-family: var(--mono); font-size: .78rem; }
.doc-toc a:hover { color: var(--text); border-left-color: var(--accent); }
@media (max-width: 959px) {
  .doc-toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
  .doc-toc ol { columns: 2; column-gap: 20px; border: 0; }
  .doc-toc a { padding-left: 0; border: 0; }
}
@media (max-width: 479px) { .doc-toc ol { columns: 1; } }

.doc { max-width: 76ch; min-width: 0; }
.doc section { padding-bottom: 12px; scroll-margin-top: calc(var(--header-h) + 20px); }
.doc section + section { border-top: 1px solid var(--border); padding-top: 28px; }
.doc h2 { font-size: 1.35rem; margin-bottom: .7em; }
.doc h3 { font-size: 1.02rem; margin: 1.4em 0 .5em; }
.doc p, .doc li { color: color-mix(in srgb, var(--text) 86%, var(--muted)); }
.doc ul { padding-left: 1.2em; margin: 0 0 1em; }
.doc li { margin-bottom: .45em; }
.doc strong { color: var(--text); }
.doc code { font: .85em var(--mono); background: var(--surface-2); padding: 2px 6px; border-radius: 5px; }
.doc-dl { display: grid; grid-template-columns: minmax(130px, max-content) 1fr; gap: 8px 20px; margin: 0 0 1.2em; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.doc-dl dt { font-weight: 600; font-size: .9rem; }
.doc-dl dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 559px) { .doc-dl { grid-template-columns: 1fr; gap: 2px; } .doc-dl dd { margin-bottom: 10px; } }
.doc-table-wrap { overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.doc-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.doc-table th, .doc-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.doc-table thead th { background: var(--surface-2); font-size: .8rem; color: var(--muted); }
.doc-table tbody tr:last-child td { border-bottom: 0; }
.doc-table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; gap: 32px; padding-top: 40px; padding-bottom: 80px; }
@media (min-width: 900px) { .contact-layout { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; } }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); padding: clamp(20px, 4vw, 32px); box-shadow: var(--shadow); display: grid; gap: 18px; }
.form-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field { display: grid; gap: 7px; }
.field > span { font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; font: 500 1rem/1.4 var(--font); color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field [aria-invalid="true"] { border-color: var(--bad); }
.field-help { font-size: .82rem; color: var(--muted); }
.field-err { margin: 0; font-size: .85rem; font-weight: 600; color: var(--bad); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.check input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); }
.form-alert { padding: 12px 16px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--bad) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--bad) 40%, var(--border)); margin: 0 0 16px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-secure { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .82rem; color: var(--muted); }
.form-secure svg { width: 14px; height: 14px; fill: none; stroke: var(--good); stroke-width: 2; }
@media (max-width: 479px) { .form-actions .btn { width: 100%; } }
.contact-side { display: grid; gap: 16px; align-content: start; }
.side-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }
.side-card h2 { font-size: 1rem; margin-bottom: 8px; }
.side-card p { margin: 0 0 6px; font-size: .92rem; }
.side-links { list-style: none; margin: 0; padding: 0; }
.side-links li { padding: 6px 0; border-top: 1px solid var(--border); }
.side-links li:first-child { border-top: 0; }
.contact-main .verdict h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); margin-bottom: .35em; }
.contact-main .verdict p { margin-bottom: 12px; }

/* ---------- Breach statistics ---------- */
.charts-grid { display: grid; gap: 20px; }
@media (min-width: 960px) { .charts-grid { grid-template-columns: 1fr 1fr; } }
.chart-card { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(18px, 3vw, 26px); min-width: 0; }
.chart-card h2 { font-size: 1.15rem; margin-bottom: 4px; }
.chart-card figcaption p { margin: 0 0 18px; font-size: .88rem; }
.chart-scroll { overflow-x: auto; }
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart-cols { min-width: 320px; }
.chart-base { stroke: var(--border); stroke-width: 1; }
.chart-bar { fill: var(--accent); }
.chart-hit { fill: transparent; }
.chart-mark:hover .chart-bar { fill: var(--accent-hover); }
.chart-mark:hover .chart-hit { fill: var(--accent-soft); }
.chart-val { font: 600 12px var(--mono); fill: var(--text); }
.chart-lbl { font: 500 12px var(--font); fill: var(--muted); }
.chart-hbars .chart-lbl { font-size: 13px; fill: var(--text); }
.chart-table { margin-top: 14px; font-size: .88rem; }
.chart-table summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.chart-table table { margin-top: 10px; }

.list-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.list-q { flex: 1 1 240px; }
.list-sort { flex: 0 1 200px; }
.list-tools .btn { min-height: 48px; }
.gate-slim { padding: 12px 16px; margin-bottom: 16px; box-shadow: none; }
.gate-slim p { color: var(--text); }
.list-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.breach-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.breach-table th, .breach-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.breach-table thead th { background: var(--surface-2); font-size: .78rem; font-weight: 600; color: var(--muted); }
.breach-table tbody th { font-weight: 700; }
.breach-table tbody tr:last-child > * { border-bottom: 0; }
.breach-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.breach-table td { color: var(--muted); }
.breach-table .is-unknown { font-style: italic; }
.chips-sm li { font-size: .75rem; padding: 3px 8px; }
@media (max-width: 719px) {
  .breach-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .breach-table tr { display: block; padding: 14px 16px; border-bottom: 1px solid var(--border); }
  .breach-table tbody tr:last-child { border-bottom: 0; }
  .breach-table th, .breach-table td { display: flex; gap: 12px; justify-content: space-between; padding: 4px 0; border: 0; text-align: right; }
  .breach-table tbody th { font-size: 1.02rem; text-align: left; padding-bottom: 8px; }
  .breach-table td::before { content: attr(data-label); font-size: .8rem; font-weight: 600; color: var(--muted); text-align: left; flex: none; }
  .breach-table td .chips { justify-content: flex-end; }
}
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 18px; margin-top: 20px; font-size: .9rem; }

/* Search form terms notice */
.search-terms { margin: 4px 6px 2px; font-size: .78rem; color: var(--muted); }

/* data-type bars (HTML, scales cleanly on phones) */
.hbar-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.hbar-list li { display: grid; grid-template-columns: minmax(90px, 38%) 1fr 2.5em; align-items: center; gap: 12px; padding: 5px 6px; border-radius: 6px; }
.hbar-list li:hover { background: var(--accent-soft); }
.hb-label { font-size: .88rem; font-weight: 500; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-val { font: 600 .82rem var(--mono); font-variant-numeric: tabular-nums; }
.hb-bar { -webkit-appearance: none; appearance: none; width: 100%; height: 16px; border: 0; background: transparent; }
.hb-bar::-webkit-progress-bar { background: transparent; }
.hb-bar::-webkit-progress-value { background: var(--accent); border-radius: 0 4px 4px 0; }
.hb-bar::-moz-progress-bar { background: var(--accent); border-radius: 0 4px 4px 0; }
@media (max-width: 599px) { .chart-cols { min-width: 560px; } .chart-scroll { margin: 0 -6px; padding: 0 6px 6px; } }

/* ---------- Breach monitoring (account) ---------- */
.form-ok { padding: 12px 16px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--good) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--good) 40%, var(--border)); margin: 0 0 20px; }
.mon .form-alert { margin-bottom: 20px; }
.mon-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.mon-head h2 { font-size: 1.3rem; margin: 0; }
.mon-empty { padding: 22px; border: 1px dashed var(--border); border-radius: var(--radius); margin-bottom: 24px; }
.mon-empty p { margin: 0 0 4px; }
.mon-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.mon-item { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.mon-main { min-width: 0; flex: 1 1 320px; }
.mon-email { font: 700 1.02rem var(--mono); margin: 0 0 8px; overflow-wrap: anywhere; }
.mon-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0; font-size: .86rem; color: var(--muted); }
.mon-badge { font: 700 .7rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; }
.mon-badge.is-on { color: var(--good); background: color-mix(in srgb, var(--good) 14%, transparent); }
.mon-badge.is-wait { color: var(--accent); background: var(--accent-soft); }
.mon-actions { display: flex; gap: 8px; }
.mon-actions form { margin: 0; }
.mon-add { margin-bottom: 32px; }
.mon-add-row { display: flex; gap: 10px; }
.mon-add-row input { flex: 1; min-width: 0; }
@media (max-width: 559px) { .mon-add-row { flex-direction: column; } .mon-add-row .btn { width: 100%; min-height: 48px; } }
.mon-notes h2 { font-size: 1.1rem; }
.mon-notes ul { padding-left: 1.2em; color: var(--muted); }
.mon-notes li { margin-bottom: .5em; }
