/* LeakMonitor — Variant B "Editorial" design system.
   Extracted from the Claude Design handoff (leak-b.jsx makeTokens). */

:root {
  --sans: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --bg: #fbfbf9;
  --bg-card: #ffffff;
  --ink: #16181d;
  --ink2: #3a3e46;
  --muted: #7a7e87;
  --faint: #a6aab2;
  --line: #e7e6e0;
  --line-soft: #efeee9;
  --chip: #f5f4f0;
  --on-ink: #ffffff;
  --faq-bg: #f4f3ef;

  --indigo: oklch(0.52 0.17 264);
  --indigo-soft: oklch(0.96 0.02 264);
  --red: oklch(0.55 0.20 25);
  --red-soft: oklch(0.96 0.03 25);
  --green: oklch(0.58 0.13 152);
  --green-soft: oklch(0.96 0.03 152);
  --amber: oklch(0.64 0.13 70);
  --amber-soft: oklch(0.96 0.04 80);

  /* shareable result banner (fixed light palette, like a printed card) */
  --navy: #112440;
  --slate: #5b6b7c;
  --banner-line: #ece9e3;

  --gutter: clamp(28px, 8vw, 140px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1014;
    --bg-card: #17191f;
    --ink: #f2f1ed;
    --ink2: #c4c6cc;
    --muted: #8b8f98;
    --faint: #565a63;
    --line: #282b32;
    --line-soft: #1f2229;
    --chip: #22252c;
    --on-ink: #0e1014;
    --faq-bg: #121419;

    --indigo: oklch(0.58 0.17 264);
    --indigo-soft: oklch(0.31 0.07 264);
    --red: oklch(0.64 0.18 25);
    --red-soft: oklch(0.33 0.09 25);
    --green: oklch(0.70 0.14 152);
    --green-soft: oklch(0.33 0.07 152);
    --amber: oklch(0.76 0.13 75);
    --amber-soft: oklch(0.35 0.07 75);
  }
}

* { box-sizing: border-box; }

/* the hidden attribute must beat component display rules */
[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background .25s;
}

input::placeholder { color: var(--faint); }
button { font-family: inherit; }
a { color: inherit; }

*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
*::-webkit-scrollbar-track { background: transparent; }

@keyframes lmPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(.85); }
}
.pulse-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--green);
  flex-shrink: 0;
  animation: lmPulse 1.8s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .pulse-dot { animation: none; }
}

/* ---- layout container: content capped at 1024px, centered ----------------- */

.topbar,
.footer,
.page,
.auth-main,
.my-main {
  max-width: calc(1024px + 2 * var(--gutter));
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* ---- topbar -------------------------------------------------------------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 26px var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.brand-mark {
  display: inline-block;
  width: 18px; height: 18px;
  background: var(--indigo);
  transform: rotate(45deg);
  border-radius: 3px;
}
.brand-mark.small { width: 14px; height: 14px; }

.topnav { display: flex; align-items: center; gap: 12px; }
.nav-links { display: flex; align-items: center; gap: 12px; }

/* hamburger (mobile only) */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--ink);
  border-radius: 11px;
  cursor: pointer;
  padding: 0;
}

@media (max-width: 560px) {
  .topnav { position: relative; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    inset-inline-end: 0;
    z-index: 45;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    min-width: 190px;
    padding: 10px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 20px 50px -20px rgba(20, 22, 28, .28);
  }
  .nav-links:not(.open) { display: none; }
  .nav-links .btn { width: 100%; justify-content: flex-start; }
}

/* ---- language switcher (design LangPicker) ------------------------------- */
.lang-picker { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--bg-card);
  border-radius: 999px;
  padding: 7px 12px 7px 13px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.lang-btn .lang-flag { font-size: 15px; }
.lang-btn svg { stroke: var(--muted); }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 50;
  width: 264px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 50px -20px rgba(20, 22, 28, .28);
  overflow: hidden;
}
.lang-search { padding: 10px; border-bottom: 1px solid var(--line-soft); }
.lang-search input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  outline: none;
  background: var(--bg);
  border-radius: 9px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  padding: 9px 12px;
}
.lang-list { max-height: 280px; overflow-y: auto; padding: 6px; }
.lang-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  border: none;
  background: transparent;
  border-radius: 9px;
  padding: 9px 11px;
  font-family: var(--sans);
  font-size: 14.5px;
  text-align: start;
  text-decoration: none;
  color: var(--ink);
}
.lang-item.active { background: var(--indigo-soft); color: var(--indigo); font-weight: 600; }
.lang-item .lang-flag { font-size: 17px; width: 20px; text-align: center; }
.lang-item .lang-name { flex: 1; }
.lang-item .lang-tag { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.lang-item.active .lang-tag { color: var(--indigo); }
.lang-empty { padding: 16px 12px; font-family: var(--mono); font-size: 12.5px; color: var(--faint); }

/* ---- buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  border: none;
  border-radius: 999px;
  padding: 9px 18px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ghost {
  background: var(--bg-card);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-indigo { background: var(--indigo); color: #fff; }
.btn-lg { font-size: 16px; padding: 14px 26px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.back-link {
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  padding: 0;
  white-space: nowrap;
  text-decoration: none;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- hero / search ------------------------------------------------------- */

.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 98px var(--gutter) 96px;
  width: 100%;
}

.hero { width: 100%; }

.hero-row {
  display: flex;
  align-items: flex-start;
  gap: clamp(28px, 5vw, 56px);
  flex-wrap: wrap;
  width: 100%;
}

.hero-main {
  flex: 1 1 460px;
  min-width: 0;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
}

/* corporate CTA card, right of the search */
.corp-card {
  flex: 1 1 230px;
  max-width: 300px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
}
.corp-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--indigo);
  background: var(--indigo-soft);
  padding: 4px 10px;
  border-radius: 999px;
}
.corp-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}
.corp-card .corp-note {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
}

.version-note {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  letter-spacing: 0.01em;
}

.hero-title {
  margin: 0;
  font-weight: 600;
  font-size: clamp(48px, 9vw, 92px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: var(--ink);
}
.hero-title .accent { color: var(--indigo); }

.search-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 2.5px solid var(--ink);
  padding-bottom: 12px;
}
.search-form.has-error { border-bottom-color: var(--red); }

.search-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--sans);
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 500;
  color: var(--ink);
  padding: 4px 0;
}

.search-submit {
  border: none;
  cursor: pointer;
  background: var(--ink);
  color: var(--on-ink);
  width: 52px; height: 52px;
  border-radius: 999px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-submit svg { stroke: var(--on-ink); }

.form-error {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--red);
  font-size: 14px;
  font-weight: 500;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.meta-sub, .meta-limit {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

/* ---- scanning ------------------------------------------------------------ */

.scanning {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  width: 100%;
  margin: 8vh auto 0;
}

.scan-label {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-align: center;
}

.scan-bar {
  width: min(320px, 80vw);
  height: 4px;
  background: var(--line-soft);
  border-radius: 999px;
  overflow: hidden;
}
.scan-fill {
  height: 100%;
  width: 5%;
  background: var(--indigo);
  border-radius: 999px;
  transition: width .5s cubic-bezier(.4, 0, .2, 1);
}

.scan-steps {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.scan-steps span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color .2s;
}
.scan-steps span i {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--faint);
  transition: background .2s;
}
.scan-steps span.active { color: var(--indigo); }
.scan-steps span.active i { background: var(--indigo); }

/* ---- result card (shareable banner style) -------------------------------- */

.result {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
  width: 100%;
  max-width: 820px;
}

.result-card {
  width: 700px;
  max-width: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--banner-line);
  box-shadow: 0 30px 70px -34px rgba(20, 30, 50, .32);
  color: var(--navy);
}

.result-main { display: flex; align-items: stretch; flex-wrap: wrap; }

.result-left { flex: 1 1 57%; min-width: 280px; padding: 30px 26px 26px; }

.result-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.result-eyebrow .icon-chip {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.result-eyebrow span.label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
}

.result-headline {
  margin: 0 0 13px;
  font-weight: 700;
  font-size: clamp(27px, 3.8vw, 38px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--navy);
}
.result-headline .tone { display: block; }

.result-sub {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--slate);
  max-width: 320px;
}

.result-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: 14px;
  padding: 15px 16px;
  flex-wrap: wrap;
}
.result-cta .cta-text {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 1 1 auto;
  min-width: 0;
}
.result-cta .cta-text .lines { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.result-cta .cta-text .t { font-size: 15.5px; font-weight: 700; }
.result-cta .cta-text .s { font-size: 12.5px; color: var(--slate); }
.result-cta .divider { width: 1px; align-self: stretch; }
.result-cta .stats { display: flex; flex-direction: column; gap: 11px; flex-shrink: 0; }

.mini-stat { display: flex; align-items: center; gap: 10px; }
.mini-stat .icon-chip {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mini-stat .lines { display: flex; flex-direction: column; line-height: 1.15; }
.mini-stat .label { font-size: 11.5px; color: var(--slate); }
.mini-stat .value { font-size: 14.5px; font-weight: 700; color: var(--navy); white-space: nowrap; }

.result-art {
  flex: 1 1 43%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 220px;
  overflow: hidden;
}

.binary-bg {
  position: absolute;
  right: 16px; top: 18px;
  text-align: right;
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 6px;
  opacity: 0.13;
  font-weight: 500;
  pointer-events: none;
}

.result-art .art { position: relative; z-index: 1; }

.result-foot {
  border-top: 1px solid var(--banner-line);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.result-foot .left { display: flex; align-items: center; gap: 11px; }
.result-foot .shield-chip {
  width: 30px; height: 30px;
  border-radius: 999px;
  background: #f1f0ec;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.result-foot .lines { display: flex; flex-direction: column; line-height: 1.25; }
.result-foot .t { font-size: 13px; font-weight: 600; color: var(--navy); }
.result-foot .s { font-size: 12.5px; color: var(--slate); }
.result-foot .right { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.result-foot .site { font-size: 15px; font-weight: 700; }

/* tone variants */
.result-card.is-pwned .tone-2 { color: #f5333d; }
.result-card.is-pwned .result-cta { background: #fff1f2; border: 1px solid #ffd9de; }
.result-card.is-pwned .result-cta .divider { background: #ffd9de; }
.result-card.is-pwned .icon-chip { background: #ffe3e6; }
.result-card.is-pwned .result-art { background: linear-gradient(135deg, #ffffff 0%, #ffe5e9 100%); }
.result-card.is-pwned .cta-text .t, .result-card.is-pwned .site, .result-card.is-pwned .binary-bg { color: #f5333d; }

.result-card.is-clean .tone-2 { color: #1faf52; }
.result-card.is-clean .result-cta { background: #eefaf1; border: 1px solid #d2eedd; }
.result-card.is-clean .result-cta .divider { background: #d2eedd; }
.result-card.is-clean .icon-chip { background: #e1f6e8; }
.result-card.is-clean .result-art { background: linear-gradient(135deg, #ffffff 0%, #e6f7ec 100%); }
.result-card.is-clean .cta-text .t, .result-card.is-clean .site, .result-card.is-clean .binary-bg { color: #1faf52; }

/* ---- social share rail (beside the result card) --------------------------- */

.lm-result-row {
  container-type: inline-size;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  flex-wrap: wrap;
  width: 100%;
}

.lm-social-rail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
/* when the row wraps, lay the icons out in a single horizontal line */
@container (max-width: 770px) {
  .lm-social-rail { flex-direction: row !important; flex-wrap: wrap; }
}

.share-btn {
  width: 44px; height: 44px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(20, 22, 28, .12);
  padding: 0;
}
.share-btn svg { width: 20px; height: 20px; }
.share-btn.copy {
  background: var(--bg-card);
  border: 1px solid var(--line);
}
.share-btn.copy svg { width: 18px; height: 18px; stroke: var(--muted); }
.share-btn.copy.copied { background: var(--green-soft); border-color: transparent; }
.share-btn.copy.copied svg { stroke: var(--green); }

/* ---- locked panel (unregistered users: sources hidden) -------------------- */

.locked-panel {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 700px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  border-radius: 16px;
  padding: 18px 20px;
}
.locked-ic {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--indigo-soft);
  color: var(--indigo);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.locked-text { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.locked-title { font-weight: 600; font-size: 16px; color: var(--ink); letter-spacing: -0.01em; }
.locked-body { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.locked-cta { flex-shrink: 0; }

/* ---- breach hit list under the card --------------------------------------- */

.breach-list { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 700px; }

.breach-item {
  border: 1px solid var(--line);
  background: var(--bg-card);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.breach-item .row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.breach-item .name { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; color: var(--ink); }
.breach-item .meta {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.breach-item .meta .records { font-size: 11px; color: var(--faint); }
.breach-item .desc { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }

.breach-item .exposed { display: flex; flex-direction: column; gap: 7px; margin-top: 2px; }
.exposed-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.data-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.data-chip {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink2);
  background: var(--chip);
  padding: 3px 10px;
  border-radius: 7px;
  text-transform: capitalize;
}

/* ---- limit / error notice -------------------------------------------------- */

.notice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  max-width: 540px;
}
.notice .notice-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: var(--indigo-soft);
  color: var(--indigo);
  display: flex;
  align-items: center;
  justify-content: center;
}
.notice h2 {
  margin: 0;
  font-weight: 600;
  font-size: clamp(34px, 5vw, 46px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.notice p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink2); max-width: 460px; }
.notice .actions { display: flex; align-items: center; gap: 22px; margin-top: 4px; flex-wrap: wrap; }

/* ---- FAQ + last updates ----------------------------------------------------- */

.faq-section {
  background: var(--faq-bg);
  border-top: 1px solid var(--line);
  padding: clamp(56px, 8vw, 96px) var(--gutter);
}

.faq-grid {
  max-width: 1024px;
  margin: 0 auto;
  display: flex;
  gap: clamp(36px, 5vw, 64px);
  align-items: flex-start;
  flex-wrap: wrap;
}

.faq-col { flex: 3 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.updates-col { flex: 2 1 280px; min-width: 0; }

.faq-title {
  margin: 0 0 18px;
  font-weight: 600;
  font-size: clamp(34px, 5vw, 46px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.faq-list { border-bottom: 1px solid var(--line); }

.faq-item { border-top: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 22px 0;
  text-align: left;
}
.faq-q .q {
  font-weight: 600;
  font-size: 21px;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.faq-q .chev {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s;
}
.faq-q .chev svg { stroke: var(--muted); transition: transform .2s; }
.faq-item.open .chev { border-color: var(--indigo); }
.faq-item.open .chev svg { stroke: var(--indigo); transform: rotate(180deg); }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .28s cubic-bezier(.4, 0, .2, 1);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p {
  margin: 0;
  padding-bottom: 24px;
  max-width: 620px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

/* OPRF mini-visualization inside FAQ (design OprfViz) */
.oprf-viz {
  margin: 0 0 14px;
  width: 100%;
  max-width: 560px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  border-radius: 16px;
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.viz-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.viz-badge {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--indigo);
  background: var(--indigo-soft);
  padding: 3px 9px;
  border-radius: 999px;
}
.viz-title { font-size: 14px; font-weight: 600; color: var(--ink); flex: 1; }
.viz-wiki {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.viz-stage {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 8px;
}
.viz-node { display: flex; flex-direction: column; align-items: center; gap: 7px; width: 92px; flex-shrink: 0; }
.viz-node .box {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--chip);
  border: 1px solid var(--line);
  color: var(--muted);
  transition: all .3s;
}
.viz-node.active .box { background: var(--indigo-soft); border-color: var(--indigo); color: var(--indigo); }
.viz-node span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.viz-node.active span { color: var(--ink); }

.viz-track { flex: 1; position: relative; height: 52px; margin: 0 6px; min-width: 110px; }
.viz-track .rail { position: absolute; top: 25px; left: 0; right: 0; height: 2px; background: var(--line); }
.viz-track .fill {
  position: absolute;
  top: 25px; left: 0;
  height: 2px;
  background: var(--indigo);
  width: 50%;
  transition: width .6s ease, background .3s;
}
.oprf-viz.matched .fill { background: var(--green); }

.viz-chip-pos { position: absolute; top: 4px; left: 2px; transition: left .6s cubic-bezier(.5, 0, .3, 1); }
.oprf-viz.at-server .viz-chip-pos { left: calc(100% - 86px); }
.viz-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  background: var(--indigo);
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(20, 22, 28, .18);
  transition: background .3s;
}
.oprf-viz.at-server .viz-chip { background: var(--muted); }
.oprf-viz.matched .viz-chip { background: var(--green); }

.viz-step { min-height: 38px; display: flex; align-items: flex-start; gap: 8px; }
.viz-step .n { font-family: var(--mono); font-size: 11px; color: var(--faint); margin-top: 1px; }
.viz-step .txt { font-size: 13.5px; line-height: 1.45; color: var(--ink2); }

.viz-note {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* stored-record code sample inside FAQ */
.stored-record {
  margin: 0 0 24px;
  width: 100%;
  max-width: 560px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
}
.stored-record .head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.stored-record .head .tag {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  color: var(--green);
  background: var(--green-soft);
  padding: 3px 9px;
  border-radius: 999px;
}
.stored-record .body {
  padding: 12px 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--faint);
}
.stored-record .body .k { color: var(--indigo); }
.stored-record .body .v { color: var(--ink2); }
.stored-record .body .note { color: var(--green); font-size: 11px; }
.stored-record .body .indent { padding-left: 16px; }

/* last updates card */
.updates-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-card);
  padding: 20px 22px;
}
.updates-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.updates-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.updates-sub { font-family: var(--mono); font-size: 11.5px; color: var(--muted); letter-spacing: 0.02em; }

.updates-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line-soft);
}
.updates-row:first-child { border-top: none; }
.updates-row .date { font-family: var(--mono); font-size: 12px; color: var(--muted); width: 76px; flex-shrink: 0; }
.updates-row .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--indigo); flex-shrink: 0; }
.updates-row .name {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.updates-row .count { font-family: var(--mono); font-size: 11px; color: var(--faint); white-space: nowrap; }
.updates-empty { font-family: var(--mono); font-size: 12.5px; color: var(--faint); padding: 10px 0; }

/* ---- footer ----------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 26px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--bg);
}
.footer-brand { display: flex; align-items: center; gap: 11px; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.footer-copy { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-left: 4px; font-weight: 400; }
.footer-links { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: var(--muted); text-decoration: none; }

/* ---- auth pages (sign-in / sign-up) ------------------------------------------ */

.auth-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 98px var(--gutter) 96px;
}

.auth-form { max-width: 640px; }

.auth-title {
  margin: 0;
  font-weight: 600;
  font-size: clamp(38px, 6vw, 54px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.auth-lead { margin: 0; font-size: 16.5px; line-height: 1.5; color: var(--ink2); max-width: 540px; }

.field-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-form { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.auth-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; width: 100%; }
.auth-input {
  flex: 1 1 280px;
  min-width: 0;
  border: 1.5px solid var(--line);
  outline: none;
  background: var(--bg-card);
  border-radius: 14px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  padding: 15px 18px;
}
.auth-input:focus { border-color: var(--indigo); }
.auth-submit { flex-shrink: 0; border-radius: 14px; padding: 0 28px; font-size: 16px; min-height: 52px; }

.auth-msg { margin: 0; font-size: 14.5px; font-weight: 500; min-height: 20px; }
.auth-msg.err { color: var(--red); }
.auth-msg.ok { color: var(--green); }

.auth-note {
  width: 100%;
  max-width: 580px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-note .t { font-weight: 600; font-size: 17px; color: var(--ink); }
.auth-note p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }

/* ---- /my dashboard ------------------------------------------------------------ */

.my-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 98px clamp(28px, 5vw, 60px) 96px;
}

.my-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.my-head h2 {
  margin: 0;
  font-weight: 600;
  font-size: clamp(32px, 5vw, 46px);
  letter-spacing: -0.03em;
  color: var(--ink);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--green);
  background: var(--green-soft);
  padding: 6px 12px;
  border-radius: 999px;
}

.card {
  border: 1px solid var(--line);
  background: var(--bg-card);
  border-radius: 16px;
}

.monitor-card {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.monitor-card .icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--indigo-soft);
  color: var(--indigo);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.monitor-card .lines { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.monitor-card .label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.monitor-card .value {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.monitor-card .verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--green);
  flex-shrink: 0;
}

.section-title { margin: 0; font-weight: 600; font-size: 22px; letter-spacing: -0.02em; color: var(--ink); }
.section-sub { font-family: var(--mono); font-size: 12px; color: var(--muted); }

.check-row {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.check-row .when { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.check-pill {
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.check-pill.found { color: var(--red); background: var(--red-soft); }
.check-pill.clean { color: var(--green); background: var(--green-soft); }

.empty-note { font-family: var(--mono); font-size: 12.5px; color: var(--faint); padding: 14px 18px; }

/* ---- admin import page ---------------------------------------------------------- */

.admin-main {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 48px clamp(28px, 5vw, 60px) 96px;
}
.admin-main h1 {
  margin: 12px 0 8px;
  font-weight: 600;
  font-size: clamp(32px, 5vw, 44px);
  letter-spacing: -0.03em;
  color: var(--ink);
}
.admin-lead { margin: 0 0 28px; font-size: 15.5px; line-height: 1.6; color: var(--ink2); }

.admin-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-hint { font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.admin-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }

.admin-progress { padding: 18px 20px; margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.prog-row { display: flex; align-items: baseline; justify-content: space-between; }
.prog-label { font-weight: 600; font-size: 15px; color: var(--ink); }
.prog-pct { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.prog-bar { height: 8px; background: var(--line-soft); border-radius: 999px; overflow: hidden; }
.prog-fill { height: 100%; width: 0%; background: var(--indigo); border-radius: 999px; transition: width .3s ease; }
.prog-stats { display: flex; gap: 18px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.prog-stats strong { color: var(--ink); font-weight: 600; }

.admin-sources { margin-top: 36px; border-top: 1px solid var(--line); padding-top: 22px; }
.sources-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sources-head h2 { margin: 0; font-weight: 600; font-size: 20px; letter-spacing: -0.02em; color: var(--ink); }
.source-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--line-soft);
}
.source-row:first-child { border-top: none; }
.source-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.source-name { font-weight: 600; font-size: 15px; color: var(--ink); }
.source-meta { font-family: var(--mono); font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.source-del { flex-shrink: 0; color: var(--red); border-color: var(--line); }

.admin-help { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 18px; }
.admin-help summary { cursor: pointer; font-weight: 600; font-size: 15px; color: var(--ink); }
.admin-help h3 { margin: 18px 0 6px; font-size: 15px; color: var(--ink); }
.admin-help p, .admin-help li { font-size: 14px; line-height: 1.6; color: var(--ink2); }
.admin-help ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.admin-help code { font-family: var(--mono); font-size: 12.5px; background: var(--chip); padding: 1px 6px; border-radius: 6px; }
.code-sample {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
  background: var(--chip);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  overflow-x: auto;
  color: var(--ink2);
}

/* ---- live scan counter ---------------------------------------------------------- */

.scan-counter {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}
.scan-counter .num {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.scan-counter .live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.scan-counter .live::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--green);
  animation: lmPulse 1.8s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .scan-counter .live::before { animation: none; }
}

/* ---- pricing page --------------------------------------------------------------- */

.pricing-main {
  flex: 1;
  width: 100%;
  max-width: calc(1024px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 48px var(--gutter) 96px;
}
.pricing-head { max-width: 640px; margin-bottom: 40px; }
.pricing-head h1 {
  margin: 10px 0 12px;
  font-weight: 600;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.pricing-sub { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink2); }

.plans { display: flex; gap: 20px; flex-wrap: wrap; }
.plan-card {
  flex: 1 1 320px;
  border: 1.5px solid var(--line);
  background: var(--bg-card);
  border-radius: 20px;
  padding: 28px 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.plan-card.business { border-color: var(--ink); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-name { font-weight: 600; font-size: 21px; letter-spacing: -0.01em; color: var(--ink); }
.plan-badge {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--indigo);
  background: var(--indigo-soft);
  padding: 3px 9px;
  border-radius: 999px;
}
.plan-badge.alt { color: var(--ink); background: var(--chip); }
.plan-price { display: flex; align-items: baseline; gap: 6px; }
.plan-price .from { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.plan-price .amount { font-weight: 600; font-size: 48px; letter-spacing: -0.03em; color: var(--ink); }
.plan-price .per { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.plan-unit { font-size: 14.5px; font-weight: 500; color: var(--ink2); }
.plan-feats {
  list-style: none;
  margin: 4px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.plan-feats li {
  position: relative;
  padding-inline-start: 26px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ink2);
}
.plan-feats li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 3px;
  width: 16px; height: 16px;
  background: var(--green-soft);
  border-radius: 999px;
}
.plan-feats li::after {
  content: "";
  position: absolute;
  inset-inline-start: 5px;
  top: 7px;
  width: 6px; height: 3px;
  border-inline-start: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}
.plan-cta { margin-top: auto; align-self: flex-start; }

.bene, .ba { margin-top: clamp(48px, 7vw, 80px); }
.bene-title {
  margin: 10px 0 24px;
  font-weight: 600;
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.03em;
  color: var(--ink);
}
.bene-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.bene-item {
  border: 1px solid var(--line);
  background: var(--bg-card);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.bene-ic {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--indigo-soft);
  color: var(--indigo);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bene-name { font-weight: 600; font-size: 16px; color: var(--ink); }
.bene-desc { font-size: 13.5px; line-height: 1.5; color: var(--muted); }

.ba-grid {
  display: flex;
  align-items: stretch;
  gap: 16px;
  flex-wrap: wrap;
}
.ba-col {
  flex: 1 1 280px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ba-col.before { background: var(--bg-card); }
.ba-col.after { background: var(--indigo-soft); border-color: transparent; }
.ba-tag {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.ba-col.after .ba-tag { color: var(--indigo); }
.ba-stat { display: flex; flex-direction: column; gap: 3px; }
.ba-num { font-weight: 600; font-size: 28px; letter-spacing: -0.02em; color: var(--ink); line-height: 1.1; }
.ba-col.after .ba-num { color: var(--indigo); }
.ba-cap { font-size: 13px; line-height: 1.45; color: var(--muted); }
.ba-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  flex-shrink: 0;
}
.ba-foot { margin: 16px 0 0; font-family: var(--mono); font-size: 11.5px; color: var(--faint); }

.pricing-cta {
  margin-top: clamp(48px, 7vw, 80px);
  border-top: 1px solid var(--line);
  padding-top: 36px;
  text-align: center;
}
.pricing-cta h2 {
  margin: 0 0 18px;
  font-weight: 600;
  font-size: clamp(24px, 4vw, 34px);
  letter-spacing: -0.03em;
  color: var(--ink);
}
.pricing-cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- stats strip ---------------------------------------------------------------- */

.stats-strip {
  width: 100%;
  max-width: calc(1024px + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(40px, 6vw, 64px) var(--gutter);
  border-top: 1px solid var(--line);
}
.stats-grid { display: flex; gap: clamp(24px, 4vw, 48px); flex-wrap: wrap; }
.stat {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-left: 2.5px solid var(--indigo);
  padding-left: 18px;
}
.stat-num {
  font-weight: 600;
  font-size: clamp(38px, 5vw, 52px);
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.stat-cap {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* ---- SEO / about section -------------------------------------------------------- */

.about-section {
  width: 100%;
  max-width: calc(1024px + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(8px, 2vw, 16px);
}
.about-inner { max-width: 760px; }
.about-title {
  margin: 10px 0 18px;
  font-weight: 600;
  font-size: clamp(28px, 4.5vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.about-section p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink2);
  text-wrap: pretty;
}
.about-section a { color: var(--indigo); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--line); }

/* ---- legal pages (privacy / disclaimer) ------------------------------------------ */

.legal-main {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 56px clamp(28px, 5vw, 60px) 96px;
}
.legal-main h1 {
  margin: 10px 0 6px;
  font-weight: 600;
  font-size: clamp(36px, 6vw, 54px);
  letter-spacing: -0.035em;
  color: var(--ink);
}
.legal-updated {
  margin: 0 0 28px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
}
.legal-main h2 {
  margin: 30px 0 10px;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.legal-main h3 {
  margin: 18px 0 8px;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
}
.legal-main p, .legal-main li { font-size: 15.5px; line-height: 1.65; color: var(--ink2); }
.legal-main p { margin: 0 0 12px; }
.legal-main ul { margin: 0 0 12px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal-main a { color: var(--indigo); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--line); }
.legal-main code {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--chip);
  padding: 1px 6px;
  border-radius: 6px;
}

/* ---- GDPR consent banner (dismissible, bottom) -------------------------------- */

.consent-wrap {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding: 0 16px 16px;
  pointer-events: none;
}

@keyframes lmConsent {
  from { transform: translateY(130%); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.consent {
  pointer-events: auto;
  max-width: 720px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px 13px 18px;
  box-shadow: 0 18px 44px -16px rgba(20, 22, 28, .28);
  animation: lmConsent .4s cubic-bezier(.2, .7, .3, 1);
}
@media (prefers-color-scheme: dark) {
  .consent { box-shadow: 0 18px 44px -16px rgba(0, 0, 0, .75); }
}
@media (prefers-reduced-motion: reduce) {
  .consent { animation: none; }
}

.consent p {
  margin: 0;
  flex: 1;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--muted);
}
.consent p a {
  color: var(--ink2);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--line);
}

.consent-accept {
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  background: var(--ink);
  color: var(--on-ink);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13.5px;
  padding: 9px 18px;
  border-radius: 999px;
  letter-spacing: -0.01em;
}

.consent-close {
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  background: transparent;
  display: inline-flex;
  padding: 4px;
  color: var(--muted);
}

/* ---- responsive --------------------------------------------------------------- */

@media (max-width: 720px) {
  .page { padding-top: 56px; }
  .result-art { min-height: 170px; }
  .result-cta .divider { display: none; }
  .meta-row { flex-direction: column; align-items: flex-start; }
  /* corporate CTA card stretches full width once the hero row wraps */
  .corp-card { max-width: none; flex-basis: 100%; }
  .locked-panel .locked-cta { width: 100%; }
}
