:root {
  --bg: #ffffff;
  --ink: #1a1a2e;
  --muted: #5a5a6e;
  --accent: #4f46e5;
  --accent-dark: #3730a3;
  --soft: #f5f5fb;
  --border: #e4e4ee;
  --radius: 14px;
  --maxw: 820px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

header.site {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  z-index: 10;
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { font-weight: 700; font-size: 18px; text-decoration: none; color: var(--ink); }
.brand span { color: var(--accent); }
.nav a { text-decoration: none; color: var(--muted); margin-left: 18px; font-size: 15px; }
.nav a:hover { color: var(--accent); }

.hero { padding: 56px 0 32px; }
.hero h1 { font-size: 34px; line-height: 1.2; margin: 0 0 14px; letter-spacing: -0.02em; }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 0 0 24px; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 16px;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--accent-dark); }
.btn.secondary { background: var(--soft); color: var(--accent); }

main { padding: 8px 0 48px; }
h2 { font-size: 25px; margin: 40px 0 14px; letter-spacing: -0.01em; }
h3 { font-size: 20px; margin: 28px 0 10px; }
p { margin: 0 0 16px; }

.q {
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 18px 0;
}
.q .qlabel { font-weight: 700; color: var(--accent); font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.q .solution { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border); }
.q .solution .slabel { font-weight: 700; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.step { margin: 0 0 8px; }

.cta-band {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  border-radius: 18px;
  padding: 32px 28px;
  text-align: center;
  margin: 44px 0;
}
.cta-band h2 { color: #fff; margin: 0 0 10px; }
.cta-band p { color: rgba(255,255,255,0.9); margin: 0 0 20px; }
.cta-band .btn { background: #fff; color: var(--accent); }
.cta-band .btn:hover { background: #f0f0ff; }

ul.clean { padding-left: 22px; }
ul.clean li { margin-bottom: 8px; }

.examtable { width: 100%; border-collapse: collapse; margin: 18px 0; }
.examtable th, .examtable td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 15px; }
.examtable th { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }

.mistakes { padding-left: 22px; }
.mistakes li { margin-bottom: 10px; }
.mistakes li strong { color: var(--accent); }

.faq details {
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 10px 0;
}
.faq summary { font-weight: 600; cursor: pointer; }
.faq summary::marker { color: var(--accent); }
.faq details p { margin: 10px 0 0; color: var(--muted); }

.related { border-top: 1px solid var(--border); padding-top: 24px; margin-top: 40px; }
.related a { color: var(--accent); text-decoration: none; }
.related a:hover { text-decoration: underline; }

/* ── Lead magnet opt-in box ──────────────────────────────────────────── */
.leadmagnet {
  background: var(--soft);
  border: 1px solid var(--border-purple, var(--border));
  border-radius: 18px;
  padding: 28px 26px;
  margin: 40px 0;
  text-align: center;
}
.leadmagnet h3 { margin: 0 0 8px; font-size: 21px; }
.leadmagnet p { color: var(--muted); margin: 0 0 18px; }
.leadmagnet-form {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 520px; margin: 0 auto;
}
.leadmagnet-form input[type="email"],
.leadmagnet-form input[type="text"],
.leadmagnet-form select {
  flex: 1 1 200px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 15px;
  font-family: inherit;
}
.leadmagnet-form button {
  flex: 0 0 auto;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}
.leadmagnet-form button:hover { background: var(--accent-dark); }
.leadmagnet-note { font-size: 12px; color: var(--muted); margin: 12px 0 0; }

/* ── Lead magnet opt-in, compact banner (above the fold) ─────────────── */
.leadmagnet-compact {
  background: var(--soft);
  border: 1px solid var(--border-purple, var(--border));
  border-radius: 12px;
  padding: 16px 20px;
  margin: 28px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}
.leadmagnet-compact p { margin: 0; font-size: 14.5px; color: var(--ink); flex: 1 1 240px; }
.leadmagnet-compact p a { color: var(--accent); font-weight: 600; }
.leadmagnet-compact-form { display: flex; gap: 8px; flex: 0 1 380px; }
.leadmagnet-compact-form input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-family: inherit;
}
.leadmagnet-compact-form button {
  flex: 0 0 auto;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}
.leadmagnet-compact-form button:hover { background: var(--accent-dark); }

footer.site {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
footer.site a { color: var(--muted); }

@media (max-width: 600px) {
  .hero h1 { font-size: 28px; }
  body { font-size: 16px; }
}

/* ===== Footer sitemap navigation ===== */

.sitemap-links {
  max-width: var(--maxw);
  margin: 0 auto 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  line-height: 2;
  text-align: center;
}

.sitemap-links a {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.sitemap-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* The current page is shown as plain text, not a link */
.sitemap-links .current {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}




/* ── Breadcrumbs ─────────────────────────────────────────────────────── */
.crumbs {
  font-size: 13px;
  color: var(--muted);
  padding: 18px 0 0;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs span { color: var(--ink); }

/* ── Pricing plans ───────────────────────────────────────────────────── */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin: 8px 0 44px;
  align-items: start;
}
.plan {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px 24px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.plan.featured {
  border-color: var(--accent);
  background: var(--soft);
  box-shadow: 0 8px 28px -18px var(--accent);
}
.plan-tag {
  align-self: flex-start;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.plan-name { font-size: 17px; margin: 0; letter-spacing: 0.02em; }
.plan-price { margin: 2px 0 14px; display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.plan-price .amt { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.plan-price .per { font-size: 13px; color: var(--muted); }
.plan-list { list-style: none; padding: 0; margin: 0 0 16px; font-size: 14.5px; }
.plan-list li {
  padding: 6px 0 6px 20px;
  position: relative;
  border-bottom: 1px solid var(--border);
  line-height: 1.45;
}
.plan-list li:last-child { border-bottom: 0; }
.plan-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.plan-for { font-size: 13px; color: var(--muted); margin: auto 0 0; line-height: 1.5; }
.plan .btn { margin-top: auto; text-align: center; }

/* The plan comparison has five columns — let it scroll on its own on phones,
   without touching the prose-heavy exam-pattern tables elsewhere on the site. */
.examtable.compare { display: block; overflow-x: auto; white-space: nowrap; }
.examtable.compare td:first-child,
.examtable.compare th:first-child { white-space: normal; min-width: 185px; }
.examtable.compare th:not(:first-child),
.examtable.compare td:not(:first-child) { text-align: center; }
