/* ============================================================
   Pretty Sus · "Field Manuals" design
   Beige paper, ink navy, ultramarine accent, copper shelf.
   ============================================================ */
:root {
  --bg: #e9e2d3;
  --card: rgba(246, 241, 230, .62);
  --cream: #f6f1e6;
  --ink: #1b1f3a;
  --ink-2: rgba(27, 31, 58, .74);
  --ink-3: rgba(27, 31, 58, .55);
  --line: rgba(27, 31, 58, .12);
  --accent: #2c3f9e;
  --copper: #b9653a;
  --red: #8e2a22;
  --good: #3f7a4f;
  --warn: #c98a1e;
  --bad: #b8321f;
  --info: #2c3f9e;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 24px 40px -28px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--accent); }
button, input { font: inherit; color: inherit; }
::selection { background: rgba(44, 63, 158, .2); }
.paper { position: fixed; inset: 0; opacity: .22; mix-blend-mode: multiply; pointer-events: none; z-index: 0;
  background-image: radial-gradient(rgba(40, 30, 20, .45) .6px, transparent .7px); background-size: 4px 4px; }
main, header, footer { position: relative; z-index: 1; }
.muted { color: var(--ink-3); }
.small { font-size: 12.5px; }
.mono { font-family: var(--mono); }
.k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; color: var(--ink-3); text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.k-hint { text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: 11px; opacity: .8; margin-left: auto; }
.note { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); margin: 10px 0 0; }
.big { font-family: var(--serif); font-size: 52px; line-height: 1; letter-spacing: -.02em; margin-top: 10px; font-variant-numeric: tabular-nums; }
.big small { font-family: var(--sans); font-size: 13px; color: var(--ink-3); letter-spacing: 0; }
.mid { font-family: var(--serif); font-size: 26px; line-height: 1.15; margin: 8px 0 6px; overflow-wrap: anywhere; }

/* ---------- header ---------- */
.top { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px clamp(18px, 4vw, 56px); }
.logo { font-family: var(--serif); font-size: 28px; letter-spacing: -.02em; line-height: 1; color: var(--ink); text-decoration: none; white-space: nowrap; }
.logo small { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; color: var(--ink-3); margin-top: 6px; }
.nav { display: flex; gap: clamp(12px, 1.6vw, 24px); font-size: 14px; font-weight: 500; }
.nav a { color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--accent); }
.maker { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.maker-text { font-family: var(--serif); font-style: italic; font-size: 15px; white-space: nowrap; }

/* ---------- café racer badge (scales with --s) ---------- */
.badge { --s: 1; width: calc(360px * var(--s)); height: calc(360px * var(--s)); border-radius: 50%; background: var(--cream); flex: none;
  border: calc(4px * var(--s)) solid var(--ink); box-shadow: inset 0 0 0 calc(9px * var(--s)) var(--cream), inset 0 0 0 calc(11px * var(--s)) var(--ink);
  display: grid; place-items: center; text-align: center; }
.badge > span { display: block; }
.badge .wing { display: flex; align-items: center; gap: calc(10px * var(--s)); justify-content: center; font-family: "Bebas Neue", sans-serif; font-size: calc(19px * var(--s)); letter-spacing: .3em; padding-left: .3em; color: var(--ink); }
.badge .wing i { width: calc(38px * var(--s)); height: calc(2px * var(--s)); background: var(--ink); display: block; }
.badge .script { display: block; font-family: "Yellowtail", cursive; font-size: calc(44px * var(--s)); line-height: .92; color: var(--red); transform: rotate(-7deg); margin: calc(10px * var(--s)) 0 calc(14px * var(--s));
  text-shadow: calc(2px * var(--s)) calc(2px * var(--s)) 0 var(--cream), calc(3.5px * var(--s)) calc(3.5px * var(--s)) 0 var(--ink); }
.badge .name2 { display: block; margin-left: calc(-14px * var(--s)); }
.badge .word { display: block; font-family: "Bebas Neue", sans-serif; font-size: calc(24px * var(--s)); letter-spacing: .34em; padding-left: .34em; color: var(--ink); }
.badge .orn { display: block; font-family: "Cormorant Garamond", serif; font-size: calc(30px * var(--s)); color: var(--copper); line-height: 1; margin-top: calc(4px * var(--s)); }

/* ---------- hero ---------- */
.hero { text-align: center; padding: clamp(28px, 5vw, 56px) clamp(18px, 4vw, 56px) 0; }
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .18em; color: var(--ink-3); }
h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 8vw, 104px); line-height: .95; letter-spacing: -.04em; margin: 14px 0 14px; }
h1 em { color: var(--accent); }
.sub { font-size: clamp(16px, 1.6vw, 18px); color: var(--ink-2); margin: 0 auto; max-width: 640px; line-height: 1.5; }
.scan { width: min(900px, 100%); margin: 30px auto 0; display: flex; align-items: center; gap: 12px; padding: 9px 9px 9px 24px; border-radius: 999px; background: var(--cream);
  border: 1.5px solid var(--ink); box-shadow: 0 26px 50px -24px rgba(27, 31, 58, .45), 0 0 0 8px rgba(44, 63, 158, .07); transition: box-shadow .2s; }
.scan:focus-within { box-shadow: 0 26px 50px -24px rgba(27, 31, 58, .45), 0 0 0 8px rgba(44, 63, 158, .18); }
.scan-icon { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; flex: none; }
.scan input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: clamp(16px, 1.6vw, 20px); padding: 10px 0; }
.scan input::placeholder { color: var(--ink-3); }
.btn { border: 0; border-radius: 999px; background: var(--accent); color: var(--cream); padding: 15px 30px; font-size: 16px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: transform .12s, filter .15s; }
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: wait; }
.btn.ghost { background: transparent; color: var(--ink-2); padding: 10px 14px; font-weight: 500; }
.chips { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; font-family: var(--mono); font-size: 12px; }
.chips button { border: 1px solid var(--line); background: rgba(255, 255, 255, .35); border-radius: 999px; padding: 6px 12px; cursor: pointer; color: var(--ink-2); }
.chips button:hover { border-color: var(--accent); color: var(--accent); }
.promise { margin: 14px 0 0; font-size: 13px; color: var(--ink-3); }

/* ---------- cards ---------- */
.card { border-radius: 22px; padding: 20px; background: var(--card); border: 1px solid rgba(255, 255, 255, .75); box-shadow: var(--shadow); min-width: 0; }
.results { display: grid; grid-template-columns: 1.25fr 1.15fr 1fr; gap: 16px; padding: 40px clamp(18px, 4vw, 56px) 0; align-items: start; }

.verdict { display: flex; gap: 18px; align-items: center; margin-top: 12px; }
.ring-wrap { position: relative; width: 112px; height: 112px; flex: none; }
.ring-wrap svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: rgba(27, 31, 58, .1); }
.ring-val { fill: none; stroke-linecap: round; transition: stroke-dasharray .8s cubic-bezier(.2, .8, .2, 1), stroke .4s; }
.ring-center { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-size: 42px; }
.vt { font-family: var(--serif); font-size: 30px; line-height: 1.05; }
.vt.good { color: var(--good); } .vt.warn { color: #9a6a10; } .vt.bad { color: var(--bad); }
.basis { font-size: 12px; color: var(--ink-3); margin-top: 14px; }

.checks { list-style: none; margin: 8px 0 0; padding: 0; }
.checks li { border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; }
.check-row { width: 100%; display: flex; align-items: center; gap: 8px; padding: 8px 0; background: none; border: 0; cursor: pointer; text-align: left; font-size: 13.5px; }
.check-row .lbl { flex: 1; }
.check-row .val { font-weight: 600; text-align: right; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.check-row .chev { width: 10px; color: var(--ink-3); transition: transform .2s; font-size: 11px; }
.checks li.open .chev { transform: rotate(90deg); }
.check-detail { display: none; padding: 2px 0 12px 15px; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.checks li.open .check-detail { display: block; }
.d { width: 7px; height: 7px; border-radius: 50%; flex: none; background: rgba(27, 31, 58, .2); }
.d.good { background: var(--good); } .d.warn { background: var(--warn); } .d.bad { background: var(--bad); } .d.info { background: var(--info); }
.d.wait { background: var(--ink-3); animation: blink 1s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }

.flags { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.flags li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.45; }
.flags li .d { margin-top: 6px; }
.locked { padding: 10px 12px; border-radius: 12px; background: rgba(44, 63, 158, .06); border: 1px dashed rgba(44, 63, 158, .35); font-size: 12.5px; }

/* speed card */
.live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.live.on { background: var(--good); box-shadow: 0 0 0 4px rgba(63, 122, 79, .18); animation: blink 1.2s ease-in-out infinite; }
.speed-card .big { font-size: 64px; }
.spark { height: 58px; margin-top: 10px; }
.spark svg { width: 100%; height: 100%; display: block; overflow: visible; }
.spark .line { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.spark .area { fill: url(#sparkFill); }
.spark .hit { fill: transparent; cursor: pointer; }
.spark .empty { font-size: 12px; color: var(--ink-3); padding-top: 22px; }
.big-spark { height: 150px; }
.speed-mini { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); margin-top: 8px; }
.speed-mini b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.auto { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.cd { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; font-weight: 500; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .slider { width: 40px; height: 24px; border-radius: 999px; background: rgba(27, 31, 58, .18); position: relative; flex: none; transition: background .2s; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .2); }
.switch .slider::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--cream); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
.switch input:checked + .slider { background: var(--accent); }
.switch input:checked + .slider::after { transform: translateX(16px); }
.switch input:focus-visible + .slider { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- shelf ---------- */
.shelf-section { padding: 0 clamp(18px, 4vw, 56px); }
.shelf-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.shelf-head h2, .safe-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 34px); letter-spacing: -.02em; margin: 0; }
.shelf-head h2 em { color: var(--accent); }
.shelf-head span, .safe-head span { font-size: 14px; color: var(--ink-3); }
.shelf { position: relative; height: 360px; overflow-x: clip; }
.giant { position: absolute; left: 0; right: 0; top: 0; text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(110px, 17vw, 240px); line-height: 1; letter-spacing: -.05em; color: var(--ink); opacity: .13; pointer-events: none; white-space: nowrap; }
.ledge { position: absolute; left: 8%; right: 8%; bottom: 12px; height: 16px; background: linear-gradient(var(--copper), #7c3d1f); border-radius: 3px; box-shadow: 0 18px 30px -10px rgba(0, 0, 0, .45); }
.books { position: absolute; left: 0; right: 0; bottom: 26px; display: flex; justify-content: center; gap: 26px; }
.book { width: 140px; height: 204px; border: 0; border-radius: 3px 7px 7px 3px; position: relative; padding: 16px 14px; display: flex; flex-direction: column; text-align: left; cursor: pointer;
  box-shadow: -6px 0 0 rgba(0, 0, 0, .18) inset, 12px 18px 24px -12px rgba(0, 0, 0, .5); transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; flex: none; }
.book::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: linear-gradient(90deg, rgba(0, 0, 0, .25), rgba(255, 255, 255, .08)); border-radius: 3px 0 0 3px; }
.book .t { font-family: var(--serif); font-size: 23px; line-height: 1.02; }
.book .s { font-size: 11px; opacity: .82; margin-top: 6px; line-height: 1.3; }
.book svg { margin-top: auto; align-self: center; width: 66px; height: 60px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.book:hover, .book:focus-visible, .book.active { transform: translateY(-14px); box-shadow: 0 34px 40px -18px rgba(0, 0, 0, .55), -6px 0 0 rgba(0, 0, 0, .18) inset; outline: none; }
.book.active::after { content: ""; position: absolute; left: 50%; bottom: -24px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); transform: translateX(-50%); }
.b-email { background: #e7dcc6; color: #1b1f3a; } .b-email .dot-fill { fill: var(--copper); stroke: none; }
.b-ip { background: #37553f; color: #eee5d2; }
.b-password { background: #6f1f2a; color: #f3e2cf; }
.b-file { background: #b9653a; color: #fbf1e1; }
.b-threats { background: #d9a441; color: #2a1c0c; }
.b-speed { background: #1f2430; color: #e9e2d3; } .b-speed .bolt { stroke: #d9a441; }

/* ---------- tool panels ---------- */
.panel { margin-top: 26px; padding: 24px 26px; border-radius: 24px; background: var(--card); border: 1px solid rgba(255, 255, 255, .8); box-shadow: var(--shadow); animation: rise .35s ease; scroll-margin-top: 20px; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.panel-head { display: flex; justify-content: space-between; align-items: center; }
.panel-head h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin: 0; letter-spacing: -.02em; }
.close { border: 0; background: rgba(27, 31, 58, .07); width: 36px; height: 36px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink-2); }
.close:hover { background: rgba(27, 31, 58, .14); }
.panel-intro { font-size: 15px; line-height: 1.55; color: var(--ink-2); margin: 8px 0 16px; max-width: 720px; }
.panel-out { margin-top: 14px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 12px; }
.mini { display: flex; gap: 8px; padding: 6px 6px 6px 18px; border-radius: 999px; background: var(--cream); border: 1px solid rgba(27, 31, 58, .25); margin-top: 10px; }
.mini input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 15px; }
.mini .btn { padding: 11px 20px; font-size: 14px; }
.mini:focus-within { border-color: var(--accent); }
.rows { display: flex; flex-direction: column; }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.row:last-child { border-bottom: 0; }
.row .k2 { color: var(--ink-3); }
.row .v2 { text-align: right; font-weight: 500; overflow-wrap: anywhere; }
.verdict-line { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; font-size: 14px; line-height: 1.5; }
.verdict-line .d { margin-top: 7px; }
.pending { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 13.5px; }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.email-grid { display: grid; grid-template-columns: auto repeat(4, minmax(0, 1fr)); gap: 22px; align-items: start; margin-top: 18px; }
.email-grid .grade { font-family: var(--serif); font-size: 64px; line-height: 1; text-align: center; min-width: 80px; }
.email-grid b { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 14px; }
.email-grid p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.email-grid .raw { font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-top: 8px; overflow-wrap: anywhere; }

.meter { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 16px 0 8px; }
.meter i { height: 8px; border-radius: 4px; background: rgba(27, 31, 58, .1); transition: background .3s; }
.pw-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.pw-field input { letter-spacing: .04em; }

.drop { display: grid; place-items: center; text-align: center; gap: 6px; padding: 30px 18px; border-radius: 18px; cursor: pointer; border: 1.5px dashed rgba(27, 31, 58, .3); background: rgba(255, 255, 255, .25); font-size: 14px; transition: border-color .2s, background .2s; }
.drop:hover, .drop.over { border-color: var(--accent); background: rgba(44, 63, 158, .05); }
.drop svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 14px 0 6px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kpis .big { font-size: 44px; }
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; }
.table-toggle { background: none; border: 0; color: var(--ink-3); font-size: 12px; cursor: pointer; text-decoration: underline; padding: 0; }
.search-sm { border: 1px solid rgba(27, 31, 58, .25); background: var(--cream); border-radius: 999px; padding: 8px 14px; font-size: 13px; width: min(280px, 50%); outline: 0; }
.search-sm:focus { border-color: var(--accent); }
.bar-chart svg { width: 100%; height: 220px; display: block; overflow: visible; margin-top: 10px; }
.bar-chart .axis { fill: var(--ink-3); font-size: 11px; font-family: var(--sans); }
.bar-chart .grid-line { stroke: var(--line); }
.bar-chart .bar { fill: var(--accent); transition: opacity .15s; }
.bar-chart .bar.latest { fill: var(--copper); }
.bar-chart .hit { fill: transparent; cursor: pointer; }
.bar-chart:hover .bar { opacity: .45; }
.bar-chart .bar.on { opacity: 1; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 10px; }
table.data th, table.data td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line); }
table.data th { color: var(--ink-3); font-weight: 500; }
.kev-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; margin-top: 6px; }
.cve { padding: 14px 0; border-bottom: 1px solid var(--line); }
.cve-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.cve-id { font-family: var(--mono); font-size: 12.5px; font-weight: 500; }
.cve-name { font-size: 14px; line-height: 1.45; }
.cve-meta { color: var(--ink-3); font-size: 12px; margin-top: 4px; }
.chip { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 500; background: rgba(27, 31, 58, .07); color: var(--ink-2); }
.chip.bad { background: rgba(184, 50, 31, .12); color: var(--bad); }
.chip.good { background: rgba(63, 122, 79, .12); color: var(--good); }
.chip.info { background: rgba(44, 63, 158, .1); color: var(--accent); }

/* ---------- safety + history ---------- */
.safe { margin: 40px clamp(18px, 4vw, 56px) 0; padding: 26px 28px; border-radius: 24px; background: var(--card); border: 1px solid rgba(255, 255, 255, .8); box-shadow: var(--shadow); }
.safe-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.safe-head h2 em { color: var(--good); }
.safe-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.safe-grid > div { display: flex; flex-direction: column; gap: 6px; }
.safe-grid svg { width: 30px; height: 30px; fill: none; stroke: var(--good); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 4px; }
.safe-grid b { font-size: 14.5px; }
.safe-grid span { font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.linkish { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; font-size: inherit; }
.history-wrap { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.history { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.history li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; min-width: 0; }
.history li .t-main { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history li .t-time { color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.history .empty { color: var(--ink-3); border: 0; }

/* ---------- footer ---------- */
.foot { display: flex; align-items: center; gap: 28px; margin: 36px clamp(18px, 4vw, 56px) 0; padding: 26px 0 40px; border-top: 1px solid var(--line); }
.sig { font-family: var(--serif); font-size: 21px; line-height: 1.4; margin: 0; }
.sig em { color: var(--accent); }
.meta { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--ink-3); margin: 10px 0 0; }
.fine { font-size: 12px; color: var(--ink-3); margin: 6px 0 0; }

.tooltip { position: fixed; top: 0; left: 0; z-index: 50; pointer-events: none; padding: 8px 10px; border-radius: 10px; font-size: 12px; line-height: 1.4;
  background: var(--ink); color: var(--cream); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); white-space: nowrap; transform: translate(-50%, -110%); opacity: 0; transition: opacity .12s; }
.tooltip.show { opacity: 1; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .results { grid-template-columns: 1fr 1fr; }
  .speed-card { grid-column: 1 / -1; }
  .safe-grid { grid-template-columns: repeat(3, 1fr); }
  .email-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .maker-text { display: none; }
  .top { grid-template-columns: auto 1fr auto; gap: 10px; }
  .speed-chip .sc-spark, .speed-chip .sc-sub { display: none; }
  .landing-row { grid-template-columns: 1fr; gap: 14px; }
  .conn-card { margin-bottom: 0; }
  .scan-hint { display: none; }
  .scan .paste { order: 3; flex: 1; justify-content: center; }
  .scan .btn { order: 4; flex: 2; width: auto; }
  .results { grid-template-columns: 1fr; padding-top: 28px; }
  .scan { flex-wrap: wrap; border-radius: 26px; padding: 10px 10px 10px 18px; }
  .scan .btn { width: 100%; }
  .split, .history { grid-template-columns: 1fr; gap: 20px; }
  .safe-grid { grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kev-grid, .email-grid { grid-template-columns: 1fr; }
  .shelf { height: 300px; }
  .giant { font-size: 24vw; top: 24px; }
  .books { justify-content: flex-start; overflow-x: auto; padding: 20px 18px 0; gap: 16px; scroll-snap-type: x mandatory; bottom: 26px; }
  .book { width: 124px; height: 184px; scroll-snap-align: center; }
  .book .t { font-size: 20px; }
  .ledge { left: 0; right: 0; }
  .foot { flex-direction: column; text-align: center; }
  .panel { padding: 20px 18px; }
  .chart-head { flex-wrap: wrap; }
  .search-sm { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ============================================================
   Landing (v5): centered hero, long paste bar, live speed chip,
   bookshelf + live connection card on the first screen
   ============================================================ */
.top { display: grid; grid-template-columns: 1fr auto 1fr; padding-top: 16px; padding-bottom: 4px; }
.top .speed-chip { justify-self: center; }
.top .maker { justify-self: end; }
.speed-chip { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid rgba(255,255,255,.8); box-shadow: 0 10px 24px -16px rgba(0,0,0,.4); white-space: nowrap; }
.speed-chip .sc-main b { font-family: var(--serif); font-size: 22px; font-weight: 400; font-variant-numeric: tabular-nums; }
.speed-chip .sc-main small { font-size: 11px; color: var(--ink-3); margin-left: 3px; }
.speed-chip .sc-spark { display: block; width: 64px; height: 22px; }
.speed-chip .sc-spark svg { width: 100%; height: 100%; display: block; }
.speed-chip .sc-spark .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.speed-chip .sc-sub { font-size: 11.5px; color: var(--ink-3); }

.hero { padding-top: clamp(4px, 1.2vh, 14px); }
.hero h1 { font-size: clamp(48px, min(6.6vw, 11vh), 96px); margin: 8px 0 10px; }
.hero .sub { font-size: clamp(15px, 1.3vw, 18px); max-width: 720px; }
.hero .scan { width: min(1180px, 100%); margin: clamp(14px, 2.4vh, 26px) auto 0; padding: 12px 12px 12px 30px; gap: 14px; border-width: 2px;
  box-shadow: 0 30px 60px -26px rgba(27, 31, 58, .5), 0 0 0 10px rgba(44, 63, 158, .10); }
.hero .scan:focus-within { box-shadow: 0 30px 60px -26px rgba(27, 31, 58, .5), 0 0 0 10px rgba(44, 63, 158, .22); }
.hero .scan input { font-size: clamp(17px, 1.6vw, 22px); padding: 14px 0; }
.hero .scan-icon { width: 28px; height: 28px; }
.hero .scan .btn { padding: 18px 34px; font-size: 18px; }
.paste { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(27, 31, 58, .22); background: rgba(255, 255, 255, .55); border-radius: 999px; padding: 14px 18px; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; white-space: nowrap; }
.paste svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.paste:hover { border-color: var(--accent); color: var(--accent); }
.scan-hint { margin-top: 10px; font-size: 13.5px; color: var(--ink-2); min-height: 1.5em; }
.scan-hint kbd { font-family: var(--mono); font-size: 12px; background: var(--cream); border: 1px solid rgba(27, 31, 58, .2); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; }

.landing-row { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; align-items: end; max-width: 1330px; margin: clamp(0px, 1vh, 10px) auto 0; padding: 0 clamp(18px, 4vw, 56px); }
.landing-row .shelf { height: clamp(240px, 40vh, 360px); }
.landing-row .giant { font-size: clamp(100px, min(13vw, 25vh), 210px); top: 0; }
.landing-row .ledge { left: 3%; right: 3%; }
.landing-row .books { gap: clamp(10px, 1.4vw, 20px); bottom: 26px; }
.landing-row .book { width: clamp(96px, 8.4vw, 128px); height: clamp(150px, 25vh, 214px); }
.landing-row .book .t { font-size: clamp(17px, 1.6vw, 23px); }
.landing-row .book svg { width: clamp(46px, 4.6vw, 66px); height: clamp(42px, 4vw, 60px); }
.conn-card { text-align: left; border-radius: 22px; padding: 16px 18px 12px; background: var(--card); border: 1px solid rgba(255, 255, 255, .75); box-shadow: var(--shadow); margin-bottom: 14px; }
.conn-flag { font-size: 32px; line-height: 1; margin-top: 12px; }
.conn-place { font-family: var(--serif); font-size: 24px; line-height: 1.1; margin-top: 8px; letter-spacing: -.01em; }
.conn-ip { font-size: 11.5px; color: var(--ink-3); margin: 6px 0 8px; overflow-wrap: anywhere; }
.conn-card .row { font-size: 13px; padding: 7px 0; }
.conn-card .verdict-line { font-size: 13px; margin-top: 10px; }
.conn-note { font-size: 11.5px; color: var(--ink-3); margin: 10px 0 0; line-height: 1.45; }
@media (max-width: 1180px) and (min-width: 761px) {
  .landing-row { grid-template-columns: minmax(0, 1fr) 280px; }
}
@media (max-width: 760px) {
  .top { grid-template-columns: auto 1fr auto; gap: 10px; padding-top: 12px; }
  .top .speed-chip { justify-self: center; padding: 6px 10px; gap: 6px; }
  .speed-chip .sc-main b { font-size: 18px; }
  .speed-chip .sc-spark, .speed-chip .sc-sub { display: none; }
  .landing-row { grid-template-columns: 1fr; gap: 14px; padding: 0 18px; }
  .landing-row .shelf { height: 290px; }
  .landing-row .giant { font-size: 24vw; top: 24px; }
  .landing-row .books { justify-content: flex-start; overflow-x: auto; padding: 20px 18px 0; gap: 14px; scroll-snap-type: x mandatory; }
  .landing-row .book { width: 120px; height: 180px; scroll-snap-align: center; }
  .landing-row .ledge { left: 0; right: 0; }
  .conn-card { margin-bottom: 0; }
  .hero .scan { padding: 10px; gap: 10px; border-radius: 26px; }
  .hero .scan input { flex-basis: calc(100% - 40px); }
  .hero .scan .btn { padding: 15px 20px; font-size: 16px; }
  .paste { padding: 12px 14px; }
}
@media (max-width: 760px) {
  .logo { font-size: 22px; }
  .logo small { display: none; }
  .maker .badge { --s: .15 !important; }
  .top { padding-left: 16px; padding-right: 16px; }
}

.logo em { font-style: italic; color: var(--accent); }
