/* detectaicheck.com: one question, one answer.
   White surfaces, near black text and one blue for the action, progress and
   focus. Geist sets the text, Geist Mono the codes (fonts/, SIL Open Font
   License). Loaded after /assets/aidetect.css: it redefines the variables of
   that sheet and quiets its decoration, so every page of the web app (shell,
   hero, drop zone, progress, result cards) keeps its markup and behaviour.
   Light and dark follow the data-bs-theme attribute the theme link sets.
   CSP: this file and the fonts are the only styles (no inline styles). */

@font-face {
  font-family: 'Geist';
  src: url('fonts/geist-v1-latin-wght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Mono';
  src: url('fonts/geistmono-v1-latin-wght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------- tokens */

:root,
[data-bs-theme="dark"] {
  color-scheme: dark;
  --bg: #121214;
  --bg2: #161618;
  --surface: #19191c;
  --surface2: #202024;
  --surface3: #2a2a2f;
  --line: #2a2a2f;
  --line2: #3c3c43;
  --ink: #ededf0;
  --ink2: #c8c8d0;
  --muted: #9a9aa4;
  --ai1: #7b96ff;
  --ai2: #5b78f2;
  --on-accent: #0b1020;
  --capture: #34d399;
  --capture1: #4ade80;
  --none: #9a9aa4;
  --none2: #6b6b74;
  --alert: #ff8a80;
  --warn: #fbbf24;
  --track: rgba(255, 255, 255, 0.08);
  --focus: #9db0ff;
  --glow-a: transparent;
  --glow-b: transparent;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 28px -12px rgba(0, 0, 0, 0.6);
  --radius: 14px;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}

[data-bs-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --bg2: #f8f8f9;
  --surface: #ffffff;
  --surface2: #f6f7f9;
  --surface3: #eceef2;
  --line: #e6e6ea;
  --line2: #d2d2d8;
  --ink: #18181b;
  --ink2: #3f3f46;
  --muted: #5f5f69;
  --ai1: #2f5bea;
  --ai2: #2549c9;
  --on-accent: #ffffff;
  --capture: #15803d;
  --capture1: #15803d;
  --none: #6b6b74;
  --none2: #52525b;
  --alert: #c0261b;
  --warn: #b45309;
  --track: rgba(24, 24, 27, 0.07);
  --focus: #2f5bea;
  --glow-a: transparent;
  --glow-b: transparent;
  --shadow-sm: 0 1px 2px rgba(24, 24, 27, 0.05);
  --shadow: 0 1px 2px rgba(24, 24, 27, 0.04), 0 8px 24px -10px rgba(24, 24, 27, 0.1);
}

/* --------------------------------------------------------------- base */

body.aid {
  background-image: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.aid h1,
.aid h2,
.aid h3 {
  font-weight: 650;
  letter-spacing: -0.02em;
}

.aid :focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.aid ::selection {
  background: color-mix(in srgb, var(--ai1) 24%, transparent);
}

.aid-wrap {
  max-width: 1080px;
}

/* ------------------------------------------------------- header, footer */

.aid-top {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

.aid-logo {
  background: url('favicon.svg') center / contain no-repeat !important;
  -webkit-mask: none !important;
  mask: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  width: 28px;
  height: 28px;
}

.aid-logo-sm {
  width: 20px;
  height: 20px;
}

.aid-brand {
  font-size: 18px;
}

.aid-brand-name {
  font-weight: 650;
  letter-spacing: -0.02em;
}

.aid-nav-link {
  font-weight: 500;
  font-size: 14.5px;
}

.aid-nav-link.is-active {
  box-shadow: inset 0 -2px 0 var(--ai1);
}

.aid-theme {
  border-radius: 10px;
}

.aid-foot {
  background: var(--bg2);
}

/* ---------------------------------------------------------------- hero */

.aid-bands,
.aid-bands-sm,
.aid-hero::after,
.aid-look::after {
  display: none !important;
}

.aid-hero {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0;
  padding: 56px 0 28px;
  margin-bottom: 12px;
}

.aid-display {
  font-weight: 700 !important;
  letter-spacing: -0.04em !important;
}

.aid-grad {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: var(--ai1);
}

.aid-lead {
  color: var(--ink2);
}

.aid-spectrum li {
  background: var(--surface2);
  border-color: var(--line);
}

.aid-dot-sm {
  box-shadow: none;
}

/* ------------------------------------------------------- buttons, chips */

.aid-btn {
  border-radius: 10px;
  font-weight: 550;
}

.aid-btn-primary {
  color: var(--on-accent);
  background: var(--ai1);
  box-shadow: none;
}

.aid-btn-primary:hover {
  background: var(--ai2);
  box-shadow: none;
}

.aid-chip-glow {
  background: color-mix(in srgb, var(--ai1) 10%, var(--surface));
  border-color: color-mix(in srgb, var(--ai1) 35%, transparent);
}

.aid-code,
.aid-type {
  font-family: var(--mono);
}

/* ---------------------------------------------- the form and drop zone */

.aid-panel {
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.aid-tabs {
  background: var(--surface2);
  border: 1px solid var(--line);
}

.aid-tabs .nav-link {
  font-weight: 550;
}

.aid-tabs .nav-link.active {
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.aid-drop {
  border: 1.5px dashed var(--line2);
  border-radius: 14px;
  background: var(--surface2);
}

.aid-drop:hover,
.aid-drop:focus-within {
  border-color: var(--ai1);
  background: color-mix(in srgb, var(--ai1) 5%, var(--surface));
  box-shadow: none;
}

.aid-drop-art {
  background: var(--ai1);
  color: var(--on-accent);
  box-shadow: none;
  border-radius: 14px;
}

.aid-drop-title {
  font-weight: 650;
}

.aid-textarea {
  border-radius: 12px;
}

.aid-textarea:focus {
  border-color: var(--ai1);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ai1) 20%, transparent);
}

/* ------------------------------------------------ cards and the results */

.aid-card,
.aid-look,
.aid-media-card,
.aid-progress {
  border-radius: var(--radius);
}

.aid-look::before {
  height: 2px;
}

.aid-look-art {
  border-radius: 12px;
}

.aid-pulse,
.aid-pulse::after {
  box-shadow: none;
}

.aid-verdict {
  border-radius: var(--radius);
}

.aid-finding,
.aid-layer,
.aid-reason,
.aid-banner {
  border-radius: 12px;
}

@media (max-width: 640px) {
  .aid-hero {
    padding: 32px 0 16px;
  }
}

/* ------------------------------------------- account forms and notices */

.dac-page {
  max-width: 440px;
  margin: 40px auto 56px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.dac-page.dac-wide {
  max-width: 720px;
}

.dac-title {
  font-size: 26px;
  margin: 0 0 8px;
}

.dac-lead,
.dac-hint {
  color: var(--muted);
}

.dac-lead {
  margin: 0 0 20px;
}

.dac-form {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}

.dac-field {
  display: grid;
  gap: 6px;
}

.dac-label {
  font-weight: 550;
  font-size: 14.5px;
  color: var(--ink);
}

.dac-input {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: var(--surface2);
  border: 1px solid var(--line2);
  border-radius: 10px;
}

.dac-input:focus {
  outline: none;
  border-color: var(--ai1);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ai1) 20%, transparent);
}

.dac-hint {
  font-size: 13.5px;
  margin: 0;
}

.dac-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14.5px;
}

.dac-check input {
  margin-top: 3px;
  accent-color: var(--ai1);
}

.dac-error,
.dac-notice {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14.5px;
}

.dac-error {
  color: var(--alert);
  background: color-mix(in srgb, var(--alert) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--alert) 35%, transparent);
}

.dac-notice {
  color: var(--ink2);
  background: color-mix(in srgb, var(--ai1) 8%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--ai1) 30%, transparent);
}

.dac-submit {
  width: 100%;
  justify-content: center;
}

.dac-secondary {
  color: var(--ink);
  background: var(--surface2);
  border: 1px solid var(--line2);
}

.dac-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 20px 0 0;
  font-size: 14.5px;
}

.dac-links a,
.dac-check a {
  color: var(--ai1);
}

.dac-section {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.dac-section-title {
  font-size: 18px;
  margin: 0 0 12px;
}

.dac-facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 20px;
  margin: 0 0 12px;
}

.dac-facts dt {
  color: var(--muted);
  font-weight: 500;
}

.dac-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.dac-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

@media (max-width: 640px) {
  .dac-page {
    margin: 20px auto 32px;
    padding: 20px;
  }
}
