/* AI Tried It — AI Tool Finder quiz styles
   Dark minimalist theme. No external dependencies, system fonts. */

:root {
  --blue: #6aa6ff;
  --blue-dark: #8ab8ff;
  --blue-ink: #06121f;
  --blue-light: rgba(106, 166, 255, 0.1);
  --ink: #eaeff6;
  --muted: #a3b1c6;
  --faint: #6e7d94;
  --bg: #0a0d12;
  --card: #10151d;
  --border: rgba(235, 242, 252, 0.09);
  --green: #4ade80;
  --green-soft: rgba(74, 222, 128, 0.1);
  --warn: #e8b34b;
  --warn-soft: rgba(232, 179, 75, 0.1);
  --red: #f87171;
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

::selection { background: var(--blue); color: var(--blue-ink); }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ---------- header ---------- */
.site-header {
  background: rgba(10, 13, 18, 0.85);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  padding: 14px 20px;
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--blue), #3b6fd4);
  color: var(--blue-ink);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px;
}
.brand { font-weight: 700; font-size: 17px; text-decoration: none; color: var(--ink); }
.brand small { display: block; font-weight: 400; font-size: 11.5px; color: var(--muted); }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(640px 300px at 50% -60px, rgba(106, 166, 255, 0.14), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  padding: 52px 20px 64px;
  text-align: center;
}
.hero h1 { margin: 0 0 10px; font-size: 30px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 750; }
.hero p { margin: 0 auto 24px; max-width: 520px; color: var(--muted); font-size: 16px; }
.hero-stats { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero-stats span {
  font-size: 13px; color: var(--muted);
  background: var(--card); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 999px;
}

/* ---------- quiz shell ---------- */
.quiz-wrap {
  max-width: 680px;
  margin: -30px auto 0;
  padding: 0 16px 60px;
  position: relative;
  z-index: 1;
}
.quiz-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  min-height: 380px;
}

/* ---------- progress ---------- */
.progress { margin-bottom: 22px; }
.progress-track {
  height: 8px; background: rgba(235, 242, 252, 0.08); border-radius: 999px; overflow: hidden;
}
#progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #3b6fd4, var(--blue));
  border-radius: 999px;
  transition: width .35s ease;
}
#progress-label { font-size: 12.5px; color: var(--muted); margin: 7px 0 0; }

/* ---------- question ---------- */
.q-card h2 { margin: 0 0 18px; font-size: 22px; letter-spacing: -0.01em; }
.options { display: grid; gap: 10px; }
.option {
  font-family: inherit;
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .05s;
  width: 100%;
  color: var(--ink);
}
.option:hover { border-color: rgba(106, 166, 255, 0.5); background: var(--blue-light); }
.option:active { transform: scale(.99); }
.option:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.option-label { display: block; font-weight: 700; font-size: 15.5px; }
.option-desc { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.q-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; }
.q-hint { font-size: 12.5px; color: var(--muted); margin: 0; }

/* ---------- buttons ---------- */
.btn {
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 750;
  border-radius: 12px;
  padding: 12px 20px;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn.primary { background: var(--blue); color: var(--blue-ink); }
.btn.primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn.secondary { background: var(--blue-light); color: var(--blue-dark); }
.btn.secondary:hover { background: rgba(106, 166, 255, 0.18); }
.btn.ghost { background: transparent; color: var(--muted); border-color: var(--border); }
.btn.ghost:hover { color: var(--ink); border-color: var(--muted); }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- email gate ---------- */
.muted { color: var(--muted); }
.small { font-size: 13px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field input {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
}
.field input::placeholder { color: var(--faint); }
.field input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(106, 166, 255, 0.22); }
.privacy {
  font-size: 13px; color: var(--muted);
  background: var(--blue-light);
  border-radius: 10px; padding: 10px 12px;
}
.form-error { color: var(--red); font-size: 14px; font-weight: 600; }

/* ---------- results ---------- */
.results-kicker { font-size: 16px; font-weight: 600; }
.profile-card {
  background: linear-gradient(160deg, #131b28, #1a2436);
  border: 1px solid rgba(106, 166, 255, 0.25);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 26px;
}
.profile-eyebrow {
  text-transform: uppercase; letter-spacing: .1em;
  font-size: 11.5px; color: var(--blue); margin: 0 0 6px; font-weight: 800;
}
.profile-card h2 { margin: 0 0 8px; font-size: 26px; }
.profile-meta { font-size: 13.5px; color: var(--muted); margin: 0 0 10px; }
.profile-card p { margin: 0 0 8px; }
.profile-card .muted { color: var(--muted); }

.recs-title { font-size: 19px; margin: 0 0 14px; }
.tool-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  background: var(--bg);
  transition: border-color .18s ease, transform .18s ease;
}
.tool-card:hover { border-color: rgba(106, 166, 255, 0.35); transform: translateY(-2px); }
.tool-card h4 { margin: 4px 0 8px; font-size: 19px; }
.tool-category {
  display: inline-block;
  font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--blue); background: var(--blue-light);
  padding: 4px 10px; border-radius: 999px; margin: 0;
}
.tool-tagline { font-size: 15px; margin: 0 0 10px; }
.budget-badge {
  display: inline-block;
  font-size: 12.5px; font-weight: 700; color: var(--green);
  background: var(--green-soft); padding: 5px 11px; border-radius: 999px; margin: 0 0 10px;
}
.tool-card p { margin: 0 0 8px; font-size: 14.5px; color: var(--muted); }
.catch {
  background: var(--warn-soft); border-left: 3px solid var(--warn);
  padding: 10px 12px; border-radius: 0 8px 8px 0; color: var(--ink);
}
.price { color: var(--muted); font-size: 13.5px; }
.try-btn { margin-top: 8px; width: 100%; }
.try-btn.clicked { opacity: .85; }

.notice {
  background: var(--warn-soft); border: 1px dashed rgba(232, 179, 75, 0.4);
  border-radius: var(--radius); padding: 14px 16px;
  font-size: 13.5px; margin: 20px 0; color: var(--ink);
}
.results-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.copied { color: var(--green); font-weight: 700; font-size: 14px; }
.disclosure { font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 14px; margin-top: 22px; }
.method { margin-top: 10px; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer {
  background: #070a0f; color: var(--muted);
  border-top: 1px solid var(--border);
  padding: 26px 20px 40px; font-size: 13px;
}
.footer-inner { max-width: 720px; margin: 0 auto; }
.site-footer a { color: #cfdaea; }
.site-footer p { margin: 0 0 8px; }

/* ---------- larger screens ---------- */
@media (min-width: 640px) {
  .hero h1 { font-size: 38px; }
  .quiz-card { padding: 34px 36px; }
  .options { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  #progress-fill, .option, .btn, .tool-card { transition: none; }
}
