/* ==================== RESET & BASE ==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: #fbfaf8;
  color: #3b302b;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 680px; margin: 0 auto; padding: 0 20px; }
.page { display: none; }
.page.active { display: block; }

/* ==================== HEADER ==================== */
.site-header {
  padding: 16px 0;
  border-bottom: 1px solid #ebe6e0;
  background: #fff;
}
.logo {
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 3px;
  color: #3b302b;
  text-align: center;
}
.logo span {
  color: #c18b9d;
}

/* ==================== PAGE 1: QUIZ ==================== */
.hero {
  text-align: center;
  padding: 40px 0 28px;
}
.hero-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #c18b9d;
  background: rgba(193,139,157,0.1);
  border: 1px solid rgba(193,139,157,0.2);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  font-weight: 900;
  line-height: 1.15;
  color: #3b302b;
  letter-spacing: -0.02em;
}
.highlight { color: #c18b9d; }
.subtitle {
  font-size: 0.95rem;
  color: #7e6f67;
  margin-top: 10px;
}

/* Trust strip */
.trust-strip {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: #7e6f67;
  font-weight: 500;
}
.trust-item svg { color: #c18b9d; flex-shrink: 0; }

/* Questions */
.questions-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.question-card {
  background: #fff;
  border: 1px solid #ebe6e0;
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.question-card:has(.rate-btn.selected) {
  border-color: rgba(193,139,157,0.3);
  box-shadow: 0 2px 12px rgba(193,139,157,0.06);
}
.q-number {
  font-size: 0.7rem;
  font-weight: 800;
  color: #c9bfb8;
  letter-spacing: 1px;
  flex-shrink: 0;
  width: 24px;
}
.q-label {
  font-weight: 500;
  font-size: 0.88rem;
  color: #3b302b;
  flex: 1;
  min-width: 0;
}
.rating-row {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}
.rate-btn {
  width: 52px;
  background: #fbfaf8;
  border: 1.5px solid #ebe6e0;
  border-radius: 8px;
  padding: 8px 0;
  color: #7e6f67;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.rate-num { font-size: 0.9rem; line-height: 1; }
.rate-text {
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.6;
}
.rate-btn:hover { border-color: #c18b9d; color: #3b302b; }
.rate-btn.selected {
  background: #c18b9d;
  border-color: #c18b9d;
  color: #fff;
}
.rate-btn.selected .rate-text { opacity: 1; }

/* Free text */
.freetext-section {
  margin-top: 16px;
  background: #fff;
  border: 1px solid #ebe6e0;
  border-radius: 14px;
  padding: 18px;
}
.freetext-section label {
  font-weight: 600;
  font-size: 0.88rem;
  color: #3b302b;
  display: block;
  margin-bottom: 8px;
}
.optional { color: #b5a99e; font-weight: 400; }
textarea {
  width: 100%;
  background: #fbfaf8;
  border: 1px solid #ebe6e0;
  border-radius: 10px;
  padding: 12px;
  color: #3b302b;
  font-family: inherit;
  font-size: 0.88rem;
  resize: vertical;
}
textarea::placeholder { color: #c9bfb8; }
textarea:focus { outline: none; border-color: #c18b9d; }

/* CTA */
.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 32px;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: -0.01em;
}
.cta-btn:hover { transform: translateY(-1px); }
.cta-btn:active { transform: translateY(0); }
.primary-cta {
  background: #c18b9d;
  color: #fff;
  margin-top: 20px;
  box-shadow: 0 4px 20px rgba(193,139,157,0.25);
}
.primary-cta:hover {
  background: #a97486;
  box-shadow: 0 8px 28px rgba(193,139,157,0.35);
}

.error-msg {
  color: #d94f4f;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  margin-top: 8px;
}

/* Testimonials */
.testimonial-strip {
  margin-top: 32px;
  padding: 28px 0 40px;
  border-top: 1px solid #ebe6e0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.testimonial {
  background: #fff;
  border: 1px solid #ebe6e0;
  border-radius: 12px;
  padding: 16px 18px;
}
.testimonial-stars {
  color: #fabb05;
  font-size: 0.75rem;
  letter-spacing: 2px;
  margin-bottom: 6px;
}
.testimonial p {
  font-style: italic;
  color: #5a4d46;
  font-size: 0.88rem;
  line-height: 1.5;
}
.testimonial span {
  display: block;
  margin-top: 6px;
  font-size: 0.75rem;
  color: #b5a99e;
  font-weight: 600;
}

/* ==================== PAGE 2: RESULTS ==================== */
.results-hero {
  text-align: center;
  padding: 36px 0 20px;
}
.results-hero h1 {
  font-size: clamp(1.4rem, 5vw, 2rem);
  font-weight: 900;
  color: #3b302b;
  letter-spacing: -0.02em;
}

/* Score card */
.score-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border: 1px solid #ebe6e0;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 16px rgba(59,48,43,0.04);
}
.score-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  background: #fbfaf8;
}
.score-circle::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid;
  border-color: inherit;
  opacity: 0.2;
}
.score-number {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
}
.score-label {
  font-size: 0.6rem;
  color: #b5a99e;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 2px;
}
.score-text h2 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.score-text p {
  font-size: 0.85rem;
  color: #7e6f67;
  line-height: 1.45;
}

/* Risk breakdown */
.risk-breakdown {
  background: #fff;
  border: 1px solid #ebe6e0;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 28px;
}
.risk-breakdown h3 {
  font-size: 0.82rem;
  font-weight: 700;
  color: #b5a99e;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.risk-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.risk-row:last-child { margin-bottom: 0; }
.risk-label {
  width: 130px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #5a4d46;
  flex-shrink: 0;
}
.risk-bar-bg {
  flex: 1;
  height: 6px;
  background: rgba(235,230,224,0.5);
  border-radius: 3px;
  overflow: hidden;
}
.risk-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.16,1,0.3,1);
}
.risk-level {
  width: 80px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: right;
  flex-shrink: 0;
}

/* Panel cards */
.panel-section { margin-bottom: 28px; }
.panel-section h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #3b302b;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.panel-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.panel-card {
  background: #fff;
  border: 1px solid #ebe6e0;
  border-radius: 12px;
  padding: 18px;
  transition: box-shadow 0.2s;
}
.panel-card:hover { box-shadow: 0 2px 16px rgba(59,48,43,0.05); }
.panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.panel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.panel-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #3b302b;
}
.panel-tests {
  font-size: 0.78rem;
  color: #b5a99e;
  margin-bottom: 8px;
  padding-left: 20px;
}
.panel-why {
  font-size: 0.85rem;
  color: #5a4d46;
  line-height: 1.5;
  padding-left: 20px;
}

/* ==================== PRICING ==================== */
.pricing-section { margin-bottom: 28px; }
.pricing-card {
  background: #fff;
  border: 1.5px solid #c18b9d;
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(193,139,157,0.08);
}
.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c18b9d, transparent);
}
.badge {
  display: inline-block;
  background: #c18b9d;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin-bottom: 4px;
}
.price-anchor {
  font-size: 1.3rem;
  color: #c9bfb8;
  font-weight: 600;
}
.price-anchor s { text-decoration: line-through; }
.price-main {
  font-size: 3.2rem;
  font-weight: 900;
  color: #3b302b;
  line-height: 1;
  letter-spacing: -0.03em;
}
.price-label {
  font-size: 0.78rem;
  color: #b5a99e;
  margin-bottom: 6px;
}
.urgency {
  display: inline-block;
  font-size: 0.78rem;
  color: #a97486;
  font-weight: 700;
  margin-bottom: 16px;
  background: rgba(193,139,157,0.1);
  padding: 4px 12px;
  border-radius: 6px;
}
.divider {
  height: 1px;
  background: #ebe6e0;
  margin: 16px 0;
}
.includes-list {
  list-style: none;
  text-align: left;
  margin-bottom: 0;
}
.includes-list li {
  padding: 7px 0;
  font-size: 0.88rem;
  color: #5a4d46;
  display: flex;
  align-items: center;
  gap: 10px;
}
.check-icon {
  color: #c18b9d;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* Checkout form */
.checkout-form {
  text-align: left;
  padding-top: 4px;
}
.checkout-form h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #3b302b;
  margin-bottom: 14px;
  text-align: center;
}
.form-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.form-row-half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.form-row label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #7e6f67;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-row input {
  width: 100%;
  padding: 12px 14px;
  background: #fbfaf8;
  border: 1px solid #ebe6e0;
  border-radius: 10px;
  color: #3b302b;
  font-family: inherit;
  font-size: 0.88rem;
  transition: border-color 0.15s;
}
.form-row input::placeholder { color: #c9bfb8; }
.form-row input:focus { outline: none; border-color: #c18b9d; background: rgba(193,139,157,0.03); }

/* Consent */
.consent-section {
  margin: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.consent-label {
  font-size: 0.78rem;
  color: #7e6f67;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  line-height: 1.4;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.15s;
}
.consent-label:hover { background: rgba(193,139,157,0.04); }
.consent-label input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: #c18b9d;
  cursor: pointer;
}

/* Stripe card element */
#card-element {
  background: #fbfaf8;
  border: 1px solid #ebe6e0;
  border-radius: 10px;
  padding: 14px;
  transition: border-color 0.15s;
}
#card-element.StripeElement--focus {
  border-color: #c18b9d;
  background: rgba(193,139,157,0.03);
}
#card-element.StripeElement--invalid {
  border-color: #d94f4f;
}

.success-msg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: 10px;
  padding: 16px;
  margin-top: 12px;
  text-align: center;
}
.success-msg span {
  font-size: 0.9rem;
  font-weight: 600;
  color: #166534;
}

.pay-cta.loading {
  opacity: 0.7;
  pointer-events: none;
}

.pay-cta {
  font-size: 1.1rem;
  padding: 18px 32px;
  margin-top: 12px;
}

.secure-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}
.secure-row svg { stroke: #c9bfb8; }
.secure-row span {
  font-size: 0.72rem;
  color: #c9bfb8;
}

/* Guarantee */
.guarantee-section {
  text-align: center;
  padding: 28px 0;
  margin-bottom: 16px;
}
.guarantee-icon { margin-bottom: 10px; }
.guarantee-icon svg { stroke: #c18b9d; }
.guarantee-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #3b302b;
  margin-bottom: 6px;
}
.guarantee-section p {
  font-size: 0.82rem;
  color: #b5a99e;
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.5;
}

.results-testimonials { margin-top: 4px; padding-top: 0; border: none; }

/* ==================== PAGE 3: CONFIRMATION ==================== */
.confirm-wrapper {
  text-align: center;
  padding: 40px 0;
  position: relative;
}
.confirm-photo {
  width: 160px;
  margin: 0 auto 24px;
}
.confirm-photo img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 16px rgba(59,48,43,0.12));
}
.confirm-content { position: relative; z-index: 1; }
.confirm-check { margin-bottom: 16px; }
.confirm-wrapper h1 {
  font-size: 1.8rem;
  font-weight: 900;
  color: #3b302b;
  margin-bottom: 6px;
}
.confirm-subtitle {
  font-size: 1rem;
  color: #7e6f67;
  margin-bottom: 28px;
}
.confirm-steps {
  text-align: left;
  max-width: 440px;
  margin: 0 auto 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.confirm-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border: 1px solid #ebe6e0;
  border-radius: 12px;
  padding: 16px;
}
.confirm-step-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #c18b9d;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.confirm-step h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #3b302b;
  margin-bottom: 2px;
}
.confirm-step p {
  font-size: 0.8rem;
  color: #7e6f67;
  line-height: 1.4;
}
.confirm-note {
  font-size: 0.88rem;
  color: #b5a99e;
  font-weight: 500;
}

/* Timeline */
.timeline-section {
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid #ebe6e0;
  border-radius: 16px;
  padding: 28px 24px;
}
.timeline-section::after {
  content: '';
  position: absolute;
  right: -20px;
  bottom: -10px;
  width: 180px;
  height: 280px;
  background: url('scrubs.png') no-repeat center bottom;
  background-size: contain;
  opacity: 0.08;
  pointer-events: none;
}
.timeline-section h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #3b302b;
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}
.timeline {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  z-index: 1;
}
.timeline-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 0;
}
.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #c18b9d;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-content h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #3b302b;
  margin-bottom: 2px;
}
.step-content p {
  font-size: 0.8rem;
  color: #7e6f67;
  line-height: 1.4;
}
.timeline-connector {
  width: 2px;
  height: 8px;
  background: #ebe6e0;
  margin-left: 15px;
}

/* Social proof counter */
.social-proof-counter {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
  padding: 18px;
  background: rgba(193,139,157,0.06);
  border: 1px solid rgba(193,139,157,0.15);
  border-radius: 12px;
}
.proof-number {
  font-size: 2rem;
  font-weight: 900;
  color: #c18b9d;
  letter-spacing: -0.03em;
  line-height: 1;
}
.proof-text {
  font-size: 0.88rem;
  color: #7e6f67;
  font-weight: 500;
}

/* Countdown */
.countdown-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #a97486;
  font-weight: 600;
  margin-bottom: 16px;
  background: rgba(193,139,157,0.08);
  padding: 6px 14px;
  border-radius: 8px;
}
.countdown-row svg { stroke: #a97486; }
.countdown-row strong {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: #c18b9d;
}

/* Inline testimonial in pricing card */
.inline-testimonial {
  background: #fbfaf8;
  border: 1px solid #ebe6e0;
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 16px;
  text-align: left;
}
.inline-testimonial .testimonial-stars {
  color: #fabb05;
  font-size: 0.7rem;
  letter-spacing: 2px;
  margin-bottom: 4px;
}
.inline-testimonial p {
  font-style: italic;
  color: #5a4d46;
  font-size: 0.82rem;
  line-height: 1.5;
}
.inline-testimonial span {
  display: block;
  margin-top: 6px;
  font-size: 0.7rem;
  color: #b5a99e;
  font-weight: 600;
  font-style: normal;
}

/* FAQ */
.faq-section {
  margin-bottom: 32px;
  padding-top: 8px;
}
.faq-section h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #3b302b;
  text-align: center;
  margin-bottom: 16px;
}
.faq-item {
  border: 1px solid #ebe6e0;
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
  background: #fff;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: #3b302b;
  cursor: pointer;
  text-align: left;
}
.faq-q svg {
  flex-shrink: 0;
  color: #b5a99e;
  transition: transform 0.2s;
}
.faq-item.open .faq-q svg {
  transform: rotate(180deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-a {
  max-height: 300px;
}
.faq-a p {
  padding: 0 18px 16px;
  font-size: 0.82rem;
  color: #7e6f67;
  line-height: 1.55;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid #ebe6e0;
  background: #fff;
}
.google-reviews {
  display: inline-block;
  color: #fabb05;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 6px;
}
.stars { letter-spacing: 2px; margin-right: 4px; }
.site-footer p { font-size: 0.7rem; color: #c9bfb8; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .score-card { flex-direction: column; text-align: center; padding: 20px; }
  .score-circle { width: 90px; height: 90px; }
  .score-number { font-size: 1.9rem; }
  .risk-label { width: 100px; font-size: 0.72rem; }
  .risk-level { width: 72px; font-size: 0.6rem; }
  .question-card { flex-direction: column; align-items: stretch; gap: 10px; }
  .q-number { display: none; }
  .rating-row { gap: 6px; }
  .rate-btn { width: auto; flex: 1; padding: 8px 0; }
  .rate-num { font-size: 0.85rem; }
  .rate-text { font-size: 0.5rem; }
  .form-row-half { grid-template-columns: 1fr; }
  .trust-strip { gap: 12px; }
  .trust-item { font-size: 0.7rem; }
  .pricing-card { padding: 24px 18px; }
  .price-main { font-size: 2.8rem; }
}
