/* ============================================================
   Page 1 — Hook + Quiz styles
   ============================================================ */

.quiz-page { background: var(--bg-soft); }

/* ---------- Brand ---------- */
.q-brand { display: flex; align-items: center; gap: 14px; padding: 22px 0 8px; }
.q-logo {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.2rem; letter-spacing: .03em; color: #fff;
  display: inline-flex; align-items: center;
}
.q-logo span { font-weight: 500; font-size: .78em; letter-spacing: .14em; margin-left: 5px; opacity: .85; }
.q-logo.small { color: var(--ink); }
.q-brand-tag { font-size: .82rem; font-weight: 600; color: #9fb4cd; letter-spacing: .01em; }

/* ---------- Hero ---------- */
.q-hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(29,70,113,.55), transparent 60%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: #cdd9e7;
  padding-bottom: 140px;
  overflow: hidden;
}
.q-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .5; pointer-events: none;
}
.q-hero-inner { position: relative; padding-top: 26px; }
.q-hero .eyebrow { background: rgba(255,255,255,.08); color: #bcd2ec; }
.q-hero h1 { color: #fff; margin: 18px 0 16px; }
.q-hero h1 .hl { color: var(--action); }
.q-sub { font-size: clamp(1.02rem, 2.6vw, 1.22rem); color: #b6c6da; max-width: 560px; margin: 0 auto 28px; }
/* keep emphasized words readable on the dark hero (default strong color is near-black) */
.q-hero strong { color: #fff; font-weight: 700; }
.q-hero-cta { margin-bottom: 12px; }
.q-hero-microcopy { font-size: .9rem; color: #9fb4cd; margin: 0 auto 24px; max-width: 420px; }
.q-hero-trust { gap: 8px 20px; }
.q-hero-trust .trust-item { color: #aebfd4; }
.q-hero-fade {
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 230px; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(246,248,251,0) 0%,
    rgba(246,248,251,0.06) 24%,
    rgba(246,248,251,0.18) 42%,
    rgba(246,248,251,0.38) 58%,
    rgba(246,248,251,0.62) 72%,
    rgba(246,248,251,0.84) 85%,
    rgba(246,248,251,0.96) 94%,
    var(--bg-soft) 100%);
}

/* ---------- Quiz main ---------- */
.q-main { padding: 36px 0 60px; min-height: 60vh; }

/* progress */
.q-progress { margin-bottom: 26px; }
.q-progress-meta { display: flex; justify-content: space-between; font-size: .82rem; font-weight: 700; color: var(--muted); margin-bottom: 8px; letter-spacing: .01em; }
.q-progress-meta #qPercent { color: var(--action); }
.q-progress-track { height: 8px; background: var(--navy-100); border-radius: 99px; overflow: hidden; }
.q-progress-bar { height: 100%; width: 20%; background: var(--accent-gradient); border-radius: 99px; transition: width .5s var(--ease); }

/* question */
.q-stage { position: relative; }
.q-block { animation: qIn .42s var(--ease); }
@keyframes qIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.q-question { text-align: center; margin-bottom: 22px; }
.q-question h2 { font-size: clamp(1.4rem, 4.6vw, 2rem); }
.q-question p { color: var(--muted); margin-top: 6px; font-size: .98rem; }

/* tiles — 2 columns x 2 rows */
.q-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.q-tile {
  position: relative;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 16px 20px;
  cursor: pointer;
  text-align: center;
  transition: transform .16s var(--ease), border-color .16s var(--ease), box-shadow .16s var(--ease), background .16s var(--ease);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  min-height: 150px; justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.q-tile:hover { transform: translateY(-3px); border-color: var(--navy-600); box-shadow: var(--shadow); }
.q-tile:active { transform: translateY(0) scale(.99); }
.q-tile.selected {
  border-color: var(--accent);
  background: var(--action-soft);
  box-shadow: 0 10px 26px rgba(34,68,255,.18);
}
.q-tile-ico {
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--navy-100); color: var(--navy-700);
  transition: background .16s var(--ease), color .16s var(--ease);
}
.q-tile-ico svg { width: 30px; height: 30px; }
.q-tile.selected .q-tile-ico { background: var(--action); color: #fff; }
.q-tile-label { font-weight: 700; color: var(--ink); font-size: 1.02rem; line-height: 1.25; }
.q-tile-sub { font-size: .8rem; color: var(--muted); font-weight: 500; line-height: 1.3; margin-top: -4px; }

/* check mark on selected */
.q-tile-check {
  position: absolute; top: 10px; right: 10px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--action); color: #fff;
  display: grid; place-items: center;
  opacity: 0; transform: scale(.5); transition: all .18s var(--ease);
}
.q-tile-check svg { width: 13px; height: 13px; }
.q-tile.selected .q-tile-check { opacity: 1; transform: scale(1); }

/* back button */
.q-back {
  margin: 22px auto 0; display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-weight: 700; font-family: var(--ff); font-size: .92rem;
  padding: 8px 12px; border-radius: 99px;
}
.q-back svg { width: 17px; height: 17px; }
.q-back[hidden] { display: none; }
.q-back:hover { color: var(--navy-700); }
.q-main .wrap { display: flex; flex-direction: column; }
.q-back { align-self: center; }

/* finish / handoff */
.q-finish { text-align: center; padding: 60px 0; }
.q-finish-spinner {
  width: 54px; height: 54px; margin: 0 auto 24px;
  border: 5px solid var(--navy-100); border-top-color: var(--action);
  border-radius: 50%; animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.q-finish h2 { margin-bottom: 8px; }
.q-finish p { color: var(--muted); }

/* footer */
.q-foot { background: var(--white); border-top: 1px solid var(--line); padding: 18px 0; text-align: center; }
.q-foot p { color: var(--muted); font-size: .9rem; max-width: 440px; margin: 8px auto 0; }
.q-foot-fine { font-size: .78rem !important; margin-top: 8px !important; color: var(--muted); }

/* ---------- Desktop ---------- */
@media (min-width: 760px) {
  .q-main { padding-top: 48px; }
  .q-tiles { gap: 18px; }
  .q-tile { min-height: 168px; padding: 28px 20px; }
  .q-tile-ico { width: 62px; height: 62px; }
  .q-tile-ico svg { width: 33px; height: 33px; }
}

/* ===== Lead-readiness score (revealed after the quiz) ===== */
.q-result { animation: qResultIn .5s var(--ease) both; }
@keyframes qResultIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.o-score { display: grid; gap: 24px; align-items: center; }
.o-score-ring { position: relative; width: 180px; height: 180px; margin: 0 auto; flex: none; }
.o-score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.o-score-track { fill: none; stroke: var(--line); stroke-width: 10; }
.o-score-arc {
  fill: none; stroke: var(--accent); stroke-width: 10; stroke-linecap: round;
  stroke-dasharray: 326.7; stroke-dashoffset: 326.7;
  transition: stroke-dashoffset 1.3s var(--ease), stroke .6s var(--ease);
}
.o-score-readout {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
  font-family: var(--font-display); font-weight: 700; color: var(--ink); line-height: 1;
}
.o-score-readout span { font-size: 3rem; line-height: 1; }
.o-score-readout i { font-size: .95rem; color: var(--muted); font-style: normal; font-weight: 600; }
.o-score-verdict { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--ink); margin-bottom: 6px; }
.o-score-sub { color: var(--muted); font-size: .98rem; margin-bottom: 16px; }
.o-score-issues { list-style: none; display: grid; gap: 10px; margin-bottom: 22px; }
.o-score-issues li { position: relative; padding-left: 30px; color: var(--ink); font-weight: 500; font-size: 1rem; }
.o-score-issues li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 21px; height: 21px; border-radius: 50%;
  background: #fdeaea url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e23b3b' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") center/12px no-repeat;
}
.o-score-cta { width: 100%; }
@media (min-width: 760px) {
  .o-score { grid-template-columns: auto 1fr; gap: 44px; }
  .o-score-cta { width: auto; }
}

/* Full-width "my site is solid" option (keeps the 2x2 grid balanced) */
.q-tile.q-tile-wide { grid-column: 1 / -1; min-height: auto; padding: 16px; }

/* When the score is strong, the list items are opportunities, not problems */
.o-score-issues.is-good li::before {
  background: #e7f6ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300aaff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7'/%3E%3Cpath d='M9 7h8v8'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* Guarantee highlight in the hero headline — red with a white shine */
.q-hero h1 .hl-guarantee {
  background: linear-gradient(110deg, #ff3b3b 18%, #ffe3e3 48%, #ffffff 52%, #ffe3e3 56%, #ff3b3b 82%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  white-space: nowrap;
  animation: hlGuaranteeShine 3.4s linear infinite;
}
@keyframes hlGuaranteeShine { to { background-position: -220% center; } }
@media (prefers-reduced-motion: reduce) {
  .q-hero h1 .hl-guarantee { animation: none; }
}
