/* Confident Horse Buyer Quiz — layered on top of styles.css (shares tokens) */

body { min-height: 100dvh; background: var(--paper); }

/* Top bar with logo + progress */
.quiz-top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,250,243,0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.quiz-top__inner { display: flex; align-items: center; gap: 20px; min-height: 70px; }
.quiz-progress { flex: 1; height: 8px; background: var(--paper-3); border-radius: 999px; overflow: hidden; }
.quiz-progress span { display: block; height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--pink)); transition: width 0.4s var(--ease); }

/* Layout */
.quiz { display: flex; align-items: center; justify-content: center; min-height: calc(100dvh - 71px); padding: 40px 24px 64px; position: relative; overflow: hidden; }
.quiz .wc { z-index: 0; }
#quiz-root { width: 100%; max-width: 880px; position: relative; z-index: 1; }

/* Cards / screens */
.q-card { text-align: center; max-width: 640px; margin: 0 auto; }
.q-card--result { max-width: 100%; }
.q-eyebrow { display: inline-block; font-family: var(--font-body); font-weight: 800; font-size: 0.74rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.q-title { font-family: var(--font-display); font-weight: 900; color: var(--ink);
  font-size: clamp(1.9rem, 5vw, 2.9rem); line-height: 1.08; letter-spacing: -0.02em; }
.q-lead { max-width: 34rem; margin: 18px auto 26px; color: var(--ink-soft); font-size: 1.06rem; line-height: 1.6; }
.q-lead em { color: var(--pink); font-style: italic; }
.q-note { margin-top: 16px; font-family: var(--font-script); font-size: 1.2rem; color: var(--teal-dark); }

/* Question screen */
.q-step { font-family: var(--font-body); font-weight: 700; font-size: 0.76rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
.q-question { font-family: var(--font-display); font-weight: 800; color: var(--ink);
  font-size: clamp(1.5rem, 3.6vw, 2.15rem); line-height: 1.14; margin-bottom: 26px; }
.q-options { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.q-option {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: #fff; border: 2px solid var(--line); border-radius: 14px;
  padding: 17px 20px; font-family: var(--font-body); font-size: 1.02rem; font-weight: 500; color: var(--ink);
  cursor: pointer; transition: border-color 0.18s var(--ease), background 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.q-option svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--pink); stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: translateX(-6px); transition: opacity 0.18s, transform 0.18s; }
.q-option:hover { border-color: var(--teal); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.q-option:hover svg { opacity: 1; transform: none; }
.q-option.is-picked { border-color: var(--pink); background: var(--pink-wash); }
.q-option.is-picked svg { opacity: 1; transform: none; }

.q-back { margin-top: 24px; background: none; border: 0; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 0.9rem; color: var(--muted); }
.q-back:hover { color: var(--pink); }

/* Email gate */
.q-field { display: flex; gap: 10px; max-width: 30rem; margin: 6px auto 0; }
.q-field input { flex: 1; min-width: 0; border: 2px solid var(--line); border-radius: 999px;
  padding: 14px 20px; font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: #fff; outline: none; }
.q-field input:focus { border-color: var(--teal); }
.q-field .btn { white-space: nowrap; }
.q-error { min-height: 1.2em; margin-top: 10px; color: var(--pink-dark); font-size: 0.86rem; font-weight: 600; }

/* Result */
.q-card--result { background: #fff; border-radius: 22px; padding: 44px 40px; box-shadow: var(--shadow-md); border: 1px solid var(--line); text-align: center; }
.q-result-kicker { font-family: var(--font-script); font-size: 1.5rem; color: var(--teal-dark); }
.q-result-name { font-family: var(--font-display); font-weight: 900; color: var(--ink);
  font-size: clamp(1.9rem, 4.6vw, 2.8rem); line-height: 1.05; letter-spacing: -0.02em; margin-top: 4px; }
.q-prioritize { max-width: 40rem; margin: 16px auto 28px; color: var(--ink-soft); font-size: 1.08rem; line-height: 1.6; }

/* Look-for vs red-flag columns */
.q-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; text-align: left; margin-bottom: 26px; }
.q-col { border-radius: 14px; padding: 20px 22px; }
.q-col--look { background: var(--teal-wash); }
.q-col--avoid { background: var(--pink-wash); }
.q-col h3 { font-family: var(--font-body); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.q-col--look h3 { color: var(--teal-dark); }
.q-col--avoid h3 { color: var(--coral-dark); }
.q-col ul { display: flex; flex-direction: column; gap: 11px; }
.q-col li { font-size: 0.92rem; line-height: 1.4; color: var(--ink); }
.q-col--look li { display: flex; align-items: flex-start; gap: 9px; }
.q-col--look svg { width: 17px; height: 17px; margin-top: 2px; flex: none; fill: none; stroke: var(--teal);
  stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.q-col--avoid li { position: relative; padding-left: 22px; color: var(--ink-soft); }
.q-col--avoid li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 9px; height: 9px;
  border-radius: 3px; background: var(--coral); }

.q-why { max-width: 42rem; margin: 0 auto; color: var(--body); font-size: 0.98rem; line-height: 1.6; }
.q-why strong { color: var(--ink); }

/* ---------- Two offer cards below the result ---------- */
.q-offers-lead { text-align: center; margin: 30px 0 18px; font-family: var(--font-display);
  font-weight: 600; font-size: 1.15rem; color: var(--ink); }
.q-offers-lead em { color: var(--pink); font-style: italic; }

.q-offers { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; text-align: left; }
.q-offer { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: 18px; padding: 26px 24px 24px; box-shadow: var(--shadow-sm); }
.q-offer--paid { border-top: 4px solid var(--pink); }
.q-offer--horses { border-top: 4px solid var(--teal); }

.q-offer__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.q-offer__top svg { width: 30px; height: 30px; flex: none; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.q-offer--paid .q-offer__top svg { stroke: var(--pink); }
.q-offer--horses .q-offer__top svg { stroke: var(--teal); }

.q-offer__badge { font-family: var(--font-body); font-weight: 800; font-size: 0.64rem;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px;
  background: var(--pink-wash); color: var(--pink-dark); white-space: nowrap; }
.q-offer__badge--teal { background: var(--teal-wash); color: var(--teal-dark); }

.q-offer__title { font-family: var(--font-display); font-weight: 800; color: var(--ink);
  font-size: 1.24rem; line-height: 1.2; letter-spacing: -0.01em; }
.q-offer__pitch { font-family: var(--font-body); font-weight: 800; font-size: 1rem;
  color: var(--coral); margin: 10px 0 8px; line-height: 1.35; }
.q-offer--horses .q-offer__pitch { color: var(--teal-dark); }
.q-offer__copy { font-size: 0.93rem; line-height: 1.55; color: var(--ink-soft); margin-bottom: 15px; }
.q-offer__copy em { font-style: italic; color: var(--ink); }

.q-offer__list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.q-offer__list li { position: relative; padding-left: 20px; font-size: 0.88rem; line-height: 1.4; color: var(--body); }
.q-offer__list li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--gold); }

.q-offer .btn { margin-top: auto; width: 100%; justify-content: center; }
.q-offer__link { display: block; text-align: center; margin-top: 11px; font-family: var(--font-body);
  font-weight: 600; font-size: 0.84rem; color: var(--muted); }
.q-offer__link:hover { color: var(--pink); }

/* Enter animation */
.q-enter { opacity: 0; transform: translateY(16px); }
.q-enter-active { opacity: 1; transform: none; transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  .q-enter, .q-enter-active { opacity: 1; transform: none; transition: none; }
}

.q-result-wrap > .q-back { display: block; margin: 26px auto 0; }

@media (max-width: 720px) {
  .q-offers { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .q-field { flex-direction: column; }
  .q-field .btn { justify-content: center; }
  .q-card--result { padding: 30px 20px; }
  .q-cols { grid-template-columns: 1fr; }
  .q-offer { padding: 24px 20px 22px; }
}
