/* ─── SAQ FINDER — PCI CLARITY BRANDED ───────────────
   Inherits CSS variables from styles.css (loaded first).
   Tool-specific styles only here.
   ──────────────────────────────────────────────────── */

/* ─── PAGE HEADER ─────────────────────────────────── */

.saq-page-header {
  background: var(--navy);
  padding: 8rem 2rem 4rem;
  text-align: center;
}

.saq-page-header .page-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.saq-page-header h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.saq-page-header h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.saq-page-header p {
  font-size: 1.0625rem;
  color: rgba(250,250,248,0.65);
  font-weight: 300;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ─── TOOL SHELL ──────────────────────────────────── */

.saq-tool-section {
  background: var(--off-white);
  padding: 3rem 2rem 5rem;
}

.saq {
  max-width: 680px;
  margin: 0 auto;
}

/* ─── PROGRESS RAIL ───────────────────────────────── */

.saq__rail {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.5rem;
}

.saq__step {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.saq__track {
  flex: 1;
  height: 3px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.saq__fill {
  height: 100%;
  width: 0%;
  background: var(--gold);
  border-radius: 99px;
  transition: width 0.45s cubic-bezier(.4,0,.2,1);
}

/* ─── QUESTION CARD ───────────────────────────────── */

.saq__card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem 2.25rem;
  box-shadow: 0 1px 2px rgba(11,31,58,0.04), 0 8px 24px rgba(11,31,58,0.06);
}

.saq__eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.75rem;
}

.saq__q {
  font-family: var(--serif);
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0 0 0.5rem;
}

.saq__hint {
  color: var(--text-mid);
  font-size: 0.9375rem;
  font-weight: 300;
  margin: 0 0 1.5rem;
  line-height: 1.7;
}

/* ─── OPTIONS ─────────────────────────────────────── */

.saq__options {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.opt {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  width: 100%;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.875rem 1rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
}

.opt:hover {
  border-color: var(--gold);
  background: var(--gold-pale);
}

.opt:active { transform: translateY(1px); }

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

.opt__key {
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--off-white);
  transition: border-color 0.15s, color 0.15s;
}

.opt:hover .opt__key {
  border-color: var(--gold);
  color: var(--navy);
  background: var(--white);
}

.opt__label {
  flex: 1;
  font-weight: 500;
  color: var(--text-dark);
}

.opt__sub {
  display: block;
  font-weight: 300;
  font-size: 0.8125rem;
  color: var(--text-mid);
  margin-top: 2px;
}

/* ─── BACK BUTTON ─────────────────────────────────── */

.saq__back {
  margin-top: 1.25rem;
  background: none;
  border: none;
  padding: 6px 0;
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
}

.saq__back:hover { color: var(--navy); }
.saq__back[hidden] { display: none; }

/* ─── RESULT CARD ─────────────────────────────────── */

.result__verdict-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.result__verdict {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 0.375rem;
}

.result__verdict .saqcode {
  color: var(--gold);
  font-style: italic;
}

.result__confidence {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0.5rem 0 1.5rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--gold);
}

.dot--med { background: var(--text-muted); }

.result__summary {
  font-size: 1rem;
  color: var(--text-mid);
  font-weight: 300;
  line-height: 1.8;
  margin: 0 0 1.5rem;
}

/* ─── FLAGS / CONFIRM BOX ─────────────────────────── */

.flags {
  background: var(--gold-pale);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin: 0 0 1.5rem;
}

.flags__title {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 0.75rem;
}

.flags ul {
  margin: 0;
  padding-left: 1.25rem;
}

.flags li {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--text-dark);
  line-height: 1.7;
}

.flags li:last-child { margin-bottom: 0; }

/* ─── PRIMARY CTA ─────────────────────────────────── */

.cta {
  display: block;
  width: 100%;
  text-align: center;
  border-radius: 4px;
  padding: 1rem 1.25rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.9375rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.12s;
}

.cta--primary {
  background: var(--gold);
  color: var(--navy);
  border: none;
}

.cta--primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.cta--primary:active { transform: translateY(1px); }
.cta--primary:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

.cta__sub {
  display: block;
  font-weight: 300;
  font-size: 0.8125rem;
  margin-top: 3px;
  opacity: 0.8;
}

/* ─── SECONDARY / EMAIL CAPTURE ───────────────────── */

.result__secondary { margin-top: 1rem; }

.linkbtn {
  background: none;
  border: none;
  padding: 6px 0;
  font-family: var(--sans);
  font-size: 0.9375rem;
  color: var(--navy);
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.linkbtn:hover { color: var(--gold); }

.capture {
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.capture[hidden] { display: none; }

.capture__label {
  font-size: 0.9375rem;
  color: var(--text-mid);
  font-weight: 300;
  margin: 0 0 0.75rem;
}

.capture__row {
  display: flex;
  gap: 0.5rem;
}

.capture input[type="email"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 0.9375rem;
  color: var(--text-dark);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
}

.capture input[type="email"]:focus {
  border-color: var(--gold);
  outline: 2px solid rgba(201,168,76,0.25);
  outline-offset: 1px;
}

.capture__send {
  flex: none;
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
  border: none;
  background: var(--navy);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.capture__send:hover { background: var(--navy-light); }

.capture__done {
  font-size: 0.9rem;
  color: var(--navy);
  font-weight: 500;
  margin: 0.5rem 0 0;
}

/* ─── TRUST NOTE ──────────────────────────────────── */

.trust {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.trust strong {
  color: var(--text-mid);
  font-weight: 500;
}

/* ─── RESTART ─────────────────────────────────────── */

.restart {
  text-align: center;
  margin-top: 1.25rem;
}

/* ─── FADE ANIMATION ──────────────────────────────── */

.fade { animation: saqFade 0.28s ease both; }

@keyframes saqFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .fade { animation: none; }
  .saq__fill { transition: none; }
}

/* ─── SEO CONTENT SECTION ─────────────────────────── */

.seo-section {
  background: var(--white);
  padding: 5rem 2rem 6rem;
}

.seo {
  max-width: 780px;
  margin: 0 auto;
  color: var(--text-mid);
}

.seo h2 {
  font-family: var(--serif);
  font-size: 1.625rem;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin: 2.5rem 0 0.875rem;
  line-height: 1.3;
}

.seo h2:first-child { margin-top: 0; }

.seo h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--navy);
  margin: 1.75rem 0 0.5rem;
  line-height: 1.3;
}

.seo p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.85;
  margin: 0 0 1rem;
}

.seo .lede {
  font-size: 1.0625rem;
  color: var(--text-dark);
  font-weight: 400;
}

/* ─── RESPONSIVE ──────────────────────────────────── */

@media (max-width: 600px) {
  .saq-page-header { padding: 6rem 1.25rem 3rem; }
  .saq-tool-section { padding: 2rem 1.25rem 4rem; }
  .saq__card { padding: 1.5rem; }
  .saq__q { font-size: 1.25rem; }
  .result__verdict { font-size: 1.375rem; }
  .capture__row { flex-direction: column; }
  .capture__send { width: 100%; }
  .seo-section { padding: 3rem 1.25rem 4rem; }
}
