:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #eef4ff;
  --ink: #101828;
  --muted: #667085;
  --line: #d9e2ee;
  --accent: #3157ff;
  --accent-2: #0f9f83;
  --accent-dark: #203ac2;
  --warning: #9a6700;
  --shadow: 0 22px 60px rgba(16, 24, 40, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

.container { width: min(1140px, calc(100% - 32px)); margin: 0 auto; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
}

.nav-links { display: none; gap: 18px; color: var(--muted); font-size: 0.94rem; }

.hero {
  padding: 48px 0 32px;
  display: grid;
  gap: 28px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 800;
  font-size: 0.86rem;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.35rem, 9vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: 0;
  margin: 12px 0 18px;
}

h2 {
  font-size: clamp(1.8rem, 5.4vw, 3rem);
  line-height: 1.12;
  letter-spacing: 0;
  margin: 0 0 14px;
}

h3 { line-height: 1.18; }

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 720px;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(16, 24, 40, 0.10); }
.button.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.button.primary:hover { background: var(--accent-dark); }
.button.green { background: var(--accent-2); color: #fff; border-color: var(--accent-2); }
.button.ghost { background: transparent; }
.button:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

.hero-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.metric { background: #f8fbff; border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.metric strong { display: block; font-size: 1.45rem; }
.metric span { color: var(--muted); font-size: 0.9rem; }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.78);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.section { padding: 44px 0; }
.section-copy { color: var(--muted); max-width: 780px; margin: 0 0 24px; }

.grid { display: grid; gap: 16px; }
.cards-3 { grid-template-columns: 1fr; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 12px 34px rgba(16, 24, 40, 0.05);
}

.card h3 { margin: 0 0 10px; }
.card p, .card li { color: var(--muted); }
.card ul { padding-left: 20px; margin-bottom: 0; }

.icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--accent);
  font-weight: 900;
  margin-bottom: 14px;
}

.quiz-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.progress {
  height: 10px;
  background: #e7ecf5;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 18px;
}

.progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 280ms ease;
}

.question-kicker { color: var(--muted); margin: 0 0 8px; }
.question-title { font-size: clamp(1.45rem, 4.5vw, 2.2rem); margin: 0 0 18px; }
.options { display: grid; gap: 12px; }

.option {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: #fbfdff;
  color: var(--ink);
  border-radius: 8px;
  padding: 15px 16px;
  font: inherit;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.option:hover, .option.selected {
  border-color: var(--accent);
  background: #eef3ff;
  transform: translateY(-1px);
}

.option small { display: block; color: var(--muted); margin-top: 4px; }
.controls { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.hidden { display: none !important; }

.result-hero {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fbff, #edf7f5);
}

.score-ring {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--accent) var(--score), #dfe7f2 0);
  margin: 0 auto;
}

.score-ring span {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  font-size: 1.7rem;
  font-weight: 900;
}

.result-stats { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 16px; }
.stat { border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: var(--surface); }
.stat strong { display: block; }
.stat span { color: var(--muted); font-size: 0.92rem; }

.tool-grid { display: grid; gap: 14px; margin-top: 18px; }
.tool-card { border: 1px solid var(--line); border-radius: 8px; padding: 16px; background: var(--surface); }
.tool-art { height: 88px; border-radius: 8px; background: linear-gradient(135deg, #eaf0ff, #dff8ef); margin-bottom: 14px; display: grid; place-items: center; color: var(--accent); font-weight: 900; font-size: 1.5rem; }

.cta-band {
  background: #101828;
  color: #fff;
  border-radius: 8px;
  padding: 24px;
  display: grid;
  gap: 18px;
}

.cta-band p { color: #cfd7e6; }
.email-form { display: grid; gap: 10px; }
.email-form input {
  min-height: 46px;
  border-radius: 8px;
  border: 1px solid #344054;
  padding: 12px;
  font: inherit;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}
.faq details + details { margin-top: 10px; }
.faq summary { cursor: pointer; font-weight: 800; }
.faq p { color: var(--muted); }

.article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}
.article p, .article li { color: var(--muted); }
.article-long {
  max-width: 860px;
  margin: 0 auto;
}
.article-long h1 {
  font-size: clamp(2.1rem, 7vw, 4.2rem);
}
.article-long h2 {
  font-size: clamp(1.45rem, 4vw, 2.2rem);
  margin-top: 34px;
}
.article-long h3 {
  margin-top: 24px;
}
.article-long a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-long .button {
  color: inherit;
  text-decoration: none;
}
.affiliate-note {
  border: 1px solid var(--line);
  background: #f8fbff;
  border-radius: 8px;
  padding: 12px;
  color: var(--muted);
}
.recommended-tools {
  margin: 28px 0;
}
.article-cta {
  margin-top: 34px;
  padding: 22px;
  border-radius: 8px;
  background: #101828;
  color: #fff;
}
.article-cta p {
  color: #cfd7e6;
}
.blog-grid {
  display: grid;
  gap: 16px;
}

footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  color: var(--muted);
}

.footer-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }

@media (min-width: 760px) {
  .nav-links { display: flex; }
  .hero { grid-template-columns: 1.08fr 0.92fr; padding: 78px 0 48px; }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .quiz-shell { padding: 30px; }
  .result-hero { grid-template-columns: 1fr auto; align-items: center; }
  .result-stats { grid-template-columns: repeat(3, 1fr); }
  .tool-grid { grid-template-columns: repeat(3, 1fr); }
  .cta-band { grid-template-columns: 1fr 0.9fr; align-items: center; }
  .email-form { grid-template-columns: 1fr auto; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1040px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
}
