/* PhishGuard — shared styles (public page + analyst panel). Fonts are self-hosted (SIL OFL, see fonts/). */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/static/fonts/inter-cyrillic-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/static/fonts/inter-cyrillic-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/static/fonts/inter-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Mono"; font-weight: 400; font-display: swap;
  src: url(/static/fonts/ibm-plex-mono-cyrillic-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Plex Mono"; font-weight: 400; font-display: swap;
  src: url(/static/fonts/ibm-plex-mono-cyrillic-400-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Plex Mono"; font-weight: 400; font-display: swap;
  src: url(/static/fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  --ink: #0b1526; --ink-2: #14223a; --ink-3: #22324d;
  --bg: #f4f6f9; --paper: #ffffff; --line: #e1e6ed; --line-2: #cfd7e2;
  --text: #0b1526; --muted: #5a6a7f; --faint: #8794a6;
  --accent: #2350c8; --accent-ink: #1a3c99; --accent-tint: #eaf0fd;
  --safe: #12795a; --safe-tint: #e7f4ef;
  --warn: #a8670c; --warn-tint: #fdf3e2;
  --danger: #bf3328; --danger-tint: #fcebe9;
  --radius: 12px; --mono: "Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 16px; line-height: 1.55;
  background: var(--bg); color: var(--text); font-feature-settings: "cv11", "ss01"; }
a { color: var(--accent); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--muted); }

/* header */
.site-head { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.logo svg { flex: none; }
.logo small { font-weight: 500; color: var(--faint); font-size: 13px; letter-spacing: 0; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.site-nav a:hover { color: var(--ink); background: var(--bg); }
.site-nav a.cta { color: var(--paper); background: var(--ink); }
.site-nav a.cta:hover { background: var(--ink-3); }

/* buttons & inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: 15px;
  border-radius: 10px; padding: 11px 18px; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-primary:disabled { opacity: .6; cursor: progress; }
.btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--bg); }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.field { width: 100%; font: inherit; color: var(--text); background: var(--paper); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; }
.field:focus { outline: 3px solid var(--accent-tint); border-color: var(--accent); }
textarea.field { min-height: 120px; resize: vertical; }

/* tags */
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--bg); color: var(--muted); white-space: nowrap; }
.tag.safe { background: var(--safe-tint); color: var(--safe); }
.tag.warn, .tag.review { background: var(--warn-tint); color: var(--warn); }
.tag.danger, .tag.phishing { background: var(--danger-tint); color: var(--danger); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }

/* footer */
.site-foot { background: var(--ink); color: #aab6c8; font-size: 14px; margin-top: 72px; }
.site-foot .wrap { padding-top: 40px; padding-bottom: 40px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-foot h4 { color: #fff; font-size: 14px; margin: 0 0 10px; }
.site-foot a { color: #d4dceb; text-decoration: none; display: block; margin: 4px 0; }
.site-foot a:hover { color: #fff; }
.site-foot .base { border-top: 1px solid var(--ink-3); grid-column: 1 / -1; padding-top: 20px; color: #7f8ca1; font-size: 13px; }

@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .site-nav a:not(.cta) { display: none; }
  .site-foot .wrap { grid-template-columns: 1fr; }
}
