:root {
  --bg: #131722;
  --surface: #1c2333;
  --surface-danger: #26160f;
  --border: #2a3347;
  --border-danger: #5a2e1f;
  --border-dashed: #46506a;
  --text: #ffffff;
  --text-secondary: #8892a4;
  --text-tertiary: #b9c1d1;
  --cyan: #5de8e8;
  --amber: #f5a623;
  --amber-bg: #332217;
  --coral: #f0997b;
  --red: #e55a4e;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono: 'SF Mono', 'JetBrains Mono', 'Fira Code', Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  padding: 0 16px 64px;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.page {
  max-width: 680px;
  margin: 0 auto;
}

/* ── nav (sticky) ─────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0 12px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.wordmark { font-size: 28px; display: flex; align-items: center; font-family: var(--mono); }
.wordmark .raw { color: var(--text); font-weight: 600; }
.wordmark .phish { color: var(--coral); font-weight: 600; }
.wordmark .fish-sm { color: var(--cyan); font-size: 13px; letter-spacing: 2px; margin-right: 8px; }
.nav-action {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-action:hover { color: var(--cyan); }

/* ── fish hero ───────────────────────────────────────────── */
.fish {
  font-family: var(--mono);
  text-align: center;
  font-size: 36px;
  letter-spacing: 4px;
  color: var(--cyan);
  margin: 30px 0 28px;
  transition: color 0.3s;
}
.fish.suspicious { color: var(--amber); }
.fish.danger { color: var(--red); }
.share-row {
  text-align: center;
  margin: 6px 0 26px;
}

/* ── guided walkthrough ──────────────────────────────────── */
.walk-open {
  display: block;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--cyan);
  border-radius: 10px;
  font-family: var(--sans);
  padding: 16px 18px;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}
.walk-open:hover, .walk-open:focus {
  background: rgba(93, 232, 232, 0.08);
  outline: none;
}
.walk-open .wo-title {
  display: block;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
.walk-open .wo-sub {
  display: block;
  color: var(--cyan);
  font-size: 13px;
}
.walk-skip {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--sans);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  padding: 2px 4px;
}
.walk-skip:hover { color: var(--cyan); }
.walk-fish {
  color: var(--cyan);
  letter-spacing: 1px;
  font-size: 13px;
  margin-right: 4px;
  white-space: nowrap;
}
.walk-q { margin-bottom: 16px; }
.walk-question {
  font-size: 16px;
  color: var(--text);
  line-height: 1.5;
}
.walk-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.walk-opt {
  background: none;
  border: 1px dashed var(--border-dashed);
  border-radius: 8px;
  color: var(--text-tertiary);
  font-family: var(--sans);
  font-size: 14px;
  padding: 12px 14px;
  cursor: pointer;
  text-align: left;
  line-height: 1.35;
}
.walk-opt:hover, .walk-opt:focus {
  border-color: var(--cyan);
  color: var(--cyan);
  outline: none;
}
.walk-done {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.walk-done .wd-a { color: var(--cyan); }
.walk-result {
  margin-top: 16px;
  font-size: 16px;
  color: var(--text);
  line-height: 1.5;
}
.walk-result.danger { color: var(--coral); }
.walk-result.danger .walk-fish { color: var(--red); }
.walk-result.urgent {
  color: var(--coral);
  font-weight: 600;
}
.walk-again {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--sans);
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  padding: 8px 0;
  margin-top: 6px;
}
.walk-again:hover { color: var(--cyan); }

/* ── fact cards ──────────────────────────────────────────── */
.fact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 12px;
}
.fact-card.danger {
  background: var(--surface-danger);
  border-color: var(--border-danger);
}
.fact-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.fact-card.danger .fact-label { color: var(--coral); }
.fact-value {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-top: 8px;
  word-break: break-all;
  line-height: 1.25;
}
.fact-card.danger .fact-value { font-size: 20px; }
.fact-note {
  font-size: 13px;
  color: var(--cyan);
  margin-top: 10px;
  line-height: 1.5;
}
.fact-card.danger .fact-note { color: var(--coral); }
.fact-card.caution {
  background: var(--amber-bg);
  border-color: #5a4520;
}
.fact-card.caution .fact-label,
.fact-card.caution .fact-note { color: var(--amber); }

/* ── section divider ─────────────────────────────────────── */
.section-flag {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 28px 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── fakeable cards ──────────────────────────────────────── */
.fake-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 10px;
}
.fake-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.fake-label { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-secondary); }
.fake-tag {
  flex-shrink: 0;
  background: var(--amber-bg);
  color: var(--amber);
  font-size: 12px;
  border-radius: 5px;
  padding: 4px 8px;
  white-space: nowrap;
}
.fake-explain {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 10px;
  line-height: 1.5;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.chip {
  border: 1px dashed var(--border-dashed);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 13px;
  color: var(--text-tertiary);
}
.claimed-title {
  font-size: 16px;
  color: var(--text-tertiary);
  margin-top: 8px;
}

/* ── screenshot frame ────────────────────────────────────── */
.shot-frame {
  margin-top: 10px;
  border: 1px dashed var(--border-dashed);
  border-radius: 10px;
  overflow: hidden;
}
.shot-toolbar {
  background: #e8eaef;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.shot-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #c6cad3;
  display: inline-block;
}
.shot-urlbar {
  flex: 1;
  background: #fff;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 10px;
  color: #6b7280;
  font-family: -apple-system, sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shot-body {
  background: #f5f6f8;
  min-height: 160px;
  max-height: 480px;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shot-body img {
  width: 100%;
  display: block;
  align-self: flex-start;
  cursor: zoom-in;
}

/* full-screen screenshot viewer */
.shot-viewer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 13, 20, 0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.shot-viewer-close {
  flex-shrink: 0;
  margin: 14px auto 10px;
  background: var(--surface);
  border: 1px solid var(--cyan);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  padding: 13px 30px;
  cursor: pointer;
}
.shot-viewer-close:hover, .shot-viewer-close:focus {
  background: rgba(93, 232, 232, 0.12);
  outline: none;
}
.shot-viewer-scroll {
  flex: 1;
  width: 100%;
  overflow-y: auto;
  padding: 0 12px 24px;
}
.shot-viewer-scroll img {
  width: 100%;
  max-width: 1100px;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
  background: #fff;
}
.shot-loading {
  font-size: 12px;
  color: #9aa1ab;
  font-family: var(--mono);
  padding: 32px;
}

/* ── report header ───────────────────────────────────────── */
.checked-label {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.checked-line {
  text-align: center;
  font-family: var(--mono);
  font-size: 20px;
  color: var(--text-tertiary);
  word-break: break-all;
  margin: -8px 0 32px;
  line-height: 1.5;
}
.checked-line strong {
  color: var(--text);
  font-weight: 700;
}
.report-head { margin-bottom: 28px; text-align: center; }
.report-label {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.report-domain {
  font-family: var(--mono);
  font-size: 40px;
  font-weight: 700;
  color: var(--text);
  word-break: break-all;
  line-height: 1.15;
  margin-bottom: 10px;
}
.report-url {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-secondary);
  word-break: break-all;
}
.report-note {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 560px;
  margin-bottom: 10px;
}
.report-note.danger { color: var(--coral); }
.remember {
  list-style: none;
  margin-bottom: 20px;
}
.remember li {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 4px;
}
.report-title {
  font-size: 16px;
  color: var(--text-tertiary);
  line-height: 1.5;
  margin: -2px 0 10px;
}
.report-title .rt-note { font-size: 13px; color: var(--text-secondary); }
.report-status { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.report-status.danger { color: var(--red); }
.report-status.warn { color: var(--amber); }
.report-sub { font-size: 13px; color: var(--text-secondary); }

/* ── document sections ───────────────────────────────────── */
.section {
  border-top: 1px solid var(--border);
  margin-top: 32px;
  padding-top: 24px;
}
.section-title {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bridge {
  margin: 6px 0 22px;
  font-size: 16px;
  color: var(--text);
  line-height: 1.5;
}
.bridge .sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}
/* bridge q2 is the key question on the page — give it room and weight
   so it doesn't blend into the fine-print caption above it */
#rp-bridge-q2 {
  margin-top: 28px;
  font-size: 40px;      /* matches .report-domain */
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}
#rp-bridge-q2 .sub {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-tertiary);
  margin-top: 6px;
}
.shot-caption {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.5;
}

/* ── findings (warnings between the domain and the screenshot) ── */
.findings { margin: 20px 0 4px; }
.findings .frow {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-tertiary);
  margin-bottom: 14px;
}
.findings .fg {
  flex-shrink: 0;
  width: 18px;
  text-align: center;
  font-family: var(--mono);
  color: var(--text-secondary);
}
.findings .frow.ok .fg { color: var(--cyan); }
.findings .frow.warn { color: var(--amber); }
.findings .frow.warn .fg { color: var(--amber); }
.findings .frow.bad { color: var(--coral); }
.findings .frow.bad .fg { color: var(--red); }

/* ── analyzing banner ────────────────────────────────────── */
.rp-analyzing {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border-dashed);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 16px;
  color: var(--text-secondary);
}
.rp-analyzing-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  flex-shrink: 0;
  animation: rp-pulse 1.2s ease-in-out infinite;
}
@keyframes rp-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

/* ── progressive reveal ──────────────────────────────────── */
.rp-staged {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}
.rp-staged.rp-in {
  transition: opacity 500ms ease, transform 500ms ease;
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto !important;
}

/* ── ask list / easy to imitate ──────────────────────────── */
.ask-list {
  list-style: none;
  margin-bottom: 14px;
}
.ask-list li {
  font-size: 16px;
  color: var(--text-tertiary);
  line-height: 1.5;
  padding-left: 18px;
  position: relative;
  margin-bottom: 6px;
}
.ask-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--text-secondary);
}
.ask-note { font-size: 16px; color: var(--text); line-height: 1.5; }
.fake-list .fake-item { margin-bottom: 16px; }
.fake-list dt {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.fake-list dd { font-size: 16px; color: var(--text-secondary); line-height: 1.5; }

/* ── closing ─────────────────────────────────────────────── */
.closing {
  font-size: 16px;
  color: var(--text);
  line-height: 1.5;
}
.closing .name { color: var(--cyan); font-family: var(--mono); }
.closing .sub { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.foot { font-size: 13px; color: var(--text-secondary); margin-top: 24px; }
.foot a { color: var(--cyan); }

/* ── actions ─────────────────────────────────────────────── */
.actions { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.btn-outline {
  background: none;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 16px;
  padding: 11px 22px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn-outline:hover { background: rgba(93,232,232,0.08); }

/* ── index page ──────────────────────────────────────────── */
.splash {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 18vh 16px 32px;
}
.splash-fish {
  font-size: 36px;
  letter-spacing: 4px;
  color: var(--cyan);
  margin-bottom: 16px;
}
.splash-wordmark {
  font-size: 50px;
  margin-bottom: 8px;
  font-family: var(--mono);
}
.splash-wordmark .raw { color: var(--text); font-weight: 600; }
.splash-wordmark .phish { color: var(--coral); font-weight: 600; }
.splash-tagline {
  font-size: 13px;
  font-family: var(--mono);
  color: var(--text-secondary);
  margin-bottom: 28px;
}
.splash-form {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.splash-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  padding: 13px 14px;
  outline: none;
  box-sizing: border-box;
}
.splash-input::placeholder { color: var(--text-secondary); }
.splash-input:focus { border-color: var(--cyan); }
textarea.splash-input {
  resize: none;
  overflow-y: auto;
  line-height: 1.5;
  min-height: 96px;
}
.link-note {
  font-size: 13px;
  color: var(--cyan);
  line-height: 1.5;
}
.link-choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.link-choice {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--sans);
  padding: 14px 16px;
  cursor: pointer;
}
.link-choice .lc-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 6px;
}
.link-choice .lc-url {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  word-break: break-all;
  line-height: 1.5;
}
.link-choice:hover, .link-choice:focus {
  border-color: var(--cyan);
  outline: none;
}
.link-choice:active { background: var(--border); }
.link-restart {
  background: none;
  border: none;
  align-self: center;
  color: var(--text-secondary);
  font-family: var(--sans);
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  padding: 10px 12px;
  margin-top: 2px;
}
.link-restart:hover { color: var(--cyan); }
.splash-actions {
  display: flex;
  gap: 8px;
}
.splash-paste {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-family: var(--sans);
  font-size: 16px;
  padding: 11px 16px;
  cursor: pointer;
  white-space: nowrap;
}
.splash-paste:hover { color: var(--cyan); border-color: var(--cyan); }
.splash-submit {
  flex: 1;
  background: var(--cyan);
  border: 1px solid var(--cyan);
  border-radius: 8px;
  color: var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  padding: 11px 18px;
  cursor: pointer;
}
.splash-submit:hover { opacity: 0.85; }
.splash-submit:disabled { opacity: 0.85; cursor: default; }
.splash-submit .swim {
  display: inline-block;
  letter-spacing: 2px;
  animation: rp-swim 1.1s ease-in-out infinite alternate;
}
@keyframes rp-swim {
  from { transform: translateX(-16px); }
  to   { transform: translateX(16px); }
}
.splash-error {
  font-size: 13px;
  color: var(--red);
  margin-top: 4px;
}
.splash-error-note {
  font-size: 13px;
  color: var(--amber);
  margin: 8px 0 4px;
  max-width: 480px;
  line-height: 1.5;
  text-align: center;
}

/* ── walkthrough trigger ──────────────────────────────────── */
.walk-open {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  cursor: pointer;
  font-family: var(--sans);
  transition: border-color 0.15s;
}
.walk-open:hover { border-color: var(--cyan); }
.wo-title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.wo-sub {
  display: block;
  font-size: 13px;
  color: var(--cyan);
}

/* ── walkthrough steps ────────────────────────────────────── */
.walk-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 10px;
}
.walk-num {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.walk-step-q {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 12px;
}
.walk-pre {
  font-size: 13px;
  color: var(--cyan);
  margin-bottom: 10px;
}
.walk-examples {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}
.walk-examples li {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  padding-left: 14px;
  position: relative;
  margin-bottom: 4px;
}
.walk-examples li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--border-dashed);
}
.walk-opts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.walk-opt {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  padding: 12px 16px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}
.walk-opt:hover:not(:disabled) { border-color: var(--cyan); background: rgba(93,232,232,0.06); }
.walk-opt--selected {
  border-color: var(--cyan) !important;
  color: var(--cyan);
  background: rgba(93,232,232,0.08) !important;
  cursor: default;
}
.walk-opt--dim {
  opacity: 0.35;
  cursor: default;
}
.walk-note {
  font-size: 13px;
  color: var(--amber);
  margin-top: 12px;
  font-weight: 600;
}

/* ── stop card ────────────────────────────────────────────── */
.walk-stop {
  background: var(--surface-danger);
  border: 1px solid var(--border-danger);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--coral);
  line-height: 1.45;
}
.walk-stop-x {
  font-family: var(--mono);
  margin-right: 6px;
}

/* ── final verdict card ───────────────────────────────────── */
.walk-final {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
}
.walk-verdict {
  padding: 20px 24px;
}
.walk-v-head {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}
.walk-verdict--ok   .walk-v-head { color: var(--cyan); }
.walk-verdict--caution .walk-v-head { color: var(--amber); }
.walk-verdict--warn .walk-v-head { color: var(--red); }
.walk-verdict p {
  font-size: 16px;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 480px) {
  .fact-value { font-size: 20px; }
  .fact-card.danger .fact-value { font-size: 20px; }
  .splash-fish { font-size: 28px; }
  .report-domain { font-size: 30px; }
  .walk-step-q { font-size: 18px; }
  .checked-line { font-size: 17px; }
  #rp-bridge-q2 { font-size: 30px; }
}
