/* ============================================
   DFF Quiz Funnel — Custom Styles
   quiz.yourdogtalk.com
   ============================================ */

/* --- Base & Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #f97316;
  --primary-hover: #ea580c;
  --primary-light: #fff7ed;
  --accent: #3b82f6;
  --bg: #fefce8;
  --bg-white: #ffffff;
  --text: #1c1917;
  --text-muted: #78716c;
  --text-light: #a8a29e;
  --border: #e7e5e4;
  --success: #22c55e;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
  --radius: 12px;
  --radius-lg: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Profile colors */
  --c-new-dog-parent: #22c55e;
  --c-rescue-parent: #8b5cf6;
  --c-health-guardian: #ef4444;
  --c-senior-companion: #f59e0b;
  --c-devoted-parent: #ec4899;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* --- Typography --- */
h1, h2, h3 { font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 4vw, 2rem); }
h3 { font-size: clamp(1.1rem, 3vw, 1.5rem); }
p { font-size: clamp(1rem, 2.5vw, 1.125rem); }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Screens --- */
.screen {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  min-height: 100vh;
  padding: 24px 0 60px;
}
.screen.active {
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: translateY(0);
}

/* Animation helper */
.screen.fade-in { animation: fadeSlideIn 0.5s ease forwards; }
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Header / Nav --- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  margin-bottom: 8px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}
.logo-icon { font-size: 1.5rem; }
.trust-badge {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.trust-badge span { font-weight: 600; }

/* --- Landing Page --- */
.landing-hook {
  text-align: center;
  padding: 16px 0 20px;
}
.landing-hook h1 {
  font-size: clamp(1.65rem, 5vw, 2.2rem);
  line-height: 1.25;
  color: var(--text);
  margin: 0;
}
.landing-hook h1 em {
  font-style: normal;
  color: var(--primary);
}
.landing-hook .landing-pre {
  font-size: 0.9rem;
  color: #78716c;
  margin: 0 0 14px;
  letter-spacing: 0.01em;
}

.landing-hero-image {
  text-align: center;
  margin: 20px 0 28px;
}
.landing-hero-image img {
  max-width: 90%;
  max-height: 380px;
  width: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.13);
}

.landing-microstats {
  font-size: 0.82rem;
  color: #a8a29e;
  margin-top: 10px;
  text-align: center;
  letter-spacing: 0.01em;
}

.landing-why {
  margin: 28px 0 32px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 0.97rem;
  color: #44403c;
  line-height: 1.7;
  text-align: center;
}
.landing-why em {
  font-style: italic;
  color: var(--text);
  font-weight: 600;
}

.takeaway {
  font-size: 0.9rem !important;
  color: var(--text-muted) !important;
  font-style: italic;
  margin-top: 28px !important;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* --- CTA Button --- */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 420px;
  margin: 28px auto;
  padding: 18px 32px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 14px rgba(249,115,22,0.35);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.btn-cta:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249,115,22,0.4);
}
.btn-cta:active { transform: translateY(0); }
.btn-cta .arrow { transition: transform 0.2s; }
.btn-cta:hover .arrow { transform: translateX(4px); }

.cta-wrapper { text-align: center; }

/* --- Social Proof --- */
.social-proof {
  margin: 40px 0;
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.social-proof h3 {
  text-align: center;
  margin-bottom: 24px;
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 600;
}
.testimonial {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.testimonial p {
  font-size: 0.95rem;
  font-style: italic;
  color: #44403c;
  margin-bottom: 8px;
}
.testimonial .author {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: normal;
  font-weight: 600;
}

/* --- Quiz Section --- */
.quiz-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Progress Bar */
.progress-bar-wrap {
  width: 100%;
  height: 6px;
  background: #e7e5e4;
  border-radius: 3px;
  margin: 16px 0 32px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  width: 0%;
  transition: width 0.5s ease;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* Question */
.question-header {
  margin-bottom: 28px;
}
.question-number {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.question-text {
  font-size: clamp(1.3rem, 4vw, 1.7rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.question-hint {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-style: italic;
}

/* Options */
.options-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.option-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  font-size: 1rem;
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}
.option-btn:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateX(4px);
}
.option-btn.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 1px var(--primary);
}
.option-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
}
.option-label { flex: 1; line-height: 1.4; }

/* Text Input (Q5 dog name) */
.text-input-wrap {
  margin-top: 8px;
}
.text-input {
  width: 100%;
  padding: 16px 20px;
  font-size: 1.1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-white);
  color: var(--text);
  transition: border-color 0.2s;
  outline: none;
}
.text-input:focus {
  border-color: var(--primary);
}
.text-input::placeholder {
  color: var(--text-light);
}
.text-input-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
}
.btn-next {
  margin-top: 20px;
  padding: 14px 32px;
  font-size: 1rem;
}

/* --- Calculating Screen --- */
.calculating-screen {
  text-align: center;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
}
.calc-icon {
  font-size: 3.5rem;
  margin-bottom: 24px;
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}
.calc-steps {
  list-style: none;
  text-align: left;
  max-width: 340px;
  margin: 28px auto 0;
}
.calc-step {
  padding: 10px 0;
  font-size: 1rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateX(-10px);
}
.calc-step.visible {
  animation: calcStepIn 0.4s ease forwards;
}
@keyframes calcStepIn {
  to { opacity: 1; transform: translateX(0); }
}
.calc-step .check {
  color: var(--success);
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.3s;
}
.calc-step.done .check { opacity: 1; }

/* --- Email Capture Screen --- */
.email-screen {
  text-align: center;
  justify-content: center;
}
.email-screen h2 {
  margin-bottom: 8px;
}
.email-screen .subtitle {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 1.05rem;
}
.email-form {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}
.email-input {
  width: 100%;
  padding: 16px 20px;
  font-size: 1.1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-white);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 12px;
}
.email-input:focus { border-color: var(--primary); }
.email-input::placeholder { color: var(--text-light); }
.email-privacy {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 12px;
}
.email-error {
  color: #ef4444;
  font-size: 0.9rem;
  margin-top: 8px;
  display: none;
}

/* Skip email link */
.skip-email-link {
  display: block;
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.skip-email-link:hover {
  color: var(--text);
  text-decoration: underline;
}

/* Full report CTA */
.full-report-cta {
  text-align: center;
  margin: 32px 0 8px;
}
.btn-full-report {
  font-size: 1.05rem;
  font-weight: 700;
  padding: 16px 32px;
  width: 100%;
  max-width: 480px;
}

/* Email + product gate */
.email-product-gate {
  margin: 28px 0;
}
.gate-box {
  background: linear-gradient(135deg, #fef3c7, #fff7ed);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 28px 24px 20px;
  text-align: center;
}
.gate-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}
.gate-desc {
  font-size: 0.95rem;
  color: #57534e;
  line-height: 1.6;
  margin-bottom: 18px;
}
.skip-products-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-light);
  text-decoration: none;
}
.skip-products-link:hover {
  color: var(--text-muted);
  text-decoration: underline;
}

/* Inline email capture (result page, for skip users) */
.inline-email-capture {
  margin: 28px 0;
}
.inline-email-box {
  background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
  border: 2px solid var(--success);
  border-radius: var(--radius-lg);
  padding: 24px 24px 20px;
  text-align: center;
}
.inline-email-title {
  font-size: 1.05rem;
  margin-bottom: 16px;
  line-height: 1.4;
}
.inline-email-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
  margin: 0 auto;
}
.inline-email-form .email-input {
  width: 100%;
  margin: 0;
  padding: 14px 16px;
  font-size: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}
.inline-email-form .email-input:focus {
  border-color: var(--success);
  outline: none;
}
.btn-inline-email {
  width: 100%;
  padding: 14px 18px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  background: var(--success);
  color: white;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-inline-email:hover {
  background: #16a34a;
}

/* --- Result Screen --- */
.result-screen {
  padding-top: 16px;
}

.result-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}
.result-badge.new_dog_parent { background: var(--c-new-dog-parent); }
.result-badge.rescue_parent { background: var(--c-rescue-parent); }
.result-badge.health_guardian { background: var(--c-health-guardian); }
.result-badge.senior_companion { background: var(--c-senior-companion); }
.result-badge.devoted_parent { background: var(--c-devoted-parent); }

/* Result page — problem/watchout/guide sections */
.result-problems, .result-watchouts {
  list-style: none;
  padding: 0;
  margin: 16px 0 24px;
}
.result-problems li, .result-watchouts li {
  padding: 10px 0;
  line-height: 1.5;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.result-problems li:last-child, .result-watchouts li:last-child {
  border-bottom: none;
}
.result-problems .bullet {
  color: var(--primary);
  font-size: 1.3em;
  font-weight: bold;
  margin-right: 8px;
}
.result-watchouts .bullet {
  color: var(--c-health-guardian);
  font-size: 1.3em;
  font-weight: bold;
  margin-right: 8px;
}
.result-guide-hook {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
}
.result-guide-hook p {
  margin: 0;
  line-height: 1.6;
}
#result-description h3 {
  font-size: 1.1rem;
  margin-top: 28px;
  margin-bottom: 4px;
  color: var(--text);
}

/* Affiliate benefits list */
.affiliate-benefits {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}
.affiliate-benefits li {
  position: relative;
  padding: 4px 0 4px 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.affiliate-benefits li::before {
  content: '\2714';
  position: absolute;
  left: 0;
  color: var(--success);
  font-size: 0.8rem;
}

.result-title {
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  margin-bottom: 8px;
}
.result-label {
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 20px;
}
.result-description {
  color: #44403c;
  margin-bottom: 28px;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Free LM Card */
.lm-card {
  background: var(--bg-white);
  border: 2px solid var(--success);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 24px 0;
  text-align: center;
}
.lm-card .tag {
  display: inline-block;
  background: #dcfce7;
  color: #16a34a;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.lm-card h3 {
  margin-bottom: 8px;
}
.lm-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.lm-card .btn-cta {
  max-width: 100%;
  margin: 0;
  background: var(--success);
  box-shadow: 0 4px 14px rgba(34,197,94,0.3);
}
.lm-card .btn-cta:hover {
  background: #16a34a;
}

/* Upgrade Cards */
.upgrade-section {
  margin: 36px 0;
}
.upgrade-section h3 {
  text-align: center;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 600;
}
.upgrade-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.upgrade-card {
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: all 0.2s;
  position: relative;
}
.upgrade-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.upgrade-card.popular {
  border-color: var(--primary);
}
.upgrade-card.popular::before {
  content: 'BEST VALUE';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 8px;
  letter-spacing: 0.05em;
}
.upgrade-card .price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  margin: 8px 0;
}
.upgrade-card .price-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.upgrade-card ul {
  list-style: none;
  text-align: left;
  margin-bottom: 16px;
}
.upgrade-card ul li {
  font-size: 0.85rem;
  padding: 4px 0;
  color: #44403c;
}
.upgrade-card ul li::before {
  content: '✓ ';
  color: var(--success);
  font-weight: 700;
}
.upgrade-card .btn-upgrade {
  display: block;
  width: 100%;
  padding: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--bg);
  color: var(--text);
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  text-align: center;
}
.upgrade-card .btn-upgrade:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.upgrade-card.popular .btn-upgrade {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* --- Choose Your Level (3-Tier Cards) --- */
.choose-section {
  margin: 36px 0;
  text-align: center;
}
.choose-title {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.choose-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.tier-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tier-card {
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: left;
  position: relative;
  transition: all 0.2s;
}
.tier-card:hover {
  box-shadow: var(--shadow-md);
}
.tier-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.tier-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.tier-format {
  font-size: 0.8rem;
  color: var(--primary-hover);
  font-weight: 600;
  background: var(--primary-light);
  padding: 5px 10px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 12px;
}
.tier-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.free-badge {
  background: #dcfce7;
  color: #16a34a;
}
.starter-badge {
  background: #dbeafe;
  color: #2563eb;
}
.complete-badge {
  background: #fff7ed;
  color: #ea580c;
}
.tier-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  margin: 8px 0 4px;
}
.tier-price-note {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
}
.tier-features {
  list-style: none;
  margin: 16px 0;
  padding: 0;
}
.tier-features li {
  padding: 5px 0 5px 24px;
  position: relative;
  font-size: 0.92rem;
  color: #44403c;
  line-height: 1.5;
}
.tier-features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}
.tier-features li.inherited {
  padding-left: 0;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.tier-features li.inherited::before {
  content: none;
}
.btn-tier {
  display: block;
  width: 100%;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}
.btn-tier-free {
  background: var(--bg);
  color: var(--text);
  border: 2px solid var(--border);
}
.btn-tier-free:hover {
  border-color: var(--success);
  background: #f0fdf4;
}
.btn-tier-starter {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37,99,235,0.25);
}
.btn-tier-starter:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.35);
}
.btn-tier-complete {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(249,115,22,0.35);
}
.btn-tier-complete:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249,115,22,0.4);
}
.tier-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 10px;
  text-align: center;
}
.tier-popular {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  margin-top: 10px;
  text-align: center;
}

/* Highlight the Complete tier */
.tier-card.tier-complete {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-md);
}
.tier-card.tier-starter {
  border-color: #93c5fd;
}

/* Affiliate Recommendations */
.affiliate-section {
  margin: 36px 0;
  padding: 24px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.affiliate-teaser {
  background: linear-gradient(135deg, #fef3c7, #fff7ed);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 20px;
}
.affiliate-teaser h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--text);
}
.affiliate-teaser p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #57534e;
  margin-bottom: 8px;
}
.affiliate-teaser p:last-child {
  margin-bottom: 0;
  font-size: 1.05rem;
  color: var(--primary-hover);
}
.affiliate-section h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}
.affiliate-profile-line {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 4px;
}
.affiliate-intro {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}
.affiliate-list {
  list-style: none;
}
.affiliate-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.affiliate-item:last-child { border-bottom: none; }
.affiliate-item .icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.affiliate-item .info { flex: 1; }
.affiliate-item .name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}
.affiliate-item .desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.affiliate-item .reason {
  font-size: 0.85rem;
  color: #44403c;
  line-height: 1.5;
  margin-top: 4px;
  padding: 8px 10px;
  background: #fefce8;
  border-radius: 8px;
  border-left: 3px solid var(--primary);
}
.affiliate-item a {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  margin-top: 4px;
}
.affiliate-item a:hover { text-decoration: underline; }

.affiliate-disclosure {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 16px;
  font-style: italic;
}

/* --- Footer --- */
.site-footer {
  text-align: center;
  padding: 24px 0;
  margin-top: auto;
  border-top: 1px solid var(--border);
}
.site-footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.site-footer a {
  color: var(--text-muted);
  text-decoration: underline;
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.hidden { display: none !important; }
.block { display: block; }

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Soft email CTA (between products and tiers) */
.soft-email-cta {
  margin: 32px 0;
}

/* Retake link */
.retake-link {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--text-light);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.retake-link:hover {
  color: var(--primary);
  background: rgba(0,0,0,0.03);
  text-decoration: none;
}

/* --- Personalized context paragraph --- */
.result-context {
  margin-top: 12px;
  color: #44403c;
  font-size: 0.97rem;
  line-height: 1.65;
  font-style: italic;
  border-left: 3px solid var(--primary);
  padding-left: 14px;
}

/* --- Accuracy Feedback Widget --- */
.accuracy-feedback {
  margin: 20px 0 24px;
  padding: 16px 20px;
  background: #fafaf9;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
}
.feedback-prompt {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.feedback-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.feedback-btn {
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-dark);
  transition: all 0.18s;
}
.feedback-btn:hover { border-color: var(--primary); color: var(--primary); }
.feedback-yes:hover { background: #dcfce7; border-color: #22c55e; color: #166534; }
.feedback-no:hover  { background: #fef9c3; border-color: #eab308; color: #713f12; }
.feedback-correction {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.feedback-correction-label {
  font-size: 0.88rem;
  color: var(--text-muted);
}
.feedback-textarea {
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  width: 100%;
  max-width: 320px;
  background: #fff;
  resize: vertical;
  font-family: inherit;
  line-height: 1.5;
  color: var(--text-dark);
}
.btn-feedback-submit {
  padding: 8px 22px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.feedback-thanks {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .screen { padding: 16px 0 40px; }

  .upgrade-cards {
    grid-template-columns: 1fr;
  }

  .option-btn {
    padding: 14px 16px;
  }

  .btn-cta {
    padding: 16px 24px;
    font-size: 1.05rem;
  }

  .tier-card {
    padding: 20px 16px;
  }
  .tier-price {
    font-size: 1.7rem;
  }

  .affiliate-item {
    flex-wrap: wrap;
  }
  .affiliate-item a {
    width: 100%;
    margin-top: 4px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Zone B Lock / Unlock ──────────────────────────────── */
#zone-b { position: relative; margin-top: 8px; }

#zone-b.locked .zone-b-content {
  filter: blur(5px);
  pointer-events: none;
  user-select: none;
  max-height: 260px;
  overflow: hidden;
  transition: filter 0.5s ease;
}
#zone-b.locked::after {
  content: '';
  position: absolute;
  bottom: 260px;
  left: 0; right: 0;
  height: 100px;
  background: linear-gradient(to bottom, transparent, #fafaf9);
  pointer-events: none;
  z-index: 5;
}
#zone-b.unlocked .zone-b-content {
  filter: none;
  max-height: none;
  overflow: visible;
  transition: filter 0.5s ease;
}
#zone-b.unlocked .zone-b-gate { display: none; }

.zone-b-gate {
  position: relative;
  z-index: 20;
  padding: 0;
  margin-bottom: 16px;
}
.zone-b-gate .gate-box {
  border: 2px solid #f59e0b;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(245,158,11,0.15);
}
.zone-b-gate .gate-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1c1917;
  margin: 0 0 6px;
}
.zone-b-gate .gate-desc {
  font-size: 0.9rem;
  color: #57534e;
  margin: 0 0 16px;
  line-height: 1.5;
}
.zone-b-gate .gate-items {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  text-align: left;
  display: inline-block;
}
.zone-b-gate .gate-items li {
  font-size: 0.875rem;
  color: #78350f;
  padding: 3px 0;
  font-weight: 500;
}
.zone-b-gate .gate-items li::before { content: '🔍 '; }

.result-teaser {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1px solid #fcd34d;
  border-radius: 12px;
  padding: 14px 18px;
  margin: 16px 0 0;
}
.result-teaser p {
  margin: 0 0 6px;
  font-size: 0.9rem;
  color: #78350f;
  font-weight: 700;
}
.result-teaser .teaser-finding {
  font-size: 0.92rem;
  font-weight: 600;
  color: #431407;
  line-height: 1.6;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #fbbf24;
}
.result-teaser .teaser-locked-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #b45309;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 6px;
}

.result-teaser .teaser-pattern {
  font-size: 0.9rem;
  color: #78350f;
  line-height: 1.55;
  margin: 10px 0 10px;
  padding: 10px 12px;
  background: rgba(251,191,36,0.18);
  border-radius: 8px;
  border-left: 3px solid #f59e0b;
}
.result-teaser ul {
  margin: 0; padding: 0 0 0 4px; list-style: none;
}
.result-teaser ul li {
  font-size: 0.825rem;
  color: #92400e;
  padding: 2px 0;
}
.result-teaser ul li::before { content: '↓ '; }

.result-analysis { margin: 0 0 24px; }
.result-analysis-q4 {
  font-size: 1rem;
  color: #1c1917;
  line-height: 1.75;
  margin-bottom: 12px;
  font-weight: 500;
}
.result-analysis-q7 {
  font-size: 0.95rem;
  color: #292524;
  line-height: 1.7;
  margin-bottom: 24px;
  padding: 14px 16px;
  background: #f0fdf4;
  border-radius: 8px;
  border-left: 4px solid #22c55e;
}

.unlock-success {
  background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
  border: 2px solid #22c55e;
  border-radius: 12px;
  padding: 16px 20px;
  text-align: center;
  margin-bottom: 24px;
}
.unlock-success p {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #16a34a;
}

/* ── Share Result Button ── */
.btn-share-result {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 16px 0 8px;
  padding: 14px 24px;
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  color: #374151;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, transform 0.12s;
}
.btn-share-result:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

/* ── Share Modal ── */
.share-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}
.share-modal-inner {
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px 24px;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.share-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: #6b7280;
  cursor: pointer;
  padding: 4px 8px;
}
.share-modal-close:hover { color: #111; }
.share-modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #111;
  margin: 0 0 4px;
}
.share-modal-hint {
  font-size: 0.88rem;
  color: #6b7280;
  margin: 0 0 16px;
}
.share-card-preview {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.share-card-preview canvas {
  width: 100% !important;
  height: auto !important;
  display: block;
}
.share-modal-actions {
  display: flex;
  gap: 10px;
}
.btn-share-action {
  flex: 1;
  padding: 13px 16px;
  border-radius: 10px;
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.12s;
}
.btn-share-action:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-share-download {
  background: #f1f5f9;
  color: #374151;
}
.btn-share-native {
  background: #111;
  color: #fff;
}
