@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #fbfcfe;
  --line: rgba(23,32,48,.1);
  --text: #17202f;
  --muted: #68758a;
  --accent: #2b6fd6;
  --accent-soft: rgba(43,111,214,.1);
  --green: #2f9e63;
  --orange: #e8923a;
  --red: #d9534f;
  --radius: 20px;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --sans: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  background:
    radial-gradient(circle at 75% -10%, rgba(43,111,214,.08), transparent 30%),
    radial-gradient(circle at 5% 20%, rgba(43,111,214,.05), transparent 25%),
    var(--bg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--accent); color: #fff; }
.hidden { display: none !important; }

.shell { width: min(560px, calc(100% - 32px)); margin-inline: auto; }

/* ---------- header ---------- */
.site-header {
  width: min(560px, calc(100% - 32px)); height: 68px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line); position: relative; z-index: 10;
}
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--mono); font-size: 14px; color: #3d4756; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(43,111,214,.25); font-size: 16px; }

/* ---------- shared type ---------- */
.eyebrow { font-family: var(--mono); text-transform: uppercase; letter-spacing: .11em; font-size: 11px; color: var(--muted); }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); margin-right: 10px; }
h1 { margin: 18px 0; font-size: clamp(38px, 11vw, 54px); letter-spacing: -.055em; line-height: 1.04; }
.accent-text { color: var(--accent); }
.intro { font-size: 16px; line-height: 1.7; color: var(--muted); margin: 0 0 30px; }

.view { padding-block: 44px 60px; }

/* ---------- buttons ---------- */
.button {
  min-height: 52px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  border-radius: 14px; font-weight: 700; font-size: 14px; border: 0; cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, opacity .2s;
}
.button:hover { transform: translateY(-2px); }
.button:disabled { opacity: .5; pointer-events: none; }
.button-primary { color: #fff; background: var(--accent); box-shadow: 0 10px 30px rgba(43,111,214,.28); }

/* ---------- search ---------- */
.search-row { display: flex; gap: 10px; }
.search-row input {
  flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  color: var(--text); font: 600 16px var(--sans); padding: 0 16px; min-height: 52px; outline: none;
  transition: border-color .2s; box-shadow: 0 6px 24px rgba(23,32,48,.05);
}
.search-row input:focus { border-color: var(--accent); }
.search-row input::placeholder { color: #9aa5b5; font-weight: 500; }

.examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.examples button {
  border: 1px solid var(--line); border-radius: 100px; background: var(--surface); color: var(--muted);
  font: 500 12px var(--mono); padding: 8px 14px; cursor: pointer; transition: all .2s;
}
.examples button:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

.form-error { color: var(--red); font: 12px var(--mono); margin: 16px 0 0; }

/* ---------- result ---------- */
.result {
  margin-top: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  box-shadow: 0 14px 40px rgba(23,32,48,.07); padding: 24px 22px; animation: rise .3s ease;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.result-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.result-head h2 { margin: 0; font-size: clamp(24px, 6.5vw, 32px); letter-spacing: -.04em; }
.verdict { font: 700 13px var(--mono); letter-spacing: .1em; border-radius: 100px; padding: 8px 16px; }
.verdict-yes { color: #fff; background: var(--green); box-shadow: 0 6px 20px rgba(47,158,99,.35); }
.verdict-no { color: #fff; background: var(--red); box-shadow: 0 6px 20px rgba(217,83,79,.35); }
.verdict-caution { color: #fff; background: var(--orange); box-shadow: 0 6px 20px rgba(232,146,58,.35); }
.summary { font-size: 15px; line-height: 1.65; color: var(--text); margin: 14px 0 20px; font-weight: 600; }
.facts { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--line); padding-top: 20px; }
.fact-label { font: 10px var(--mono); text-transform: uppercase; letter-spacing: .11em; color: var(--accent); }
.fact p { margin: 6px 0 0; font-size: 14px; line-height: 1.65; color: var(--muted); }

/* ---------- recent ---------- */
.recent { margin-top: 34px; }
.recent-heading { margin-bottom: 12px; }
.recent-list { display: flex; flex-wrap: wrap; gap: 8px; }
.recent-list button {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 100px; background: var(--surface); color: var(--text);
  font: 600 13px var(--sans); padding: 9px 15px; cursor: pointer; transition: all .2s;
}
.recent-list button:hover { border-color: var(--accent); }
.recent-list .dot { width: 7px; height: 7px; border-radius: 50%; }
.dot-yes { background: var(--green); }
.dot-no { background: var(--red); }
.dot-caution { background: var(--orange); }

/* ---------- loading ---------- */
.loading { position: fixed; inset: 0; background: rgba(244,247,251,.65); backdrop-filter: blur(2px); z-index: 50; display: grid; place-items: center; }
.loading-box {
  display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 18px 26px; font: 13px var(--mono); color: var(--text);
  box-shadow: 0 14px 40px rgba(23,32,48,.12);
}
.loading-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: pulse .9s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; transform: scale(.8); } }

/* ---------- footer ---------- */
footer { margin-top: 30px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font: 10px var(--mono); padding-block: 26px calc(26px + env(safe-area-inset-bottom)); }
footer a:hover { color: var(--text); }

@media (min-width: 561px) {
  .view { padding-block: 60px 70px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
