/* PhishGuard UI.
   Monochrome chrome (ink, hairlines, white paper); colour is reserved for the
   verdict, so a coloured element always means risk state. Data (URLs, scores,
   feature codes) is set in the mono face. The risk scale (1-99) with its two learned
   thresholds is the recurring motif: brand mark, legend, result header, tables. */

@font-face { font-family: "Be Vietnam Pro"; src: url("fonts/BeVietnamPro-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url("fonts/BeVietnamPro-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url("fonts/BeVietnamPro-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url("fonts/BeVietnamPro-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url("fonts/BeVietnamPro-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/JetBrainsMono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --paper: #ffffff;
  --wash: #f6f5f2;
  --ink: #12161c;
  --ink-2: #39414c;
  --ink-3: #69727e;
  --line: #e4e2dd;
  --line-2: #cfccc5;

  --bad: #c4321c;   --bad-ink: #9c2513;  --bad-wash: #fbece8;  --bad-tint: #f5c9bf;
  --warn: #e9a513;  --warn-ink: #8b5800; --warn-wash: #fff5df; --warn-tint: #f9e3ae;
  --ok: #1e8a57;    --ok-ink: #166743;   --ok-wash: #e7f4ec;   --ok-tint: #cfe8da;
  --cool: #1f6fb2;  /* SHAP: pulls the risk down (paired with --bad, CVD-safe) */

  --sans: "Be Vietnam Pro", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, "Courier New", monospace;
  --r: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 2px; }
code, .mono { font-family: var(--mono); font-variant-ligatures: none; font-size: .92em; }
pre { font-family: var(--mono); font-size: 13px; white-space: pre-wrap; margin: 8px 0 0; }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
main.wrap { padding-top: 40px; padding-bottom: 72px; min-height: 70vh; }

/* ------------------------------------------------------------------ type */
h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.12; letter-spacing: -.03em; font-weight: 800; margin: 0 0 12px; }
h2 { font-size: 17px; line-height: 1.3; letter-spacing: -.01em; font-weight: 700; margin: 0; }
h3 { font-size: 14px; font-weight: 700; margin: 22px 0 8px; }
p { margin: 0 0 12px; }
.eyebrow { font: 600 11.5px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px; }
.lead { font-size: 16.5px; line-height: 1.6; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.danger-text { color: var(--bad-ink); }
.warn-text { color: var(--warn-ink); }
.ok-text { color: var(--ok-ink); }
.cool-text { color: var(--cool); }

/* --------------------------------------------------------------- top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: inline-flex; flex-direction: column; gap: 5px; text-decoration: none; }
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.mark { display: flex; gap: 2px; height: 4px; }
.mark i { display: block; min-width: 4px; flex-basis: 0; }
.mark .ok { background: var(--ok); border-radius: 2px 0 0 2px; }
.mark .warn { background: var(--warn); }
.mark .bad { background: var(--bad); border-radius: 0 2px 2px 0; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { position: relative; padding: 8px 12px; border-radius: var(--r); text-decoration: none; font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--wash); }
.nav a.active { color: var(--ink); font-weight: 700; }
.nav a.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -12px; height: 2px; background: var(--ink); }

/* -------------------------------------------------------------- sections */
.blk { margin-top: 48px; padding-top: 18px; border-top: 2px solid var(--ink); }
.blk-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 16px; }
.blk-head .note { font-size: 13px; color: var(--ink-3); }
.cols { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 48px; }
.cols > .blk { min-width: 0; }
.page-head { margin-bottom: 8px; }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* --------------------------------------------------------------- buttons */
.btn, button.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px;
  border: 1px solid var(--ink); border-radius: var(--r); background: var(--ink); color: #fff;
  font: 600 14px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, transform .06s;
}
.btn:hover { background: #000; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--ink); background: var(--wash); }
.btn[disabled] { opacity: .6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }
.inline-form { display: inline-flex; flex-wrap: wrap; gap: 10px; margin: 0; }

/* ----------------------------------------------------------------- tags */
.pill, .badge {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 3px;
  border: 1px solid var(--line-2); background: #fff; color: var(--ink-2);
  font: 600 11.5px/1 var(--sans); white-space: nowrap; vertical-align: middle;
}
.pill.ok { border-color: #b9dcc8; background: var(--ok-wash); color: var(--ok-ink); }
.pill.warn { border-color: #efd79a; background: var(--warn-wash); color: var(--warn-ink); }
.pill.danger { border-color: #efbdb2; background: var(--bad-wash); color: var(--bad-ink); }
.pill.muted { color: var(--ink-3); }
.pill.solid { border-color: var(--ink); background: var(--ink); color: #fff; }
.badge.phishing { border-color: var(--bad); background: var(--bad); color: #fff; }
.badge.suspicious { border-color: var(--warn); background: var(--warn); color: var(--ink); }
.badge.legitimate { border-color: #b9dcc8; background: var(--ok-wash); color: var(--ok-ink); }
.score-chip {
  display: inline-block; min-width: 36px; padding: 0 7px; border-radius: 3px; text-align: center;
  font: 700 13px/24px var(--mono); font-variant-numeric: tabular-nums; border: 1px solid transparent;
}
.score-chip.phishing { background: var(--bad); color: #fff; }
.score-chip.suspicious { background: var(--warn); color: var(--ink); }
.score-chip.legitimate { background: var(--ok-wash); color: var(--ok-ink); border-color: #b9dcc8; }
.chip-tag { display: inline-block; margin: 2px 6px 2px 0; padding: 2px 8px; border-radius: 3px; border: 1px solid var(--line-2); font: 500 12.5px/1.5 var(--mono); color: var(--ink-2); }
.chip-tag.danger { border-color: #efbdb2; background: var(--bad-wash); color: var(--bad-ink); }
.chip-tag.warn { border-color: #efd79a; background: var(--warn-wash); color: var(--warn-ink); }

/* --------------------------------------------------------------- alerts */
.alert { margin: 0 0 28px; padding: 14px 18px; border-left: 4px solid var(--bad); background: var(--bad-wash); border-radius: 0 var(--r) var(--r) 0; }
.alert .inline-form { margin-top: 12px; }

/* ----------------------------------------------------------- scan form */
.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.scanform { display: flex; margin: 26px 0 14px; border: 2px solid var(--ink); border-radius: 6px; background: #fff; transition: box-shadow .15s; }
.scanform:focus-within { box-shadow: 0 0 0 4px rgba(18, 22, 28, .12); }
.scanform input[name=url] { flex: 1; min-width: 0; height: 56px; padding: 0 16px; border: 0; outline: 0; background: transparent; color: var(--ink); font: 500 16px/1 var(--mono); }
.scanform input::placeholder { color: #a3a9b1; }
.scanform button { height: 56px; padding: 0 26px; border: 0; border-radius: 0 3px 3px 0; background: var(--ink); color: #fff; font: 700 15px/1 var(--sans); cursor: pointer; transition: background .15s; }
.scanform button:hover { background: #000; }
.scanform button[disabled] { opacity: .7; cursor: progress; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.checkbox input { width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--ink); flex: none; }

/* a picture with a URL in it: pick, paste or drop */
.opts { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.fromimg { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 13px; color: var(--ink-3); }
.imgbtn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; color: var(--ink); font: 600 13.5px/1 var(--sans); cursor: pointer; transition: border-color .15s, background .15s; }
.imgbtn:hover { border-color: var(--ink); background: var(--wash); }
.imgbtn svg { width: 16px; height: 16px; flex: none; }
.fromimg kbd { display: inline-block; padding: 3px 5px; border: 1px solid var(--line-2); border-radius: 3px; background: #fff; color: var(--ink-2); font: 500 11px/1 var(--mono); }
.hero.drag .scanform { outline: 2px dashed var(--ink); outline-offset: 5px; }
.imgread { display: grid; grid-template-columns: 64px minmax(0, 1fr) 28px; gap: 14px; align-items: start; margin-top: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--wash); }
.imgread[hidden] { display: none; }
.imgread img { width: 64px; height: 64px; object-fit: cover; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; }
.imgread img:not([src]) { visibility: hidden; }
.imgread-msg { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-2); }
.imgread-msg.bad { color: var(--bad-ink); }
.urlpick { display: flex; align-items: baseline; gap: 10px; width: 100%; margin-top: 8px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; color: var(--ink); font: 500 13px/1.45 var(--mono); text-align: left; overflow-wrap: anywhere; cursor: pointer; transition: border-color .15s; -webkit-tap-highlight-color: transparent; }
.urlpick:hover { border-color: var(--ink); }
.urlpick.on { border-color: var(--ink); box-shadow: inset 3px 0 0 var(--ink); }
.urlpick i { margin-left: auto; flex: none; font: 600 10.5px/1 var(--mono); font-style: normal; letter-spacing: .08em; color: var(--ink-3); }
.imgclose { width: 28px; height: 28px; border: 0; border-radius: var(--r); background: transparent; color: var(--ink-3); font: 400 20px/1 var(--sans); cursor: pointer; }
.imgclose:hover { background: var(--line); color: var(--ink); }

/* legend: how to read a result */
.howto { background: var(--wash); border-radius: 6px; padding: 22px 24px 6px; }
.howto .scale { margin: 6px 0 34px; }
.howto dl { margin: 0; }
.howto .row { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 2px 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.howto .sw { width: 10px; height: 10px; border-radius: 2px; }
.howto dt { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; font-weight: 700; font-size: 14.5px; }
.howto dt span { font: 500 12.5px var(--mono); color: var(--ink-3); white-space: nowrap; }
.sw.ok { background: var(--ok); } .sw.warn { background: var(--warn); } .sw.bad { background: var(--bad); } .sw.cool { background: var(--cool); }

/* ------------------------------------------------------------ the scale */
.scale { position: relative; margin: 30px 0 34px; }
.scale-track { display: flex; gap: 2px; height: 26px; }
.scale-zone { display: flex; align-items: center; min-width: 6px; padding: 0 10px; overflow: hidden; white-space: nowrap; font: 700 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; flex-basis: 0; }
.scale-zone.ok { background: var(--ok-tint); color: var(--ok-ink); border-radius: 4px 0 0 4px; padding: 0; }
.scale-zone.warn { background: var(--warn-tint); color: var(--warn-ink); }
.scale-zone.bad { background: var(--bad-tint); color: var(--bad-ink); border-radius: 0 4px 4px 0; }
.scale.is-legitimate .scale-zone.ok { background: var(--ok); }
.scale.is-suspicious .scale-zone.warn { background: var(--warn); color: var(--ink); }
.scale.is-phishing .scale-zone.bad { background: var(--bad); color: #fff; }
.scale-tick { position: absolute; top: 100%; transform: translateX(-50%); padding-top: 8px; font: 500 11px/1 var(--mono); color: var(--ink-3); white-space: nowrap; }
.scale-tick::before { content: ""; position: absolute; left: 50%; top: 1px; width: 1px; height: 5px; background: var(--ink-3); }
.scale-needle { position: absolute; top: -7px; bottom: -7px; left: calc(var(--v) * 1%); width: 2px; margin-left: -1px; background: var(--ink); animation: needle .8s var(--ease) both; }
.scale-flag { position: absolute; bottom: calc(100% + 9px); left: clamp(14px, calc(var(--v) * 1%), calc(100% - 14px)); transform: translateX(-50%); padding: 4px 6px; border-radius: 3px; background: var(--ink); color: #fff; font: 700 11px/1 var(--mono); animation: flag .8s var(--ease) both; }
@keyframes needle { from { left: 0; } }
@keyframes flag { from { left: 14px; } }

.micro { position: relative; display: inline-block; width: 68px; height: 6px; margin-left: 10px; border-radius: 3px; vertical-align: middle;
  background: linear-gradient(90deg, var(--ok-tint) 0 calc(var(--su) * 1%), var(--warn-tint) calc(var(--su) * 1%) calc(var(--ph) * 1%), var(--bad-tint) calc(var(--ph) * 1%) 100%); }
.micro::after { content: ""; position: absolute; top: -3px; bottom: -3px; left: calc(var(--v) * 1%); width: 2px; margin-left: -1px; border-radius: 1px; background: var(--ink); }

/* -------------------------------------------------------- result header */
.case-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font: 500 12px/1.4 var(--mono); color: var(--ink-3); margin-bottom: 12px; }
.case-url { font: 600 clamp(17px, 2.3vw, 24px)/1.35 var(--mono); letter-spacing: -.02em; overflow-wrap: anywhere; margin: 0; }
.case-redirect { margin: 8px 0 0; font-size: 13.5px; color: var(--ink-3); overflow-wrap: anywhere; }
.verdict { --tone: var(--ink); --tone-ink: var(--ink); --tone-wash: var(--wash);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; align-items: end;
  margin-top: 24px; padding: 24px 26px; border-left: 6px solid var(--tone); background: var(--tone-wash); border-radius: 0 6px 6px 0; }
.verdict.phishing { --tone: var(--bad); --tone-ink: var(--bad-ink); --tone-wash: var(--bad-wash); }
.verdict.suspicious { --tone: var(--warn); --tone-ink: var(--warn-ink); --tone-wash: var(--warn-wash); }
.verdict.legitimate { --tone: var(--ok); --tone-ink: var(--ok-ink); --tone-wash: var(--ok-wash); }
.verdict .eyebrow { color: var(--tone-ink); margin-bottom: 8px; }
.verdict-word { font-size: clamp(24px, 3.6vw, 36px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: var(--tone-ink); margin: 0 0 10px; }
.verdict-note { margin: 0; max-width: 58ch; color: var(--ink-2); }
.score { text-align: right; white-space: nowrap; }
.score-num { font: 800 clamp(60px, 9vw, 92px)/.86 var(--mono); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.score-lbl { display: block; margin-top: 10px; font: 600 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--tone-ink); }
.collected { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 4px; font-size: 14px; }

.chain { margin: 0; padding-left: 22px; }
.chain li { padding: 5px 0; overflow-wrap: anywhere; }

/* --------------------------------------------------- Detail (SHAP) chart */
.shap-axis, .shap-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 40%) 52px; gap: 0 14px; align-items: center; }
.shap-axis { font: 500 10.5px/1 var(--mono); letter-spacing: .04em; color: var(--ink-3); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.shap-axis .ax { display: flex; justify-content: space-between; }
.shap-group { display: flex; align-items: center; gap: 8px; margin: 18px 0 2px; font-size: 13px; font-weight: 700; }
.shap-group .sw { width: 10px; height: 10px; border-radius: 2px; }
.shap-row { padding: 9px 0; border-bottom: 1px solid var(--line); }
.shap-lbl { font-size: 14px; line-height: 1.35; min-width: 0; }
.shap-lbl small { display: block; margin-top: 2px; font: 400 11.5px/1.35 var(--mono); color: var(--ink-3); overflow-wrap: anywhere; }
.shap-bar { position: relative; height: 22px; }
.shap-bar::before { content: ""; position: absolute; left: 50%; top: -9px; bottom: -9px; width: 1px; background: var(--line-2); }
.shap-bar i { position: absolute; top: 6px; height: 10px; min-width: 2px; animation: grow .5s var(--ease) both; animation-delay: calc(var(--i) * 45ms); }
.shap-bar i.up { left: 50%; background: var(--bad); border-radius: 0 4px 4px 0; transform-origin: left center; }
.shap-bar i.down { right: 50%; background: var(--cool); border-radius: 4px 0 0 4px; transform-origin: right center; }
@keyframes grow { from { transform: scaleX(0); } }
.shap-val { font: 600 13px/1 var(--mono); font-variant-numeric: tabular-nums; text-align: right; }
.formula { margin: 18px 0 10px; padding: 12px 14px; background: var(--wash); border-radius: var(--r); font: 500 12.5px/1.6 var(--mono); overflow-wrap: anywhere; }
.formula b { font-weight: 700; }
.evidence { list-style: none; margin: 0; padding: 0; }
.evidence li { padding: 10px 0; border-bottom: 1px solid var(--line); }

/* ------------------------------------------------------- key/value table */
.kv { width: 100%; border-collapse: collapse; font-size: 14px; }
.kv th { width: 36%; padding: 10px 16px 10px 0; text-align: left; vertical-align: top; font-weight: 500; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.kv td { padding: 10px 0; vertical-align: top; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.kv tr:last-child th, .kv tr:last-child td { border-bottom: 0; }
.kv.two-col th { width: 30%; }
.ocr-sample { font: 400 12.5px/1.6 var(--mono); color: var(--ink-2); background: var(--wash); border-radius: var(--r); padding: 10px 12px; }

/* --------------------------------------- the scanned page, as a picture */
.shot-cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: start; }
.shot { margin: 0; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; background: #fff; }
.shot-bar { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--wash); font: 500 12px/1.3 var(--mono); color: var(--ink-3); }
.shot-bar b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; color: var(--ink-2); }
.shot-bar a { flex: none; color: var(--ink-2); }
.shot-view { max-height: 460px; overflow-y: auto; overscroll-behavior: contain; }
.shot-view img { display: block; width: 100%; height: auto; }
.shot-cols .figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shot-cols .fig:nth-child(odd) { border-left: 0; padding-left: 0; }
.shot-cols .fig:nth-child(n+3) { border-top: 1px solid var(--line); }
.shot-cols .kv.two-col th { width: 40%; }

/* --------------------------------------------------------------- figures */
.figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fig { padding: 18px 20px 16px; border-left: 1px solid var(--line); min-width: 0; }
.fig:first-child { border-left: 0; padding-left: 0; }
.fig .n { font: 700 34px/1 var(--mono); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.fig .n small { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--ink-3); }
.fig .l { display: flex; align-items: center; gap: 7px; margin-top: 9px; font-size: 13px; color: var(--ink-3); }
.fig .l .sw { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.figs.sm .fig .n { font-size: 24px; }

/* ---------------------------------------------------------------- tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { padding: 0 14px 10px 0; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--ink); font: 600 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.tbl td { padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl th:last-child, .tbl td:last-child { padding-right: 0; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr:hover { background: var(--wash); }
.tbl td.url { width: 46%; max-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 13px/1.4 var(--mono); }
.tbl td.url a { text-decoration: none; }
.tbl td.url a:hover { text-decoration: underline; }
.tbl td.id, .tbl td.when { font: 400 12.5px/1.4 var(--mono); color: var(--ink-3); white-space: nowrap; }
.tbl td.scorecell { white-space: nowrap; }
.tbl.metrics td, .tbl.metrics th { text-align: right; }
.tbl.metrics td:first-child, .tbl.metrics th:first-child, .tbl.metrics td.txt, .tbl.metrics th.txt { text-align: left; }
.tbl.metrics td { font: 400 13px/1.4 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl.metrics td:first-child, .tbl.metrics td.txt { font-family: var(--sans); font-size: 13.5px; white-space: normal; }
.tbl.metrics tr.hl td { background: var(--wash); font-weight: 700; }
.tbl.metrics tr.hl td:first-child { box-shadow: inset 3px 0 0 var(--ink); padding-left: 10px; }
.tbl.metrics tr.sub-row td { color: var(--ink-3); }
.tbl.metrics tr.sub-row td:first-child { padding-left: 16px; }
.tbl.metrics tr.cfg-start td { border-top: 1px solid var(--line-2); }

.seg { display: inline-flex; max-width: 100%; border: 1px solid var(--line-2); border-radius: var(--r); overflow-x: auto; scrollbar-width: none; margin: 6px 0 14px; }
.seg::-webkit-scrollbar { display: none; }
.seg a { padding: 8px 14px; font-size: 13.5px; font-weight: 500; text-decoration: none; color: var(--ink-2); border-left: 1px solid var(--line-2); white-space: nowrap; }
.seg a:first-child { border-left: 0; }
.seg a:hover { background: var(--wash); color: var(--ink); }
.seg a.active { background: var(--ink); color: #fff; }
.pager { display: flex; align-items: center; gap: 14px; margin-top: 22px; font-size: 13.5px; }

/* ---------------------------------------------------------------- charts */
.stack { display: flex; gap: 2px; height: 30px; }
.stack i { display: block; min-width: 4px; flex-basis: 0; }
.stack i:first-child { border-radius: 4px 0 0 4px; }
.stack i:last-child { border-radius: 0 4px 4px 0; }
.stack .phishing, .legend .phishing { background: var(--bad); }
.stack .suspicious, .legend .suspicious { background: var(--warn); }
.stack .legitimate, .legend .legitimate { background: var(--ok); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 13.5px; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; }
.legend .other { background: var(--line-2); }
.legend b { font: 700 13.5px var(--mono); }

.hbars { display: grid; gap: 2px; }
.hbar-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) 96px; gap: 14px; align-items: center; padding: 7px 0; font-size: 14px; }
.hbar { height: 10px; background: var(--wash); border-radius: 0 4px 4px 0; }
.hbar i { display: block; height: 100%; min-width: 2px; background: var(--ink-2); border-radius: 0 4px 4px 0; }
.hbar-val { font: 500 12.5px/1 var(--mono); color: var(--ink-3); text-align: right; white-space: nowrap; }

.days { display: flex; align-items: flex-end; gap: 10px; height: 190px; border-bottom: 1px solid var(--line-2); }
.day { flex: 1; max-width: 64px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; min-width: 0; }
.day-n { font: 600 11px/1 var(--mono); color: var(--ink-2); text-align: center; margin-bottom: 4px; }
.day i { display: block; min-height: 2px; }
.day i.oth { background: var(--line-2); }
.day i.ph { background: var(--bad); }
.day i:first-of-type { border-radius: 4px 4px 0 0; }
.day-x { display: flex; gap: 10px; margin-top: 8px; }
.day-x span { flex: 1; max-width: 64px; min-width: 0; text-align: center; font: 500 10.5px/1 var(--mono); color: var(--ink-3); }
.fig-img { display: block; margin-top: 20px; border: 1px solid var(--line); border-radius: var(--r); }
details summary { cursor: pointer; margin-top: 14px; }
details ul { margin: 8px 0 0; padding-left: 20px; }

/* ------------------------------------------------------------- job page */
.scanline { position: relative; height: 2px; margin: 22px 0 0; background: var(--line); overflow: hidden; }
.scanline::after { content: ""; position: absolute; inset: 0; width: 28%; background: var(--ink); animation: sweep 1.5s cubic-bezier(.45, 0, .2, 1) infinite; }
@keyframes sweep { from { transform: translateX(-110%); } to { transform: translateX(380%); } }
.stages { list-style: none; margin: 30px 0 18px; padding: 0; max-width: 680px; }
.stages li { position: relative; padding: 0 0 20px 36px; color: var(--ink-3); transition: color .2s; }
.stages li::before { content: ""; position: absolute; left: 3px; top: 3px; width: 15px; height: 15px; border: 2px solid var(--line-2); border-radius: 50%; background: #fff; transition: background .2s, border-color .2s; }
.stages li::after { content: ""; position: absolute; left: 10px; top: 22px; bottom: 2px; width: 1px; background: var(--line); }
.stages li:last-child::after { display: none; }
.stages li.done { color: var(--ink); }
.stages li.done::before { border-color: var(--ink); background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat; }
.stages li.active { color: var(--ink); font-weight: 600; }
.stages li.active::before { border-color: var(--ink); animation: pulse 1.3s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(18, 22, 28, .22); } 50% { box-shadow: 0 0 0 6px rgba(18, 22, 28, 0); } }
.elapsed { font: 500 12.5px/1 var(--mono); color: var(--ink-3); }

/* ---------------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--line); padding-top: 22px; padding-bottom: 36px; display: flex; flex-wrap: wrap; gap: 6px 32px; justify-content: space-between; font-size: 12.5px; color: var(--ink-3); }
.footer p { margin: 0; max-width: 70ch; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 36px; }
  .cols { grid-template-columns: 1fr; gap: 0; }
  .shot-cols { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  main.wrap { padding-top: 28px; }
  .topbar .wrap { height: auto; flex-wrap: wrap; gap: 6px 16px; padding-top: 12px; }
  .nav { margin-left: -12px; width: calc(100% + 24px); overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a.active::after { bottom: 0; }
  .blk { margin-top: 36px; }
  .scanform { flex-direction: column; }
  .scanform input[name=url] { flex: none; width: 100%; }
  .scanform button { border-radius: 0 0 3px 3px; }
  .verdict { grid-template-columns: 1fr; padding: 20px 18px; }
  .score { text-align: left; }
  .figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fig { padding: 14px 14px 12px; }
  .fig:nth-child(odd) { border-left: 0; padding-left: 0; }
  .fig:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hide-sm { display: none !important; }
  .tbl td.url { width: auto; max-width: 46vw; }
  .micro { display: none; }
  .shap-axis { display: none; }
  .shap-row { grid-template-columns: minmax(0, 1fr) 52px; }
  .shap-lbl { grid-column: 1 / -1; margin-bottom: 4px; }
  .kv th, .kv.two-col th { width: 42%; }
  .hbar-row { grid-template-columns: 112px minmax(0, 1fr) 78px; gap: 10px; font-size: 13px; }
  .days { gap: 5px; height: 160px; }
  .day-x { gap: 5px; }
  .day-x span { overflow: visible; white-space: nowrap; }
  .day-x span:nth-child(even) { visibility: hidden; }
  .day-n { font-size: 10px; }
  .scale-zone { padding: 0 6px; font-size: 9.5px; letter-spacing: .04em; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
/* Consumer-facing presentation */
.hero{display:block;max-width:960px;margin:48px auto;padding:40px;border:1px solid #dce6e5;border-radius:24px;background:linear-gradient(135deg,#f0faf6,#f6f8ff)}
.hero h1{font-size:clamp(30px,5vw,48px);line-height:1.25;max-width:750px}.hero .lead{max-width:680px}.consumer-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.consumer-steps p{line-height:1.8}.consumer-result{max-width:960px;margin:32px auto}.consumer-result h1{font-size:clamp(26px,4vw,38px)}details.blk summary{cursor:pointer;font-weight:600;padding:12px 0}.consumer-result li{margin:14px 0}.blk{border-radius:16px}@media(max-width:640px){.hero{padding:24px 18px;margin:24px auto}.consumer-steps{grid-template-columns:1fr;gap:8px}.nav{flex-wrap:wrap}.scanform{flex-wrap:wrap}.scanform input{min-width:0;width:100%}}
.home-benefits{max-width:960px;margin:48px auto 64px}.section-heading{margin-bottom:24px}.section-heading h2{font-size:28px;line-height:1.5}.consumer-steps article{padding:26px;border:1px solid #e4e9ed;border-radius:18px;background:#fff;box-shadow:0 6px 24px #172c4310}.step-number{display:inline-flex;padding:8px 12px;background:#eaf6f1;color:#22684e;border-radius:10px;font-size:15px;font-weight:700;margin-bottom:18px}.consumer-steps h3{font-size:17px;margin-bottom:12px}.consumer-steps p{color:#576574;font-size:14px}.home-links{display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-top:24px}.home-links a,.back-link{color:#22684e;text-decoration:none}.info-page{max-width:800px;margin:44px auto 64px}.info-page>.eyebrow{margin-top:32px}.info-page h1{font-size:clamp(30px,5vw,44px)}.info-page article{border:1px solid #e4e9ed;border-radius:16px;padding:26px;margin:20px 0;line-height:1.85}.info-page h2{font-size:20px;margin-bottom:12px}.info-page li{margin-bottom:10px}@media(max-width:640px){.home-benefits{margin:32px 0}.consumer-steps article{padding:22px}.info-page article{padding:20px}.section-heading h2{font-size:24px}}
