:root {
  --bg: #fafafb;
  --bg-elev: #ffffff;
  --ink: #0b1020;
  --ink-2: #2a2f45;
  --muted: #5b6478;
  --muted-2: #8a92a6;
  --line: #e7e9f0;
  --line-strong: #d6d9e3;
  --accent: #4f46e5;
  --accent-2: #06b6d4;
  --accent-soft: #eef2ff;
  --danger: #b42318;
  --danger-soft: #fef3f2;
  --danger-line: #fecdca;
  --warn: #b54708;
  --warn-soft: #fffaeb;
  --warn-line: #fde2a2;
  --ok: #067647;
  --ok-soft: #ecfdf3;
  --ok-line: #abefc6;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 1px rgba(16, 24, 40, 0.03);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, 0.06), 0 2px 4px rgba(16, 24, 40, 0.04);
  --shadow-lg: 0 24px 64px rgba(16, 24, 40, 0.10), 0 4px 12px rgba(16, 24, 40, 0.05);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: -10% -10% auto -10%;
  height: 520px;
  background:
    radial-gradient(60% 60% at 20% 20%, rgba(79, 70, 229, 0.10), transparent 60%),
    radial-gradient(50% 50% at 80% 10%, rgba(6, 182, 212, 0.10), transparent 60%);
  z-index: -1;
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(250, 250, 251, 0.72);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-mark {
  width: 22px; height: 22px; border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.35);
  display: inline-block;
}
.site-header nav { display: flex; align-items: center; gap: 8px; }
.site-header nav a {
  padding: 8px 12px; border-radius: 8px;
  color: var(--ink-2); font-weight: 500; font-size: 14px;
  transition: background 120ms ease, color 120ms ease;
}
.site-header nav a:hover { background: rgba(11, 16, 32, 0.05); color: var(--ink); }

/* Hero */
.hero { padding: 40px 0 16px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--bg-elev); border: 1px solid var(--line);
  font-size: 13px; color: var(--muted); font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.eyebrow .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e; position: relative;
}
.eyebrow .pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  background: #22c55e; opacity: 0.35; animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.5; }
  100% { transform: scale(1.8); opacity: 0; }
}
.hero h1 {
  font-size: clamp(28px, 6vw, 44px);
  line-height: 1.1; letter-spacing: -0.02em;
  font-weight: 800; margin: 0 0 12px;
}
.hero h1 .grad {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede {
  max-width: 620px; margin: 0 auto;
  color: var(--muted); font-size: 18px;
}

/* Operator block (between hero and form) */
.operator {
  max-width: 640px; margin: 0 auto;
  text-align: center; padding: 8px 0 0;
}
.operator p {
  margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.5;
}
.operator a {
  color: var(--accent); font-weight: 500;
  border-bottom: 1px solid currentColor;
}
.operator a:hover { color: var(--ink); }

/* Card */
.check-form {
  margin: 20px auto 0;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  padding: 28px;
}

.row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.row > label, .row > .label {
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  display: flex; align-items: center; gap: 6px;
}
.row .opt { color: var(--muted-2); font-weight: 500; }

/* Chips */
.chips {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.chip {
  padding: 8px 12px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--line);
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  transition: all 120ms ease;
  display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover { border-color: var(--line-strong); background: #fff; }
.chip.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}
.chip svg { width: 14px; height: 14px; }

/* Inputs */
input[type="text"], textarea, select {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: inherit; font-size: 15px; color: var(--ink);
  transition: border-color 120ms ease, box-shadow 120ms ease;
  outline: none;
}
textarea {
  min-height: 180px; resize: vertical; line-height: 1.55;
}
input[type="text"]:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.textarea-wrap { position: relative; }
.char-counter {
  position: absolute; right: 12px; bottom: 10px;
  font-size: 12px; color: var(--muted-2);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  background: rgba(255, 255, 255, 0.9);
  padding: 2px 6px; border-radius: 6px;
}

.cf-turnstile {
  margin: 4px 0 8px;
}

/* Submit row */
.actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-top: 4px; flex-wrap: wrap;
}
.helper { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.helper svg { width: 16px; height: 16px; color: var(--muted-2); }

#submit-btn {
  border: 0; padding: 12px 22px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #6366f1);
  color: #fff; font-weight: 600; font-size: 15px;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.30), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: transform 80ms ease, box-shadow 120ms ease;
  display: inline-flex; align-items: center; gap: 8px;
}
#submit-btn:hover:not(:disabled) { box-shadow: 0 10px 22px rgba(79, 70, 229, 0.36); }
#submit-btn:active:not(:disabled) { transform: translateY(1px); }
#submit-btn:disabled { opacity: 0.6; cursor: progress; }
#submit-btn svg { width: 16px; height: 16px; }

.form-error {
  margin: 12px 0 0;
  color: var(--danger);
  font-weight: 500;
  font-size: 14px;
}

/* Result */
.result {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: grid; gap: 20px;
}
.verdict {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--danger-soft);
  border: 1px solid var(--danger-line);
}
.verdict .badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px;
  background: #fff; color: var(--danger);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.verdict .badge svg { width: 22px; height: 22px; }
.verdict-text { flex: 1; min-width: 0; }
.verdict-text .verdict-badge {
  display: inline-block;
  font-size: 18px; font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--danger);
  margin: 0;
}
.verdict-text p {
  margin: 2px 0 0; color: var(--ink-2); font-size: 14px;
}
.verdict .confidence {
  margin-left: auto; font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px; color: var(--danger); font-weight: 600;
  padding: 6px 10px; background: #fff; border-radius: 8px;
  border: 1px solid var(--danger-line);
  flex-shrink: 0;
}

/* Variant: legit (green) */
.result--legit .verdict { background: var(--ok-soft); border-color: var(--ok-line); }
.result--legit .verdict .badge { color: var(--ok); }
.result--legit .verdict-text .verdict-badge { color: var(--ok); }
.result--legit .verdict .confidence { color: var(--ok); border-color: var(--ok-line); }

/* Variant: unsure (amber) */
.result--unsure .verdict { background: var(--warn-soft); border-color: var(--warn-line); }
.result--unsure .verdict .badge { color: var(--warn); }
.result--unsure .verdict-text .verdict-badge { color: var(--warn); }
.result--unsure .verdict .confidence { color: var(--warn); border-color: var(--warn-line); }

.result-grid {
  display: grid; gap: 16px;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 720px) {
  .result-grid { grid-template-columns: 1fr; }
}
.result-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.result-card h4 {
  margin: 0 0 12px; font-size: 14px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); display: flex; align-items: center; gap: 8px;
}
.result-card h4 svg { width: 16px; height: 16px; }
.flag-list, .step-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 10px;
}
.flag-list li, .step-list li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; color: var(--ink-2);
}
.flag-list li::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--danger); margin-top: 7px;
  flex: 0 0 8px;
}
.result--legit .flag-list li::before { background: var(--ok); }
.result--unsure .flag-list li::before { background: var(--warn); }

.step-list .num {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 22px;
}

.disclaimer-callout {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--warn-soft);
  border-left: 3px solid var(--warn);
  color: var(--ink-2);
  font-size: 14px; line-height: 1.5;
}
.disclaimer-callout strong { color: var(--warn); font-weight: 600; }

/* Trust strip */
.trust {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 720px) { .trust { grid-template-columns: 1fr; } }
.trust-item {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.trust-item h5 {
  margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.trust-item h5 svg { width: 16px; height: 16px; color: var(--accent); }
.trust-item p { margin: 0; color: var(--muted); font-size: 13px; }

/* How it works */
.how { margin: 80px 0 32px; }
.section-eyebrow {
  text-align: center;
  text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 12px; font-weight: 600; color: var(--muted);
}
.section-title {
  text-align: center; font-size: clamp(26px, 3.5vw, 36px);
  letter-spacing: -0.02em; font-weight: 700;
  margin: 8px 0 32px;
}
.steps {
  display: grid; gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.step .step-num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px; color: var(--muted-2);
  border: 1px solid var(--line); padding: 2px 8px;
  border-radius: 999px; display: inline-block; margin-bottom: 12px;
}
.step h3 {
  margin: 0 0 6px; font-size: 17px; font-weight: 600;
  letter-spacing: -0.01em;
}
.step p { margin: 0; font-size: 14px; color: var(--muted); }

/* Long-form pages (about, privacy) */
.prose { max-width: 720px; margin: 0 auto; padding: 8px 0 32px; }
.prose h2 {
  font-size: 22px; letter-spacing: -0.01em;
  margin: 32px 0 10px;
}
.prose h2:first-child { margin-top: 8px; }
.prose p { color: var(--ink-2); font-size: 16px; margin: 0 0 14px; }
.prose a { color: var(--accent); }
.prose a:hover { text-decoration: underline; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 80px; padding: 32px 0 56px;
  color: var(--muted); font-size: 13px;
}
.site-footer .wrap {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--ink); }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer p { margin: 0; }

/* Subtle reveal */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity 400ms ease, transform 400ms ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 600px) {
  .hero { padding: 20px 0 8px; }
  .lede { font-size: 16px; }
  .operator p { font-size: 13px; }
  .check-form { margin-top: 16px; padding: 18px; border-radius: 16px; }
  .verdict { flex-wrap: wrap; }
  .verdict .confidence { margin-left: 0; }
  .site-header .wrap { height: 56px; }
}
